From 3eaddb0f32ddffd8bf33e64ab3d3bc7fba61d166 Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 15:44:55 +0100 Subject: [PATCH 1/9] Update version format --- Makefile | 2 +- README.md | 2 +- bumpver.toml | 9 +++------ koyeb/__init__.py | 2 +- koyeb/api_client.py | 2 +- koyeb/configuration.py | 2 +- koyeb_README.md | 2 +- pyproject.toml | 2 +- 8 files changed, 10 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 42447acb..8feffb13 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ TEST_OPTS=-v -test.timeout 300s GIT_USER_ID?=koyeb GIT_REPO_ID?=koyeb-api-client-python OPENAPI_GENERATOR_VERSION?=latest -PACKAGE_VERSION?=2025.7.0 +PACKAGE_VERSION?=1.0.0 .PHONY: gen diff --git a/README.md b/README.md index ab4ebc9e..d17bdfa8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The Koyeb API allows you to interact with the Koyeb platform in a simple, progra This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 2025.7.0 +- Package version: 1.0.0 - Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/bumpver.toml b/bumpver.toml index 1619d2e0..c2a715ed 100644 --- a/bumpver.toml +++ b/bumpver.toml @@ -1,12 +1,9 @@ [tool.bumpver] -current_version = "2025.7.0" -version_pattern = "YYYY.MM.PATCH[PYTAGNUM]" +current_version = "1.0.0" +version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]" commit = false tag = false push = false [tool.bumpver.file_patterns] -"Makefile" = [ - "PACKAGE_VERSION?={version}", -] - +"Makefile" = ["PACKAGE_VERSION?={version}"] diff --git a/koyeb/__init__.py b/koyeb/__init__.py index 9300dba5..0d6ea354 100644 --- a/koyeb/__init__.py +++ b/koyeb/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "2025.7.0" +__version__ = "1.0.0" # Define package exports __all__ = [ diff --git a/koyeb/api_client.py b/koyeb/api_client.py index 43b5ca45..1a8fecf1 100644 --- a/koyeb/api_client.py +++ b/koyeb/api_client.py @@ -87,7 +87,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/2025.7.0/python" + self.user_agent = "OpenAPI-Generator/1.0.0/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/koyeb/configuration.py b/koyeb/configuration.py index 51401dd5..aaf152a1 100644 --- a/koyeb/configuration.py +++ b/koyeb/configuration.py @@ -542,7 +542,7 @@ def to_debug_report(self) -> str: "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.0.0\n" - "SDK Package Version: 2025.7.0".format( + "SDK Package Version: 1.0.0".format( env=sys.platform, pyversion=sys.version ) ) diff --git a/koyeb_README.md b/koyeb_README.md index 47816a71..7205535f 100644 --- a/koyeb_README.md +++ b/koyeb_README.md @@ -4,7 +4,7 @@ The Koyeb API allows you to interact with the Koyeb platform in a simple, progra The `koyeb` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 2025.7.0 +- Package version: 1.0.0 - Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/pyproject.toml b/pyproject.toml index ae9fda2e..e3ee33da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "koyeb-sdk" -version = "2025.7.0" +version = "1.0.0" description = "Koyeb Rest API" authors = [ {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, From 53011a9a36841e116f2e92d88b27a8acc2577534 Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 15:45:40 +0100 Subject: [PATCH 2/9] Remove unused files --- git_push.sh | 57 ----- koyeb_README.md | 616 ------------------------------------------------ 2 files changed, 673 deletions(-) delete mode 100644 git_push.sh delete mode 100644 koyeb_README.md diff --git a/git_push.sh b/git_push.sh deleted file mode 100644 index d5f81352..00000000 --- a/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="koyeb" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="koyeb-api-client-python" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/koyeb_README.md b/koyeb_README.md deleted file mode 100644 index 7205535f..00000000 --- a/koyeb_README.md +++ /dev/null @@ -1,616 +0,0 @@ -# koyeb -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The `koyeb` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Generator version: 7.14.0 -- Build package: org.openapitools.codegen.languages.PythonClientCodegen - -## Requirements. - -Python 3.9+ - -## Installation & Usage - -This python library package is generated without supporting files like setup.py or requirements files - -To be able to use it, you will need these dependencies in your own package that uses this library: - -* urllib3 >= 2.1.0, < 3.0.0 -* python-dateutil >= 2.8.2 -* pydantic >= 2 -* typing-extensions >= 4.7.1 - -## Getting Started - -In your own code, to use this library to connect and interact with koyeb, -you can run the following: - -```python - -import koyeb -from koyeb.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://app.koyeb.com -# See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( - host = "https://app.koyeb.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: Bearer -configuration.api_key['Bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Bearer'] = 'Bearer' - - -# Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) - app = koyeb.CreateApp() # CreateApp | - - try: - # Create App - api_response = api_instance.create_app(app) - print("The response of AppsApi->create_app:\n") - pprint(api_response) - except ApiException as e: - print("Exception when calling AppsApi->create_app: %s\n" % e) - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://app.koyeb.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AppsApi* | [**create_app**](koyeb/docs/AppsApi.md#create_app) | **POST** /v1/apps | Create App -*AppsApi* | [**delete_app**](koyeb/docs/AppsApi.md#delete_app) | **DELETE** /v1/apps/{id} | Delete App -*AppsApi* | [**get_app**](koyeb/docs/AppsApi.md#get_app) | **GET** /v1/apps/{id} | Get App -*AppsApi* | [**list_app_events**](koyeb/docs/AppsApi.md#list_app_events) | **GET** /v1/app_events | List App events -*AppsApi* | [**list_apps**](koyeb/docs/AppsApi.md#list_apps) | **GET** /v1/apps | List App -*AppsApi* | [**pause_app**](koyeb/docs/AppsApi.md#pause_app) | **POST** /v1/apps/{id}/pause | Pause App -*AppsApi* | [**resume_app**](koyeb/docs/AppsApi.md#resume_app) | **POST** /v1/apps/{id}/resume | Resume App -*AppsApi* | [**update_app**](koyeb/docs/AppsApi.md#update_app) | **PUT** /v1/apps/{id} | Update App -*AppsApi* | [**update_app2**](koyeb/docs/AppsApi.md#update_app2) | **PATCH** /v1/apps/{id} | Update App -*ArchivesApi* | [**create_archive**](koyeb/docs/ArchivesApi.md#create_archive) | **POST** /v1/archives | Create Archive -*CatalogDatacentersApi* | [**list_datacenters**](koyeb/docs/CatalogDatacentersApi.md#list_datacenters) | **GET** /v1/catalog/datacenters | List datacenters -*CatalogInstanceUsageApi* | [**list_usage**](koyeb/docs/CatalogInstanceUsageApi.md#list_usage) | **GET** /v1/catalog/usage | -*CatalogInstancesApi* | [**get_catalog_instance**](koyeb/docs/CatalogInstancesApi.md#get_catalog_instance) | **GET** /v1/catalog/instances/{id} | Get Instance -*CatalogInstancesApi* | [**list_catalog_instances**](koyeb/docs/CatalogInstancesApi.md#list_catalog_instances) | **GET** /v1/catalog/instances | List Instances -*CatalogRegionsApi* | [**get_region**](koyeb/docs/CatalogRegionsApi.md#get_region) | **GET** /v1/catalog/regions/{id} | Get Region -*CatalogRegionsApi* | [**list_regions**](koyeb/docs/CatalogRegionsApi.md#list_regions) | **GET** /v1/catalog/regions | List Region -*ComposeApi* | [**compose**](koyeb/docs/ComposeApi.md#compose) | **POST** /v1/compose | Create resources from compose. -*CouponsApi* | [**redeem_coupon**](koyeb/docs/CouponsApi.md#redeem_coupon) | **POST** /v1/coupons | Redeem Coupon -*CredentialsApi* | [**create_credential**](koyeb/docs/CredentialsApi.md#create_credential) | **POST** /v1/credentials | Create credential -*CredentialsApi* | [**delete_credential**](koyeb/docs/CredentialsApi.md#delete_credential) | **DELETE** /v1/credentials/{id} | Delete credential -*CredentialsApi* | [**get_credential**](koyeb/docs/CredentialsApi.md#get_credential) | **GET** /v1/credentials/{id} | Get credential -*CredentialsApi* | [**list_credentials**](koyeb/docs/CredentialsApi.md#list_credentials) | **GET** /v1/credentials | List credentials -*CredentialsApi* | [**update_credential**](koyeb/docs/CredentialsApi.md#update_credential) | **PUT** /v1/credentials/{id} | Update credential -*CredentialsApi* | [**update_credential2**](koyeb/docs/CredentialsApi.md#update_credential2) | **PATCH** /v1/credentials/{id} | Update credential -*DeploymentsApi* | [**cancel_deployment**](koyeb/docs/DeploymentsApi.md#cancel_deployment) | **POST** /v1/deployments/{id}/cancel | Cancel Deployment -*DeploymentsApi* | [**get_deployment**](koyeb/docs/DeploymentsApi.md#get_deployment) | **GET** /v1/deployments/{id} | Get Deployment -*DeploymentsApi* | [**get_deployment_scaling**](koyeb/docs/DeploymentsApi.md#get_deployment_scaling) | **GET** /v1/deployment/{id}/scaling | Get Deployment Scaling -*DeploymentsApi* | [**list_deployment_events**](koyeb/docs/DeploymentsApi.md#list_deployment_events) | **GET** /v1/deployment_events | List Deployment events -*DeploymentsApi* | [**list_deployments**](koyeb/docs/DeploymentsApi.md#list_deployments) | **GET** /v1/deployments | List Deployments -*DockerHelperApi* | [**verify_docker_image**](koyeb/docs/DockerHelperApi.md#verify_docker_image) | **GET** /v1/docker-helper/verify | Verify Docker Image -*DomainsApi* | [**create_domain**](koyeb/docs/DomainsApi.md#create_domain) | **POST** /v1/domains | Create Domain -*DomainsApi* | [**delete_domain**](koyeb/docs/DomainsApi.md#delete_domain) | **DELETE** /v1/domains/{id} | Delete Domain -*DomainsApi* | [**get_domain**](koyeb/docs/DomainsApi.md#get_domain) | **GET** /v1/domains/{id} | Get Domain -*DomainsApi* | [**list_domains**](koyeb/docs/DomainsApi.md#list_domains) | **GET** /v1/domains | List Domains -*DomainsApi* | [**refresh_domain_status**](koyeb/docs/DomainsApi.md#refresh_domain_status) | **POST** /v1/domains/{id}/refresh | Refresh Domain Status -*DomainsApi* | [**update_domain**](koyeb/docs/DomainsApi.md#update_domain) | **PATCH** /v1/domains/{id} | Update Domain -*InstancesApi* | [**exec_command**](koyeb/docs/InstancesApi.md#exec_command) | **GET** /v1/streams/instances/exec | Exec Command -*InstancesApi* | [**get_instance**](koyeb/docs/InstancesApi.md#get_instance) | **GET** /v1/instances/{id} | Get Instance -*InstancesApi* | [**list_instance_events**](koyeb/docs/InstancesApi.md#list_instance_events) | **GET** /v1/instance_events | List Instance events -*InstancesApi* | [**list_instances**](koyeb/docs/InstancesApi.md#list_instances) | **GET** /v1/instances | List Instances -*IntercomApi* | [**get_intercom_profile**](koyeb/docs/IntercomApi.md#get_intercom_profile) | **GET** /v1/intercom/profile | Get intercom profile -*LogsApi* | [**query_logs**](koyeb/docs/LogsApi.md#query_logs) | **GET** /v1/streams/logs/query | Query logs -*LogsApi* | [**tail_logs**](koyeb/docs/LogsApi.md#tail_logs) | **GET** /v1/streams/logs/tail | Tails logs -*MetricsApi* | [**get_metrics**](koyeb/docs/MetricsApi.md#get_metrics) | **GET** /v1/streams/metrics | Get Metrics -*OrganizationConfirmationsApi* | [**confirm_organization_action**](koyeb/docs/OrganizationConfirmationsApi.md#confirm_organization_action) | **POST** /v1/organization_confirmations/{id} | Confirm organization action -*OrganizationInvitationsApi* | [**create_organization_invitation**](koyeb/docs/OrganizationInvitationsApi.md#create_organization_invitation) | **POST** /v1/organization_invitations | Create Organization Invitation -*OrganizationInvitationsApi* | [**delete_organization_invitation**](koyeb/docs/OrganizationInvitationsApi.md#delete_organization_invitation) | **DELETE** /v1/organization_invitations/{id} | Delete Organization Invitation -*OrganizationInvitationsApi* | [**get_organization_invitation**](koyeb/docs/OrganizationInvitationsApi.md#get_organization_invitation) | **GET** /v1/organization_invitations/{id} | Get Organization Invitation -*OrganizationInvitationsApi* | [**list_organization_invitations**](koyeb/docs/OrganizationInvitationsApi.md#list_organization_invitations) | **GET** /v1/organization_invitations | List Organization Invitations -*OrganizationInvitationsApi* | [**resend_organization_invitation**](koyeb/docs/OrganizationInvitationsApi.md#resend_organization_invitation) | **POST** /v1/organization_invitations/{id}/resend | Resend Organization Invitation -*OrganizationMembersApi* | [**list_organization_members**](koyeb/docs/OrganizationMembersApi.md#list_organization_members) | **GET** /v1/organization_members | List organization members -*OrganizationMembersApi* | [**remove_organization_member**](koyeb/docs/OrganizationMembersApi.md#remove_organization_member) | **DELETE** /v1/organization_members/{id} | Remove an organization member -*OrganizationQuotasApi* | [**get_quotas**](koyeb/docs/OrganizationQuotasApi.md#get_quotas) | **GET** /v1/organizations/{organization_id}/quotas | -*PaymentMethodsApi* | [**confirm_payment_authorization**](koyeb/docs/PaymentMethodsApi.md#confirm_payment_authorization) | **POST** /v1/payment_methods/{id}/confirm | Confirm payment authorization -*PaymentMethodsApi* | [**create_payment_authorization**](koyeb/docs/PaymentMethodsApi.md#create_payment_authorization) | **POST** /v1/payment_methods | Create payment authorization -*PaymentMethodsApi* | [**delete_payment_method**](koyeb/docs/PaymentMethodsApi.md#delete_payment_method) | **DELETE** /v1/payment_methods/{id} | Delete payment method -*PaymentMethodsApi* | [**get_payment_method**](koyeb/docs/PaymentMethodsApi.md#get_payment_method) | **GET** /v1/payment_methods/{id} | Get payment method -*PaymentMethodsApi* | [**list_payment_methods**](koyeb/docs/PaymentMethodsApi.md#list_payment_methods) | **GET** /v1/payment_methods | List payment methods -*PersistentVolumesApi* | [**create_persistent_volume**](koyeb/docs/PersistentVolumesApi.md#create_persistent_volume) | **POST** /v1/volumes | Create a PersistentVolume -*PersistentVolumesApi* | [**delete_persistent_volume**](koyeb/docs/PersistentVolumesApi.md#delete_persistent_volume) | **DELETE** /v1/volumes/{id} | Delete a PersistentVolume -*PersistentVolumesApi* | [**get_persistent_volume**](koyeb/docs/PersistentVolumesApi.md#get_persistent_volume) | **GET** /v1/volumes/{id} | Get a PersistentVolume -*PersistentVolumesApi* | [**list_persistent_volume_events**](koyeb/docs/PersistentVolumesApi.md#list_persistent_volume_events) | **GET** /v1/volume_events | List Persistent Volume events -*PersistentVolumesApi* | [**list_persistent_volumes**](koyeb/docs/PersistentVolumesApi.md#list_persistent_volumes) | **GET** /v1/volumes | List all PersistentVolumes -*PersistentVolumesApi* | [**update_persistent_volume**](koyeb/docs/PersistentVolumesApi.md#update_persistent_volume) | **POST** /v1/volumes/{id} | Update a PersistentVolume -*ProfileApi* | [**accept_organization_invitation**](koyeb/docs/ProfileApi.md#accept_organization_invitation) | **POST** /v1/account/organization_invitations/{id}/accept | Accept Organization Invitation -*ProfileApi* | [**clear_idenfy_verification_result**](koyeb/docs/ProfileApi.md#clear_idenfy_verification_result) | **POST** /v1/account/idenfy | ClearIdenfyVerificationResult marks the current result for idenfy as superseded -*ProfileApi* | [**decline_organization_invitation**](koyeb/docs/ProfileApi.md#decline_organization_invitation) | **POST** /v1/account/organization_invitations/{id}/decline | Decline Organization Invitation -*ProfileApi* | [**get_current_organization**](koyeb/docs/ProfileApi.md#get_current_organization) | **GET** /v1/account/organization | Get Current Organization -*ProfileApi* | [**get_current_user**](koyeb/docs/ProfileApi.md#get_current_user) | **GET** /v1/account/profile | Get Current User -*ProfileApi* | [**get_idenfy_token**](koyeb/docs/ProfileApi.md#get_idenfy_token) | **GET** /v1/account/idenfy | Begin a session with iDenfy, emit an authToken -*ProfileApi* | [**get_o_auth_options**](koyeb/docs/ProfileApi.md#get_o_auth_options) | **GET** /v1/account/oauth | Get OAuth Providers -*ProfileApi* | [**get_user_organization_invitation**](koyeb/docs/ProfileApi.md#get_user_organization_invitation) | **GET** /v1/account/organization_invitations/{id} | Get User Organization Invitation -*ProfileApi* | [**get_user_settings**](koyeb/docs/ProfileApi.md#get_user_settings) | **GET** /v1/account/settings | -*ProfileApi* | [**list_user_organization_invitations**](koyeb/docs/ProfileApi.md#list_user_organization_invitations) | **GET** /v1/account/organization_invitations | List User Organization Invitations -*ProfileApi* | [**list_user_organizations**](koyeb/docs/ProfileApi.md#list_user_organizations) | **GET** /v1/account/organizations | List User Organizations -*ProfileApi* | [**login_method**](koyeb/docs/ProfileApi.md#login_method) | **GET** /v1/account/login_method | Get the login method for an email address -*ProfileApi* | [**o_auth_callback**](koyeb/docs/ProfileApi.md#o_auth_callback) | **POST** /v1/account/oauth | Authenticate using OAuth -*ProfileApi* | [**resend_email_validation**](koyeb/docs/ProfileApi.md#resend_email_validation) | **POST** /v1/account/resend_validation | Resend Email Verification -*ProfileApi* | [**reset_password**](koyeb/docs/ProfileApi.md#reset_password) | **POST** /v1/account/reset_password | Reset Password -*ProfileApi* | [**signup**](koyeb/docs/ProfileApi.md#signup) | **POST** /v1/account/signup | Signup -*ProfileApi* | [**update_password**](koyeb/docs/ProfileApi.md#update_password) | **POST** /v1/account/update_password | Update Password -*ProfileApi* | [**update_user**](koyeb/docs/ProfileApi.md#update_user) | **PUT** /v1/account/profile | Update User -*ProfileApi* | [**update_user2**](koyeb/docs/ProfileApi.md#update_user2) | **PATCH** /v1/account/profile | Update User -*ProfileApi* | [**update_user_settings**](koyeb/docs/ProfileApi.md#update_user_settings) | **PATCH** /v1/account/settings | -*ProfileApi* | [**validate**](koyeb/docs/ProfileApi.md#validate) | **POST** /v1/account/validate/{id} | Validate -*ProvisioningApi* | [**create_stage_attempt**](koyeb/docs/ProvisioningApi.md#create_stage_attempt) | **POST** /v1/provisioning/{deployment_id}/status/{stage}/{attempt} | Create an attempt for a stage -*ProvisioningApi* | [**declare_stage_progress**](koyeb/docs/ProvisioningApi.md#declare_stage_progress) | **PATCH** /v1/provisioning/{deployment_id}/status/{stage}/{attempt} | Declare stage progress -*ProvisioningApi* | [**declare_step_progress**](koyeb/docs/ProvisioningApi.md#declare_step_progress) | **PATCH** /v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step} | Declare step progress -*QuotasApi* | [**review_organization_capacity**](koyeb/docs/QuotasApi.md#review_organization_capacity) | **POST** /v1/quotas/capacity | DEPRECATED: Review Organization Capacity -*RegionalDeploymentsApi* | [**get_regional_deployment**](koyeb/docs/RegionalDeploymentsApi.md#get_regional_deployment) | **GET** /v1/regional_deployments/{id} | Get Regional Deployment -*RegionalDeploymentsApi* | [**list_regional_deployment_events**](koyeb/docs/RegionalDeploymentsApi.md#list_regional_deployment_events) | **GET** /v1/regional_deployment_events | List Regional Deployment events -*RegionalDeploymentsApi* | [**list_regional_deployments**](koyeb/docs/RegionalDeploymentsApi.md#list_regional_deployments) | **GET** /v1/regional_deployments | List Regional Deployments -*RepositoriesApi* | [**list_branches**](koyeb/docs/RepositoriesApi.md#list_branches) | **GET** /v1/git/branches | List Branches -*RepositoriesApi* | [**list_repositories**](koyeb/docs/RepositoriesApi.md#list_repositories) | **GET** /v1/git/repositories | List Repositories -*RepositoriesApi* | [**resync_organization**](koyeb/docs/RepositoriesApi.md#resync_organization) | **POST** /v1/git/sync/organization/{organization_id} | Resync Organization -*SearchApi* | [**search**](koyeb/docs/SearchApi.md#search) | **GET** /v1/search | Search -*SecretsApi* | [**create_secret**](koyeb/docs/SecretsApi.md#create_secret) | **POST** /v1/secrets | Create Secret -*SecretsApi* | [**delete_secret**](koyeb/docs/SecretsApi.md#delete_secret) | **DELETE** /v1/secrets/{id} | Delete Secret -*SecretsApi* | [**get_secret**](koyeb/docs/SecretsApi.md#get_secret) | **GET** /v1/secrets/{id} | Get Secret -*SecretsApi* | [**list_secrets**](koyeb/docs/SecretsApi.md#list_secrets) | **GET** /v1/secrets | List Secrets -*SecretsApi* | [**reveal_secret**](koyeb/docs/SecretsApi.md#reveal_secret) | **POST** /v1/secrets/{id}/reveal | Reveal Secret -*SecretsApi* | [**update_secret**](koyeb/docs/SecretsApi.md#update_secret) | **PUT** /v1/secrets/{id} | Update Secret -*SecretsApi* | [**update_secret2**](koyeb/docs/SecretsApi.md#update_secret2) | **PATCH** /v1/secrets/{id} | Update Secret -*ServicesApi* | [**autocomplete**](koyeb/docs/ServicesApi.md#autocomplete) | **POST** /v1/services-autocomplete | Autocomplete definition -*ServicesApi* | [**create_service**](koyeb/docs/ServicesApi.md#create_service) | **POST** /v1/services | Create Service -*ServicesApi* | [**delete_service**](koyeb/docs/ServicesApi.md#delete_service) | **DELETE** /v1/services/{id} | Delete Service -*ServicesApi* | [**get_service**](koyeb/docs/ServicesApi.md#get_service) | **GET** /v1/services/{id} | Get Service -*ServicesApi* | [**list_service_events**](koyeb/docs/ServicesApi.md#list_service_events) | **GET** /v1/service_events | List Service events -*ServicesApi* | [**list_services**](koyeb/docs/ServicesApi.md#list_services) | **GET** /v1/services | List Services -*ServicesApi* | [**pause_service**](koyeb/docs/ServicesApi.md#pause_service) | **POST** /v1/services/{id}/pause | Pause Service -*ServicesApi* | [**re_deploy**](koyeb/docs/ServicesApi.md#re_deploy) | **POST** /v1/services/{id}/redeploy | ReDeploy Service -*ServicesApi* | [**resume_service**](koyeb/docs/ServicesApi.md#resume_service) | **POST** /v1/services/{id}/resume | Resume Service -*ServicesApi* | [**update_service**](koyeb/docs/ServicesApi.md#update_service) | **PUT** /v1/services/{id} | Update Service -*ServicesApi* | [**update_service2**](koyeb/docs/ServicesApi.md#update_service2) | **PATCH** /v1/services/{id} | Update Service -*SessionsApi* | [**login**](koyeb/docs/SessionsApi.md#login) | **POST** /v1/account/login | Login user -*SessionsApi* | [**logout**](koyeb/docs/SessionsApi.md#logout) | **DELETE** /v1/account/logout | Logout user -*SessionsApi* | [**new_session**](koyeb/docs/SessionsApi.md#new_session) | **POST** /v1/account/session | New session -*SessionsApi* | [**refresh_token**](koyeb/docs/SessionsApi.md#refresh_token) | **PUT** /v1/account/refresh | Refresh token -*SnapshotsApi* | [**create_snapshot**](koyeb/docs/SnapshotsApi.md#create_snapshot) | **POST** /v1/snapshots | Create a Snapshot -*SnapshotsApi* | [**delete_snapshot**](koyeb/docs/SnapshotsApi.md#delete_snapshot) | **DELETE** /v1/snapshots/{id} | Delete a Snapshot -*SnapshotsApi* | [**get_snapshot**](koyeb/docs/SnapshotsApi.md#get_snapshot) | **GET** /v1/snapshots/{id} | Get a Snapshot -*SnapshotsApi* | [**list_snapshots**](koyeb/docs/SnapshotsApi.md#list_snapshots) | **GET** /v1/snapshots | List all Snapshots -*SnapshotsApi* | [**update_snapshot**](koyeb/docs/SnapshotsApi.md#update_snapshot) | **POST** /v1/snapshots/{id} | Update a Snapshot -*SubscriptionsApi* | [**get_subscription**](koyeb/docs/SubscriptionsApi.md#get_subscription) | **GET** /v1/subscriptions/{id} | Get Subscription -*SummaryApi* | [**get_organization_summary**](koyeb/docs/SummaryApi.md#get_organization_summary) | **GET** /v1/organizations/{organization_id}/summary | Get organization usage summary -*UsagesApi* | [**get_organization_usage**](koyeb/docs/UsagesApi.md#get_organization_usage) | **GET** /v1/usages | Get organization usage -*UsagesApi* | [**get_organization_usage_details**](koyeb/docs/UsagesApi.md#get_organization_usage_details) | **GET** /v1/usages/details | Get organization usage details -*UsersApi* | [**delete_user**](koyeb/docs/UsersApi.md#delete_user) | **DELETE** /v1/users/{id} | Delete user -*ActivityApi* | [**get_account_activities**](koyeb/docs/ActivityApi.md#get_account_activities) | **GET** /v1/account/activities | -*ActivityApi* | [**list_activities**](koyeb/docs/ActivityApi.md#list_activities) | **GET** /v1/activities | List Activities -*ActivityApi* | [**list_notifications**](koyeb/docs/ActivityApi.md#list_notifications) | **GET** /v1/notifications | List Notifications -*BillingApi* | [**has_unpaid_invoices**](koyeb/docs/BillingApi.md#has_unpaid_invoices) | **GET** /v1/billing/has_unpaid_invoices | Experimental: Has unpaid invoices -*BillingApi* | [**manage**](koyeb/docs/BillingApi.md#manage) | **GET** /v1/billing/manage | -*BillingApi* | [**next_invoice**](koyeb/docs/BillingApi.md#next_invoice) | **GET** /v1/billing/next_invoice | Experimental: Fetch next invoice -*InviteApi* | [**create_invite**](koyeb/docs/InviteApi.md#create_invite) | **POST** /v1/account/invite | -*OrganizationApi* | [**create_access_token**](koyeb/docs/OrganizationApi.md#create_access_token) | **POST** /v1/organizations/{id}/access_token | CreateAccessToken -*OrganizationApi* | [**create_budget**](koyeb/docs/OrganizationApi.md#create_budget) | **POST** /v1/organizations/{organization_id}/budget | Create Budget -*OrganizationApi* | [**create_organization**](koyeb/docs/OrganizationApi.md#create_organization) | **POST** /v1/organizations | Create Organization -*OrganizationApi* | [**deactivate_organization**](koyeb/docs/OrganizationApi.md#deactivate_organization) | **POST** /v1/organizations/{id}/deactivate | Deactivate an Organization -*OrganizationApi* | [**delete_budget**](koyeb/docs/OrganizationApi.md#delete_budget) | **DELETE** /v1/organizations/{organization_id}/budget | Delete Budget -*OrganizationApi* | [**delete_organization**](koyeb/docs/OrganizationApi.md#delete_organization) | **DELETE** /v1/organizations/{id} | Delete an Organization -*OrganizationApi* | [**get_budget**](koyeb/docs/OrganizationApi.md#get_budget) | **GET** /v1/organizations/{organization_id}/budget | Get Budget -*OrganizationApi* | [**get_github_installation**](koyeb/docs/OrganizationApi.md#get_github_installation) | **GET** /v1/github/installation | Fetch Github Installation configuration -*OrganizationApi* | [**get_organization**](koyeb/docs/OrganizationApi.md#get_organization) | **GET** /v1/organizations/{id} | Get Organization -*OrganizationApi* | [**github_installation**](koyeb/docs/OrganizationApi.md#github_installation) | **POST** /v1/github/installation | Start Github Installation -*OrganizationApi* | [**reactivate_organization**](koyeb/docs/OrganizationApi.md#reactivate_organization) | **POST** /v1/organizations/{id}/reactivate | Reactivate an Organization -*OrganizationApi* | [**switch_organization**](koyeb/docs/OrganizationApi.md#switch_organization) | **POST** /v1/organizations/{id}/switch | Switch Organization context -*OrganizationApi* | [**unscope_organization_token**](koyeb/docs/OrganizationApi.md#unscope_organization_token) | **POST** /v1/unscope_organization_token | Unscope Organization Token -*OrganizationApi* | [**update_budget**](koyeb/docs/OrganizationApi.md#update_budget) | **PUT** /v1/organizations/{organization_id}/budget | Update Budget -*OrganizationApi* | [**update_organization**](koyeb/docs/OrganizationApi.md#update_organization) | **PUT** /v1/organizations/{id} | Update Organization -*OrganizationApi* | [**update_organization2**](koyeb/docs/OrganizationApi.md#update_organization2) | **PATCH** /v1/organizations/{id} | Update Organization -*OrganizationApi* | [**update_organization_plan**](koyeb/docs/OrganizationApi.md#update_organization_plan) | **POST** /v1/organizations/{id}/plan | Update Organization plan -*OrganizationApi* | [**upsert_signup_qualification**](koyeb/docs/OrganizationApi.md#upsert_signup_qualification) | **POST** /v1/organizations/{id}/signup_qualification | Upsert Organization's signup qualification -*SsoApi* | [**canny_auth**](koyeb/docs/SsoApi.md#canny_auth) | **POST** /v1/sso/canny | -*SsoApi* | [**discourse_auth**](koyeb/docs/SsoApi.md#discourse_auth) | **POST** /v1/sso/discourse | - - -## Documentation For Models - - - [AcceptOrganizationInvitationReply](koyeb/docs/AcceptOrganizationInvitationReply.md) - - [Action](koyeb/docs/Action.md) - - [Activity](koyeb/docs/Activity.md) - - [ActivityList](koyeb/docs/ActivityList.md) - - [App](koyeb/docs/App.md) - - [AppEvent](koyeb/docs/AppEvent.md) - - [AppListItem](koyeb/docs/AppListItem.md) - - [AppStatus](koyeb/docs/AppStatus.md) - - [AppUsage](koyeb/docs/AppUsage.md) - - [AppsSummary](koyeb/docs/AppsSummary.md) - - [Archive](koyeb/docs/Archive.md) - - [ArchiveDeploymentMetadata](koyeb/docs/ArchiveDeploymentMetadata.md) - - [ArchiveSource](koyeb/docs/ArchiveSource.md) - - [AutoRelease](koyeb/docs/AutoRelease.md) - - [AutoReleaseGroup](koyeb/docs/AutoReleaseGroup.md) - - [AutocompleteReply](koyeb/docs/AutocompleteReply.md) - - [AutocompleteRequest](koyeb/docs/AutocompleteRequest.md) - - [AvailabilityLevel](koyeb/docs/AvailabilityLevel.md) - - [AzureContainerRegistryConfiguration](koyeb/docs/AzureContainerRegistryConfiguration.md) - - [Budget](koyeb/docs/Budget.md) - - [BuildpackBuilder](koyeb/docs/BuildpackBuilder.md) - - [CannyAuthReply](koyeb/docs/CannyAuthReply.md) - - [CatalogGPUDetails](koyeb/docs/CatalogGPUDetails.md) - - [CatalogInstance](koyeb/docs/CatalogInstance.md) - - [CatalogInstanceListItem](koyeb/docs/CatalogInstanceListItem.md) - - [CatalogUsage](koyeb/docs/CatalogUsage.md) - - [ClearIdenfyVerificationResultRequest](koyeb/docs/ClearIdenfyVerificationResultRequest.md) - - [ComposeReply](koyeb/docs/ComposeReply.md) - - [ConfigFile](koyeb/docs/ConfigFile.md) - - [ConfirmPaymentAuthorizationReply](koyeb/docs/ConfirmPaymentAuthorizationReply.md) - - [CreateAccessTokenReply](koyeb/docs/CreateAccessTokenReply.md) - - [CreateAccessTokenRequest](koyeb/docs/CreateAccessTokenRequest.md) - - [CreateAccountRequest](koyeb/docs/CreateAccountRequest.md) - - [CreateApp](koyeb/docs/CreateApp.md) - - [CreateAppReply](koyeb/docs/CreateAppReply.md) - - [CreateArchive](koyeb/docs/CreateArchive.md) - - [CreateArchiveReply](koyeb/docs/CreateArchiveReply.md) - - [CreateBudgetReply](koyeb/docs/CreateBudgetReply.md) - - [CreateCompose](koyeb/docs/CreateCompose.md) - - [CreateCredential](koyeb/docs/CreateCredential.md) - - [CreateCredentialReply](koyeb/docs/CreateCredentialReply.md) - - [CreateDomain](koyeb/docs/CreateDomain.md) - - [CreateDomainReply](koyeb/docs/CreateDomainReply.md) - - [CreateOrganizationInvitationReply](koyeb/docs/CreateOrganizationInvitationReply.md) - - [CreateOrganizationInvitationRequest](koyeb/docs/CreateOrganizationInvitationRequest.md) - - [CreateOrganizationReply](koyeb/docs/CreateOrganizationReply.md) - - [CreateOrganizationRequest](koyeb/docs/CreateOrganizationRequest.md) - - [CreatePaymentAuthorizationReply](koyeb/docs/CreatePaymentAuthorizationReply.md) - - [CreatePersistentVolumeReply](koyeb/docs/CreatePersistentVolumeReply.md) - - [CreatePersistentVolumeRequest](koyeb/docs/CreatePersistentVolumeRequest.md) - - [CreateSecret](koyeb/docs/CreateSecret.md) - - [CreateSecretReply](koyeb/docs/CreateSecretReply.md) - - [CreateService](koyeb/docs/CreateService.md) - - [CreateServiceReply](koyeb/docs/CreateServiceReply.md) - - [CreateSnapshotReply](koyeb/docs/CreateSnapshotReply.md) - - [CreateSnapshotRequest](koyeb/docs/CreateSnapshotRequest.md) - - [CreateStageAttemptRequest](koyeb/docs/CreateStageAttemptRequest.md) - - [Credential](koyeb/docs/Credential.md) - - [CredentialType](koyeb/docs/CredentialType.md) - - [DatabaseDeploymentMetadata](koyeb/docs/DatabaseDeploymentMetadata.md) - - [DatabaseRolePassword](koyeb/docs/DatabaseRolePassword.md) - - [DatabaseSource](koyeb/docs/DatabaseSource.md) - - [DatabaseUsage](koyeb/docs/DatabaseUsage.md) - - [DatabaseUsageDetails](koyeb/docs/DatabaseUsageDetails.md) - - [DatacenterListItem](koyeb/docs/DatacenterListItem.md) - - [DeactivateOrganizationReply](koyeb/docs/DeactivateOrganizationReply.md) - - [DeactivateOrganizationRequest](koyeb/docs/DeactivateOrganizationRequest.md) - - [DeclareStageProgressRequest](koyeb/docs/DeclareStageProgressRequest.md) - - [DeclareStepProgressRequest](koyeb/docs/DeclareStepProgressRequest.md) - - [DeclineOrganizationInvitationReply](koyeb/docs/DeclineOrganizationInvitationReply.md) - - [DeleteOrganizationReply](koyeb/docs/DeleteOrganizationReply.md) - - [DeletePersistentVolumeReply](koyeb/docs/DeletePersistentVolumeReply.md) - - [DeleteSnapshotReply](koyeb/docs/DeleteSnapshotReply.md) - - [DeleteUserReply](koyeb/docs/DeleteUserReply.md) - - [Deployment](koyeb/docs/Deployment.md) - - [DeploymentDatabaseInfo](koyeb/docs/DeploymentDatabaseInfo.md) - - [DeploymentDefinition](koyeb/docs/DeploymentDefinition.md) - - [DeploymentDefinitionType](koyeb/docs/DeploymentDefinitionType.md) - - [DeploymentEnv](koyeb/docs/DeploymentEnv.md) - - [DeploymentEvent](koyeb/docs/DeploymentEvent.md) - - [DeploymentHealthCheck](koyeb/docs/DeploymentHealthCheck.md) - - [DeploymentInstanceType](koyeb/docs/DeploymentInstanceType.md) - - [DeploymentListItem](koyeb/docs/DeploymentListItem.md) - - [DeploymentMetadata](koyeb/docs/DeploymentMetadata.md) - - [DeploymentNeonPostgresDatabaseInfo](koyeb/docs/DeploymentNeonPostgresDatabaseInfo.md) - - [DeploymentNeonPostgresDatabaseInfoRole](koyeb/docs/DeploymentNeonPostgresDatabaseInfoRole.md) - - [DeploymentPort](koyeb/docs/DeploymentPort.md) - - [DeploymentProvisioningInfo](koyeb/docs/DeploymentProvisioningInfo.md) - - [DeploymentProvisioningInfoStage](koyeb/docs/DeploymentProvisioningInfoStage.md) - - [DeploymentProvisioningInfoStageBuildAttempt](koyeb/docs/DeploymentProvisioningInfoStageBuildAttempt.md) - - [DeploymentProvisioningInfoStageBuildAttemptBuildStep](koyeb/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md) - - [DeploymentProvisioningInfoStageStatus](koyeb/docs/DeploymentProvisioningInfoStageStatus.md) - - [DeploymentProxyPort](koyeb/docs/DeploymentProxyPort.md) - - [DeploymentProxyPortMetadata](koyeb/docs/DeploymentProxyPortMetadata.md) - - [DeploymentRole](koyeb/docs/DeploymentRole.md) - - [DeploymentRoute](koyeb/docs/DeploymentRoute.md) - - [DeploymentScaling](koyeb/docs/DeploymentScaling.md) - - [DeploymentScalingTarget](koyeb/docs/DeploymentScalingTarget.md) - - [DeploymentScalingTargetAverageCPU](koyeb/docs/DeploymentScalingTargetAverageCPU.md) - - [DeploymentScalingTargetAverageMem](koyeb/docs/DeploymentScalingTargetAverageMem.md) - - [DeploymentScalingTargetConcurrentRequests](koyeb/docs/DeploymentScalingTargetConcurrentRequests.md) - - [DeploymentScalingTargetRequestsPerSecond](koyeb/docs/DeploymentScalingTargetRequestsPerSecond.md) - - [DeploymentScalingTargetRequestsResponseTime](koyeb/docs/DeploymentScalingTargetRequestsResponseTime.md) - - [DeploymentScalingTargetSleepIdleDelay](koyeb/docs/DeploymentScalingTargetSleepIdleDelay.md) - - [DeploymentStatus](koyeb/docs/DeploymentStatus.md) - - [DeploymentStrategy](koyeb/docs/DeploymentStrategy.md) - - [DeploymentStrategyType](koyeb/docs/DeploymentStrategyType.md) - - [DeploymentVolume](koyeb/docs/DeploymentVolume.md) - - [DesiredDeployment](koyeb/docs/DesiredDeployment.md) - - [DesiredDeploymentGroup](koyeb/docs/DesiredDeploymentGroup.md) - - [DigitalOceanRegistryConfiguration](koyeb/docs/DigitalOceanRegistryConfiguration.md) - - [DiscourseAuthReply](koyeb/docs/DiscourseAuthReply.md) - - [DiscourseAuthRequest](koyeb/docs/DiscourseAuthRequest.md) - - [DockerBuilder](koyeb/docs/DockerBuilder.md) - - [DockerHubRegistryConfiguration](koyeb/docs/DockerHubRegistryConfiguration.md) - - [DockerSource](koyeb/docs/DockerSource.md) - - [Domain](koyeb/docs/Domain.md) - - [DomainLoadBalancerKoyeb](koyeb/docs/DomainLoadBalancerKoyeb.md) - - [DomainLoadBalancerQuotas](koyeb/docs/DomainLoadBalancerQuotas.md) - - [DomainStatus](koyeb/docs/DomainStatus.md) - - [DomainType](koyeb/docs/DomainType.md) - - [DomainsSummary](koyeb/docs/DomainsSummary.md) - - [Env](koyeb/docs/Env.md) - - [Error](koyeb/docs/Error.md) - - [ErrorField](koyeb/docs/ErrorField.md) - - [ErrorWithFields](koyeb/docs/ErrorWithFields.md) - - [ExecCommandIO](koyeb/docs/ExecCommandIO.md) - - [ExecCommandReply](koyeb/docs/ExecCommandReply.md) - - [ExecCommandRequestBody](koyeb/docs/ExecCommandRequestBody.md) - - [ExecCommandRequestIdType](koyeb/docs/ExecCommandRequestIdType.md) - - [ExecCommandRequestTerminalSize](koyeb/docs/ExecCommandRequestTerminalSize.md) - - [GCPContainerRegistryConfiguration](koyeb/docs/GCPContainerRegistryConfiguration.md) - - [GetAppReply](koyeb/docs/GetAppReply.md) - - [GetBudgetReply](koyeb/docs/GetBudgetReply.md) - - [GetCatalogInstanceReply](koyeb/docs/GetCatalogInstanceReply.md) - - [GetCredentialReply](koyeb/docs/GetCredentialReply.md) - - [GetDeploymentReply](koyeb/docs/GetDeploymentReply.md) - - [GetDeploymentScalingReply](koyeb/docs/GetDeploymentScalingReply.md) - - [GetDeploymentScalingReplyItem](koyeb/docs/GetDeploymentScalingReplyItem.md) - - [GetDomainReply](koyeb/docs/GetDomainReply.md) - - [GetGithubInstallationReply](koyeb/docs/GetGithubInstallationReply.md) - - [GetIdenfyTokenReply](koyeb/docs/GetIdenfyTokenReply.md) - - [GetInstanceReply](koyeb/docs/GetInstanceReply.md) - - [GetIntercomProfileReply](koyeb/docs/GetIntercomProfileReply.md) - - [GetMetricsReply](koyeb/docs/GetMetricsReply.md) - - [GetMetricsReplyMetric](koyeb/docs/GetMetricsReplyMetric.md) - - [GetOAuthOptionsReply](koyeb/docs/GetOAuthOptionsReply.md) - - [GetOrganizationInvitationReply](koyeb/docs/GetOrganizationInvitationReply.md) - - [GetOrganizationReply](koyeb/docs/GetOrganizationReply.md) - - [GetOrganizationSummaryReply](koyeb/docs/GetOrganizationSummaryReply.md) - - [GetOrganizationUsageDetailsReply](koyeb/docs/GetOrganizationUsageDetailsReply.md) - - [GetOrganizationUsageReply](koyeb/docs/GetOrganizationUsageReply.md) - - [GetPaymentMethodReply](koyeb/docs/GetPaymentMethodReply.md) - - [GetPersistentVolumeReply](koyeb/docs/GetPersistentVolumeReply.md) - - [GetQuotasReply](koyeb/docs/GetQuotasReply.md) - - [GetRegionReply](koyeb/docs/GetRegionReply.md) - - [GetRegionalDeploymentReply](koyeb/docs/GetRegionalDeploymentReply.md) - - [GetSecretReply](koyeb/docs/GetSecretReply.md) - - [GetServiceReply](koyeb/docs/GetServiceReply.md) - - [GetSnapshotReply](koyeb/docs/GetSnapshotReply.md) - - [GetSubscriptionReply](koyeb/docs/GetSubscriptionReply.md) - - [GetUserOrganizationInvitationReply](koyeb/docs/GetUserOrganizationInvitationReply.md) - - [GetUserSettingsReply](koyeb/docs/GetUserSettingsReply.md) - - [GitDeploymentMetadata](koyeb/docs/GitDeploymentMetadata.md) - - [GitEnvDeploymentMetadata](koyeb/docs/GitEnvDeploymentMetadata.md) - - [GitHubRegistryConfiguration](koyeb/docs/GitHubRegistryConfiguration.md) - - [GitLabRegistryConfiguration](koyeb/docs/GitLabRegistryConfiguration.md) - - [GitSource](koyeb/docs/GitSource.md) - - [GithubInstallationReply](koyeb/docs/GithubInstallationReply.md) - - [GithubInstallationRequest](koyeb/docs/GithubInstallationRequest.md) - - [GoogleProtobufAny](koyeb/docs/GoogleProtobufAny.md) - - [GoogleProtobufNullValue](koyeb/docs/GoogleProtobufNullValue.md) - - [GoogleRpcStatus](koyeb/docs/GoogleRpcStatus.md) - - [HTTPHeader](koyeb/docs/HTTPHeader.md) - - [HTTPHealthCheck](koyeb/docs/HTTPHealthCheck.md) - - [HasUnpaidInvoicesReply](koyeb/docs/HasUnpaidInvoicesReply.md) - - [Instance](koyeb/docs/Instance.md) - - [InstanceAvailability](koyeb/docs/InstanceAvailability.md) - - [InstanceEvent](koyeb/docs/InstanceEvent.md) - - [InstanceListItem](koyeb/docs/InstanceListItem.md) - - [InstanceStatus](koyeb/docs/InstanceStatus.md) - - [InstanceUsage](koyeb/docs/InstanceUsage.md) - - [InstancesSummary](koyeb/docs/InstancesSummary.md) - - [InviteUserRequest](koyeb/docs/InviteUserRequest.md) - - [KgitproxyBranch](koyeb/docs/KgitproxyBranch.md) - - [KgitproxyGitHubRepository](koyeb/docs/KgitproxyGitHubRepository.md) - - [KgitproxyGithubInstallationStatus](koyeb/docs/KgitproxyGithubInstallationStatus.md) - - [KgitproxyIndexingStatus](koyeb/docs/KgitproxyIndexingStatus.md) - - [KgitproxyListBranchesReply](koyeb/docs/KgitproxyListBranchesReply.md) - - [KgitproxyListRepositoriesReply](koyeb/docs/KgitproxyListRepositoriesReply.md) - - [KgitproxyRepository](koyeb/docs/KgitproxyRepository.md) - - [KgitproxyRepositoryProvider](koyeb/docs/KgitproxyRepositoryProvider.md) - - [KsearchApp](koyeb/docs/KsearchApp.md) - - [KsearchGlobalDeployment](koyeb/docs/KsearchGlobalDeployment.md) - - [KsearchInstance](koyeb/docs/KsearchInstance.md) - - [KsearchOrganization](koyeb/docs/KsearchOrganization.md) - - [KsearchRegionalDeployment](koyeb/docs/KsearchRegionalDeployment.md) - - [KsearchSearchReply](koyeb/docs/KsearchSearchReply.md) - - [KsearchService](koyeb/docs/KsearchService.md) - - [KsearchUser](koyeb/docs/KsearchUser.md) - - [ListAppEventsReply](koyeb/docs/ListAppEventsReply.md) - - [ListAppsReply](koyeb/docs/ListAppsReply.md) - - [ListCatalogInstancesReply](koyeb/docs/ListCatalogInstancesReply.md) - - [ListCredentialsReply](koyeb/docs/ListCredentialsReply.md) - - [ListDatacentersReply](koyeb/docs/ListDatacentersReply.md) - - [ListDeploymentEventsReply](koyeb/docs/ListDeploymentEventsReply.md) - - [ListDeploymentsReply](koyeb/docs/ListDeploymentsReply.md) - - [ListDomainsReply](koyeb/docs/ListDomainsReply.md) - - [ListInstanceEventsReply](koyeb/docs/ListInstanceEventsReply.md) - - [ListInstancesReply](koyeb/docs/ListInstancesReply.md) - - [ListOrganizationInvitationsReply](koyeb/docs/ListOrganizationInvitationsReply.md) - - [ListOrganizationMembersReply](koyeb/docs/ListOrganizationMembersReply.md) - - [ListPaymentMethodsReply](koyeb/docs/ListPaymentMethodsReply.md) - - [ListPersistentVolumeEventsReply](koyeb/docs/ListPersistentVolumeEventsReply.md) - - [ListPersistentVolumesReply](koyeb/docs/ListPersistentVolumesReply.md) - - [ListRegionalDeploymentEventsReply](koyeb/docs/ListRegionalDeploymentEventsReply.md) - - [ListRegionalDeploymentsReply](koyeb/docs/ListRegionalDeploymentsReply.md) - - [ListRegionsReply](koyeb/docs/ListRegionsReply.md) - - [ListSecretsReply](koyeb/docs/ListSecretsReply.md) - - [ListServiceEventsReply](koyeb/docs/ListServiceEventsReply.md) - - [ListServicesReply](koyeb/docs/ListServicesReply.md) - - [ListSnapshotsReply](koyeb/docs/ListSnapshotsReply.md) - - [ListUsageReply](koyeb/docs/ListUsageReply.md) - - [ListUserOrganizationInvitationsReply](koyeb/docs/ListUserOrganizationInvitationsReply.md) - - [ListUserOrganizationsReply](koyeb/docs/ListUserOrganizationsReply.md) - - [LogEntry](koyeb/docs/LogEntry.md) - - [LoginMethodReply](koyeb/docs/LoginMethodReply.md) - - [LoginMethodReplyMethod](koyeb/docs/LoginMethodReplyMethod.md) - - [LoginReply](koyeb/docs/LoginReply.md) - - [LoginRequest](koyeb/docs/LoginRequest.md) - - [ManageReply](koyeb/docs/ManageReply.md) - - [MembersSummary](koyeb/docs/MembersSummary.md) - - [MetricName](koyeb/docs/MetricName.md) - - [NeonPostgresDatabase](koyeb/docs/NeonPostgresDatabase.md) - - [NeonPostgresDatabaseDeploymentMetadata](koyeb/docs/NeonPostgresDatabaseDeploymentMetadata.md) - - [NeonPostgresDatabaseNeonDatabase](koyeb/docs/NeonPostgresDatabaseNeonDatabase.md) - - [NeonPostgresDatabaseNeonRole](koyeb/docs/NeonPostgresDatabaseNeonRole.md) - - [NeonPostgresSummary](koyeb/docs/NeonPostgresSummary.md) - - [NextInvoiceReply](koyeb/docs/NextInvoiceReply.md) - - [NextInvoiceReplyDiscount](koyeb/docs/NextInvoiceReplyDiscount.md) - - [NextInvoiceReplyDiscountType](koyeb/docs/NextInvoiceReplyDiscountType.md) - - [NextInvoiceReplyLine](koyeb/docs/NextInvoiceReplyLine.md) - - [NextInvoiceReplyLinePeriod](koyeb/docs/NextInvoiceReplyLinePeriod.md) - - [NextInvoiceReplyLinePrice](koyeb/docs/NextInvoiceReplyLinePrice.md) - - [Notification](koyeb/docs/Notification.md) - - [NotificationList](koyeb/docs/NotificationList.md) - - [OAuthCallbackReply](koyeb/docs/OAuthCallbackReply.md) - - [OAuthCallbackRequest](koyeb/docs/OAuthCallbackRequest.md) - - [OAuthProvider](koyeb/docs/OAuthProvider.md) - - [Object](koyeb/docs/Object.md) - - [Organization](koyeb/docs/Organization.md) - - [OrganizationDeactivationReason](koyeb/docs/OrganizationDeactivationReason.md) - - [OrganizationDetailedStatus](koyeb/docs/OrganizationDetailedStatus.md) - - [OrganizationInvitation](koyeb/docs/OrganizationInvitation.md) - - [OrganizationInvitationStatus](koyeb/docs/OrganizationInvitationStatus.md) - - [OrganizationMember](koyeb/docs/OrganizationMember.md) - - [OrganizationMemberStatus](koyeb/docs/OrganizationMemberStatus.md) - - [OrganizationStatus](koyeb/docs/OrganizationStatus.md) - - [OrganizationSummary](koyeb/docs/OrganizationSummary.md) - - [PaymentMethod](koyeb/docs/PaymentMethod.md) - - [PaymentMethodStatus](koyeb/docs/PaymentMethodStatus.md) - - [PeriodUsage](koyeb/docs/PeriodUsage.md) - - [PersistentVolume](koyeb/docs/PersistentVolume.md) - - [PersistentVolumeBackingStore](koyeb/docs/PersistentVolumeBackingStore.md) - - [PersistentVolumeEvent](koyeb/docs/PersistentVolumeEvent.md) - - [PersistentVolumeQuotas](koyeb/docs/PersistentVolumeQuotas.md) - - [PersistentVolumeStatus](koyeb/docs/PersistentVolumeStatus.md) - - [Plan](koyeb/docs/Plan.md) - - [Port](koyeb/docs/Port.md) - - [PrivateRegistryConfiguration](koyeb/docs/PrivateRegistryConfiguration.md) - - [ProxyPortProtocol](koyeb/docs/ProxyPortProtocol.md) - - [PublicOrganization](koyeb/docs/PublicOrganization.md) - - [PublicUser](koyeb/docs/PublicUser.md) - - [QueryLogsReply](koyeb/docs/QueryLogsReply.md) - - [QueryLogsReplyPagination](koyeb/docs/QueryLogsReplyPagination.md) - - [Quotas](koyeb/docs/Quotas.md) - - [ReactivateOrganizationReply](koyeb/docs/ReactivateOrganizationReply.md) - - [RedeemCouponRequest](koyeb/docs/RedeemCouponRequest.md) - - [RedeployReply](koyeb/docs/RedeployReply.md) - - [RedeployRequestInfo](koyeb/docs/RedeployRequestInfo.md) - - [Region](koyeb/docs/Region.md) - - [RegionAvailability](koyeb/docs/RegionAvailability.md) - - [RegionListItem](koyeb/docs/RegionListItem.md) - - [RegionUsage](koyeb/docs/RegionUsage.md) - - [RegionalDeployment](koyeb/docs/RegionalDeployment.md) - - [RegionalDeploymentDefinition](koyeb/docs/RegionalDeploymentDefinition.md) - - [RegionalDeploymentDefinitionType](koyeb/docs/RegionalDeploymentDefinitionType.md) - - [RegionalDeploymentEvent](koyeb/docs/RegionalDeploymentEvent.md) - - [RegionalDeploymentListItem](koyeb/docs/RegionalDeploymentListItem.md) - - [RegionalDeploymentRole](koyeb/docs/RegionalDeploymentRole.md) - - [RegionalDeploymentStatus](koyeb/docs/RegionalDeploymentStatus.md) - - [RegionalDeploymentVolume](koyeb/docs/RegionalDeploymentVolume.md) - - [RemoveOrganizationMemberReply](koyeb/docs/RemoveOrganizationMemberReply.md) - - [ResendOrganizationInvitationReply](koyeb/docs/ResendOrganizationInvitationReply.md) - - [ResetPasswordRequest](koyeb/docs/ResetPasswordRequest.md) - - [RevealSecretReply](koyeb/docs/RevealSecretReply.md) - - [ReviewOrganizationCapacityReply](koyeb/docs/ReviewOrganizationCapacityReply.md) - - [ReviewOrganizationCapacityRequest](koyeb/docs/ReviewOrganizationCapacityRequest.md) - - [Route](koyeb/docs/Route.md) - - [Sample](koyeb/docs/Sample.md) - - [ScaleToZeroQuotas](koyeb/docs/ScaleToZeroQuotas.md) - - [Scaling](koyeb/docs/Scaling.md) - - [Secret](koyeb/docs/Secret.md) - - [SecretType](koyeb/docs/SecretType.md) - - [SecretsSummary](koyeb/docs/SecretsSummary.md) - - [Service](koyeb/docs/Service.md) - - [ServiceEvent](koyeb/docs/ServiceEvent.md) - - [ServiceListItem](koyeb/docs/ServiceListItem.md) - - [ServiceState](koyeb/docs/ServiceState.md) - - [ServiceStatus](koyeb/docs/ServiceStatus.md) - - [ServiceSummary](koyeb/docs/ServiceSummary.md) - - [ServiceType](koyeb/docs/ServiceType.md) - - [ServiceUsage](koyeb/docs/ServiceUsage.md) - - [Snapshot](koyeb/docs/Snapshot.md) - - [SnapshotStatus](koyeb/docs/SnapshotStatus.md) - - [SnapshotType](koyeb/docs/SnapshotType.md) - - [StreamResultOfExecCommandReply](koyeb/docs/StreamResultOfExecCommandReply.md) - - [StreamResultOfLogEntry](koyeb/docs/StreamResultOfLogEntry.md) - - [Subscription](koyeb/docs/Subscription.md) - - [SubscriptionPaymentFailure](koyeb/docs/SubscriptionPaymentFailure.md) - - [SubscriptionPaymentFailureStripeSDK](koyeb/docs/SubscriptionPaymentFailureStripeSDK.md) - - [SubscriptionStatus](koyeb/docs/SubscriptionStatus.md) - - [TCPHealthCheck](koyeb/docs/TCPHealthCheck.md) - - [Token](koyeb/docs/Token.md) - - [TriggerDeploymentMetadata](koyeb/docs/TriggerDeploymentMetadata.md) - - [TriggerDeploymentMetadataActorType](koyeb/docs/TriggerDeploymentMetadataActorType.md) - - [TriggerDeploymentMetadataTriggerType](koyeb/docs/TriggerDeploymentMetadataTriggerType.md) - - [TriggerGitDeploymentMetadata](koyeb/docs/TriggerGitDeploymentMetadata.md) - - [TriggerGitDeploymentMetadataProvider](koyeb/docs/TriggerGitDeploymentMetadataProvider.md) - - [UpdateApp](koyeb/docs/UpdateApp.md) - - [UpdateAppReply](koyeb/docs/UpdateAppReply.md) - - [UpdateBudgetReply](koyeb/docs/UpdateBudgetReply.md) - - [UpdateBudgetRequest](koyeb/docs/UpdateBudgetRequest.md) - - [UpdateCredentialReply](koyeb/docs/UpdateCredentialReply.md) - - [UpdateDomain](koyeb/docs/UpdateDomain.md) - - [UpdateDomainReply](koyeb/docs/UpdateDomainReply.md) - - [UpdateOrganizationPlanReply](koyeb/docs/UpdateOrganizationPlanReply.md) - - [UpdateOrganizationPlanRequest](koyeb/docs/UpdateOrganizationPlanRequest.md) - - [UpdateOrganizationReply](koyeb/docs/UpdateOrganizationReply.md) - - [UpdatePasswordRequest](koyeb/docs/UpdatePasswordRequest.md) - - [UpdatePersistentVolumeReply](koyeb/docs/UpdatePersistentVolumeReply.md) - - [UpdatePersistentVolumeRequest](koyeb/docs/UpdatePersistentVolumeRequest.md) - - [UpdateSecretReply](koyeb/docs/UpdateSecretReply.md) - - [UpdateService](koyeb/docs/UpdateService.md) - - [UpdateServiceReply](koyeb/docs/UpdateServiceReply.md) - - [UpdateSnapshotReply](koyeb/docs/UpdateSnapshotReply.md) - - [UpdateSnapshotRequest](koyeb/docs/UpdateSnapshotRequest.md) - - [UpdateUserRequestUserUpdateBody](koyeb/docs/UpdateUserRequestUserUpdateBody.md) - - [UpdateUserSettingsReply](koyeb/docs/UpdateUserSettingsReply.md) - - [UpdateUserSettingsRequest](koyeb/docs/UpdateUserSettingsRequest.md) - - [UpsertSignupQualificationReply](koyeb/docs/UpsertSignupQualificationReply.md) - - [UpsertSignupQualificationRequest](koyeb/docs/UpsertSignupQualificationRequest.md) - - [Usage](koyeb/docs/Usage.md) - - [UsageDetails](koyeb/docs/UsageDetails.md) - - [User](koyeb/docs/User.md) - - [UserFlags](koyeb/docs/UserFlags.md) - - [UserReply](koyeb/docs/UserReply.md) - - [UserRoleRole](koyeb/docs/UserRoleRole.md) - - [UserSettings](koyeb/docs/UserSettings.md) - - [VerifyDockerImageReply](koyeb/docs/VerifyDockerImageReply.md) - - [VerifyDockerImageReplyErrCode](koyeb/docs/VerifyDockerImageReplyErrCode.md) - - - -## Documentation For Authorization - - -Authentication schemes defined for the API: - -### Bearer - -- **Type**: API key -- **API key parameter name**: Authorization -- **Location**: HTTP header - - -## Author - - - - From 219d06c7268b84fb5e0a8bbedd0aa5fa9416816b Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 15:53:24 +0100 Subject: [PATCH 3/9] Add fetch-spec helper --- Makefile | 5 +- spec/openapi.json | 18971 +------------------------------------------- 2 files changed, 11 insertions(+), 18965 deletions(-) diff --git a/Makefile b/Makefile index 8feffb13..21d2db48 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,10 @@ format: .PHONY: spec/openapi.json spec/openapi.json: mkdir -p api/v1/koyeb - #curl -s $(KOYEB_API)/public.swagger.json > spec/openapi.json + +.PHONY: fetch-spec +fetch-spec: + curl -s $(KOYEB_API)/public.swagger.json > spec/openapi.json test: python -m unitest diff --git a/spec/openapi.json b/spec/openapi.json index 03abc6e0..9b09d633 100644 --- a/spec/openapi.json +++ b/spec/openapi.json @@ -1,18964 +1,7 @@ -{ - "swagger": "2.0", - "info": { - "title": "Koyeb Rest API", - "description": "The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests.\n", - "version": "1.0.0" - }, - "host": "app.koyeb.com", - "schemes": [ - "https" - ], - "security": [ - { - "Bearer": [] - } - ], - "tags": [ - { - "name": "intro", - "x-displayName": "Introduction", - "x-traitTag": true, - "description": "Welcome to the Koyeb API documentation.\n\nThe Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests.\nThe API has predictable resource-oriented URLs, allowing you to request, retrieve and execute actions on resources efficiently.\n\nThe API returns JSON-encoded responses and uses standard HTTP response codes, and verbs.\n\nAll of the functionality available in the Koyeb Control Panel is also available via the API, allowing you to automate repetitive and complex actions as required.\n\nAll production API requests are made to:\n\n- https://app.koyeb.com/\n\nAll data is sent and received as JSON.\n\n## Constructing Requests\n\nRequests are made of three components:\n\n- Base URL: `https://app.koyeb.com`\n- API Version: `v1`\n- Resource path: `apps`\n\nTo construct a proper request, you need to format the URL as follows:\n\n`https://app.koyeb.com/{version}/{resource}`\n\nExample: `https://app.koyeb.com/v1/apps`\n\nThe following code is an example request to retrieve the list of Apps.\n\n```\n%curl -H 'Authorization: Bearer 1111-1111-1111-1111-1111' https://app.koyeb.com/v1/apps\n{\n \"apps\": [\n {\n \"id\": \"e267e09d-a2ef-4672-95c7-bf88d787a274\",\n \"name\": \"demo\",\n \"organization_id\": \"c402bcad-d06d-4fd6-8af2-08b790c0e249\",\n \"updated_at\": \"2021-04-26T08:28:59.221274Z\",\n \"created_at\": \"2021-04-26T08:28:59.221274Z\",\n \"domains\": [\n {\n \"name\": \"demo-koyeb.koyeb.app\",\n \"deployment_group\": \"prod\"\n }\n ]\n },\n {\n \"id\": \"e38caea5-5acb-4fec-aa65-81749546b470\",\n \"name\": \"www\",\n \"organization_id\": \"c402bcad-d06d-4fd6-8af2-08b790c0e249\",\n \"updated_at\": \"2021-05-04T08:56:40.557792Z\",\n \"created_at\": \"2021-05-04T08:56:40.557792Z\",\n \"domains\": [\n {\n \"name\": \"www-koyeb.koyeb.app\",\n \"deployment_group\": \"prod\"\n }\n ]\n }\n ],\n \"limit\": 20,\n \"offset\": 0,\n \"count\": 2\n}\n```\n\n# Authentication\n\nThe Koyeb API uses API keys to authenticate requests. You can view and manage your API keys in the Koyeb Control Panel.\n\nYour API keys carry many privileges. Take care to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, Slack, client-side code, and so forth.\n\nTo make an authenticated request, include a bearer-type Authorization header containing your API key.\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.\n\n# Errors\n\nWe use conventional HTTP response codes to indicate the success or failure of an API request.\n\nIn general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g., a required parameter is missing, resource not found), and codes in the 5xx range indicate an error with our servers.\n\n## HTTP Status Code Summary\n\n- `200 OK` - Everything worked as expected.\n- `400 Bad Request` - Often missing a required parameter.\n- `401 Unauthorized` - No valid API key provided.\n- `402 Request Failed` - Parameters were valid, but the request failed.\n- `403 Forbidden` - Insufficient privileges to access the requested resource.\n- `404 Not Found` - The requested item doesn't exist.\n- `50x` Server errors - Something went wrong on the API domain's end.\n\nInput and output data must be valid JSON with the appropriate Content-Type header set.\n\n## Attributes\n\n- code:\n\n - `invalid_argument`: Occur when your request has invalid parameters.\n - `unknown_resource`: Occur when the resource doesn't exist.\n - `authentication_error`: Arise when there is a problem with authentication.\n - `rate_limit_error`: Too many requests hit the API too quickly.\n - `authorization_required`: You don't have sufficient right to access the resource.\n - `api_error`: API errors use in case of a problem with api domain's servers (extremely uncommon).\n\n- message:\n\n - A human-readable error giving more details about the error\n\n- status:\n\n - The HTTP code returned by the server.\n\n- fields (Optional):\n\n - An array of parameters with a human-readable message giving more details about the error.\n\n## Errors responses example\n\nResponse 400 (application/json)\n\n```\n{\n \"status\": 400,\n \"code\": \"invalid_argument\",\n \"message\": \"Invalid argument\",\n \"fields\": [\n {\n \"field\": \"definition.docker.image\",\n \"description\": \"cannot be blank\"\n }\n ]\n}\n```\n\nResponse 401 (application/json)\n\n```\n{\n \"status\": 401,\n \"code\": \"authentication_error\",\n \"message\": \"Request unauthenticated with bearer\"\n}\n```\n\nResponse 403 (application/json)\n\n```\n{\n \"status\": 403,\n \"code\": \"authentication_required\",\n \"message\": \"You don't have the requested permission to access to resource.\"\n}\n```\n\n\nResponse 404 (application/json)\n\n```\n{\n \"status\": 404,\n \"code\": \"unknown_resource\",\n \"message\": \"App not found\"\n}\n```\n\n# Pagination\n\nAll top-level API resources receive a paginated response. For instance, list Apps, list Services, and others share a standard structure, taking two parameters: limit and offset.\n\n**Paginated request**\n\nRequests against paginated endpoints accept two query string arguments:\n\n* *limit*, a positive integer lower or equal to 100 to select the number of items to display.\n* *offset*, an integer to indicate the position to start at.\n\nPaginated endpoints usually also accept filters to search and sort results.\nThese filters are documented along with each endpoint documentation.\n" - } - ], - "x-tagGroups": [ - { - "name": "Introduction", - "tags": [ - "intro" - ] - }, - { - "name": "API", - "tags": [ - "Profile", - "Sessions", - "Users", - "organization", - "OrganizationMembers", - "OrganizationInvitations", - "OrganizationConfirmations", - "Subscriptions", - "Coupons", - "Credentials", - "Secrets", - "activity", - "Apps", - "Services", - "Deployments", - "Archives", - "RegionalDeployments", - "Instances", - "Domains", - "PersistentVolumes", - "Snapshots", - "Compose", - "Repositories", - "Logs", - "Metrics", - "Catalog", - "CatalogRegions", - "CatalogInstances", - "Usages", - "Summary", - "DockerHelper" - ] - } - ], - "paths": { - "/v1/catalog/instances": { - "get": { - "summary": "List Instances", - "operationId": "ListCatalogInstances", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListCatalogInstancesReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id", - "description": "(Optional) A filter for instances", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "CatalogInstances" - ] - } - }, - "/v1/catalog/instances/{id}": { - "get": { - "summary": "Get Instance", - "operationId": "GetCatalogInstance", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetCatalogInstanceReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The name of the instance", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "CatalogInstances" - ] - } - }, - "/v1/catalog/usage": { - "get": { - "operationId": "ListUsage", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListUsageReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "region", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "CatalogInstanceUsage" - ] - } - }, - "/v1/catalog/datacenters": { - "get": { - "summary": "List datacenters", - "operationId": "ListDatacenters", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListDatacentersReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "CatalogDatacenters" - ] - } - }, - "/v1/catalog/regions": { - "get": { - "summary": "List Region", - "operationId": "ListRegions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListRegionsReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id", - "description": "(Optional) A filter for regions", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "CatalogRegions" - ] - } - }, - "/v1/catalog/regions/{id}": { - "get": { - "summary": "Get Region", - "operationId": "GetRegion", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetRegionReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The name of the region", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "CatalogRegions" - ] - } - }, - "/v1/activities": { - "get": { - "summary": "List Activities", - "operationId": "ListActivities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ActivityList" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on object type", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "activity" - ] - } - }, - "/v1/notifications": { - "get": { - "summary": "List Notifications", - "operationId": "ListNotifications", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/NotificationList" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "mark_read", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "mark_seen", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "unread", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "unseen", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "activity" - ] - } - }, - "/v1/git/branches": { - "get": { - "summary": "List Branches", - "operationId": "ListBranches", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/kgitproxy.ListBranchesReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "repository_id", - "description": "(Optional) Filter on one repository.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "name", - "description": "(Optional) Filter on branch name using a fuzzy search.\nRepository filter is required to enable this filter.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Repositories" - ] - } - }, - "/v1/git/repositories": { - "get": { - "summary": "List Repositories", - "operationId": "ListRepositories", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/kgitproxy.ListRepositoriesReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "name", - "description": "(Optional) Filter on repository name using a fuzzy search.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "name_search_op", - "description": "(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Repositories" - ] - } - }, - "/v1/git/sync/organization/{organization_id}": { - "post": { - "summary": "Resync Organization", - "operationId": "ResyncOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/kgitproxy.ResyncOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Repositories" - ] - } - }, - "/v1/streams/instances/exec": { - "get": { - "summary": "Exec Command", - "description": "This endpoint opens a websocket. Once open, all frames going through the websocket should be formatted in JSON. Input frames should match the format specified below. Output frames will match the response schema.", - "operationId": "ExecCommand", - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/ExecCommandReply" - }, - "error": { - "$ref": "#/definitions/google.rpc.Status" - } - }, - "title": "Stream result of ExecCommandReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "ID of the resource to exec on.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "body.command", - "description": "Command to exec. Mandatory in the first frame sent", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "body.tty_size.height", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "body.tty_size.width", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "body.stdin.data", - "description": "Data is base64 encoded", - "in": "query", - "required": false, - "type": "string", - "format": "byte" - }, - { - "name": "body.stdin.close", - "description": "Indicate last data frame", - "in": "query", - "required": false, - "type": "boolean" - }, - { - "name": "body.disableTty", - "description": "Disable TTY. It's enough to specify it in the first frame", - "in": "query", - "required": false, - "type": "boolean" - }, - { - "name": "id_type", - "description": "When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "INVALID", - "INSTANCE_ID", - "SERVICE_ID" - ], - "default": "INVALID" - } - ], - "tags": [ - "Instances" - ] - } - }, - "/v1/streams/logs/query": { - "get": { - "summary": "Query logs", - "operationId": "QueryLogs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/QueryLogsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "type", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "app_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "service_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "deployment_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "instance_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "stream", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "regional_deployment_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "start", - "description": "(Optional) Must always be before `end`. Defaults to 15 minutes ago.", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "end", - "description": "(Optional) Must always be after `start`. Defaults to now.", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "order", - "description": "(Optional) `asc` or `desc`. Defaults to `desc`.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) Defaults to 100. Maximum of 1000.", - "in": "query", - "required": false, - "type": "string", - "format": "int64" - }, - { - "name": "regex", - "description": "(Optional) Apply a regex to filter logs. Can't be used with `text`.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "text", - "description": "(Optional) Looks for this string in logs. Can't be used with `regex`.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Logs" - ] - } - }, - "/v1/streams/logs/tail": { - "get": { - "summary": "Tails logs", - "operationId": "TailLogs", - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/LogEntry" - }, - "error": { - "$ref": "#/definitions/google.rpc.Status" - } - }, - "title": "Stream result of LogEntry" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "type", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "app_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "service_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "deployment_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "regional_deployment_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "instance_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "stream", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "start", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "string", - "format": "int64" - }, - { - "name": "regex", - "description": "(Optional) Apply a regex to filter logs. Can't be used with `text`.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "text", - "description": "(Optional) Looks for this string in logs. Can't be used with `regex`.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Logs" - ] - } - }, - "/v1/streams/metrics": { - "get": { - "summary": "Get Metrics", - "operationId": "GetMetrics", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetMetricsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "service_id", - "description": "ID of the service to query instances metrics for. Ignored if instance_id is set.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "instance_id", - "description": "ID of the instance to query metrics for.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "name", - "description": "Metric to query.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNKNOWN", - "CPU_TOTAL_PERCENT", - "MEM_RSS", - "HTTP_THROUGHPUT", - "HTTP_RESPONSE_TIME_50P", - "HTTP_RESPONSE_TIME_90P", - "HTTP_RESPONSE_TIME_99P", - "HTTP_RESPONSE_TIME_MAX", - "PUBLIC_DATA_TRANSFER_IN", - "PUBLIC_DATA_TRANSFER_OUT" - ], - "default": "UNKNOWN" - }, - { - "name": "start", - "description": "(Optional) Defaults to an hour prior to end.", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "end", - "description": "(Optional) Defaults to now.", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "step", - "description": "(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Metrics" - ] - } - }, - "/v1/domains": { - "get": { - "summary": "List Domains", - "operationId": "ListDomains", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListDomainsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) A filter for types\n\n - AUTOASSIGNED: Domain like -.koyeb.app", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "AUTOASSIGNED", - "CUSTOM" - ] - }, - "collectionFormat": "multi" - }, - { - "name": "statuses", - "description": "(Optional) A filter for statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "PENDING", - "ACTIVE", - "ERROR", - "DELETING", - "DELETED" - ] - }, - "collectionFormat": "multi" - }, - { - "name": "app_ids", - "description": "(Optional) A filter for apps", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "name", - "description": "(Optional) A filter for name", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Domains" - ] - }, - "post": { - "summary": "Create Domain", - "operationId": "CreateDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateDomainReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "domain", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateDomain" - } - } - ], - "tags": [ - "Domains" - ] - } - }, - "/v1/domains/{id}": { - "get": { - "summary": "Get Domain", - "operationId": "GetDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetDomainReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Domains" - ] - }, - "delete": { - "summary": "Delete Domain", - "operationId": "DeleteDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteDomainReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Domains" - ] - }, - "patch": { - "summary": "Update Domain", - "operationId": "UpdateDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateDomainReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateDomain" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "dry_run", - "description": "If set, run validation and check that the domain is available.", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "Domains" - ] - } - }, - "/v1/domains/{id}/refresh": { - "post": { - "summary": "Refresh Domain Status", - "operationId": "RefreshDomainStatus", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/RefreshDomainStatusReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Domains" - ] - } - }, - "/v1/docker-helper/verify": { - "get": { - "summary": "Verify Docker Image", - "description": "Verify if a docker image is reachable", - "operationId": "VerifyDockerImage", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/VerifyDockerImageReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "image", - "description": "The full image uri to be verified", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "secret_id", - "description": "(Optional) the id of the secret to use to authenticate to the registry", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "DockerHelper" - ] - } - }, - "/v1/usages": { - "get": { - "summary": "Get organization usage", - "operationId": "GetOrganizationUsage", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOrganizationUsageReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "starting_time", - "description": "The starting time of the period to get data from", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "ending_time", - "description": "The ending time of the period to get data from", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - } - ], - "tags": [ - "Usages" - ] - } - }, - "/v1/usages/details": { - "get": { - "summary": "Get organization usage details", - "operationId": "GetOrganizationUsageDetails", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOrganizationUsageDetailsReply" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "starting_time", - "description": "The starting time of the period to get data from", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "ending_time", - "description": "The ending time of the period to get data from", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "Accept", - "description": "If defined with the value 'text/csv', a csv file is returned", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "Usages" - ] - } - }, - "/v1/regional_deployment_events": { - "get": { - "summary": "List Regional Deployment events", - "operationId": "ListRegionalDeploymentEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListRegionalDeploymentEventsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "regional_deployment_id", - "description": "(Optional) Filter on regional deployment id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on regional deployment event types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "RegionalDeployments" - ] - } - }, - "/v1/regional_deployments": { - "get": { - "summary": "List Regional Deployments", - "description": "Experimental: use at your own risk", - "operationId": "ListRegionalDeployments", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListRegionalDeploymentsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "deployment_id", - "description": "(Optional) Filter on deployment id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "RegionalDeployments" - ] - } - }, - "/v1/regional_deployments/{id}": { - "get": { - "summary": "Get Regional Deployment", - "description": "Experimental: use at your own risk", - "operationId": "GetRegionalDeployment", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetRegionalDeploymentReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the regional deployment", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "RegionalDeployments" - ] - } - }, - "/v1/volume_events": { - "get": { - "summary": "List Persistent Volume events", - "operationId": "ListPersistentVolumeEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListPersistentVolumeEventsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "persistent_volume_id", - "description": "(Optional) Filter on persistent volume id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on persistent volume event types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "PersistentVolumes" - ] - } - }, - "/v1/volumes": { - "get": { - "summary": "List all PersistentVolumes", - "operationId": "ListPersistentVolumes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListPersistentVolumesReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "service_id", - "description": "(Optional) A filter for the service id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "region", - "description": "(Optional) A filter for the region", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "name", - "description": "(Optional) A filter for the name", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "PersistentVolumes" - ] - }, - "post": { - "summary": "Create a PersistentVolume", - "operationId": "CreatePersistentVolume", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreatePersistentVolumeReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreatePersistentVolumeRequest" - } - } - ], - "tags": [ - "PersistentVolumes" - ] - } - }, - "/v1/volumes/{id}": { - "get": { - "summary": "Get a PersistentVolume", - "operationId": "GetPersistentVolume", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetPersistentVolumeReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "PersistentVolumes" - ] - }, - "delete": { - "summary": "Delete a PersistentVolume", - "operationId": "DeletePersistentVolume", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeletePersistentVolumeReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "PersistentVolumes" - ] - }, - "post": { - "summary": "Update a PersistentVolume", - "operationId": "UpdatePersistentVolume", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdatePersistentVolumeReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "(Optional) change the name of the volume" - }, - "max_size": { - "type": "integer", - "format": "int64", - "title": "(Optional) increase the volume size (in Gigabyte / GB)" - } - } - } - } - ], - "tags": [ - "PersistentVolumes" - ] - } - }, - "/v1/secrets": { - "get": { - "summary": "List Secrets", - "operationId": "ListSecrets", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListSecretsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "Filter by secret types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "SIMPLE", - "REGISTRY", - "MANAGED" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "Secrets" - ] - }, - "post": { - "summary": "Create Secret", - "operationId": "CreateSecret", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateSecretReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "secret", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateSecret" - } - } - ], - "tags": [ - "Secrets" - ] - } - }, - "/v1/secrets/{id}": { - "get": { - "summary": "Get Secret", - "operationId": "GetSecret", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetSecretReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Secrets" - ] - }, - "delete": { - "summary": "Delete Secret", - "operationId": "DeleteSecret", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteSecretReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Secrets" - ] - }, - "put": { - "summary": "Update Secret", - "operationId": "UpdateSecret", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateSecretReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "secret", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Secret" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Secrets" - ] - }, - "patch": { - "summary": "Update Secret", - "operationId": "UpdateSecret2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateSecretReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "secret", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Secret" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Secrets" - ] - } - }, - "/v1/secrets/{id}/reveal": { - "post": { - "summary": "Reveal Secret", - "operationId": "RevealSecret", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/RevealSecretReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - } - ], - "tags": [ - "Secrets" - ] - } - }, - "/v1/instance_events": { - "get": { - "summary": "List Instance events", - "operationId": "ListInstanceEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListInstanceEventsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "instance_ids", - "description": "(Optional) Filter on list of instance id", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "types", - "description": "(Optional) Filter on instance event types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Instances" - ] - } - }, - "/v1/instances": { - "get": { - "summary": "List Instances", - "operationId": "ListInstances", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListInstancesReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "app_id", - "description": "(Optional) Filter on application id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "service_id", - "description": "(Optional) Filter on service id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "deployment_id", - "description": "(Optional) Filter on deployment id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "regional_deployment_id", - "description": "(Optional) Filter on regional deployment id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "allocation_id", - "description": "(Optional) Filter on allocation id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "replica_index", - "description": "(Optional) Filter on replica index", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Filter on instance statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "ALLOCATING", - "STARTING", - "HEALTHY", - "UNHEALTHY", - "STOPPING", - "STOPPED", - "ERROR", - "SLEEPING" - ] - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "starting_time", - "description": "(Optional) The starting time of the period of running instance", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "ending_time", - "description": "(Optional) The ending time of the period of running instance", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - } - ], - "tags": [ - "Instances" - ] - } - }, - "/v1/instances/{id}": { - "get": { - "summary": "Get Instance", - "operationId": "GetInstance", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetInstanceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the instance", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Instances" - ] - } - }, - "/v1/deployment/{id}/scaling": { - "get": { - "summary": "Get Deployment Scaling", - "operationId": "GetDeploymentScaling", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetDeploymentScalingReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "region", - "description": "(Optional) Filter on region", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "replica_index", - "description": "(Optional) Filter on replica_index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - } - ], - "tags": [ - "Deployments" - ] - } - }, - "/v1/deployment_events": { - "get": { - "summary": "List Deployment events", - "operationId": "ListDeploymentEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListDeploymentEventsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "deployment_id", - "description": "(Optional) Filter on deployment id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on deployment event types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Deployments" - ] - } - }, - "/v1/deployments": { - "get": { - "summary": "List Deployments", - "operationId": "ListDeployments", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListDeploymentsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "app_id", - "description": "(Optional) Filter on application id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "service_id", - "description": "(Optional) Filter on service id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Filter on statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "PENDING", - "PROVISIONING", - "SCHEDULED", - "CANCELING", - "CANCELED", - "ALLOCATING", - "STARTING", - "HEALTHY", - "DEGRADED", - "UNHEALTHY", - "STOPPING", - "STOPPED", - "ERRORING", - "ERROR", - "STASHED", - "SLEEPING" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "Deployments" - ] - } - }, - "/v1/deployments/{id}": { - "get": { - "summary": "Get Deployment", - "operationId": "GetDeployment", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetDeploymentReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the deployment", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Deployments" - ] - } - }, - "/v1/deployments/{id}/cancel": { - "post": { - "summary": "Cancel Deployment", - "description": "Deployment cancellation is allowed for the following status:\n - pending\n - provisioning\n - scheduled", - "operationId": "CancelDeployment", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CancelDeploymentReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the deployment to cancel.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Deployments" - ] - } - }, - "/v1/quotas/capacity": { - "post": { - "summary": "DEPRECATED: Review Organization Capacity", - "operationId": "ReviewOrganizationCapacity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ReviewOrganizationCapacityReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ReviewOrganizationCapacityRequest" - } - } - ], - "tags": [ - "Quotas" - ] - } - }, - "/v1/provisioning/{deployment_id}/status/{stage}/{attempt}": { - "post": { - "summary": "Create an attempt for a stage", - "operationId": "CreateStageAttempt", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateStageAttemptReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "deployment_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "stage", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attempt", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "secret": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "steps": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - ], - "tags": [ - "Provisioning" - ] - }, - "patch": { - "summary": "Declare stage progress", - "operationId": "DeclareStageProgress", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeclareStageProgressReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "deployment_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "stage", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attempt", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "secret": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" - }, - "finished_at": { - "type": "string", - "format": "date-time" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "image_pushed": { - "type": "boolean" - }, - "internal_failure": { - "type": "boolean" - }, - "retryable_failure": { - "type": "boolean" - } - } - } - } - ], - "tags": [ - "Provisioning" - ] - } - }, - "/v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step}": { - "patch": { - "summary": "Declare step progress", - "operationId": "DeclareStepProgress", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeclareStepProgressReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "deployment_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "stage", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attempt", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "step", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "secret": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "finished_at": { - "type": "string", - "format": "date-time" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - ], - "tags": [ - "Provisioning" - ] - } - }, - "/v1/compose": { - "post": { - "summary": "Create resources from compose.", - "operationId": "Compose", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ComposeReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "compose", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateCompose" - } - } - ], - "tags": [ - "Compose" - ] - } - }, - "/v1/archives": { - "post": { - "summary": "Create Archive", - "description": "Create a signed URL to upload an archive.", - "operationId": "CreateArchive", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateArchiveReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "archive", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateArchive" - } - } - ], - "tags": [ - "Archives" - ] - } - }, - "/v1/app_events": { - "get": { - "summary": "List App events", - "operationId": "ListAppEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListAppEventsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "app_id", - "description": "(Optional) Filter on app id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on app event types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - } - }, - "/v1/apps": { - "get": { - "summary": "List App", - "operationId": "ListApps", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListAppsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "name", - "description": "(Optional) A filter for name", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - }, - "post": { - "summary": "Create App", - "operationId": "CreateApp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "app", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateApp" - } - } - ], - "tags": [ - "Apps" - ] - } - }, - "/v1/apps/{id}": { - "get": { - "summary": "Get App", - "operationId": "GetApp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the App", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - }, - "delete": { - "summary": "Delete App", - "description": "App deletion is allowed for all status.", - "operationId": "DeleteApp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the App to delete", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - }, - "put": { - "summary": "Update App", - "operationId": "UpdateApp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the app to update.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "app", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateApp" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - }, - "patch": { - "summary": "Update App", - "operationId": "UpdateApp2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the app to update.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "app", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateApp" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - } - }, - "/v1/apps/{id}/pause": { - "post": { - "summary": "Pause App", - "description": "App pause action is allowed for the following status:\n - starting\n - healthy\n - degraded\n - unhealthy\n - resuming", - "operationId": "PauseApp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/PauseAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the app to pause.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - } - }, - "/v1/apps/{id}/resume": { - "post": { - "summary": "Resume App", - "description": "App resume action is allowed for the following status:\n - paused", - "operationId": "ResumeApp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ResumeAppReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the app to resume.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Apps" - ] - } - }, - "/v1/service_events": { - "get": { - "summary": "List Service events", - "operationId": "ListServiceEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListServiceEventsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "service_id", - "description": "(Optional) Filter on service id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on service event types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/services": { - "get": { - "summary": "List Services", - "operationId": "ListServices", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListServicesReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "app_id", - "description": "(Optional) The id of the app", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "name", - "description": "(Optional) A filter for name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "types", - "description": "(Optional) Filter on service types", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "INVALID_TYPE", - "WEB", - "WORKER", - "DATABASE" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "Services" - ] - }, - "post": { - "summary": "Create Service", - "operationId": "CreateService", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "service", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateService" - } - }, - { - "name": "dry_run", - "description": "If set only run validation", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/services-autocomplete": { - "post": { - "summary": "Autocomplete definition", - "description": "Generate autocomplete definition for a service", - "operationId": "Autocomplete", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/AutocompleteReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AutocompleteRequest" - } - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/services/{id}": { - "get": { - "summary": "Get Service", - "operationId": "GetService", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the Service", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Services" - ] - }, - "delete": { - "summary": "Delete Service", - "description": "Service deletion is allowed for all status.", - "operationId": "DeleteService", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the entity to delete", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Services" - ] - }, - "put": { - "summary": "Update Service", - "operationId": "UpdateService", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the entity to update", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "service", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateService" - } - }, - { - "name": "dry_run", - "description": "If set, run validation and check that the service exists", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "Services" - ] - }, - "patch": { - "summary": "Update Service", - "operationId": "UpdateService2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the entity to update", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "service", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateService" - } - }, - { - "name": "dry_run", - "description": "If set, run validation and check that the service exists", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/services/{id}/pause": { - "post": { - "summary": "Pause Service", - "description": "Service pause action is allowed for the following status:\n - starting\n - healthy\n - degraded\n - unhealthy\n - resuming", - "operationId": "PauseService", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/PauseServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the service to pause.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/services/{id}/redeploy": { - "post": { - "summary": "ReDeploy Service", - "operationId": "ReDeploy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/RedeployReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "info", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RedeployRequest.Info" - } - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/services/{id}/resume": { - "post": { - "summary": "Resume Service", - "description": "Service resume action is allowed for the following status:\n - paused", - "operationId": "ResumeService", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ResumeServiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the service to pause.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "skip_build", - "description": "If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead.\nThe call fails if no previous successful builds happened.", - "in": "query", - "required": false, - "type": "boolean" - }, - { - "name": "use_cache", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "Services" - ] - } - }, - "/v1/snapshots": { - "get": { - "summary": "List all Snapshots", - "operationId": "ListSnapshots", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListSnapshotsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "organization_id", - "description": "(Optional) Filter by organization_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Filter by status\n\n - SNAPSHOT_STATUS_INVALID: zero value, invalid\n - SNAPSHOT_STATUS_CREATING: the snapshot is being created\n - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available\n - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated\n - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted\n - SNAPSHOT_STATUS_DELETED: the snapshot is deleted", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "SNAPSHOT_STATUS_INVALID", - "SNAPSHOT_STATUS_CREATING", - "SNAPSHOT_STATUS_AVAILABLE", - "SNAPSHOT_STATUS_MIGRATING", - "SNAPSHOT_STATUS_DELETING", - "SNAPSHOT_STATUS_DELETED" - ] - }, - "collectionFormat": "multi" - }, - { - "name": "region", - "description": "(Optional) A filter for the region", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Snapshots" - ] - }, - "post": { - "summary": "Create a Snapshot", - "operationId": "CreateSnapshot", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateSnapshotReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateSnapshotRequest" - } - } - ], - "tags": [ - "Snapshots" - ] - } - }, - "/v1/snapshots/{id}": { - "get": { - "summary": "Get a Snapshot", - "operationId": "GetSnapshot", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetSnapshotReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Snapshots" - ] - }, - "delete": { - "summary": "Delete a Snapshot", - "operationId": "DeleteSnapshot", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteSnapshotReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Snapshots" - ] - }, - "post": { - "summary": "Update a Snapshot", - "operationId": "UpdateSnapshot", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateSnapshotReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the snapshot", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "Change the name of the snapshot" - } - } - } - } - ], - "tags": [ - "Snapshots" - ] - } - }, - "/v1/coupons": { - "post": { - "summary": "Redeem Coupon", - "description": "This API allows to redeem a coupon. Pass the code you received in the body.", - "operationId": "RedeemCoupon", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/RedeemCouponReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RedeemCouponRequest" - } - } - ], - "tags": [ - "Coupons" - ] - } - }, - "/v1/organizations/{organization_id}/summary": { - "get": { - "summary": "Get organization usage summary", - "operationId": "GetOrganizationSummary", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOrganizationSummaryReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "description": "Organization ID", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Summary" - ] - } - }, - "/v1/subscriptions/{id}": { - "get": { - "summary": "Get Subscription", - "operationId": "GetSubscription", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetSubscriptionReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the instance", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Subscriptions" - ] - } - }, - "/v1/users/{id}": { - "delete": { - "summary": "Delete user", - "operationId": "DeleteUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteUserReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the user", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Users" - ] - } - }, - "/v1/organizations/{organization_id}/quotas": { - "get": { - "operationId": "GetQuotas", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetQuotasReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "OrganizationQuotas" - ] - } - }, - "/v1/organization_confirmations/{id}": { - "post": { - "summary": "Confirm organization action", - "operationId": "ConfirmOrganizationAction", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ConfirmOrganizationActionReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "OrganizationConfirmations" - ] - } - }, - "/v1/account/login": { - "post": { - "summary": "Login user", - "operationId": "Login", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LoginRequest" - } - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "Sessions" - ] - } - }, - "/v1/account/logout": { - "delete": { - "summary": "Logout user", - "operationId": "Logout", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LogoutReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Sessions" - ] - } - }, - "/v1/account/refresh": { - "put": { - "summary": "Refresh token", - "operationId": "RefreshToken", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Sessions" - ] - } - }, - "/v1/account/session": { - "post": { - "summary": "New session", - "description": "Creates a new session without an organization for current user.\nNOTE: If you want a session linked to another organization, please use \"Switch organization\".", - "operationId": "NewSession", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Sessions" - ] - } - }, - "/v1/account/activities": { - "get": { - "operationId": "GetAccountActivities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ActivityList" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "activity" - ] - } - }, - "/v1/account/idenfy": { - "get": { - "summary": "Begin a session with iDenfy, emit an authToken", - "operationId": "GetIdenfyToken", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetIdenfyTokenReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Profile" - ] - }, - "post": { - "summary": "ClearIdenfyVerificationResult marks the current result for idenfy as superseded", - "operationId": "ClearIdenfyVerificationResult", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ClearIdenfyVerificationResultReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClearIdenfyVerificationResultRequest" - } - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/invite": { - "post": { - "operationId": "CreateInvite", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/Empty" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/InviteUserRequest" - } - } - ], - "tags": [ - "invite" - ] - } - }, - "/v1/account/login_method": { - "get": { - "summary": "Get the login method for an email address", - "operationId": "LoginMethod", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginMethodReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "email", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/oauth": { - "get": { - "summary": "Get OAuth Providers", - "operationId": "GetOAuthOptions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOAuthOptionsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "action", - "description": "Which authentication flow is being initiated", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "signin", - "signup", - "register" - ], - "default": "signin" - }, - { - "name": "metadata", - "description": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - }, - "post": { - "summary": "Authenticate using OAuth", - "operationId": "OAuthCallback", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/OAuthCallbackReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/OAuthCallbackRequest" - } - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/organization": { - "get": { - "summary": "Get Current Organization", - "operationId": "GetCurrentOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Profile" - ] - } - }, - "/v1/account/organization_invitations": { - "get": { - "summary": "List User Organization Invitations", - "operationId": "ListUserOrganizationInvitations", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListUserOrganizationInvitationsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Filter on organization invitation statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "INVALID", - "PENDING", - "ACCEPTED", - "REFUSED", - "EXPIRED" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/organization_invitations/{id}": { - "get": { - "summary": "Get User Organization Invitation", - "operationId": "GetUserOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetUserOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the organization invitation to get", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/organization_invitations/{id}/accept": { - "post": { - "summary": "Accept Organization Invitation", - "operationId": "AcceptOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/AcceptOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the organization invitation to accept", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/organization_invitations/{id}/decline": { - "post": { - "summary": "Decline Organization Invitation", - "operationId": "DeclineOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeclineOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the organization invitation to decline", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/organizations": { - "get": { - "summary": "List User Organizations", - "description": "List all organizations that the current user is a member of.", - "operationId": "ListUserOrganizations", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListUserOrganizationsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) Define pagination limit", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) Define pagination offset", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "order", - "description": "(Optional) Sorts the list in the ascending or the descending order", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "search", - "description": "(Optional) Fuzzy case-insensitive search based on organization name or organization id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Only return organizations which status match one in the list", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "WARNING", - "LOCKED", - "ACTIVE", - "DEACTIVATING", - "DEACTIVATED", - "DELETING", - "DELETED" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/profile": { - "get": { - "summary": "Get Current User", - "operationId": "GetCurrentUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UserReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Profile" - ] - }, - "put": { - "summary": "Update User", - "operationId": "UpdateUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UserReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "user", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - }, - "patch": { - "summary": "Update User", - "operationId": "UpdateUser2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UserReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "user", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/resend_validation": { - "post": { - "summary": "Resend Email Verification", - "operationId": "ResendEmailValidation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ResendEmailValidationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ResendEmailValidationRequest" - } - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/reset_password": { - "post": { - "summary": "Reset Password", - "operationId": "ResetPassword", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ResetPasswordReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ResetPasswordRequest" - } - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/settings": { - "get": { - "operationId": "GetUserSettings", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetUserSettingsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Profile" - ] - }, - "patch": { - "operationId": "UpdateUserSettings", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateUserSettingsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateUserSettingsRequest" - } - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/signup": { - "post": { - "summary": "Signup", - "operationId": "Signup", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Create new account", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateAccountRequest" - } - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/update_password": { - "post": { - "summary": "Update Password", - "operationId": "UpdatePassword", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdatePasswordRequest" - } - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/account/validate/{id}": { - "post": { - "summary": "Validate", - "operationId": "Validate", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "Profile" - ] - } - }, - "/v1/billing/has_unpaid_invoices": { - "get": { - "summary": "Experimental: Has unpaid invoices", - "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK.", - "operationId": "HasUnpaidInvoices", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/HasUnpaidInvoicesReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "billing" - ] - } - }, - "/v1/billing/manage": { - "get": { - "operationId": "Manage", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ManageReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "billing" - ] - } - }, - "/v1/billing/next_invoice": { - "get": { - "summary": "Experimental: Fetch next invoice", - "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK.", - "operationId": "NextInvoice", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/NextInvoiceReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "billing" - ] - } - }, - "/v1/github/installation": { - "get": { - "summary": "Fetch Github Installation configuration", - "operationId": "GetGithubInstallation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetGithubInstallationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "organization" - ] - }, - "post": { - "summary": "Start Github Installation", - "operationId": "GithubInstallation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GithubInstallationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GithubInstallationRequest" - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations": { - "post": { - "summary": "Create Organization", - "operationId": "CreateOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateOrganizationRequest" - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}": { - "get": { - "summary": "Get Organization", - "operationId": "GetOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "organization" - ] - }, - "delete": { - "summary": "Delete an Organization", - "operationId": "DeleteOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "organization" - ] - }, - "put": { - "summary": "Update Organization", - "operationId": "UpdateOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "organization", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Organization" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "organization" - ] - }, - "patch": { - "summary": "Update Organization", - "operationId": "UpdateOrganization2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "organization", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Organization" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}/access_token": { - "post": { - "summary": "CreateAccessToken", - "description": "CreateAccessToken creates a short-lived access token in the scope of the\nspecified organization, provided the user making the request is part of\nsaid organization.\n\nIt's possible to specify a validity for the token, which defaults to 1h\nand must be no more than 24h. The format is `s`, where ``\nis a floating point in seconds (so `123.456789012s` means 123 seconds and\n456789012 nanoseconds). See: https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration.html.", - "operationId": "CreateAccessToken", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateAccessTokenReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "Organization id for ephemeral credential", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "validity": { - "type": "string", - "title": "Validity of the credential" - } - } - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}/deactivate": { - "post": { - "summary": "Deactivate an Organization", - "operationId": "DeactivateOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeactivateOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "skip_confirmation": { - "type": "boolean", - "description": "if set to true, skip_confirmation will directly start the deactivation process,\nwithout sending a confirmation email beforehand." - } - } - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}/plan": { - "post": { - "summary": "Update Organization plan", - "operationId": "UpdateOrganizationPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateOrganizationPlanReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "plan": { - "$ref": "#/definitions/Plan" - } - } - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}/reactivate": { - "post": { - "summary": "Reactivate an Organization", - "operationId": "ReactivateOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ReactivateOrganizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}/signup_qualification": { - "post": { - "summary": "Upsert Organization's signup qualification", - "operationId": "UpsertSignupQualification", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpsertSignupQualificationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "signup_qualification": { - "type": "object" - } - } - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{id}/switch": { - "post": { - "summary": "Switch Organization context", - "operationId": "SwitchOrganization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/organizations/{organization_id}/budget": { - "get": { - "summary": "Get Budget", - "operationId": "GetBudget", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetBudgetReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "organization" - ] - }, - "delete": { - "summary": "Delete Budget", - "operationId": "DeleteBudget", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteBudgetReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "organization" - ] - }, - "post": { - "summary": "Create Budget", - "operationId": "CreateBudget", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateBudgetReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "amount": { - "type": "string", - "format": "int64", - "description": "In cents." - } - } - } - } - ], - "tags": [ - "organization" - ] - }, - "put": { - "summary": "Update Budget", - "operationId": "UpdateBudget", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateBudgetReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "organization_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "amount": { - "type": "string", - "format": "int64", - "description": "In cents." - } - } - } - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/sso/canny": { - "post": { - "operationId": "CannyAuth", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CannyAuthReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CannyAuthRequest" - } - } - ], - "tags": [ - "sso" - ] - } - }, - "/v1/sso/discourse": { - "post": { - "operationId": "DiscourseAuth", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DiscourseAuthReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DiscourseAuthRequest" - } - } - ], - "tags": [ - "sso" - ] - } - }, - "/v1/unscope_organization_token": { - "post": { - "summary": "Unscope Organization Token", - "description": "UnscopeOrganizationToken removes the organization scope from a token. This\nendpoint is useful when a user wants to remove an organization: by\nunscoping the token first, the user can then delete the organization\nwithout invalidating his token.", - "operationId": "UnscopeOrganizationToken", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/LoginReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UnscopeOrganizationTokenRequest" - } - }, - { - "name": "seon-fp", - "description": "Seon Fingerprint", - "in": "header", - "required": false, - "type": "string" - } - ], - "tags": [ - "organization" - ] - } - }, - "/v1/payment_methods": { - "get": { - "summary": "List payment methods", - "operationId": "ListPaymentMethods", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListPaymentMethodsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Filter on payment method statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "INVALID", - "CREATED", - "AUTHORIZED", - "DECLINED", - "CANCELED", - "EXPIRED", - "UNCHECKED" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "PaymentMethods" - ] - }, - "post": { - "summary": "Create payment authorization", - "operationId": "CreatePaymentAuthorization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreatePaymentAuthorizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreatePaymentAuthorizationRequest" - } - } - ], - "tags": [ - "PaymentMethods" - ] - } - }, - "/v1/payment_methods/{id}": { - "get": { - "summary": "Get payment method", - "operationId": "GetPaymentMethod", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetPaymentMethodReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "PaymentMethods" - ] - }, - "delete": { - "summary": "Delete payment method", - "operationId": "DeletePaymentMethod", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeletePaymentMethodReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "PaymentMethods" - ] - } - }, - "/v1/payment_methods/{id}/confirm": { - "post": { - "summary": "Confirm payment authorization", - "operationId": "ConfirmPaymentAuthorization", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ConfirmPaymentAuthorizationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - } - ], - "tags": [ - "PaymentMethods" - ] - } - }, - "/v1/organization_invitations": { - "get": { - "summary": "List Organization Invitations", - "operationId": "ListOrganizationInvitations", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListOrganizationInvitationsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "statuses", - "description": "(Optional) Filter on organization invitation statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "INVALID", - "PENDING", - "ACCEPTED", - "REFUSED", - "EXPIRED" - ] - }, - "collectionFormat": "multi" - }, - { - "name": "user_id", - "description": "(Optional) Filter on invitee ID. Will match both invitations sent to\nthat user_id and invitations sent to the email of that user_id.\nThe only valid value is the requester's user_id", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "OrganizationInvitations" - ] - }, - "post": { - "summary": "Create Organization Invitation", - "operationId": "CreateOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateOrganizationInvitationRequest" - } - } - ], - "tags": [ - "OrganizationInvitations" - ] - } - }, - "/v1/organization_invitations/{id}": { - "get": { - "summary": "Get Organization Invitation", - "operationId": "GetOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the invitation to get", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "OrganizationInvitations" - ] - }, - "delete": { - "summary": "Delete Organization Invitation", - "operationId": "DeleteOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the organization invitation to delete", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "OrganizationInvitations" - ] - } - }, - "/v1/organization_invitations/{id}/resend": { - "post": { - "summary": "Resend Organization Invitation", - "operationId": "ResendOrganizationInvitation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ResendOrganizationInvitationReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "The id of the organization invitation to resend", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object" - } - } - ], - "tags": [ - "OrganizationInvitations" - ] - } - }, - "/v1/credentials": { - "get": { - "summary": "List credentials", - "operationId": "ListCredentials", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListCredentialsReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "type", - "description": "(Optional) A filter for type", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "INVALID", - "USER", - "ORGANIZATION" - ], - "default": "INVALID" - }, - { - "name": "name", - "description": "(Optional) A filter for name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "organization_id", - "description": "(Optional) Filter for an organization", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "user_id", - "description": "(Optional) Filter for an user", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Credentials" - ] - }, - "post": { - "summary": "Create credential", - "operationId": "CreateCredential", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/CreateCredentialReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "credential", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CreateCredential" - } - } - ], - "tags": [ - "Credentials" - ] - } - }, - "/v1/credentials/{id}": { - "get": { - "summary": "Get credential", - "operationId": "GetCredential", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetCredentialReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Credentials" - ] - }, - "delete": { - "summary": "Delete credential", - "operationId": "DeleteCredential", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/DeleteCredentialReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "Credentials" - ] - }, - "put": { - "summary": "Update credential", - "operationId": "UpdateCredential", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateCredentialReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "credential", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Credential" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Credentials" - ] - }, - "patch": { - "summary": "Update credential", - "operationId": "UpdateCredential2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/UpdateCredentialReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "credential", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Credential" - } - }, - { - "name": "update_mask", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Credentials" - ] - } - }, - "/v1/organization_members": { - "get": { - "summary": "List organization members", - "operationId": "ListOrganizationMembers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ListOrganizationMembersReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "(Optional) The number of items to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "offset", - "description": "(Optional) The offset in the list of item to return", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "organization_id", - "description": "(Optional) Filter for an organization", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "user_id", - "description": "(Optional) Filter for an user", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "organization_statuses", - "description": "(Optional) Filter for organization statuses", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string", - "enum": [ - "WARNING", - "LOCKED", - "ACTIVE", - "DEACTIVATING", - "DEACTIVATED", - "DELETING", - "DELETED" - ] - }, - "collectionFormat": "multi" - } - ], - "tags": [ - "OrganizationMembers" - ] - } - }, - "/v1/organization_members/{id}": { - "delete": { - "summary": "Remove an organization member", - "operationId": "RemoveOrganizationMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/RemoveOrganizationMemberReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "OrganizationMembers" - ] - } - }, - "/v1/intercom/profile": { - "get": { - "summary": "Get intercom profile", - "operationId": "GetIntercomProfile", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/GetIntercomProfileReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "tags": [ - "Intercom" - ] - } - }, - "/v1/search": { - "get": { - "summary": "Search", - "operationId": "Search", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/ksearch.SearchReply" - } - }, - "400": { - "description": "Validation error", - "schema": { - "$ref": "#/definitions/ErrorWithFields" - } - }, - "401": { - "description": "Returned when the token is not valid.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "500": { - "description": "Returned in case of server error.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "503": { - "description": "Service is unavailable.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/google.rpc.Status" - } - } - }, - "parameters": [ - { - "name": "query", - "description": "(Optional) Search query", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Search" - ] - } - } - }, - "definitions": { - "google.protobuf.Any": { - "type": "object", - "properties": { - "@type": { - "type": "string" - } - }, - "additionalProperties": {} - }, - "google.rpc.Status": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/google.protobuf.Any" - } - } - } - }, - "CatalogGPUDetails": { - "type": "object", - "properties": { - "count": { - "type": "integer", - "format": "int64", - "title": "The number of GPUs" - }, - "brand": { - "type": "string", - "title": "The brand of GPU" - }, - "memory": { - "type": "string", - "title": "GPU memory" - }, - "name": { - "type": "string", - "title": "Name of GPU" - } - } - }, - "CatalogInstance": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The name of the instance" - }, - "description": { - "type": "string", - "title": "A short description of the instance" - }, - "vcpu": { - "type": "integer", - "format": "int64", - "description": "The number of cpus. Deprecated. Use vcpu_shares instead." - }, - "memory": { - "type": "string", - "title": "The memory in bytes in a format like 5MB" - }, - "disk": { - "type": "string", - "title": "The size of the disk in bytes in a format like 5MB" - }, - "price_per_second": { - "type": "string", - "title": "The price to pay per second" - }, - "price_hourly": { - "type": "string", - "title": "The price to pay per hour" - }, - "price_monthly": { - "type": "string", - "title": "The price to pay per month" - }, - "regions": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The regions where this instance type is available" - }, - "status": { - "type": "string", - "title": "The status of the instance" - }, - "require_plan": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The plan required to use instance" - }, - "vcpu_shares": { - "type": "number", - "format": "float", - "description": "The number of vcpu shares reserved for the instance." - }, - "display_name": { - "type": "string", - "title": "The display name of the instance" - }, - "aliases": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Aliases" - }, - "type": { - "type": "string", - "title": "The type of the instance (e.g. \"gpu\")" - }, - "gpu": { - "$ref": "#/definitions/CatalogGPUDetails", - "title": "GPU details" - }, - "service_types": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Allowed service types for this instance (e.g. [\"web\", \"worker\"])" - }, - "volumes_enabled": { - "type": "boolean", - "title": "Are the volumes enabled for this instance type" - }, - "light_sleep_enabled": { - "type": "boolean", - "title": "Is light sleep enabled for this instance type" - } - } - }, - "CatalogInstanceListItem": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The name of the instance" - }, - "description": { - "type": "string", - "title": "A short description of the instance" - }, - "vcpu": { - "type": "integer", - "format": "int64", - "description": "The number of cpus. Deprecated. Use vcpu_shares instead." - }, - "memory": { - "type": "string", - "title": "The memory in bytes in a format like 5MB" - }, - "disk": { - "type": "string", - "title": "The size of the disk in bytes in a format like 5MB" - }, - "price_per_second": { - "type": "string", - "title": "The price to pay per second" - }, - "price_hourly": { - "type": "string", - "title": "The price to pay per hour" - }, - "price_monthly": { - "type": "string", - "title": "The price to pay per month" - }, - "regions": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The regions where this instance type is available" - }, - "status": { - "type": "string", - "title": "The status of the instance" - }, - "require_plan": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The plan required to use instance" - }, - "vcpu_shares": { - "type": "number", - "format": "float", - "description": "The number of vcpu shares reserved for the instance." - }, - "display_name": { - "type": "string", - "title": "The display name of the instance" - }, - "aliases": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Aliases" - }, - "type": { - "type": "string", - "title": "The type of the instance (e.g. \"gpu\")" - }, - "gpu": { - "$ref": "#/definitions/CatalogGPUDetails", - "title": "GPU details" - }, - "service_types": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Allowed service types for this instance (e.g. [\"web\", \"worker\"])" - }, - "volumes_enabled": { - "type": "boolean", - "title": "Are the volumes enabled for this instance type" - }, - "light_sleep_enabled": { - "type": "boolean", - "title": "Is light sleep enabled for this instance type" - } - } - }, - "GetCatalogInstanceReply": { - "type": "object", - "properties": { - "instance": { - "$ref": "#/definitions/CatalogInstance", - "title": "The instance retrieved" - } - } - }, - "ListCatalogInstancesReply": { - "type": "object", - "properties": { - "instances": { - "type": "array", - "items": { - "$ref": "#/definitions/CatalogInstanceListItem" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "AvailabilityLevel": { - "type": "string", - "enum": [ - "UNKNOWN", - "LOW", - "MEDIUM", - "HIGH" - ], - "default": "UNKNOWN" - }, - "CatalogUsage": { - "type": "object", - "properties": { - "instances": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/InstanceAvailability" - } - } - } - }, - "InstanceAvailability": { - "type": "object", - "properties": { - "regions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/RegionAvailability" - } - }, - "availability": { - "$ref": "#/definitions/AvailabilityLevel" - } - } - }, - "ListUsageReply": { - "type": "object", - "properties": { - "usage": { - "$ref": "#/definitions/CatalogUsage", - "title": "The Usage retrieved" - } - } - }, - "RegionAvailability": { - "type": "object", - "properties": { - "availability": { - "$ref": "#/definitions/AvailabilityLevel" - } - } - }, - "DatacenterListItem": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "e.g. \"par1\"" - }, - "region_id": { - "type": "string", - "title": "e.g. \"par\"" - }, - "domain": { - "type": "string", - "title": "e.g. \"all-par1.infra.prod.koyeb.com\"" - }, - "coordinates": { - "type": "array", - "items": { - "type": "string" - }, - "title": "e.g. \"8.856614\" ,\"2.352221\"?" - }, - "use_gpu": { - "type": "boolean", - "title": "e.g. true" - }, - "regions": { - "type": "array", - "items": { - "type": "string" - }, - "title": "e.g. \"par\", \"fra\"" - } - } - }, - "ListDatacentersReply": { - "type": "object", - "properties": { - "datacenters": { - "type": "array", - "items": { - "$ref": "#/definitions/DatacenterListItem" - } - } - } - }, - "GetRegionReply": { - "type": "object", - "properties": { - "region": { - "$ref": "#/definitions/Region", - "title": "The Region retrieved" - } - } - }, - "ListRegionsReply": { - "type": "object", - "properties": { - "regions": { - "type": "array", - "items": { - "$ref": "#/definitions/RegionListItem" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "Region": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The id of the region" - }, - "name": { - "type": "string", - "title": "The name of the region" - }, - "coordinates": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The coordinates of the region (lat/long)" - }, - "status": { - "type": "string", - "title": "The status of the region" - }, - "instances": { - "type": "array", - "items": { - "type": "string" - }, - "title": "A list of instances available in this region" - }, - "datacenters": { - "type": "array", - "items": { - "type": "string" - }, - "title": "A list of datacenters available in this region" - }, - "volumes_enabled": { - "type": "boolean", - "title": "Are the volumes enabled for this instance type" - }, - "scope": { - "type": "string", - "description": "The scope of the region, continent, metropolitan area, etc." - } - } - }, - "RegionListItem": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The id of the region" - }, - "name": { - "type": "string", - "title": "The name of the region" - }, - "coordinates": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The coordinates of the region (lat/long)" - }, - "status": { - "type": "string", - "title": "The status of the region" - }, - "instances": { - "type": "array", - "items": { - "type": "string" - }, - "title": "A list of instances available in this region" - }, - "datacenters": { - "type": "array", - "items": { - "type": "string" - }, - "title": "A list of datacenters available in this region" - }, - "volumes_enabled": { - "type": "boolean", - "title": "Are the volumes enabled for this instance type" - }, - "scope": { - "type": "string", - "description": "The scope of the region, continent, metropolitan area, etc." - } - } - }, - "google.protobuf.NullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "Activity": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "actor": { - "$ref": "#/definitions/Object" - }, - "object": { - "$ref": "#/definitions/Object" - }, - "verb": { - "type": "string" - }, - "metadata": { - "type": "object" - }, - "created_at": { - "type": "string", - "format": "date-time" - } - } - }, - "ActivityList": { - "type": "object", - "properties": { - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "limit": { - "type": "integer", - "format": "int64" - }, - "offset": { - "type": "integer", - "format": "int64" - }, - "has_next": { - "type": "boolean" - } - } - }, - "Notification": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "activity": { - "$ref": "#/definitions/Activity" - }, - "is_read": { - "type": "boolean" - }, - "is_seen": { - "type": "boolean" - }, - "created_at": { - "type": "string", - "format": "date-time" - } - } - }, - "NotificationList": { - "type": "object", - "properties": { - "notifications": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" - } - }, - "limit": { - "type": "integer", - "format": "int64" - }, - "offset": { - "type": "integer", - "format": "int64" - }, - "count": { - "type": "integer", - "format": "int64" - }, - "is_read": { - "type": "boolean" - }, - "is_seen": { - "type": "boolean" - }, - "unread": { - "type": "integer", - "format": "int64" - }, - "unseen": { - "type": "integer", - "format": "int64" - } - } - }, - "Object": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "metadata": { - "type": "object" - }, - "deleted": { - "type": "boolean" - } - } - }, - "Error": { - "type": "object", - "properties": { - "status": { - "type": "integer", - "format": "int32" - }, - "code": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "ErrorField": { - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "ErrorWithFields": { - "type": "object", - "properties": { - "status": { - "type": "integer", - "format": "int32" - }, - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/ErrorField" - } - } - } - }, - "kgitproxy.Branch": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "repository_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "is_default": { - "type": "boolean" - }, - "is_protected": { - "type": "boolean" - }, - "provider": { - "$ref": "#/definitions/kgitproxy.RepositoryProvider" - } - } - }, - "kgitproxy.GitHubRepository": { - "type": "object", - "properties": { - "github_id": { - "type": "string" - } - } - }, - "kgitproxy.ListBranchesReply": { - "type": "object", - "properties": { - "branches": { - "type": "array", - "items": { - "$ref": "#/definitions/kgitproxy.Branch" - }, - "description": "The collection of branches." - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The limit in the request." - }, - "offset": { - "type": "integer", - "format": "int64", - "description": "The offset in the request." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "The total number of items." - } - } - }, - "kgitproxy.ListRepositoriesReply": { - "type": "object", - "properties": { - "repositories": { - "type": "array", - "items": { - "$ref": "#/definitions/kgitproxy.Repository" - }, - "description": "The collection of repositories." - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The limit in the request." - }, - "offset": { - "type": "integer", - "format": "int64", - "description": "The offset in the request." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "The total number of items." - } - } - }, - "kgitproxy.Repository": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "is_private": { - "type": "boolean" - }, - "is_disabled": { - "type": "boolean" - }, - "default_branch": { - "type": "string" - }, - "provider": { - "$ref": "#/definitions/kgitproxy.RepositoryProvider" - }, - "last_push_date": { - "type": "string", - "format": "date-time" - }, - "github": { - "$ref": "#/definitions/kgitproxy.GitHubRepository" - } - } - }, - "kgitproxy.RepositoryProvider": { - "type": "string", - "enum": [ - "INVALID_PROVIDER", - "GITHUB" - ], - "default": "INVALID_PROVIDER" - }, - "kgitproxy.ResyncOrganizationReply": { - "type": "object" - }, - "ExecCommandIO": { - "type": "object", - "properties": { - "data": { - "type": "string", - "format": "byte", - "description": "Data is base64 encoded" - }, - "close": { - "type": "boolean", - "description": "Indicate last data frame" - } - } - }, - "ExecCommandReply": { - "type": "object", - "properties": { - "stdout": { - "$ref": "#/definitions/ExecCommandIO" - }, - "stderr": { - "$ref": "#/definitions/ExecCommandIO" - }, - "exited": { - "type": "boolean" - }, - "exit_code": { - "type": "integer", - "format": "int32" - } - } - }, - "ExecCommandRequest.Body": { - "type": "object", - "properties": { - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to exec. Mandatory in the first frame sent" - }, - "tty_size": { - "$ref": "#/definitions/ExecCommandRequest.TerminalSize" - }, - "stdin": { - "$ref": "#/definitions/ExecCommandIO" - }, - "disableTty": { - "type": "boolean", - "description": "Disable TTY. It's enough to specify it in the first frame" - } - } - }, - "ExecCommandRequest.IdType": { - "type": "string", - "enum": [ - "INVALID", - "INSTANCE_ID", - "SERVICE_ID" - ], - "default": "INVALID" - }, - "ExecCommandRequest.TerminalSize": { - "type": "object", - "properties": { - "height": { - "type": "integer", - "format": "int32" - }, - "width": { - "type": "integer", - "format": "int32" - } - } - }, - "LogEntry": { - "type": "object", - "properties": { - "msg": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "labels": { - "type": "object" - } - } - }, - "QueryLogsReply": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/LogEntry" - } - }, - "pagination": { - "$ref": "#/definitions/QueryLogsReplyPagination" - } - } - }, - "QueryLogsReplyPagination": { - "type": "object", - "properties": { - "has_more": { - "type": "boolean" - }, - "next_start": { - "type": "string", - "format": "date-time" - }, - "next_end": { - "type": "string", - "format": "date-time" - } - } - }, - "GetMetricsReply": { - "type": "object", - "properties": { - "metrics": { - "type": "array", - "items": { - "$ref": "#/definitions/GetMetricsReply.Metric" - } - } - } - }, - "GetMetricsReply.Metric": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "samples": { - "type": "array", - "items": { - "$ref": "#/definitions/Sample" - } - } - } - }, - "MetricName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU_TOTAL_PERCENT", - "MEM_RSS", - "HTTP_THROUGHPUT", - "HTTP_RESPONSE_TIME_50P", - "HTTP_RESPONSE_TIME_90P", - "HTTP_RESPONSE_TIME_99P", - "HTTP_RESPONSE_TIME_MAX", - "PUBLIC_DATA_TRANSFER_IN", - "PUBLIC_DATA_TRANSFER_OUT" - ], - "default": "UNKNOWN" - }, - "Sample": { - "type": "object", - "properties": { - "timestamp": { - "type": "string" - }, - "value": { - "type": "number", - "format": "double" - } - } - }, - "CreateDomain": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Domain.Type" - }, - "app_id": { - "type": "string", - "title": "to auto-attach to an app. Optional" - }, - "cloudflare": { - "$ref": "#/definitions/Domain.LoadBalancerCloudflare" - }, - "koyeb": { - "$ref": "#/definitions/Domain.LoadBalancerKoyeb", - "description": "Only applicable to auto-assigned domains, for organizations on the Scale plan." - } - } - }, - "CreateDomainReply": { - "type": "object", - "properties": { - "domain": { - "$ref": "#/definitions/Domain" - } - } - }, - "DeleteDomainReply": { - "type": "object" - }, - "Domain": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/Domain.Status" - }, - "type": { - "$ref": "#/definitions/Domain.Type" - }, - "app_id": { - "type": "string" - }, - "deployment_group": { - "type": "string" - }, - "verified_at": { - "type": "string", - "format": "date-time" - }, - "intended_cname": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "format": "uint64" - }, - "cloudflare": { - "$ref": "#/definitions/Domain.LoadBalancerCloudflare" - }, - "koyeb": { - "$ref": "#/definitions/Domain.LoadBalancerKoyeb" - } - } - }, - "Domain.LoadBalancerCloudflare": { - "type": "object" - }, - "Domain.LoadBalancerKoyeb": { - "type": "object", - "properties": { - "request_timeout_seconds": { - "type": "integer", - "format": "int64", - "title": "Between 100 and 900" - } - } - }, - "Domain.Status": { - "type": "string", - "enum": [ - "PENDING", - "ACTIVE", - "ERROR", - "DELETING", - "DELETED" - ], - "default": "PENDING" - }, - "Domain.Type": { - "type": "string", - "enum": [ - "AUTOASSIGNED", - "CUSTOM" - ], - "default": "AUTOASSIGNED", - "title": "- AUTOASSIGNED: Domain like -.koyeb.app" - }, - "GetDomainReply": { - "type": "object", - "properties": { - "domain": { - "$ref": "#/definitions/Domain" - } - } - }, - "ListDomainsReply": { - "type": "object", - "properties": { - "domains": { - "type": "array", - "items": { - "$ref": "#/definitions/Domain" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "RefreshDomainStatusReply": { - "type": "object" - }, - "UpdateDomain": { - "type": "object", - "properties": { - "app_id": { - "type": "string", - "description": "To attach or detach from an app for custom domain." - }, - "subdomain": { - "type": "string", - "description": "To change subdomain for auto-assigned domain." - } - } - }, - "UpdateDomainReply": { - "type": "object", - "properties": { - "domain": { - "$ref": "#/definitions/Domain" - } - } - }, - "VerifyDockerImageReply": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "title": "Whether the image is accessible or not" - }, - "reason": { - "type": "string", - "title": "(Optional) If the image is not accessible, the reason" - }, - "code": { - "$ref": "#/definitions/VerifyDockerImageReply.ErrCode", - "title": "(Optional) If the image is not accessible, return an error code" - } - } - }, - "VerifyDockerImageReply.ErrCode": { - "type": "string", - "enum": [ - "UNKNOWN", - "AUTH_ACCESS_DENIED", - "ANON_ACCESS_DENIED", - "AUTH_NOT_FOUND", - "ANON_NOT_FOUND", - "REGISTRY_ERROR", - "TIMEOUT", - "DNS", - "MALFORMED", - "INVALID_OS", - "INVALID_ARCH", - "INVALID_SCHEME", - "GENERIC" - ], - "default": "UNKNOWN", - "description": "- UNKNOWN: Default value\n - AUTH_ACCESS_DENIED: The registry denied access to an authenticated request\n - ANON_ACCESS_DENIED: The registry denied access to an anonymous request\n - AUTH_NOT_FOUND: The image has not been found after an authenticated request\n - ANON_NOT_FOUND: The image has not been found after an anonymous request\n - REGISTRY_ERROR: The registry returned an error\n - TIMEOUT: The request to the registry timed out\n - DNS: There was an error trying to resolve the name of the registry\n - MALFORMED: The provided image name is malformed\n - INVALID_OS: The operating system is not supported\n - INVALID_ARCH: The architecture is not supported\n - INVALID_SCHEME: The scheme is not https\n - GENERIC: Generic catch-all error code", - "title": "The error code associated to each specific failure mode" - }, - "AppUsage": { - "type": "object", - "properties": { - "app_id": { - "type": "string" - }, - "app_name": { - "type": "string" - }, - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/ServiceUsage" - } - }, - "databases": { - "type": "array", - "items": { - "$ref": "#/definitions/DatabaseUsage" - } - } - } - }, - "DatabaseUsage": { - "type": "object", - "properties": { - "service_id": { - "type": "string" - }, - "service_name": { - "type": "string" - }, - "compute_time_seconds": { - "type": "integer", - "format": "int64" - }, - "data_storage_megabytes_hours": { - "type": "integer", - "format": "int64" - } - } - }, - "DatabaseUsageDetails": { - "type": "object", - "properties": { - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "app_name": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "service_name": { - "type": "string" - }, - "compute_time_seconds": { - "type": "integer", - "format": "int64" - }, - "data_storage_megabytes_hour": { - "type": "integer", - "format": "int64" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "GetOrganizationUsageDetailsReply": { - "type": "object", - "properties": { - "usage_details": { - "type": "array", - "items": { - "$ref": "#/definitions/UsageDetails" - }, - "title": "The collection of usage instances" - }, - "database_details": { - "type": "array", - "items": { - "$ref": "#/definitions/DatabaseUsageDetails" - }, - "title": "The collection of database deployments used during the month" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - }, - "order": { - "type": "string", - "title": "The order in the request" - } - } - }, - "GetOrganizationUsageReply": { - "type": "object", - "properties": { - "usage": { - "$ref": "#/definitions/Usage", - "title": "The computed usage of instances per month" - } - } - }, - "InstanceUsage": { - "type": "object", - "properties": { - "duration_seconds": { - "type": "integer", - "format": "int64" - } - } - }, - "PeriodUsage": { - "type": "object", - "properties": { - "starting_time": { - "type": "string", - "format": "date-time" - }, - "ending_time": { - "type": "string", - "format": "date-time" - }, - "apps": { - "type": "array", - "items": { - "$ref": "#/definitions/AppUsage" - } - } - } - }, - "RegionUsage": { - "type": "object", - "properties": { - "instances": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/InstanceUsage" - } - } - } - }, - "ServiceUsage": { - "type": "object", - "properties": { - "service_id": { - "type": "string" - }, - "service_name": { - "type": "string" - }, - "regions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/RegionUsage" - } - } - } - }, - "Usage": { - "type": "object", - "properties": { - "organization_id": { - "type": "string" - }, - "periods": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/PeriodUsage" - } - } - } - }, - "UsageDetails": { - "type": "object", - "properties": { - "organization_id": { - "type": "string" - }, - "instance_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "app_name": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "service_name": { - "type": "string" - }, - "regional_deployment_id": { - "type": "string" - }, - "region": { - "type": "string" - }, - "deployment_id": { - "type": "string" - }, - "instance_type": { - "type": "string" - }, - "duration_seconds": { - "type": "integer", - "format": "int64" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "ArchiveSource": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The ID of the archive to deploy" - }, - "buildpack": { - "$ref": "#/definitions/BuildpackBuilder" - }, - "docker": { - "$ref": "#/definitions/DockerBuilder" - } - } - }, - "BuildpackBuilder": { - "type": "object", - "properties": { - "build_command": { - "type": "string", - "title": "A command used to override the build command, run after all build steps" - }, - "run_command": { - "type": "string", - "title": "A command used to override the default run command" - }, - "privileged": { - "type": "boolean", - "title": "A flag to run the container in privileged mode" - } - } - }, - "ConfigFile": { - "type": "object", - "properties": { - "path": { - "type": "string", - "title": "the path where the file is copied" - }, - "permissions": { - "type": "string", - "title": "the permissions of the file in format 0644" - }, - "content": { - "type": "string", - "title": "the content of the file" - } - } - }, - "DeploymentHealthCheck": { - "type": "object", - "properties": { - "grace_period": { - "type": "integer", - "format": "int64", - "title": "An optional initial period in seconds to wait for the instance to become healthy, default is 5s" - }, - "interval": { - "type": "integer", - "format": "int64", - "title": "An optional period in seconds between two health checks, default is 60s" - }, - "restart_limit": { - "type": "integer", - "format": "int64", - "title": "An optional number of consecutive failures before attempting to restart the service, default is 3" - }, - "timeout": { - "type": "integer", - "format": "int64", - "title": "An optional maximum time to wait in seconds before considering the check as a failure, default is 5s" - }, - "tcp": { - "$ref": "#/definitions/TCPHealthCheck" - }, - "http": { - "$ref": "#/definitions/HTTPHealthCheck" - } - } - }, - "DeploymentProvisioningInfo": { - "type": "object", - "properties": { - "sha": { - "type": "string", - "description": "The git sha for this build (we resolve the reference at the start of the build)." - }, - "image": { - "type": "string", - "description": "The docker image built as a result of this build." - }, - "stages": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage" - }, - "description": "Some info about the build." - } - } - }, - "DeploymentProvisioningInfo.Stage": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "finished_at": { - "type": "string", - "format": "date-time" - }, - "build_attempts": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt" - } - } - } - }, - "DeploymentProvisioningInfo.Stage.BuildAttempt": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "status": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "finished_at": { - "type": "string", - "format": "date-time" - }, - "steps": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep" - } - }, - "image_pushed": { - "type": "boolean" - }, - "internal_failure": { - "type": "boolean" - }, - "retryable_failure": { - "type": "boolean" - }, - "wait_completion": { - "type": "boolean", - "description": "This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure." - } - } - }, - "DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "finished_at": { - "type": "string", - "format": "date-time" - } - } - }, - "DeploymentProvisioningInfo.Stage.Status": { - "type": "string", - "enum": [ - "UNKNOWN", - "PENDING", - "RUNNING", - "FAILED", - "COMPLETED", - "ABORTED" - ], - "default": "UNKNOWN" - }, - "DeploymentScalingTarget": { - "type": "object", - "properties": { - "average_cpu": { - "$ref": "#/definitions/DeploymentScalingTargetAverageCPU" - }, - "average_mem": { - "$ref": "#/definitions/DeploymentScalingTargetAverageMem" - }, - "requests_per_second": { - "$ref": "#/definitions/DeploymentScalingTargetRequestsPerSecond" - }, - "concurrent_requests": { - "$ref": "#/definitions/DeploymentScalingTargetConcurrentRequests" - }, - "requests_response_time": { - "$ref": "#/definitions/DeploymentScalingTargetRequestsResponseTime" - }, - "sleep_idle_delay": { - "$ref": "#/definitions/DeploymentScalingTargetSleepIdleDelay" - } - } - }, - "DeploymentScalingTargetAverageCPU": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - } - } - }, - "DeploymentScalingTargetAverageMem": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - } - } - }, - "DeploymentScalingTargetConcurrentRequests": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - } - } - }, - "DeploymentScalingTargetRequestsPerSecond": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - } - } - }, - "DeploymentScalingTargetRequestsResponseTime": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - }, - "quantile": { - "type": "integer", - "format": "int64", - "description": "The quantile to use for autoscaling. For example, set to 95 to use the 95th\npercentile (p95) for autoscaling. Valid values are between 0 and 100." - } - } - }, - "DeploymentScalingTargetSleepIdleDelay": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64", - "description": "DEPRECATED: use deep_sleep_value instead.\nDelay in seconds after which a service which received 0 request is put to deep sleep." - }, - "deep_sleep_value": { - "type": "integer", - "format": "int64", - "description": "Delay in seconds after which a service which received 0 request is put to deep sleep." - }, - "light_sleep_value": { - "type": "integer", - "format": "int64", - "description": "Delay in seconds after which a service which received 0 request is put to light sleep." - } - } - }, - "DeploymentStrategy": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/DeploymentStrategyType", - "title": "Strategy type" - } - } - }, - "DeploymentStrategyType": { - "type": "string", - "enum": [ - "DEPLOYMENT_STRATEGY_TYPE_INVALID", - "DEPLOYMENT_STRATEGY_TYPE_CANARY", - "DEPLOYMENT_STRATEGY_TYPE_ROLLING", - "DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN", - "DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE" - ], - "default": "DEPLOYMENT_STRATEGY_TYPE_INVALID", - "description": " - DEPLOYMENT_STRATEGY_TYPE_INVALID: Invalid / Zero value.\n - DEPLOYMENT_STRATEGY_TYPE_CANARY: Use canary strategy.\n - DEPLOYMENT_STRATEGY_TYPE_ROLLING: Use rolling strategy.\n - DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN: Use blue green strategy.\n - DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE: Use immediate strategy." - }, - "DockerBuilder": { - "type": "object", - "properties": { - "dockerfile": { - "type": "string", - "title": "A path to the Dockerfile" - }, - "entrypoint": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The docker ENTRYPOINT" - }, - "command": { - "type": "string", - "title": "The docker CMD" - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The docker CMD args" - }, - "target": { - "type": "string", - "title": "The target for multi-stage builds" - }, - "privileged": { - "type": "boolean", - "title": "A flag to run the container in privileged mode" - } - } - }, - "DockerSource": { - "type": "object", - "properties": { - "image": { - "type": "string" - }, - "command": { - "type": "string" - }, - "args": { - "type": "array", - "items": { - "type": "string" - } - }, - "image_registry_secret": { - "type": "string" - }, - "entrypoint": { - "type": "array", - "items": { - "type": "string" - } - }, - "privileged": { - "type": "boolean", - "title": "A flag to run the container in privileged mode" - } - } - }, - "Env": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "secret": { - "type": "string" - } - } - }, - "GetRegionalDeploymentReply": { - "type": "object", - "properties": { - "regional_deployment": { - "$ref": "#/definitions/RegionalDeployment" - } - } - }, - "GitSource": { - "type": "object", - "properties": { - "repository": { - "type": "string", - "description": "A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test." - }, - "branch": { - "type": "string", - "title": "A git branch that will be tracked for new commits and deployments will be created" - }, - "tag": { - "type": "string", - "title": "A git tag that should be built" - }, - "sha": { - "type": "string", - "title": "A git commit that should be built (useful for pinning to a commit, this will always be set when a deployment is created by a code push)" - }, - "build_command": { - "type": "string", - "title": "A command used to override the build command, run after all build steps \u2014 deprecated, use buildpack.build_command instead" - }, - "run_command": { - "type": "string", - "title": "A command used to override the default run command - deprecated, use buildpack.run_command instead" - }, - "no_deploy_on_push": { - "type": "boolean", - "title": "A flag to disable a new deployment when a push event is detected" - }, - "workdir": { - "type": "string", - "title": "A subdirectory to use as the build directory" - }, - "buildpack": { - "$ref": "#/definitions/BuildpackBuilder" - }, - "docker": { - "$ref": "#/definitions/DockerBuilder" - } - } - }, - "HTTPHeader": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, - "HTTPHealthCheck": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64", - "title": "The port to use to perform the health check, must be declared in the ports section" - }, - "path": { - "type": "string", - "title": "The path to use to perform the HTTP health check" - }, - "method": { - "type": "string", - "title": "An optional HTTP method to use to perform the health check, default is GET" - }, - "headers": { - "type": "array", - "items": { - "$ref": "#/definitions/HTTPHeader" - }, - "title": "An optional list of HTTP headers to provide when performing the request, default is empty" - } - } - }, - "ListRegionalDeploymentEventsReply": { - "type": "object", - "properties": { - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/RegionalDeploymentEvent" - }, - "title": "The collection of events" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "order": { - "type": "string", - "title": "The order in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "ListRegionalDeploymentsReply": { - "type": "object", - "properties": { - "regional_deployments": { - "type": "array", - "items": { - "$ref": "#/definitions/RegionalDeploymentListItem" - }, - "title": "The collection of regional deployments" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "Port": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64" - }, - "protocol": { - "type": "string" - } - } - }, - "RegionalDeployment": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "scheduled_at": { - "type": "string", - "format": "date-time" - }, - "allocated_at": { - "type": "string", - "format": "date-time" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "succeeded_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "region": { - "type": "string" - }, - "parent_id": { - "type": "string" - }, - "child_id": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/RegionalDeployment.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "definition": { - "$ref": "#/definitions/RegionalDeploymentDefinition" - }, - "datacenters": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata": { - "$ref": "#/definitions/RegionalDeploymentMetadata" - }, - "provisioning_info": { - "$ref": "#/definitions/DeploymentProvisioningInfo" - }, - "role": { - "$ref": "#/definitions/RegionalDeployment.Role" - }, - "version": { - "type": "string", - "format": "uint64" - }, - "deployment_group": { - "type": "string", - "title": "Legacy stuff" - }, - "deployment_id": { - "type": "string" - } - } - }, - "RegionalDeployment.Role": { - "type": "string", - "enum": [ - "INVALID", - "ACTIVE", - "UPCOMING", - "CURRENT" - ], - "default": "INVALID" - }, - "RegionalDeployment.Status": { - "type": "string", - "enum": [ - "PENDING", - "PROVISIONING", - "SCHEDULED", - "CANCELING", - "CANCELED", - "ALLOCATING", - "STARTING", - "HEALTHY", - "DEGRADED", - "UNHEALTHY", - "STOPPING", - "STOPPED", - "ERRORING", - "ERROR", - "SLEEPING" - ], - "default": "PENDING" - }, - "RegionalDeploymentDefinition": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RegionalDeploymentDefinition.Type" - }, - "strategy": { - "$ref": "#/definitions/DeploymentStrategy" - }, - "routes": { - "type": "array", - "items": { - "$ref": "#/definitions/Route" - } - }, - "ports": { - "type": "array", - "items": { - "$ref": "#/definitions/Port" - } - }, - "env": { - "type": "array", - "items": { - "$ref": "#/definitions/Env" - } - }, - "region": { - "type": "string" - }, - "scaling": { - "$ref": "#/definitions/Scaling" - }, - "instance_type": { - "type": "string" - }, - "deployment_group": { - "type": "string" - }, - "health_checks": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentHealthCheck" - } - }, - "volumes": { - "type": "array", - "items": { - "$ref": "#/definitions/RegionalDeploymentVolume" - } - }, - "config_files": { - "type": "array", - "items": { - "$ref": "#/definitions/ConfigFile" - } - }, - "skip_cache": { - "type": "boolean" - }, - "docker": { - "$ref": "#/definitions/DockerSource" - }, - "git": { - "$ref": "#/definitions/GitSource" - }, - "archive": { - "$ref": "#/definitions/ArchiveSource" - } - } - }, - "RegionalDeploymentDefinition.Type": { - "type": "string", - "enum": [ - "INVALID", - "WEB", - "WORKER" - ], - "default": "INVALID" - }, - "RegionalDeploymentEvent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "when": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "regional_deployment_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "RegionalDeploymentListItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "region": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/RegionalDeployment.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "definition": { - "$ref": "#/definitions/RegionalDeploymentDefinition" - } - } - }, - "RegionalDeploymentMetadata": { - "type": "object" - }, - "RegionalDeploymentVolume": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "the id of the volume" - }, - "path": { - "type": "string", - "title": "the path where the volume is mounted to" - }, - "replica_index": { - "type": "integer", - "format": "int64", - "title": "the replica index to mount the volume to" - } - } - }, - "Route": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64" - }, - "path": { - "type": "string" - } - } - }, - "Scaling": { - "type": "object", - "properties": { - "min": { - "type": "integer", - "format": "int64" - }, - "max": { - "type": "integer", - "format": "int64" - }, - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentScalingTarget" - } - } - } - }, - "TCPHealthCheck": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64", - "title": "The port to use to perform the health check, must be declared in the ports section" - } - } - }, - "CreatePersistentVolumeReply": { - "type": "object", - "properties": { - "volume": { - "$ref": "#/definitions/PersistentVolume" - } - } - }, - "CreatePersistentVolumeRequest": { - "type": "object", - "properties": { - "volume_type": { - "$ref": "#/definitions/PersistentVolumeBackingStore", - "title": "the volume backing store type" - }, - "name": { - "type": "string", - "title": "the volume name" - }, - "region": { - "type": "string", - "title": "the volume region" - }, - "read_only": { - "type": "boolean", - "title": "whether the volume must be set as read only" - }, - "max_size": { - "type": "integer", - "format": "int64", - "title": "the size of the volume (in Gigabyte / GB)" - }, - "snapshot_id": { - "type": "string", - "title": "(optional) the id of the snapshot whence the volume comes from" - } - } - }, - "DeletePersistentVolumeReply": { - "type": "object", - "properties": { - "volume": { - "$ref": "#/definitions/PersistentVolume" - } - } - }, - "GetPersistentVolumeReply": { - "type": "object", - "properties": { - "volume": { - "$ref": "#/definitions/PersistentVolume" - } - } - }, - "ListPersistentVolumeEventsReply": { - "type": "object", - "properties": { - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/PersistentVolumeEvent" - }, - "title": "The collection of events" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "order": { - "type": "string", - "title": "The order in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "ListPersistentVolumesReply": { - "type": "object", - "properties": { - "volumes": { - "type": "array", - "items": { - "$ref": "#/definitions/PersistentVolume" - }, - "title": "The collection of persistent volumes" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "PersistentVolume": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "the identifier for the volume object" - }, - "name": { - "type": "string", - "title": "the volume name" - }, - "snapshot_id": { - "type": "string", - "title": "(optional) the id of the snapshot whence the volume comes from" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "creation timestamp" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "last change timestamp" - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "title": "deletion timestamp" - }, - "organization_id": { - "type": "string", - "title": "the organization to which the volume belongs to" - }, - "service_id": { - "type": "string", - "title": "the service_id to which the volume is eventually bound to" - }, - "region": { - "type": "string", - "title": "the region where the volume exists" - }, - "read_only": { - "type": "boolean", - "title": "whether to mount the volume in read-only mode" - }, - "max_size": { - "type": "integer", - "format": "int64", - "title": "the maximum size of the volume (in Gigabyte / GB)" - }, - "cur_size": { - "type": "integer", - "format": "int64", - "title": "the used amount of space as measured the last time (in Gigabyte / GB)" - }, - "status": { - "$ref": "#/definitions/PersistentVolumeStatus", - "title": "the status of the volume" - }, - "backing_store": { - "$ref": "#/definitions/PersistentVolumeBackingStore", - "title": "the backing store type" - } - }, - "title": "The object that represent a volume to handle persistency for deployments" - }, - "PersistentVolumeBackingStore": { - "type": "string", - "enum": [ - "PERSISTENT_VOLUME_BACKING_STORE_INVALID", - "PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK" - ], - "default": "PERSISTENT_VOLUME_BACKING_STORE_INVALID", - "title": "- PERSISTENT_VOLUME_BACKING_STORE_INVALID: zero value, invalid\n - PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK: the backing store is a locally reachable block device" - }, - "PersistentVolumeEvent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "when": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "persistent_volume_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "PersistentVolumeStatus": { - "type": "string", - "enum": [ - "PERSISTENT_VOLUME_STATUS_INVALID", - "PERSISTENT_VOLUME_STATUS_ATTACHED", - "PERSISTENT_VOLUME_STATUS_DETACHED", - "PERSISTENT_VOLUME_STATUS_DELETING", - "PERSISTENT_VOLUME_STATUS_DELETED" - ], - "default": "PERSISTENT_VOLUME_STATUS_INVALID", - "title": "- PERSISTENT_VOLUME_STATUS_INVALID: zero value, invalid\n - PERSISTENT_VOLUME_STATUS_ATTACHED: the volume is attached to an instance\n - PERSISTENT_VOLUME_STATUS_DETACHED: the volume is free to use\n - PERSISTENT_VOLUME_STATUS_DELETING: the volume will be deleted\n - PERSISTENT_VOLUME_STATUS_DELETED: the volume was deleted" - }, - "UpdatePersistentVolumeReply": { - "type": "object", - "properties": { - "volume": { - "$ref": "#/definitions/PersistentVolume" - } - } - }, - "AzureContainerRegistryConfiguration": { - "type": "object", - "properties": { - "registry_name": { - "type": "string" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "CreateSecret": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/SecretType" - }, - "value": { - "type": "string" - }, - "docker_hub_registry": { - "$ref": "#/definitions/DockerHubRegistryConfiguration" - }, - "private_registry": { - "$ref": "#/definitions/PrivateRegistryConfiguration" - }, - "digital_ocean_registry": { - "$ref": "#/definitions/DigitalOceanRegistryConfiguration" - }, - "github_registry": { - "$ref": "#/definitions/GitHubRegistryConfiguration" - }, - "gitlab_registry": { - "$ref": "#/definitions/GitLabRegistryConfiguration" - }, - "gcp_container_registry": { - "$ref": "#/definitions/GCPContainerRegistryConfiguration" - }, - "azure_container_registry": { - "$ref": "#/definitions/AzureContainerRegistryConfiguration" - } - } - }, - "CreateSecretReply": { - "type": "object", - "properties": { - "secret": { - "$ref": "#/definitions/Secret" - } - } - }, - "DatabaseRolePassword": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "DeleteSecretReply": { - "type": "object" - }, - "DigitalOceanRegistryConfiguration": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "DockerHubRegistryConfiguration": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "GCPContainerRegistryConfiguration": { - "type": "object", - "properties": { - "keyfile_content": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "GetSecretReply": { - "type": "object", - "properties": { - "secret": { - "$ref": "#/definitions/Secret" - } - } - }, - "GitHubRegistryConfiguration": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "GitLabRegistryConfiguration": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "ListSecretsReply": { - "type": "object", - "properties": { - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/Secret" - } - }, - "limit": { - "type": "integer", - "format": "int64" - }, - "offset": { - "type": "integer", - "format": "int64" - }, - "count": { - "type": "integer", - "format": "int64" - } - } - }, - "PrivateRegistryConfiguration": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "RevealSecretReply": { - "type": "object", - "properties": { - "value": {} - } - }, - "Secret": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/SecretType" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "value": { - "type": "string" - }, - "docker_hub_registry": { - "$ref": "#/definitions/DockerHubRegistryConfiguration" - }, - "private_registry": { - "$ref": "#/definitions/PrivateRegistryConfiguration" - }, - "digital_ocean_registry": { - "$ref": "#/definitions/DigitalOceanRegistryConfiguration" - }, - "github_registry": { - "$ref": "#/definitions/GitHubRegistryConfiguration" - }, - "gitlab_registry": { - "$ref": "#/definitions/GitLabRegistryConfiguration" - }, - "gcp_container_registry": { - "$ref": "#/definitions/GCPContainerRegistryConfiguration" - }, - "azure_container_registry": { - "$ref": "#/definitions/AzureContainerRegistryConfiguration" - }, - "database_role_password": { - "$ref": "#/definitions/DatabaseRolePassword" - } - } - }, - "SecretType": { - "type": "string", - "enum": [ - "SIMPLE", - "REGISTRY", - "MANAGED" - ], - "default": "SIMPLE" - }, - "UpdateSecretReply": { - "type": "object", - "properties": { - "secret": { - "$ref": "#/definitions/Secret" - } - } - }, - "GetInstanceReply": { - "type": "object", - "properties": { - "instance": { - "$ref": "#/definitions/Instance" - } - } - }, - "Instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "regional_deployment_id": { - "type": "string" - }, - "allocation_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "replica_index": { - "type": "integer", - "format": "int64" - }, - "region": { - "type": "string" - }, - "datacenter": { - "type": "string" - }, - "hypervisor": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/Instance.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "succeeded_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "xyz_deployment_id": { - "type": "string", - "description": "WARNING: Please don't use the following attribute.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK." - } - } - }, - "Instance.Status": { - "type": "string", - "enum": [ - "ALLOCATING", - "STARTING", - "HEALTHY", - "UNHEALTHY", - "STOPPING", - "STOPPED", - "ERROR", - "SLEEPING" - ], - "default": "ALLOCATING" - }, - "InstanceEvent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "when": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "instance_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "InstanceListItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "regional_deployment_id": { - "type": "string" - }, - "allocation_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "replica_index": { - "type": "integer", - "format": "int64" - }, - "region": { - "type": "string" - }, - "datacenter": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/Instance.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "xyz_deployment_id": { - "type": "string", - "description": "WARNING: Please don't use the following attribute.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK." - } - } - }, - "ListInstanceEventsReply": { - "type": "object", - "properties": { - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/InstanceEvent" - }, - "title": "The collection of events" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "order": { - "type": "string", - "title": "The order in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "ListInstancesReply": { - "type": "object", - "properties": { - "instances": { - "type": "array", - "items": { - "$ref": "#/definitions/InstanceListItem" - }, - "title": "The collection of instances" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - }, - "order": { - "type": "string", - "title": "The order in the request" - } - } - }, - "ArchiveDeploymentMetadata": { - "type": "object", - "properties": { - "last_provisioned_deployment_id": { - "type": "string" - } - } - }, - "CancelDeploymentReply": { - "type": "object" - }, - "DatabaseDeploymentMetadata": { - "type": "object", - "properties": { - "neon_postgres": { - "$ref": "#/definitions/NeonPostgresDatabaseDeploymentMetadata" - } - } - }, - "DatabaseSource": { - "type": "object", - "properties": { - "neon_postgres": { - "$ref": "#/definitions/NeonPostgresDatabase" - } - } - }, - "Deployment": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "allocated_at": { - "type": "string", - "format": "date-time" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "succeeded_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "parent_id": { - "type": "string" - }, - "child_id": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/Deployment.Status" - }, - "metadata": { - "$ref": "#/definitions/DeploymentMetadata" - }, - "definition": { - "$ref": "#/definitions/DeploymentDefinition" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "provisioning_info": { - "$ref": "#/definitions/DeploymentProvisioningInfo" - }, - "database_info": { - "$ref": "#/definitions/DeploymentDatabaseInfo" - }, - "skip_build": { - "type": "boolean" - }, - "role": { - "$ref": "#/definitions/Deployment.Role" - }, - "version": { - "type": "string", - "format": "uint64" - }, - "deployment_group": { - "type": "string" - } - } - }, - "Deployment.Role": { - "type": "string", - "enum": [ - "INVALID", - "ACTIVE", - "UPCOMING", - "CURRENT" - ], - "default": "INVALID" - }, - "Deployment.Status": { - "type": "string", - "enum": [ - "PENDING", - "PROVISIONING", - "SCHEDULED", - "CANCELING", - "CANCELED", - "ALLOCATING", - "STARTING", - "HEALTHY", - "DEGRADED", - "UNHEALTHY", - "STOPPING", - "STOPPED", - "ERRORING", - "ERROR", - "STASHED", - "SLEEPING" - ], - "default": "PENDING" - }, - "DeploymentDatabaseInfo": { - "type": "object", - "properties": { - "neon_postgres": { - "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfo" - } - } - }, - "DeploymentDefinition": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/DeploymentDefinition.Type" - }, - "strategy": { - "$ref": "#/definitions/DeploymentStrategy" - }, - "routes": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentRoute" - } - }, - "ports": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentPort" - } - }, - "proxy_ports": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentProxyPort" - } - }, - "env": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentEnv" - } - }, - "regions": { - "type": "array", - "items": { - "type": "string" - } - }, - "scalings": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentScaling" - } - }, - "instance_types": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentInstanceType" - } - }, - "health_checks": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentHealthCheck" - } - }, - "volumes": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentVolume" - } - }, - "config_files": { - "type": "array", - "items": { - "$ref": "#/definitions/ConfigFile" - } - }, - "skip_cache": { - "type": "boolean" - }, - "docker": { - "$ref": "#/definitions/DockerSource" - }, - "git": { - "$ref": "#/definitions/GitSource" - }, - "database": { - "$ref": "#/definitions/DatabaseSource" - }, - "archive": { - "$ref": "#/definitions/ArchiveSource" - } - }, - "required": [ - "type", - "regions", - "scalings", - "instance_types" - ] - }, - "DeploymentDefinition.Type": { - "type": "string", - "enum": [ - "INVALID", - "WEB", - "WORKER", - "DATABASE" - ], - "default": "INVALID" - }, - "DeploymentEnv": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "secret": { - "type": "string" - } - } - }, - "DeploymentEvent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "when": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "deployment_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "DeploymentInstanceType": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string" - } - } - }, - "DeploymentListItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "allocated_at": { - "type": "string", - "format": "date-time" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "succeeded_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "parent_id": { - "type": "string" - }, - "child_id": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/Deployment.Status" - }, - "metadata": { - "$ref": "#/definitions/DeploymentMetadata" - }, - "definition": { - "$ref": "#/definitions/DeploymentDefinition" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "provisioning_info": { - "$ref": "#/definitions/DeploymentProvisioningInfo" - }, - "database_info": { - "$ref": "#/definitions/DeploymentDatabaseInfo" - }, - "version": { - "type": "string", - "format": "uint64" - }, - "deployment_group": { - "type": "string" - } - } - }, - "DeploymentMetadata": { - "type": "object", - "properties": { - "trigger": { - "$ref": "#/definitions/TriggerDeploymentMetadata" - }, - "database": { - "$ref": "#/definitions/DatabaseDeploymentMetadata" - }, - "git": { - "$ref": "#/definitions/GitDeploymentMetadata" - }, - "archive": { - "$ref": "#/definitions/ArchiveDeploymentMetadata" - }, - "proxy_ports": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentProxyPortMetadata" - } - } - } - }, - "DeploymentNeonPostgresDatabaseInfo": { - "type": "object", - "properties": { - "active_time_seconds": { - "type": "string", - "format": "int64" - }, - "compute_time_seconds": { - "type": "string", - "format": "int64" - }, - "written_data_bytes": { - "type": "string", - "format": "int64" - }, - "data_transfer_bytes": { - "type": "string", - "format": "int64" - }, - "data_storage_bytes_hour": { - "type": "string", - "format": "int64" - }, - "server_host": { - "type": "string" - }, - "server_port": { - "type": "integer", - "format": "int64" - }, - "endpoint_state": { - "type": "string" - }, - "endpoint_last_active": { - "type": "string", - "format": "date-time" - }, - "default_branch_id": { - "type": "string" - }, - "default_branch_name": { - "type": "string" - }, - "default_branch_state": { - "type": "string" - }, - "default_branch_logical_size": { - "type": "string", - "format": "int64" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfoRole" - } - } - } - }, - "DeploymentNeonPostgresDatabaseInfoRole": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "secret_id": { - "type": "string" - } - } - }, - "DeploymentPort": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64" - }, - "protocol": { - "type": "string", - "title": "One of http, http2, tcp" - } - } - }, - "DeploymentProxyPort": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64" - }, - "protocol": { - "$ref": "#/definitions/ProxyPortProtocol" - } - } - }, - "DeploymentProxyPortMetadata": { - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "public_port": { - "type": "integer", - "format": "int64" - }, - "port": { - "type": "integer", - "format": "int64" - }, - "protocol": { - "$ref": "#/definitions/ProxyPortProtocol" - } - } - }, - "DeploymentRoute": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int64" - }, - "path": { - "type": "string" - } - } - }, - "DeploymentScaling": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "min": { - "type": "integer", - "format": "int64" - }, - "max": { - "type": "integer", - "format": "int64" - }, - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentScalingTarget" - } - } - } - }, - "DeploymentVolume": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "the id of the volume" - }, - "path": { - "type": "string", - "title": "the path where the volume is mounted to" - }, - "replica_index": { - "type": "integer", - "format": "int64", - "title": "optionally, explicitly choose the replica index to mount the volume to" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - }, - "title": "scope of the associated" - } - } - }, - "GetDeploymentReply": { - "type": "object", - "properties": { - "deployment": { - "$ref": "#/definitions/Deployment" - } - } - }, - "GetDeploymentScalingReply": { - "type": "object", - "properties": { - "replicas": { - "type": "array", - "items": { - "$ref": "#/definitions/GetDeploymentScalingReplyItem" - }, - "title": "The replicas" - } - } - }, - "GetDeploymentScalingReplyItem": { - "type": "object", - "properties": { - "region": { - "type": "string", - "title": "The replica region" - }, - "replica_index": { - "type": "integer", - "format": "int64" - }, - "instances": { - "type": "array", - "items": { - "$ref": "#/definitions/Instance" - }, - "description": "An array of `active` and `starting` instances.\n\nStatus of the active instance (and if none the most recent instance)\n string status = 4;\n Status message of the active instance (and if none the most recent instance)\n string message = 5;" - } - } - }, - "GitDeploymentMetadata": { - "type": "object", - "properties": { - "last_provisioned_deployment_id": { - "type": "string" - }, - "git_env": { - "$ref": "#/definitions/GitEnvDeploymentMetadata" - } - } - }, - "GitEnvDeploymentMetadata": { - "type": "object", - "properties": { - "sha": { - "type": "string" - }, - "commit_author": { - "type": "string" - }, - "commit_message": { - "type": "string" - } - } - }, - "ListDeploymentEventsReply": { - "type": "object", - "properties": { - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentEvent" - }, - "title": "The collection of events" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "order": { - "type": "string", - "title": "The order in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "ListDeploymentsReply": { - "type": "object", - "properties": { - "deployments": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentListItem" - }, - "title": "The collection of deployments" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "NeonPostgresDatabase": { - "type": "object", - "properties": { - "pg_version": { - "type": "integer", - "format": "int64" - }, - "region": { - "type": "string" - }, - "instance_type": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/NeonPostgresDatabase.NeonRole" - } - }, - "databases": { - "type": "array", - "items": { - "$ref": "#/definitions/NeonPostgresDatabase.NeonDatabase" - } - } - } - }, - "NeonPostgresDatabase.NeonDatabase": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "owner": { - "type": "string" - } - } - }, - "NeonPostgresDatabase.NeonRole": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "secret": { - "type": "string" - } - } - }, - "NeonPostgresDatabaseDeploymentMetadata": { - "type": "object", - "properties": { - "reset_role_passwords": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ProxyPortProtocol": { - "type": "string", - "enum": [ - "tcp" - ], - "default": "tcp" - }, - "TriggerDeploymentMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/TriggerDeploymentMetadata.TriggerType" - }, - "actor": { - "$ref": "#/definitions/TriggerDeploymentMetadata.ActorType" - }, - "git": { - "$ref": "#/definitions/TriggerGitDeploymentMetadata" - } - } - }, - "TriggerDeploymentMetadata.ActorType": { - "type": "string", - "enum": [ - "UNKNOWN_ACTOR", - "USER", - "SYSTEM" - ], - "default": "UNKNOWN_ACTOR" - }, - "TriggerDeploymentMetadata.TriggerType": { - "type": "string", - "enum": [ - "UNKNOWN_TYPE", - "GIT", - "RESUME", - "DATABASE_SYNC" - ], - "default": "UNKNOWN_TYPE" - }, - "TriggerGitDeploymentMetadata": { - "type": "object", - "properties": { - "provider": { - "$ref": "#/definitions/TriggerGitDeploymentMetadata.Provider" - }, - "repository": { - "type": "string" - }, - "branch": { - "type": "string" - }, - "sha": { - "type": "string" - }, - "message": { - "type": "string" - }, - "sender_username": { - "type": "string" - }, - "sender_avatar_url": { - "type": "string" - }, - "sender_profile_url": { - "type": "string" - } - } - }, - "TriggerGitDeploymentMetadata.Provider": { - "type": "string", - "enum": [ - "UNKNOWN", - "GITHUB" - ], - "default": "UNKNOWN" - }, - "ReviewOrganizationCapacityReply": { - "type": "object", - "properties": { - "has_capacity": { - "type": "boolean" - } - } - }, - "ReviewOrganizationCapacityRequest": { - "type": "object", - "properties": { - "plan": { - "type": "string" - }, - "trialing": { - "type": "boolean" - } - } - }, - "CreateStageAttemptReply": { - "type": "object" - }, - "DeclareStageProgressReply": { - "type": "object" - }, - "DeclareStepProgressReply": { - "type": "object" - }, - "App": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "succeeded_at": { - "type": "string", - "format": "date-time" - }, - "paused_at": { - "type": "string", - "format": "date-time" - }, - "resumed_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/App.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "format": "uint64" - }, - "domains": { - "type": "array", - "items": { - "$ref": "#/definitions/Domain" - } - } - } - }, - "App.Status": { - "type": "string", - "enum": [ - "STARTING", - "HEALTHY", - "DEGRADED", - "UNHEALTHY", - "DELETING", - "DELETED", - "PAUSING", - "PAUSED", - "RESUMING" - ], - "default": "STARTING" - }, - "AutoRelease": { - "type": "object", - "properties": { - "groups": { - "type": "array", - "items": { - "$ref": "#/definitions/AutoRelease.Group" - } - } - } - }, - "AutoRelease.Group": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "git_ref": { - "type": "string", - "title": "A git ref to track (.e.g: refs/tags/ or refs/heads/" - }, - "latest_sha": { - "type": "string", - "title": "The last hash that was resolved (used to avoid triggering releases when things haven't changed)" - } - }, - "title": "Configuration extracted from the latest deployment in this deployment_group" - }, - "ComposeReply": { - "type": "object", - "properties": { - "app": { - "$ref": "#/definitions/App" - }, - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/Service" - } - } - } - }, - "CreateApp": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "CreateCompose": { - "type": "object", - "properties": { - "app": { - "$ref": "#/definitions/CreateApp" - }, - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/CreateService" - } - } - } - }, - "CreateService": { - "type": "object", - "properties": { - "app_id": { - "type": "string" - }, - "definition": { - "$ref": "#/definitions/DeploymentDefinition" - } - } - }, - "DesiredDeployment": { - "type": "object", - "properties": { - "groups": { - "type": "array", - "items": { - "$ref": "#/definitions/DesiredDeployment.Group" - } - } - } - }, - "DesiredDeployment.Group": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "deployment_ids": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "Service": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "started_at": { - "type": "string", - "format": "date-time" - }, - "succeeded_at": { - "type": "string", - "format": "date-time" - }, - "paused_at": { - "type": "string", - "format": "date-time" - }, - "resumed_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Service.Type" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/Service.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "format": "uint64" - }, - "active_deployment_id": { - "type": "string" - }, - "latest_deployment_id": { - "type": "string" - }, - "last_provisioned_deployment_id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/ServiceState", - "title": "Legacy stuff" - } - } - }, - "Service.Status": { - "type": "string", - "enum": [ - "STARTING", - "HEALTHY", - "DEGRADED", - "UNHEALTHY", - "DELETING", - "DELETED", - "PAUSING", - "PAUSED", - "RESUMING" - ], - "default": "STARTING" - }, - "Service.Type": { - "type": "string", - "enum": [ - "INVALID_TYPE", - "WEB", - "WORKER", - "DATABASE" - ], - "default": "INVALID_TYPE" - }, - "ServiceState": { - "type": "object", - "properties": { - "desired_deployment": { - "$ref": "#/definitions/DesiredDeployment" - }, - "auto_release": { - "$ref": "#/definitions/AutoRelease" - } - } - }, - "Archive": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The archive id, that can be referenced when creating or updating a service." - }, - "organization_id": { - "type": "string", - "description": "Organization owning the archive." - }, - "upload_url": { - "type": "string", - "description": "The URL where to upload the archive. This URL is signed and can only be\nused to upload the archive until `valid_until`." - }, - "size": { - "type": "string", - "format": "uint64", - "description": "The provisioned space for the archive." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Date of creation of the archive." - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "description": "This field is automatically set by Koyeb when the\narchive is garbage collected." - } - } - }, - "CreateArchive": { - "type": "object", - "properties": { - "size": { - "type": "string", - "format": "uint64", - "description": "How much space to provision for the archive, in bytes." - } - } - }, - "CreateArchiveReply": { - "type": "object", - "properties": { - "archive": { - "$ref": "#/definitions/Archive" - } - } - }, - "AppEvent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "when": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "AppListItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "domains": { - "type": "array", - "items": { - "$ref": "#/definitions/Domain" - } - }, - "status": { - "$ref": "#/definitions/App.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "CreateAppReply": { - "type": "object", - "properties": { - "app": { - "$ref": "#/definitions/App", - "title": "The entity created" - } - } - }, - "DeleteAppReply": { - "type": "object" - }, - "GetAppReply": { - "type": "object", - "properties": { - "app": { - "$ref": "#/definitions/App", - "title": "The App retrieved" - } - } - }, - "ListAppEventsReply": { - "type": "object", - "properties": { - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/AppEvent" - }, - "title": "The collection of events" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "order": { - "type": "string", - "title": "The order in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "ListAppsReply": { - "type": "object", - "properties": { - "apps": { - "type": "array", - "items": { - "$ref": "#/definitions/AppListItem" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "PauseAppReply": { - "type": "object" - }, - "ResumeAppReply": { - "type": "object" - }, - "UpdateApp": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "UpdateAppReply": { - "type": "object", - "properties": { - "app": { - "$ref": "#/definitions/App", - "title": "The entity updated" - } - } - }, - "AutocompleteReply": { - "type": "object", - "properties": { - "secrets": { - "type": "array", - "items": { - "type": "string" - }, - "title": "List of available secrets" - }, - "user_env": { - "type": "array", - "items": { - "type": "string" - }, - "title": "List of available user's environment variables" - }, - "system_env": { - "type": "array", - "items": { - "type": "string" - }, - "title": "List of available system's environment variables" - } - }, - "readOnly": true - }, - "AutocompleteRequest": { - "type": "object", - "properties": { - "definition": { - "$ref": "#/definitions/DeploymentDefinition", - "title": "Deployment definition" - } - } - }, - "CreateServiceReply": { - "type": "object", - "properties": { - "service": { - "$ref": "#/definitions/Service", - "title": "The entity created" - } - } - }, - "DeleteServiceReply": { - "type": "object" - }, - "GetServiceReply": { - "type": "object", - "properties": { - "service": { - "$ref": "#/definitions/Service", - "title": "The Service retrieved" - } - } - }, - "ListServiceEventsReply": { - "type": "object", - "properties": { - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/ServiceEvent" - }, - "title": "The collection of events" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "order": { - "type": "string", - "title": "The order in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "ListServicesReply": { - "type": "object", - "properties": { - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/ServiceListItem" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "PauseServiceReply": { - "type": "object" - }, - "RedeployReply": { - "type": "object", - "properties": { - "deployment": { - "$ref": "#/definitions/Deployment", - "title": "The entity updated" - } - } - }, - "RedeployRequest.Info": { - "type": "object", - "properties": { - "deployment_group": { - "type": "string" - }, - "sha": { - "type": "string" - }, - "use_cache": { - "type": "boolean" - }, - "skip_build": { - "type": "boolean", - "description": "If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead.\nThe call fails if no previous successful builds happened." - } - } - }, - "ResumeServiceReply": { - "type": "object" - }, - "ServiceEvent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "when": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "ServiceListItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Service.Type" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/Service.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "format": "uint64", - "title": "A version updated whenever this state changes (useful for caching)" - }, - "state": { - "$ref": "#/definitions/ServiceState" - }, - "active_deployment_id": { - "type": "string" - }, - "latest_deployment_id": { - "type": "string" - } - } - }, - "UpdateService": { - "type": "object", - "properties": { - "definition": { - "$ref": "#/definitions/DeploymentDefinition" - }, - "metadata": { - "$ref": "#/definitions/DeploymentMetadata" - }, - "skip_build": { - "type": "boolean", - "description": "If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead.\nThe call fails if no previous successful builds happened." - }, - "save_only": { - "type": "boolean", - "title": "If set, do not trigger a deployment, only store the new settings" - } - } - }, - "UpdateServiceReply": { - "type": "object", - "properties": { - "service": { - "$ref": "#/definitions/Service", - "title": "The entity updated" - } - } - }, - "CreateSnapshotReply": { - "type": "object", - "properties": { - "snapshot": { - "$ref": "#/definitions/Snapshot" - } - } - }, - "CreateSnapshotRequest": { - "type": "object", - "properties": { - "parent_volume_id": { - "type": "string", - "title": "The id of the volume to snapshot" - }, - "name": { - "type": "string", - "title": "The name of the snapshot" - } - } - }, - "DeleteSnapshotReply": { - "type": "object", - "properties": { - "snapshot": { - "$ref": "#/definitions/Snapshot" - } - } - }, - "GetSnapshotReply": { - "type": "object", - "properties": { - "snapshot": { - "$ref": "#/definitions/Snapshot" - } - } - }, - "ListSnapshotsReply": { - "type": "object", - "properties": { - "snapshots": { - "type": "array", - "items": { - "$ref": "#/definitions/Snapshot" - }, - "title": "The collection of snapshots" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "Snapshot": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "the identifier of the snapshot object" - }, - "name": { - "type": "string", - "title": "the snapshot name" - }, - "size": { - "type": "integer", - "format": "int64", - "title": "the original volume size" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "creation timestamp" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "last change timestamp" - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "title": "deletion timestamp" - }, - "organization_id": { - "type": "string", - "title": "the organization to which the snapshot belongs to" - }, - "parent_volume_id": { - "type": "string", - "title": "the volume from which the snapshot has been created" - }, - "region": { - "type": "string", - "title": "the region where the snapshot resides, if any" - }, - "status": { - "$ref": "#/definitions/SnapshotStatus", - "title": "the status of the snapshot" - }, - "type": { - "$ref": "#/definitions/SnapshotType", - "title": "the type of snapshot (can be local or remote)" - } - }, - "description": "The object that represents a snapshot. It can either be local, on a node, or remote, in a cold storage." - }, - "SnapshotStatus": { - "type": "string", - "enum": [ - "SNAPSHOT_STATUS_INVALID", - "SNAPSHOT_STATUS_CREATING", - "SNAPSHOT_STATUS_AVAILABLE", - "SNAPSHOT_STATUS_MIGRATING", - "SNAPSHOT_STATUS_DELETING", - "SNAPSHOT_STATUS_DELETED" - ], - "default": "SNAPSHOT_STATUS_INVALID", - "title": "- SNAPSHOT_STATUS_INVALID: zero value, invalid\n - SNAPSHOT_STATUS_CREATING: the snapshot is being created\n - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available\n - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated\n - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted\n - SNAPSHOT_STATUS_DELETED: the snapshot is deleted" - }, - "SnapshotType": { - "type": "string", - "enum": [ - "SNAPSHOT_TYPE_INVALID", - "SNAPSHOT_TYPE_LOCAL", - "SNAPSHOT_TYPE_REMOTE" - ], - "default": "SNAPSHOT_TYPE_INVALID", - "title": "- SNAPSHOT_TYPE_INVALID: zero value, invalid\n - SNAPSHOT_TYPE_LOCAL: the snapshot is local to the machine\n - SNAPSHOT_TYPE_REMOTE: the snapshot is remote in a cold storage" - }, - "UpdateSnapshotReply": { - "type": "object", - "properties": { - "snapshot": { - "$ref": "#/definitions/Snapshot" - } - } - }, - "RedeemCouponReply": { - "type": "object" - }, - "RedeemCouponRequest": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - } - }, - "AppsSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Total number of apps" - }, - "by_status": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of apps grouped by status" - } - } - }, - "DomainsSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Total number of domains" - }, - "by_status": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of domains grouped by status" - } - } - }, - "GetOrganizationSummaryReply": { - "type": "object", - "properties": { - "summary": { - "$ref": "#/definitions/OrganizationSummary", - "title": "Organization usage summary" - } - } - }, - "InstancesSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Total number of instances" - }, - "by_type": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of instances grouped by type" - } - } - }, - "MembersSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Number of members" - }, - "invitations_by_status": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of invitations grouped by status" - } - } - }, - "NeonPostgresSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Total number of databases" - }, - "by_instance_type": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of databases grouped by instance type" - } - } - }, - "OrganizationSummary": { - "type": "object", - "properties": { - "organization_id": { - "type": "string" - }, - "instances": { - "$ref": "#/definitions/InstancesSummary" - }, - "apps": { - "$ref": "#/definitions/AppsSummary" - }, - "services": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ServiceSummary" - }, - "title": "Number of services grouped by type" - }, - "domains": { - "$ref": "#/definitions/DomainsSummary" - }, - "secrets": { - "$ref": "#/definitions/SecretsSummary" - }, - "neon_postgres": { - "$ref": "#/definitions/NeonPostgresSummary" - }, - "members": { - "$ref": "#/definitions/MembersSummary" - } - } - }, - "SecretsSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Total number of secrets" - }, - "by_type": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of secrets grouped by type" - } - } - }, - "ServiceSummary": { - "type": "object", - "properties": { - "total": { - "type": "string", - "format": "int64", - "title": "Total number of services" - }, - "by_status": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - }, - "title": "Number of services grouped by status" - } - } - }, - "GetSubscriptionReply": { - "type": "object", - "properties": { - "subscription": { - "$ref": "#/definitions/Subscription" - } - } - }, - "Subscription": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "version": { - "type": "string", - "format": "uint64" - }, - "organization_id": { - "type": "string" - }, - "stripe_subscription_id": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/Subscription.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "has_pending_update": { - "type": "boolean" - }, - "stripe_pending_invoice_id": { - "type": "string" - }, - "terminate_at": { - "type": "string", - "format": "date-time" - }, - "canceled_at": { - "type": "string", - "format": "date-time" - }, - "terminated_at": { - "type": "string", - "format": "date-time" - }, - "current_period_start": { - "type": "string", - "format": "date-time" - }, - "current_period_end": { - "type": "string", - "format": "date-time" - }, - "currency": { - "type": "string" - }, - "amount_payable": { - "type": "string", - "format": "int64" - }, - "amount_paid": { - "type": "string", - "format": "int64" - }, - "amount_remaining": { - "type": "string", - "format": "int64" - }, - "payment_failure": { - "$ref": "#/definitions/Subscription.PaymentFailure" - }, - "trialing": { - "type": "boolean" - }, - "trial_ends_at": { - "type": "string", - "format": "date-time" - }, - "trial_max_spend": { - "type": "string", - "format": "int64" - }, - "current_spend": { - "type": "string", - "format": "int64" - } - } - }, - "Subscription.PaymentFailure": { - "type": "object", - "properties": { - "failed_at": { - "type": "string", - "format": "date-time" - }, - "next_attempt": { - "type": "string", - "format": "date-time" - }, - "attempt_count": { - "type": "string", - "format": "int64" - }, - "error_code": { - "type": "string" - }, - "error_reason": { - "type": "string" - }, - "error_type": { - "type": "string" - }, - "error_message": { - "type": "string" - }, - "payment_method_required": { - "type": "boolean" - }, - "redirect_url": { - "type": "string" - }, - "stripe_sdk": { - "$ref": "#/definitions/Subscription.PaymentFailure.StripeSDK" - } - } - }, - "Subscription.PaymentFailure.StripeSDK": { - "type": "object", - "properties": { - "client_secret_key": { - "type": "string" - }, - "raw_json": { - "type": "string" - } - } - }, - "Subscription.Status": { - "type": "string", - "enum": [ - "INVALID", - "CREATED", - "ACTIVE", - "WARNING", - "URGENT", - "CANCELING", - "CANCELED", - "TERMINATING", - "TERMINATED" - ], - "default": "INVALID" - }, - "DeleteUserReply": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - } - } - }, - "User": { - "type": "object", - "example": { - "id": "78352123-a06f-4ec2-81ed-27a056725385", - "email": "john@snow.com", - "name": "John Snow", - "avatar_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000", - "is_admin": false, - "is_test": true, - "two_factor_authentication": false, - "last_login": "0001-01-01T00:00:00Z", - "last_login_id": "10.1.1.1", - "updated_at": "0001-01-01T00:00:00Z", - "created_at": "0001-01-01T00:00:00Z", - "newsletter_subscribed": true, - "email_validated": true - }, - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "avatar_url": { - "type": "string" - }, - "two_factor_authentication": { - "type": "boolean" - }, - "last_login": { - "type": "string", - "format": "date-time" - }, - "last_login_ip": { - "type": "string" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "newsletter_subscribed": { - "type": "boolean" - }, - "github_id": { - "type": "string" - }, - "github_user": { - "type": "string" - }, - "flags": { - "type": "array", - "items": { - "$ref": "#/definitions/UserFlags" - } - }, - "name": { - "type": "string" - }, - "email_validated": { - "type": "boolean" - }, - "trialed": { - "type": "boolean" - } - }, - "title": "Represent a User" - }, - "UserFlags": { - "type": "string", - "enum": [ - "ADMIN", - "TEST", - "RESTRICTED", - "ACTIVE", - "BETA", - "MAX_ORGANIZATIONS_25", - "MAX_ORGANIZATIONS_100", - "MAX_ORGANIZATIONS_1000", - "MAX_ORGANIZATIONS_10000", - "MAX_ORGANIZATIONS_100000", - "MAX_ORGANIZATIONS_1000000", - "PARTNER_CSP", - "IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX" - ], - "default": "ADMIN", - "title": "- ADMIN: A user is an admin user\n - TEST: A user is a test user\n - RESTRICTED: Whether this account as restricted access\n - ACTIVE: Whether this account is active\n - BETA: Account in beta program\n - MAX_ORGANIZATIONS_25: User can create this much organizations, overriding the default amount\n - PARTNER_CSP: User can create sub-organizations\n - IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX: User can bypass organization name reservations rules" - }, - "DomainLoadBalancerQuotas": { - "type": "object", - "properties": { - "max_koyeb": { - "type": "integer", - "format": "int64" - } - } - }, - "GetQuotasReply": { - "type": "object", - "properties": { - "quotas": { - "$ref": "#/definitions/Quotas" - } - } - }, - "PersistentVolumeQuotas": { - "type": "object", - "properties": { - "max_total_size": { - "type": "integer", - "format": "int64", - "description": "MaxTotalSize for all volumes on a region (in Gigabyte / GB)." - }, - "max_volume_size": { - "type": "integer", - "format": "int64", - "description": "MaxVolumeSize for one volume (in Gigabyte / GB)." - }, - "max_per_instance_size": { - "type": "integer", - "format": "int64", - "description": "MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB)." - } - } - }, - "Quotas": { - "type": "object", - "properties": { - "apps": { - "type": "string", - "format": "int64" - }, - "services": { - "type": "string", - "format": "int64" - }, - "domains": { - "type": "string", - "format": "int64", - "title": "Deprecated, use custom_domains instead" - }, - "services_by_app": { - "type": "string", - "format": "int64" - }, - "service_provisioning_concurrency": { - "type": "string", - "format": "int64" - }, - "memory_mb": { - "type": "string", - "format": "int64" - }, - "instance_types": { - "type": "array", - "items": { - "type": "string" - } - }, - "regions": { - "type": "array", - "items": { - "type": "string" - } - }, - "max_organization_members": { - "type": "string", - "format": "int64" - }, - "max_instances_by_type": { - "type": "object", - "additionalProperties": { - "type": "string", - "format": "int64" - } - }, - "persistent_volumes_by_region": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/PersistentVolumeQuotas" - } - }, - "custom_domains": { - "type": "string", - "format": "int64" - }, - "domains_load_balancer": { - "$ref": "#/definitions/DomainLoadBalancerQuotas" - }, - "metrics_retention": { - "type": "integer", - "format": "int32", - "title": "Time in days" - }, - "logs_retention": { - "type": "integer", - "format": "int32", - "title": "Time in days" - }, - "access_reserved_subdomains": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The mapping between reserved_subdomain names and their value is in the code" - }, - "proxy_ports": { - "type": "integer", - "format": "int64" - }, - "scale_to_zero": { - "$ref": "#/definitions/ScaleToZeroQuotas" - }, - "archives": { - "type": "string", - "format": "int64" - } - } - }, - "ScaleToZeroQuotas": { - "type": "object", - "properties": { - "is_deep_sleep_enabled": { - "type": "boolean", - "title": "deep sleep limits" - }, - "deep_sleep_idle_delay_min": { - "type": "integer", - "format": "int64" - }, - "deep_sleep_idle_delay_max": { - "type": "integer", - "format": "int64" - }, - "is_light_sleep_enabled": { - "type": "boolean", - "title": "light sleep limits" - }, - "light_sleep_idle_delay_min": { - "type": "integer", - "format": "int64" - }, - "light_sleep_idle_delay_max": { - "type": "integer", - "format": "int64" - } - } - }, - "ConfirmOrganizationActionReply": { - "type": "object" - }, - "LoginReply": { - "type": "object", - "properties": { - "token": { - "$ref": "#/definitions/Token" - } - } - }, - "LoginRequest": { - "type": "object", - "example": { - "email": "john@snow.com", - "password": "..." - }, - "properties": { - "email": { - "type": "string", - "title": "User email" - }, - "password": { - "type": "string", - "title": "User password" - }, - "organization_id": { - "type": "string", - "title": "(Optional) Login into this organization" - } - } - }, - "LogoutReply": { - "type": "object" - }, - "Token": { - "type": "object", - "example": { - "id": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", - "expires": "2022-09-08T14:00:00Z", - "user_id": "996d7822-6b58-11e9-956f-32001b70f000", - "organization_id": "9f33b2c6-6b58-11e9-883c-32001b70f000" - }, - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } - }, - "AcceptOrganizationInvitationReply": { - "type": "object", - "properties": { - "invitation": { - "$ref": "#/definitions/OrganizationInvitation", - "title": "The organization invitation accepted" - } - } - }, - "Action": { - "type": "string", - "enum": [ - "signin", - "signup", - "register" - ], - "default": "signin" - }, - "Budget": { - "type": "object", - "properties": { - "amount": { - "type": "string", - "format": "int64" - }, - "thresholds": { - "type": "array", - "items": { - "type": "string", - "format": "int64" - } - } - } - }, - "CannyAuthReply": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - } - }, - "CannyAuthRequest": { - "type": "object" - }, - "ClearIdenfyVerificationResultReply": { - "type": "object" - }, - "ClearIdenfyVerificationResultRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "organization_id": { - "type": "string" - } - } - }, - "CreateAccessTokenReply": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - } - }, - "CreateAccountRequest": { - "type": "object", - "example": { - "email": "john@snow.com", - "password": "..." - }, - "properties": { - "email": { - "type": "string" - }, - "password": { - "type": "string" - }, - "name": { - "type": "string" - }, - "captcha": { - "type": "string" - } - }, - "description": "Create new account", - "title": "Create new account", - "required": [ - "email", - "password" - ] - }, - "CreateBudgetReply": { - "type": "object", - "properties": { - "budget": { - "$ref": "#/definitions/Budget" - } - } - }, - "CreateOrganizationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "CreateOrganizationRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "DeactivateOrganizationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "DeclineOrganizationInvitationReply": { - "type": "object", - "properties": { - "invitation": { - "$ref": "#/definitions/OrganizationInvitation", - "title": "The organization invitation declined" - } - } - }, - "DeleteBudgetReply": { - "type": "object" - }, - "DeleteOrganizationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "DiscourseAuthReply": { - "type": "object", - "properties": { - "sso": { - "type": "string" - }, - "sig": { - "type": "string" - } - } - }, - "DiscourseAuthRequest": { - "type": "object", - "properties": { - "payload": { - "type": "string" - }, - "sig": { - "type": "string" - } - } - }, - "GetBudgetReply": { - "type": "object", - "properties": { - "budget": { - "$ref": "#/definitions/Budget" - } - } - }, - "GetGithubInstallationReply": { - "type": "object", - "properties": { - "installation_id": { - "type": "string" - }, - "installation_url": { - "type": "string" - }, - "name": { - "type": "string" - }, - "avatar_url": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/kgitproxy.GithubInstallation.Status" - }, - "installed_at": { - "type": "string", - "format": "date-time" - }, - "suspended_at": { - "type": "string", - "format": "date-time" - }, - "indexing_status": { - "$ref": "#/definitions/kgitproxy.IndexingStatus" - }, - "indexed_repositories": { - "type": "integer", - "format": "int64" - }, - "total_repositories": { - "type": "integer", - "format": "int64" - } - } - }, - "GetIdenfyTokenReply": { - "type": "object", - "properties": { - "auth_token": { - "type": "string" - } - } - }, - "GetOAuthOptionsReply": { - "type": "object", - "properties": { - "oauth_providers": { - "type": "array", - "items": { - "$ref": "#/definitions/OAuthProvider" - } - } - }, - "description": "A list of providers which you can use for single sign-on." - }, - "GetOrganizationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "GetUserOrganizationInvitationReply": { - "type": "object", - "properties": { - "invitation": { - "$ref": "#/definitions/OrganizationInvitation" - } - } - }, - "GetUserSettingsReply": { - "type": "object", - "properties": { - "settings": { - "$ref": "#/definitions/UserSettings" - } - } - }, - "GithubInstallationReply": { - "type": "object", - "properties": { - "app_name": { - "type": "string", - "title": "The github app name" - }, - "app_id": { - "type": "string", - "format": "int64", - "title": "The github app id" - }, - "url": { - "type": "string", - "title": "The url to start the installation flow" - }, - "state": { - "type": "string", - "title": "The state required by the protocol, it is only valid 10 minutes and encodes information about the type of flow" - } - } - }, - "GithubInstallationRequest": { - "type": "object", - "properties": { - "metadata": { - "type": "string", - "title": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" - } - } - }, - "HasUnpaidInvoicesReply": { - "type": "object", - "properties": { - "has_unpaid_invoices": { - "type": "boolean" - } - } - }, - "InviteUserRequest": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "ListUserOrganizationInvitationsReply": { - "type": "object", - "properties": { - "invitations": { - "type": "array", - "items": { - "$ref": "#/definitions/OrganizationInvitation" - }, - "title": "The collection of organization invitations" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "ListUserOrganizationsReply": { - "type": "object", - "properties": { - "organizations": { - "type": "array", - "items": { - "$ref": "#/definitions/Organization" - }, - "title": "The collection of organizations" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "has_next": { - "type": "boolean", - "title": "If there is more items after in the collection" - } - } - }, - "LoginMethodReply": { - "type": "object", - "properties": { - "method": { - "$ref": "#/definitions/LoginMethodReply.Method" - } - } - }, - "LoginMethodReply.Method": { - "type": "string", - "enum": [ - "KOYEB", - "WORKOS" - ], - "default": "KOYEB" - }, - "ManageReply": { - "type": "object", - "properties": { - "url": { - "type": "string" - } - } - }, - "NextInvoiceReply": { - "type": "object", - "properties": { - "stripe_invoice": { - "type": "object" - }, - "lines": { - "type": "array", - "items": { - "$ref": "#/definitions/NextInvoiceReply.Line" - } - }, - "discounts": { - "type": "array", - "items": { - "$ref": "#/definitions/NextInvoiceReply.Discount" - } - } - } - }, - "NextInvoiceReply.Discount": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/NextInvoiceReply.Discount.Type" - }, - "name": { - "type": "string" - }, - "amount": { - "type": "string", - "format": "int64" - } - } - }, - "NextInvoiceReply.Discount.Type": { - "type": "string", - "enum": [ - "PERCENT_OFF", - "AMOUNT_OFF" - ], - "default": "PERCENT_OFF" - }, - "NextInvoiceReply.Line": { - "type": "object", - "properties": { - "amount_excluding_tax": { - "type": "integer", - "format": "int32" - }, - "period": { - "$ref": "#/definitions/NextInvoiceReply.Line.Period" - }, - "plan_nickname": { - "type": "string" - }, - "price": { - "$ref": "#/definitions/NextInvoiceReply.Line.Price" - }, - "quantity": { - "type": "integer", - "format": "int32" - } - } - }, - "NextInvoiceReply.Line.Period": { - "type": "object", - "properties": { - "start": { - "type": "string", - "format": "date-time" - }, - "end": { - "type": "string", - "format": "date-time" - } - } - }, - "NextInvoiceReply.Line.Price": { - "type": "object", - "properties": { - "unit_amount_decimal": { - "type": "number", - "format": "double" - } - } - }, - "OAuthCallbackReply": { - "type": "object", - "properties": { - "token": { - "$ref": "#/definitions/Token", - "title": "A jwt token to be used for session" - } - } - }, - "OAuthCallbackRequest": { - "type": "object", - "properties": { - "state": { - "type": "string", - "title": "The state created at the origin of the OAuth flow" - }, - "code": { - "type": "string", - "title": "The code returned by the OAuth provider" - }, - "setup_action": { - "type": "string", - "description": "setup_action is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set." - }, - "installation_id": { - "type": "string", - "description": "installation_id is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set." - } - } - }, - "OAuthProvider": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The name of the provider (.e.g github, google)" - }, - "url": { - "type": "string", - "title": "The URL to call to initiate the OAuth flow" - }, - "state": { - "type": "string", - "title": "The OAuth state required by the protocol, it is only valid 10 minutes and encodes information about the type of flow" - } - } - }, - "Organization": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "address1": { - "type": "string" - }, - "address2": { - "type": "string" - }, - "city": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "state": { - "type": "string" - }, - "country": { - "type": "string" - }, - "company": { - "type": "boolean" - }, - "vat_number": { - "type": "string" - }, - "billing_name": { - "type": "string" - }, - "billing_email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "plan": { - "$ref": "#/definitions/Plan" - }, - "plan_updated_at": { - "type": "string", - "format": "date-time" - }, - "has_payment_method": { - "type": "boolean" - }, - "subscription_id": { - "type": "string" - }, - "current_subscription_id": { - "type": "string" - }, - "latest_subscription_id": { - "type": "string" - }, - "signup_qualification": { - "type": "object" - }, - "status": { - "$ref": "#/definitions/Organization.Status" - }, - "status_message": { - "$ref": "#/definitions/OrganizationDetailedStatus" - }, - "deactivation_reason": { - "$ref": "#/definitions/Organization.DeactivationReason" - }, - "verified": { - "type": "boolean" - }, - "qualifies_for_hobby23": { - "type": "boolean" - }, - "reprocess_after": { - "type": "string", - "format": "date-time" - }, - "trialing": { - "type": "boolean" - }, - "trial_starts_at": { - "type": "string", - "format": "date-time" - }, - "trial_ends_at": { - "type": "string", - "format": "date-time" - }, - "email_domain_allowlist": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "Represent an Organization" - }, - "Organization.DeactivationReason": { - "type": "string", - "enum": [ - "INVALID", - "REQUESTED_BY_OWNER", - "SUBSCRIPTION_TERMINATION", - "LOCKED_BY_ADMIN", - "VERIFICATION_FAILED", - "TRIAL_DID_NOT_CONVERT" - ], - "default": "INVALID" - }, - "Organization.Status": { - "type": "string", - "enum": [ - "WARNING", - "LOCKED", - "ACTIVE", - "DEACTIVATING", - "DEACTIVATED", - "DELETING", - "DELETED" - ], - "default": "WARNING" - }, - "OrganizationDetailedStatus": { - "type": "string", - "enum": [ - "NEW", - "EMAIL_NOT_VALIDATED", - "BILLING_INFO_MISSING", - "LOCKED", - "PAYMENT_FAILURE", - "VALID", - "PENDING_VERIFICATION", - "VERIFICATION_FAILED", - "REVIEWING_ACCOUNT", - "PLAN_UPGRADE_REQUIRED" - ], - "default": "NEW" - }, - "OrganizationInvitation": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "role": { - "$ref": "#/definitions/UserRole.Role" - }, - "status": { - "$ref": "#/definitions/OrganizationInvitation.Status" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "organization_id": { - "type": "string" - }, - "organization": { - "$ref": "#/definitions/PublicOrganization" - }, - "invitee_id": { - "type": "string" - }, - "invitee": { - "$ref": "#/definitions/PublicUser" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/PublicUser" - } - } - }, - "OrganizationInvitation.Status": { - "type": "string", - "enum": [ - "INVALID", - "PENDING", - "ACCEPTED", - "REFUSED", - "EXPIRED" - ], - "default": "INVALID" - }, - "Plan": { - "type": "string", - "enum": [ - "hobby", - "starter", - "startup", - "business", - "enterprise", - "internal", - "hobby23", - "no_plan", - "pro", - "scale", - "partner_csp", - "partner_csp_unit" - ], - "default": "hobby" - }, - "PublicOrganization": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "plan": { - "$ref": "#/definitions/Plan" - }, - "status": { - "$ref": "#/definitions/Organization.Status" - } - } - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "avatar_url": { - "type": "string" - }, - "github_id": { - "type": "string" - }, - "github_user": { - "type": "string" - } - } - }, - "ReactivateOrganizationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "ResendEmailValidationReply": { - "type": "object" - }, - "ResendEmailValidationRequest": { - "type": "object" - }, - "ResetPasswordReply": { - "type": "object" - }, - "ResetPasswordRequest": { - "type": "object", - "example": { - "email": "john@snow.com" - }, - "properties": { - "email": { - "type": "string" - } - } - }, - "UnscopeOrganizationTokenRequest": { - "type": "object" - }, - "UpdateBudgetReply": { - "type": "object", - "properties": { - "budget": { - "$ref": "#/definitions/Budget" - } - } - }, - "UpdateOrganizationPlanReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "UpdateOrganizationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "UpdatePasswordRequest": { - "type": "object", - "example": { - "id": "...", - "password": "..." - }, - "properties": { - "id": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "UpdateUserRequest.UserUpdateBody": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "current_password": { - "type": "string" - }, - "password": { - "type": "string" - }, - "newsletter_subscribed": { - "type": "boolean" - }, - "name": { - "type": "string" - } - } - }, - "UpdateUserSettingsReply": { - "type": "object", - "properties": { - "settings": { - "$ref": "#/definitions/UserSettings" - } - } - }, - "UpdateUserSettingsRequest": { - "type": "object", - "properties": { - "failed_deployment_email_notification": { - "type": "boolean", - "description": "(Optional) Toggle failed deployment email notification." - } - } - }, - "UpsertSignupQualificationReply": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/Organization" - } - } - }, - "UserReply": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - } - } - }, - "UserRole.Role": { - "type": "string", - "enum": [ - "INVALID", - "OWNER" - ], - "default": "INVALID" - }, - "UserSettings": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "failed_deployment_email_notification": { - "type": "boolean" - } - } - }, - "Empty": { - "type": "object" - }, - "kgitproxy.GithubInstallation.Status": { - "type": "string", - "enum": [ - "INVALID", - "INSTALLED", - "SUSPENDED", - "DELETED" - ], - "default": "INVALID" - }, - "kgitproxy.IndexingStatus": { - "type": "string", - "enum": [ - "INVALID_INDEXING_STATUS", - "NOT_STARTED", - "IN_PROGRESS", - "COMPLETED" - ], - "default": "INVALID_INDEXING_STATUS" - }, - "ConfirmPaymentAuthorizationReply": { - "type": "object", - "properties": { - "payment_method": { - "$ref": "#/definitions/PaymentMethod" - } - } - }, - "CreatePaymentAuthorizationReply": { - "type": "object", - "properties": { - "payment_method": { - "$ref": "#/definitions/PaymentMethod" - } - } - }, - "CreatePaymentAuthorizationRequest": { - "type": "object" - }, - "DeletePaymentMethodReply": { - "type": "object" - }, - "GetPaymentMethodReply": { - "type": "object", - "properties": { - "payment_method": { - "$ref": "#/definitions/PaymentMethod" - } - } - }, - "ListPaymentMethodsReply": { - "type": "object", - "properties": { - "payment_methods": { - "type": "array", - "items": { - "$ref": "#/definitions/PaymentMethod" - }, - "title": "The collection of payment methods" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "PaymentMethod": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "version": { - "type": "string", - "format": "uint64" - }, - "organization_id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/PaymentMethod.Status" - }, - "messages": { - "type": "array", - "items": { - "type": "string" - } - }, - "stripe_payment_method_id": { - "type": "string" - }, - "authorization_verified_at": { - "type": "string", - "format": "date-time" - }, - "authorization_canceled_at": { - "type": "string", - "format": "date-time" - }, - "authorization_stripe_payment_intent_id": { - "type": "string" - }, - "authorization_stripe_payment_intent_client_secret": { - "type": "string" - }, - "card_brand": { - "type": "string" - }, - "card_country": { - "type": "string" - }, - "card_funding": { - "type": "string" - }, - "card_fingerprint": { - "type": "string" - }, - "card_last_digits": { - "type": "string" - }, - "card_expiration_month": { - "type": "integer", - "format": "int64" - }, - "card_expiration_year": { - "type": "integer", - "format": "int64" - } - } - }, - "PaymentMethod.Status": { - "type": "string", - "enum": [ - "INVALID", - "CREATED", - "AUTHORIZED", - "DECLINED", - "CANCELED", - "EXPIRED", - "UNCHECKED" - ], - "default": "INVALID" - }, - "CreateOrganizationInvitationReply": { - "type": "object", - "properties": { - "invitation": { - "$ref": "#/definitions/OrganizationInvitation", - "title": "The organization invitation sent" - } - } - }, - "CreateOrganizationInvitationRequest": { - "type": "object", - "properties": { - "email": { - "type": "string", - "title": "The email of the person to invite" - } - } - }, - "DeleteOrganizationInvitationReply": { - "type": "object" - }, - "GetOrganizationInvitationReply": { - "type": "object", - "properties": { - "invitation": { - "$ref": "#/definitions/OrganizationInvitation" - } - } - }, - "ListOrganizationInvitationsReply": { - "type": "object", - "properties": { - "invitations": { - "type": "array", - "items": { - "$ref": "#/definitions/OrganizationInvitation" - }, - "title": "The collection of organization invitations" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "ResendOrganizationInvitationReply": { - "type": "object", - "properties": { - "invitation": { - "$ref": "#/definitions/OrganizationInvitation", - "title": "The organization invitation resent" - } - } - }, - "CreateCredential": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "Credential name" - }, - "description": { - "type": "string", - "title": "Credential description" - }, - "type": { - "$ref": "#/definitions/Credential.Type", - "title": "Credential type" - }, - "organization_id": { - "type": "string", - "title": "Organization id for user credential" - } - } - }, - "CreateCredentialReply": { - "type": "object", - "properties": { - "credential": { - "$ref": "#/definitions/Credential" - } - } - }, - "Credential": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Credential.Type" - }, - "name": { - "type": "string" - }, - "token": { - "type": "string" - }, - "description": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } - }, - "Credential.Type": { - "type": "string", - "enum": [ - "INVALID", - "USER", - "ORGANIZATION" - ], - "default": "INVALID" - }, - "DeleteCredentialReply": { - "type": "object" - }, - "GetCredentialReply": { - "type": "object", - "properties": { - "credential": { - "$ref": "#/definitions/Credential" - } - } - }, - "ListCredentialsReply": { - "type": "object", - "properties": { - "credentials": { - "type": "array", - "items": { - "$ref": "#/definitions/Credential" - } - }, - "limit": { - "type": "integer", - "format": "int64" - }, - "offset": { - "type": "integer", - "format": "int64" - }, - "count": { - "type": "integer", - "format": "int64" - } - } - }, - "UpdateCredentialReply": { - "type": "object", - "properties": { - "credential": { - "$ref": "#/definitions/Credential" - } - } - }, - "ListOrganizationMembersReply": { - "type": "object", - "properties": { - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/OrganizationMember" - }, - "title": "The collection of organization members" - }, - "limit": { - "type": "integer", - "format": "int64", - "title": "The limit in the request" - }, - "offset": { - "type": "integer", - "format": "int64", - "title": "The offset in the request" - }, - "count": { - "type": "integer", - "format": "int64", - "title": "The total number of items" - } - } - }, - "OrganizationMember": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "role": { - "$ref": "#/definitions/UserRole.Role" - }, - "status": { - "$ref": "#/definitions/OrganizationMember.Status" - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "organization": { - "$ref": "#/definitions/PublicOrganization" - } - } - }, - "OrganizationMember.Status": { - "type": "string", - "enum": [ - "INVALID", - "ACTIVE", - "DELETED" - ], - "default": "INVALID" - }, - "RemoveOrganizationMemberReply": { - "type": "object", - "properties": { - "member": { - "$ref": "#/definitions/OrganizationMember" - } - } - }, - "GetIntercomProfileReply": { - "type": "object", - "properties": { - "hash": { - "type": "string" - } - } - }, - "ksearch.App": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "ksearch.GlobalDeployment": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - } - } - }, - "ksearch.Instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "allocation_id": { - "type": "string" - } - } - }, - "ksearch.Organization": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "ksearch.RegionalDeployment": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "service_id": { - "type": "string" - }, - "region": { - "type": "string" - } - } - }, - "ksearch.SearchReply": { - "type": "object", - "properties": { - "organizations": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.Organization" - } - }, - "users": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.User" - } - }, - "apps": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.App" - } - }, - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.Service" - } - }, - "global_deployments": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.GlobalDeployment" - } - }, - "regional_deployments": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.RegionalDeployment" - } - }, - "instances": { - "type": "array", - "items": { - "$ref": "#/definitions/ksearch.Instance" - } - } - } - }, - "ksearch.Service": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "app_id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "ksearch.User": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "github_user": { - "type": "string" - } - } - } - }, - "securityDefinitions": { - "Bearer": { - "type": "apiKey", - "name": "Authorization", - "in": "header" - } - } -} \ No newline at end of file + +301 Moved Permanently + +

301 Moved Permanently

+
nginx
+ + From 6853cde2bf1a49c9842fb571af858f385ab91b06 Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 15:54:00 +0100 Subject: [PATCH 4/9] Rework makefile --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 21d2db48..c702b035 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ PACKAGE_VERSION?=1.0.0 .PHONY: gen -gen: clean spec/openapi.json +gen: clean docker run --rm -v `pwd`:/builder openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} generate --git-user-id ${GIT_USER_ID} --git-repo-id ${GIT_REPO_ID} -i /builder/spec/openapi.json -g python -o /builder --package-name koyeb --additional-properties packageVersion=${PACKAGE_VERSION} --additional-properties licenseInfo="Apache-2.0" --additional-properties generateSourceCodeOnly=true .PHONY: clean @@ -18,10 +18,6 @@ clean: format: black koyeb test -.PHONY: spec/openapi.json -spec/openapi.json: - mkdir -p api/v1/koyeb - .PHONY: fetch-spec fetch-spec: curl -s $(KOYEB_API)/public.swagger.json > spec/openapi.json From d4116d2453897e3d3b71de2016cdf238d6c8926d Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 15:58:55 +0100 Subject: [PATCH 5/9] Fix spec url --- Makefile | 4 +- spec/openapi.json | 19209 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 19204 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index c702b035..a2819d3f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -KOYEB_API ?= $(shell echo $${KOYEB_API:-https://developer.koyeb.com}) +KOYEB_API ?= $(shell echo $${KOYEB_API:-https://api.prod.koyeb.com}) TEST_OPTS=-v -test.timeout 300s GIT_USER_ID?=koyeb GIT_REPO_ID?=koyeb-api-client-python @@ -20,7 +20,7 @@ format: .PHONY: fetch-spec fetch-spec: - curl -s $(KOYEB_API)/public.swagger.json > spec/openapi.json + curl -L -s $(KOYEB_API)/public.swagger.json > spec/openapi.json test: python -m unitest diff --git a/spec/openapi.json b/spec/openapi.json index 9b09d633..a20d2265 100644 --- a/spec/openapi.json +++ b/spec/openapi.json @@ -1,7 +1,19202 @@ - -301 Moved Permanently - -

301 Moved Permanently

-
nginx
- - +{ + "swagger": "2.0", + "info": { + "title": "Koyeb Rest API", + "description": "The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests.\n", + "version": "1.0.0" + }, + "host": "app.koyeb.com", + "schemes": [ + "https" + ], + "security": [ + { + "Bearer": [] + } + ], + "tags": [ + { + "name": "intro", + "x-displayName": "Introduction", + "x-traitTag": true, + "description": "Welcome to the Koyeb API documentation.\n\nThe Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests.\nThe API has predictable resource-oriented URLs, allowing you to request, retrieve and execute actions on resources efficiently.\n\nThe API returns JSON-encoded responses and uses standard HTTP response codes, and verbs.\n\nAll of the functionality available in the Koyeb Control Panel is also available via the API, allowing you to automate repetitive and complex actions as required.\n\nAll production API requests are made to:\n\n- https://app.koyeb.com/\n\nAll data is sent and received as JSON.\n\n## Constructing Requests\n\nRequests are made of three components:\n\n- Base URL: `https://app.koyeb.com`\n- API Version: `v1`\n- Resource path: `apps`\n\nTo construct a proper request, you need to format the URL as follows:\n\n`https://app.koyeb.com/{version}/{resource}`\n\nExample: `https://app.koyeb.com/v1/apps`\n\nThe following code is an example request to retrieve the list of Apps.\n\n```\n%curl -H 'Authorization: Bearer 1111-1111-1111-1111-1111' https://app.koyeb.com/v1/apps\n{\n \"apps\": [\n {\n \"id\": \"e267e09d-a2ef-4672-95c7-bf88d787a274\",\n \"name\": \"demo\",\n \"organization_id\": \"c402bcad-d06d-4fd6-8af2-08b790c0e249\",\n \"updated_at\": \"2021-04-26T08:28:59.221274Z\",\n \"created_at\": \"2021-04-26T08:28:59.221274Z\",\n \"domains\": [\n {\n \"name\": \"demo-koyeb.koyeb.app\",\n \"deployment_group\": \"prod\"\n }\n ]\n },\n {\n \"id\": \"e38caea5-5acb-4fec-aa65-81749546b470\",\n \"name\": \"www\",\n \"organization_id\": \"c402bcad-d06d-4fd6-8af2-08b790c0e249\",\n \"updated_at\": \"2021-05-04T08:56:40.557792Z\",\n \"created_at\": \"2021-05-04T08:56:40.557792Z\",\n \"domains\": [\n {\n \"name\": \"www-koyeb.koyeb.app\",\n \"deployment_group\": \"prod\"\n }\n ]\n }\n ],\n \"limit\": 20,\n \"offset\": 0,\n \"count\": 2\n}\n```\n\n# Authentication\n\nThe Koyeb API uses API keys to authenticate requests. You can view and manage your API keys in the Koyeb Control Panel.\n\nYour API keys carry many privileges. Take care to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, Slack, client-side code, and so forth.\n\nTo make an authenticated request, include a bearer-type Authorization header containing your API key.\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.\n\n# Errors\n\nWe use conventional HTTP response codes to indicate the success or failure of an API request.\n\nIn general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g., a required parameter is missing, resource not found), and codes in the 5xx range indicate an error with our servers.\n\n## HTTP Status Code Summary\n\n- `200 OK` - Everything worked as expected.\n- `400 Bad Request` - Often missing a required parameter.\n- `401 Unauthorized` - No valid API key provided.\n- `402 Request Failed` - Parameters were valid, but the request failed.\n- `403 Forbidden` - Insufficient privileges to access the requested resource.\n- `404 Not Found` - The requested item doesn't exist.\n- `50x` Server errors - Something went wrong on the API domain's end.\n\nInput and output data must be valid JSON with the appropriate Content-Type header set.\n\n## Attributes\n\n- code:\n\n - `invalid_argument`: Occur when your request has invalid parameters.\n - `unknown_resource`: Occur when the resource doesn't exist.\n - `authentication_error`: Arise when there is a problem with authentication.\n - `rate_limit_error`: Too many requests hit the API too quickly.\n - `authorization_required`: You don't have sufficient right to access the resource.\n - `api_error`: API errors use in case of a problem with api domain's servers (extremely uncommon).\n\n- message:\n\n - A human-readable error giving more details about the error\n\n- status:\n\n - The HTTP code returned by the server.\n\n- fields (Optional):\n\n - An array of parameters with a human-readable message giving more details about the error.\n\n## Errors responses example\n\nResponse 400 (application/json)\n\n```\n{\n \"status\": 400,\n \"code\": \"invalid_argument\",\n \"message\": \"Invalid argument\",\n \"fields\": [\n {\n \"field\": \"definition.docker.image\",\n \"description\": \"cannot be blank\"\n }\n ]\n}\n```\n\nResponse 401 (application/json)\n\n```\n{\n \"status\": 401,\n \"code\": \"authentication_error\",\n \"message\": \"Request unauthenticated with bearer\"\n}\n```\n\nResponse 403 (application/json)\n\n```\n{\n \"status\": 403,\n \"code\": \"authentication_required\",\n \"message\": \"You don't have the requested permission to access to resource.\"\n}\n```\n\n\nResponse 404 (application/json)\n\n```\n{\n \"status\": 404,\n \"code\": \"unknown_resource\",\n \"message\": \"App not found\"\n}\n```\n\n# Pagination\n\nAll top-level API resources receive a paginated response. For instance, list Apps, list Services, and others share a standard structure, taking two parameters: limit and offset.\n\n**Paginated request**\n\nRequests against paginated endpoints accept two query string arguments:\n\n* *limit*, a positive integer lower or equal to 100 to select the number of items to display.\n* *offset*, an integer to indicate the position to start at.\n\nPaginated endpoints usually also accept filters to search and sort results.\nThese filters are documented along with each endpoint documentation.\n" + } + ], + "x-tagGroups": [ + { + "name": "Introduction", + "tags": [ + "intro" + ] + }, + { + "name": "API", + "tags": [ + "Profile", + "Sessions", + "Users", + "organization", + "OrganizationMembers", + "OrganizationInvitations", + "OrganizationConfirmations", + "Subscriptions", + "Coupons", + "Credentials", + "Secrets", + "activity", + "Apps", + "Services", + "Deployments", + "Archives", + "RegionalDeployments", + "Instances", + "Domains", + "PersistentVolumes", + "Snapshots", + "Compose", + "Repositories", + "Logs", + "Metrics", + "Catalog", + "CatalogRegions", + "CatalogInstances", + "Usages", + "Summary", + "DockerHelper" + ] + } + ], + "paths": { + "/v1/git/branches": { + "get": { + "summary": "List Branches", + "operationId": "ListBranches", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/kgitproxy.ListBranchesReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "repository_id", + "description": "(Optional) Filter on one repository.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "name", + "description": "(Optional) Filter on branch name using a fuzzy search.\nRepository filter is required to enable this filter.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Repositories" + ] + } + }, + "/v1/git/repositories": { + "get": { + "summary": "List Repositories", + "operationId": "ListRepositories", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/kgitproxy.ListRepositoriesReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "(Optional) Filter on repository name using a fuzzy search.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "name_search_op", + "description": "(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Repositories" + ] + } + }, + "/v1/git/sync/organization/{organization_id}": { + "post": { + "summary": "Resync Organization", + "operationId": "ResyncOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/kgitproxy.ResyncOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Repositories" + ] + } + }, + "/v1/usages": { + "get": { + "summary": "Get organization usage", + "operationId": "GetOrganizationUsage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOrganizationUsageReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "starting_time", + "description": "The starting time of the period to get data from", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "ending_time", + "description": "The ending time of the period to get data from", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + } + ], + "tags": [ + "Usages" + ] + } + }, + "/v1/usages/details": { + "get": { + "summary": "Get organization usage details", + "operationId": "GetOrganizationUsageDetails", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOrganizationUsageDetailsReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "starting_time", + "description": "The starting time of the period to get data from", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "ending_time", + "description": "The ending time of the period to get data from", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Accept", + "description": "If defined with the value 'text/csv', a csv file is returned", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "Usages" + ] + } + }, + "/v1/regional_deployment_events": { + "get": { + "summary": "List Regional Deployment events", + "operationId": "ListRegionalDeploymentEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListRegionalDeploymentEventsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "regional_deployment_id", + "description": "(Optional) Filter on regional deployment id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on regional deployment event types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "RegionalDeployments" + ] + } + }, + "/v1/regional_deployments": { + "get": { + "summary": "List Regional Deployments", + "description": "Experimental: use at your own risk", + "operationId": "ListRegionalDeployments", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListRegionalDeploymentsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "deployment_id", + "description": "(Optional) Filter on deployment id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "RegionalDeployments" + ] + } + }, + "/v1/regional_deployments/{id}": { + "get": { + "summary": "Get Regional Deployment", + "description": "Experimental: use at your own risk", + "operationId": "GetRegionalDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetRegionalDeploymentReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the regional deployment", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "RegionalDeployments" + ] + } + }, + "/v1/compose": { + "post": { + "summary": "Create resources from compose.", + "operationId": "Compose", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ComposeReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "compose", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateCompose" + } + } + ], + "tags": [ + "Compose" + ] + } + }, + "/v1/docker-helper/verify": { + "get": { + "summary": "Verify Docker Image", + "description": "Verify if a docker image is reachable", + "operationId": "VerifyDockerImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VerifyDockerImageReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "image", + "description": "The full image uri to be verified", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "secret_id", + "description": "(Optional) the id of the secret to use to authenticate to the registry", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "DockerHelper" + ] + } + }, + "/v1/deployment/{id}/scaling": { + "get": { + "summary": "Get Deployment Scaling", + "operationId": "GetDeploymentScaling", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetDeploymentScalingReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "region", + "description": "(Optional) Filter on region", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "replica_index", + "description": "(Optional) Filter on replica_index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + } + ], + "tags": [ + "Deployments" + ] + } + }, + "/v1/deployment_events": { + "get": { + "summary": "List Deployment events", + "operationId": "ListDeploymentEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListDeploymentEventsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "deployment_id", + "description": "(Optional) Filter on deployment id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on deployment event types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Deployments" + ] + } + }, + "/v1/deployments": { + "get": { + "summary": "List Deployments", + "operationId": "ListDeployments", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListDeploymentsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "app_id", + "description": "(Optional) Filter on application id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "service_id", + "description": "(Optional) Filter on service id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Filter on statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "PENDING", + "PROVISIONING", + "SCHEDULED", + "CANCELING", + "CANCELED", + "ALLOCATING", + "STARTING", + "HEALTHY", + "DEGRADED", + "UNHEALTHY", + "STOPPING", + "STOPPED", + "ERRORING", + "ERROR", + "STASHED", + "SLEEPING" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "Deployments" + ] + } + }, + "/v1/deployments/{id}": { + "get": { + "summary": "Get Deployment", + "operationId": "GetDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetDeploymentReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the deployment", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Deployments" + ] + } + }, + "/v1/deployments/{id}/cancel": { + "post": { + "summary": "Cancel Deployment", + "description": "Deployment cancellation is allowed for the following status:\n - pending\n - provisioning\n - scheduled", + "operationId": "CancelDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CancelDeploymentReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the deployment to cancel.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Deployments" + ] + } + }, + "/v1/provisioning/{deployment_id}/status/{stage}/{attempt}": { + "post": { + "summary": "Create an attempt for a stage", + "operationId": "CreateStageAttempt", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateStageAttemptReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "deployment_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "stage", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attempt", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "secret": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "steps": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + ], + "tags": [ + "Provisioning" + ] + }, + "patch": { + "summary": "Declare stage progress", + "operationId": "DeclareStageProgress", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeclareStageProgressReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "deployment_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "stage", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attempt", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "secret": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" + }, + "finished_at": { + "type": "string", + "format": "date-time" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "image_pushed": { + "type": "boolean" + }, + "internal_failure": { + "type": "boolean" + }, + "retryable_failure": { + "type": "boolean" + } + } + } + } + ], + "tags": [ + "Provisioning" + ] + } + }, + "/v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step}": { + "patch": { + "summary": "Declare step progress", + "operationId": "DeclareStepProgress", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeclareStepProgressReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "deployment_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "stage", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attempt", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "step", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "secret": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "finished_at": { + "type": "string", + "format": "date-time" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + ], + "tags": [ + "Provisioning" + ] + } + }, + "/v1/volume_events": { + "get": { + "summary": "List Persistent Volume events", + "operationId": "ListPersistentVolumeEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListPersistentVolumeEventsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "persistent_volume_id", + "description": "(Optional) Filter on persistent volume id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on persistent volume event types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "PersistentVolumes" + ] + } + }, + "/v1/volumes": { + "get": { + "summary": "List all PersistentVolumes", + "operationId": "ListPersistentVolumes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListPersistentVolumesReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "service_id", + "description": "(Optional) A filter for the service id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "region", + "description": "(Optional) A filter for the region", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "name", + "description": "(Optional) A filter for the name", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "PersistentVolumes" + ] + }, + "post": { + "summary": "Create a PersistentVolume", + "operationId": "CreatePersistentVolume", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreatePersistentVolumeReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreatePersistentVolumeRequest" + } + } + ], + "tags": [ + "PersistentVolumes" + ] + } + }, + "/v1/volumes/{id}": { + "get": { + "summary": "Get a PersistentVolume", + "operationId": "GetPersistentVolume", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetPersistentVolumeReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "PersistentVolumes" + ] + }, + "delete": { + "summary": "Delete a PersistentVolume", + "operationId": "DeletePersistentVolume", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeletePersistentVolumeReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "PersistentVolumes" + ] + }, + "post": { + "summary": "Update a PersistentVolume", + "operationId": "UpdatePersistentVolume", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdatePersistentVolumeReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "(Optional) change the name of the volume" + }, + "max_size": { + "type": "integer", + "format": "int64", + "title": "(Optional) increase the volume size (in Gigabyte / GB)" + } + } + } + } + ], + "tags": [ + "PersistentVolumes" + ] + } + }, + "/v1/domains": { + "get": { + "summary": "List Domains", + "operationId": "ListDomains", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListDomainsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) A filter for types\n\n - AUTOASSIGNED: Domain like -.koyeb.app", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "AUTOASSIGNED", + "CUSTOM" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "statuses", + "description": "(Optional) A filter for statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "ERROR", + "DELETING", + "DELETED" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "app_ids", + "description": "(Optional) A filter for apps", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "name", + "description": "(Optional) A filter for name", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Domains" + ] + }, + "post": { + "summary": "Create Domain", + "operationId": "CreateDomain", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateDomainReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "domain", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateDomain" + } + } + ], + "tags": [ + "Domains" + ] + } + }, + "/v1/domains/{id}": { + "get": { + "summary": "Get Domain", + "operationId": "GetDomain", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetDomainReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Domains" + ] + }, + "delete": { + "summary": "Delete Domain", + "operationId": "DeleteDomain", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteDomainReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Domains" + ] + }, + "patch": { + "summary": "Update Domain", + "operationId": "UpdateDomain", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateDomainReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateDomain" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "dry_run", + "description": "If set, run validation and check that the domain is available.", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Domains" + ] + } + }, + "/v1/domains/{id}/refresh": { + "post": { + "summary": "Refresh Domain Status", + "operationId": "RefreshDomainStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/RefreshDomainStatusReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Domains" + ] + } + }, + "/v1/instance_events": { + "get": { + "summary": "List Instance events", + "operationId": "ListInstanceEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListInstanceEventsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "instance_ids", + "description": "(Optional) Filter on list of instance id", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "types", + "description": "(Optional) Filter on instance event types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Instances" + ] + } + }, + "/v1/instances": { + "get": { + "summary": "List Instances", + "operationId": "ListInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListInstancesReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "app_id", + "description": "(Optional) Filter on application id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "service_id", + "description": "(Optional) Filter on service id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deployment_id", + "description": "(Optional) Filter on deployment id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "regional_deployment_id", + "description": "(Optional) Filter on regional deployment id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "allocation_id", + "description": "(Optional) Filter on allocation id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "replica_index", + "description": "(Optional) Filter on replica index", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Filter on instance statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ALLOCATING", + "STARTING", + "HEALTHY", + "UNHEALTHY", + "STOPPING", + "STOPPED", + "ERROR", + "SLEEPING" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "starting_time", + "description": "(Optional) The starting time of the period of running instance", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "ending_time", + "description": "(Optional) The ending time of the period of running instance", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + } + ], + "tags": [ + "Instances" + ] + } + }, + "/v1/instances/{id}": { + "get": { + "summary": "Get Instance", + "operationId": "GetInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetInstanceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the instance", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Instances" + ] + } + }, + "/v1/archives": { + "post": { + "summary": "Create Archive", + "description": "Create a signed URL to upload an archive.", + "operationId": "CreateArchive", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateArchiveReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "archive", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateArchive" + } + } + ], + "tags": [ + "Archives" + ] + } + }, + "/v1/app_events": { + "get": { + "summary": "List App events", + "operationId": "ListAppEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListAppEventsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "app_id", + "description": "(Optional) Filter on app id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on app event types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + } + }, + "/v1/apps": { + "get": { + "summary": "List App", + "operationId": "ListApps", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListAppsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "name", + "description": "(Optional) A filter for name", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + }, + "post": { + "summary": "Create App", + "operationId": "CreateApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateApp" + } + } + ], + "tags": [ + "Apps" + ] + } + }, + "/v1/apps/{id}": { + "get": { + "summary": "Get App", + "operationId": "GetApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the App", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + }, + "delete": { + "summary": "Delete App", + "description": "App deletion is allowed for all status.", + "operationId": "DeleteApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the App to delete", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + }, + "put": { + "summary": "Update App", + "operationId": "UpdateApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the app to update.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateApp" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + }, + "patch": { + "summary": "Update App", + "operationId": "UpdateApp2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the app to update.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateApp" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + } + }, + "/v1/apps/{id}/pause": { + "post": { + "summary": "Pause App", + "description": "App pause action is allowed for the following status:\n - starting\n - healthy\n - degraded\n - unhealthy\n - resuming", + "operationId": "PauseApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PauseAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the app to pause.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + } + }, + "/v1/apps/{id}/resume": { + "post": { + "summary": "Resume App", + "description": "App resume action is allowed for the following status:\n - paused", + "operationId": "ResumeApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ResumeAppReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the app to resume.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Apps" + ] + } + }, + "/v1/quotas/capacity": { + "post": { + "summary": "DEPRECATED: Review Organization Capacity", + "operationId": "ReviewOrganizationCapacity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ReviewOrganizationCapacityReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReviewOrganizationCapacityRequest" + } + } + ], + "tags": [ + "Quotas" + ] + } + }, + "/v1/service_events": { + "get": { + "summary": "List Service events", + "operationId": "ListServiceEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListServiceEventsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "service_id", + "description": "(Optional) Filter on service id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on service event types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/services": { + "get": { + "summary": "List Services", + "operationId": "ListServices", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListServicesReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "app_id", + "description": "(Optional) The id of the app", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "name", + "description": "(Optional) A filter for name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on service types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "INVALID_TYPE", + "WEB", + "WORKER", + "DATABASE" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "statuses", + "description": "(Optional) Filter on service statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "STARTING", + "HEALTHY", + "DEGRADED", + "UNHEALTHY", + "DELETING", + "DELETED", + "PAUSING", + "PAUSED", + "RESUMING" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "Services" + ] + }, + "post": { + "summary": "Create Service", + "operationId": "CreateService", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "service", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateService" + } + }, + { + "name": "dry_run", + "description": "If set only run validation", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/services-autocomplete": { + "post": { + "summary": "Autocomplete definition", + "description": "Generate autocomplete definition for a service", + "operationId": "Autocomplete", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AutocompleteReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AutocompleteRequest" + } + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/services/{id}": { + "get": { + "summary": "Get Service", + "operationId": "GetService", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the Service", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Services" + ] + }, + "delete": { + "summary": "Delete Service", + "description": "Service deletion is allowed for all status.", + "operationId": "DeleteService", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the entity to delete", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Services" + ] + }, + "put": { + "summary": "Update Service", + "operationId": "UpdateService", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the entity to update", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "service", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateService" + } + }, + { + "name": "dry_run", + "description": "If set, run validation and check that the service exists", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Services" + ] + }, + "patch": { + "summary": "Update Service", + "operationId": "UpdateService2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the entity to update", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "service", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateService" + } + }, + { + "name": "dry_run", + "description": "If set, run validation and check that the service exists", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/services/{id}/pause": { + "post": { + "summary": "Pause Service", + "description": "Service pause action is allowed for the following status:\n - starting\n - healthy\n - degraded\n - unhealthy\n - resuming", + "operationId": "PauseService", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PauseServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the service to pause.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/services/{id}/redeploy": { + "post": { + "summary": "ReDeploy Service", + "operationId": "ReDeploy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/RedeployReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "info", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedeployRequest.Info" + } + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/services/{id}/resume": { + "post": { + "summary": "Resume Service", + "description": "Service resume action is allowed for the following status:\n - paused", + "operationId": "ResumeService", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ResumeServiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the service to pause.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "skip_build", + "description": "If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead.\nThe call fails if no previous successful builds happened.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "use_cache", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Services" + ] + } + }, + "/v1/secrets": { + "get": { + "summary": "List Secrets", + "operationId": "ListSecrets", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListSecretsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "Filter by secret types", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "SIMPLE", + "REGISTRY", + "MANAGED" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "Secrets" + ] + }, + "post": { + "summary": "Create Secret", + "operationId": "CreateSecret", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateSecretReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "secret", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateSecret" + } + } + ], + "tags": [ + "Secrets" + ] + } + }, + "/v1/secrets/{id}": { + "get": { + "summary": "Get Secret", + "operationId": "GetSecret", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetSecretReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Secrets" + ] + }, + "delete": { + "summary": "Delete Secret", + "operationId": "DeleteSecret", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteSecretReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Secrets" + ] + }, + "put": { + "summary": "Update Secret", + "operationId": "UpdateSecret", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateSecretReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "secret", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Secret" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Secrets" + ] + }, + "patch": { + "summary": "Update Secret", + "operationId": "UpdateSecret2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateSecretReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "secret", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Secret" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Secrets" + ] + } + }, + "/v1/secrets/{id}/reveal": { + "post": { + "summary": "Reveal Secret", + "operationId": "RevealSecret", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/RevealSecretReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "tags": [ + "Secrets" + ] + } + }, + "/v1/snapshots": { + "get": { + "summary": "List all Snapshots", + "operationId": "ListSnapshots", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListSnapshotsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "organization_id", + "description": "(Optional) Filter by organization_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Filter by status\n\n - SNAPSHOT_STATUS_INVALID: zero value, invalid\n - SNAPSHOT_STATUS_CREATING: the snapshot is being created\n - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available\n - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated\n - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted\n - SNAPSHOT_STATUS_DELETED: the snapshot is deleted", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "SNAPSHOT_STATUS_INVALID", + "SNAPSHOT_STATUS_CREATING", + "SNAPSHOT_STATUS_AVAILABLE", + "SNAPSHOT_STATUS_MIGRATING", + "SNAPSHOT_STATUS_DELETING", + "SNAPSHOT_STATUS_DELETED" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "region", + "description": "(Optional) A filter for the region", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Snapshots" + ] + }, + "post": { + "summary": "Create a Snapshot", + "operationId": "CreateSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateSnapshotReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateSnapshotRequest" + } + } + ], + "tags": [ + "Snapshots" + ] + } + }, + "/v1/snapshots/{id}": { + "get": { + "summary": "Get a Snapshot", + "operationId": "GetSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetSnapshotReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Snapshots" + ] + }, + "delete": { + "summary": "Delete a Snapshot", + "operationId": "DeleteSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteSnapshotReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Snapshots" + ] + }, + "post": { + "summary": "Update a Snapshot", + "operationId": "UpdateSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateSnapshotReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the snapshot", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Change the name of the snapshot" + } + } + } + } + ], + "tags": [ + "Snapshots" + ] + } + }, + "/v1/search": { + "get": { + "summary": "Search", + "operationId": "Search", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ksearch.SearchReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "query", + "description": "(Optional) Search query", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Search" + ] + } + }, + "/v1/activities": { + "get": { + "summary": "List Activities", + "operationId": "ListActivities", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ActivityList" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "types", + "description": "(Optional) Filter on object type", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "activity" + ] + } + }, + "/v1/notifications": { + "get": { + "summary": "List Notifications", + "operationId": "ListNotifications", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NotificationList" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "mark_read", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "mark_seen", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "unread", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "unseen", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "activity" + ] + } + }, + "/v1/catalog/regions": { + "get": { + "summary": "List Region", + "operationId": "ListRegions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListRegionsReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id", + "description": "(Optional) A filter for regions", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "CatalogRegions" + ] + } + }, + "/v1/catalog/regions/{id}": { + "get": { + "summary": "Get Region", + "operationId": "GetRegion", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetRegionReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The name of the region", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "CatalogRegions" + ] + } + }, + "/v1/catalog/instances": { + "get": { + "summary": "List Instances", + "operationId": "ListCatalogInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListCatalogInstancesReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id", + "description": "(Optional) A filter for instances", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "CatalogInstances" + ] + } + }, + "/v1/catalog/instances/{id}": { + "get": { + "summary": "Get Instance", + "operationId": "GetCatalogInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetCatalogInstanceReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The name of the instance", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "CatalogInstances" + ] + } + }, + "/v1/catalog/datacenters": { + "get": { + "summary": "List datacenters", + "operationId": "ListDatacenters", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListDatacentersReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "CatalogDatacenters" + ] + } + }, + "/v1/catalog/usage": { + "get": { + "operationId": "ListUsage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListUsageReply" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "region", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "CatalogInstanceUsage" + ] + } + }, + "/v1/streams/instances/exec": { + "get": { + "summary": "Exec Command", + "description": "This endpoint opens a websocket. Once open, all frames going through the websocket should be formatted in JSON. Input frames should match the format specified below. Output frames will match the response schema.", + "operationId": "ExecCommand", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/ExecCommandReply" + }, + "error": { + "$ref": "#/definitions/google.rpc.Status" + } + }, + "title": "Stream result of ExecCommandReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "ID of the resource to exec on.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "body.command", + "description": "Command to exec. Mandatory in the first frame sent", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "body.tty_size.height", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "body.tty_size.width", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "body.stdin.data", + "description": "Data is base64 encoded", + "in": "query", + "required": false, + "type": "string", + "format": "byte" + }, + { + "name": "body.stdin.close", + "description": "Indicate last data frame", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "body.disableTty", + "description": "Disable TTY. It's enough to specify it in the first frame", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "id_type", + "description": "When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "INVALID", + "INSTANCE_ID", + "SERVICE_ID" + ], + "default": "INVALID" + } + ], + "tags": [ + "Instances" + ] + } + }, + "/v1/streams/metrics": { + "get": { + "summary": "Get Metrics", + "operationId": "GetMetrics", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetMetricsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "service_id", + "description": "ID of the service to query instances metrics for. Ignored if instance_id is set.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "instance_id", + "description": "ID of the instance to query metrics for.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "name", + "description": "Metric to query.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNKNOWN", + "CPU_TOTAL_PERCENT", + "MEM_RSS", + "HTTP_THROUGHPUT", + "HTTP_RESPONSE_TIME_50P", + "HTTP_RESPONSE_TIME_90P", + "HTTP_RESPONSE_TIME_99P", + "HTTP_RESPONSE_TIME_MAX", + "PUBLIC_DATA_TRANSFER_IN", + "PUBLIC_DATA_TRANSFER_OUT" + ], + "default": "UNKNOWN" + }, + { + "name": "start", + "description": "(Optional) Defaults to an hour prior to end.", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "end", + "description": "(Optional) Defaults to now.", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "step", + "description": "(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Metrics" + ] + } + }, + "/v1/streams/logs/query": { + "get": { + "summary": "Query logs", + "operationId": "QueryLogs", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/QueryLogsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "type", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "app_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "service_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deployment_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "instance_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "stream", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "regional_deployment_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "start", + "description": "(Optional) Must always be before `end`. Defaults to 15 minutes ago.", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "end", + "description": "(Optional) Must always be after `start`. Defaults to now.", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "order", + "description": "(Optional) `asc` or `desc`. Defaults to `desc`.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) Defaults to 100. Maximum of 1000.", + "in": "query", + "required": false, + "type": "string", + "format": "int64" + }, + { + "name": "regex", + "description": "(Optional) Apply a regex to filter logs. Can't be used with `text`.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "text", + "description": "(Optional) Looks for this string in logs. Can't be used with `regex`.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Logs" + ] + } + }, + "/v1/streams/logs/tail": { + "get": { + "summary": "Tails logs", + "operationId": "TailLogs", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/LogEntry" + }, + "error": { + "$ref": "#/definitions/google.rpc.Status" + } + }, + "title": "Stream result of LogEntry" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "type", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "app_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "service_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deployment_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "regional_deployment_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "instance_id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "stream", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "start", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "limit", + "in": "query", + "required": false, + "type": "string", + "format": "int64" + }, + { + "name": "regex", + "description": "(Optional) Apply a regex to filter logs. Can't be used with `text`.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "text", + "description": "(Optional) Looks for this string in logs. Can't be used with `regex`.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Logs" + ] + } + }, + "/v1/account/login": { + "post": { + "summary": "Login user", + "operationId": "Login", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LoginRequest" + } + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "Sessions" + ] + } + }, + "/v1/account/logout": { + "delete": { + "summary": "Logout user", + "operationId": "Logout", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LogoutReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Sessions" + ] + } + }, + "/v1/account/refresh": { + "put": { + "summary": "Refresh token", + "operationId": "RefreshToken", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Sessions" + ] + } + }, + "/v1/account/session": { + "post": { + "summary": "New session", + "description": "Creates a new session without an organization for current user.\nNOTE: If you want a session linked to another organization, please use \"Switch organization\".", + "operationId": "NewSession", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Sessions" + ] + } + }, + "/v1/intercom/profile": { + "get": { + "summary": "Get intercom profile", + "operationId": "GetIntercomProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetIntercomProfileReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Intercom" + ] + } + }, + "/v1/users/{id}": { + "delete": { + "summary": "Delete user", + "operationId": "DeleteUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteUserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the user", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Users" + ] + } + }, + "/v2/users/{id}": { + "delete": { + "summary": "V2 Delete user", + "operationId": "DeleteUserV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteUserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the user", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Users" + ] + } + }, + "/v1/payment_methods": { + "get": { + "summary": "List payment methods", + "operationId": "ListPaymentMethods", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListPaymentMethodsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Filter on payment method statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "INVALID", + "CREATED", + "AUTHORIZED", + "DECLINED", + "CANCELED", + "EXPIRED", + "UNCHECKED" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "PaymentMethods" + ] + }, + "post": { + "summary": "Create payment authorization", + "operationId": "CreatePaymentAuthorization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreatePaymentAuthorizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreatePaymentAuthorizationRequest" + } + } + ], + "tags": [ + "PaymentMethods" + ] + } + }, + "/v1/payment_methods/{id}": { + "get": { + "summary": "Get payment method", + "operationId": "GetPaymentMethod", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetPaymentMethodReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "PaymentMethods" + ] + }, + "delete": { + "summary": "Delete payment method", + "operationId": "DeletePaymentMethod", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeletePaymentMethodReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "PaymentMethods" + ] + } + }, + "/v1/payment_methods/{id}/confirm": { + "post": { + "summary": "Confirm payment authorization", + "operationId": "ConfirmPaymentAuthorization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfirmPaymentAuthorizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "tags": [ + "PaymentMethods" + ] + } + }, + "/v1/coupons": { + "post": { + "summary": "Redeem Coupon", + "description": "This API allows to redeem a coupon. Pass the code you received in the body.", + "operationId": "RedeemCoupon", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/RedeemCouponReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedeemCouponRequest" + } + } + ], + "tags": [ + "Coupons" + ] + } + }, + "/v1/credentials": { + "get": { + "summary": "List credentials", + "operationId": "ListCredentials", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListCredentialsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "type", + "description": "(Optional) A filter for type", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "INVALID", + "USER", + "ORGANIZATION" + ], + "default": "INVALID" + }, + { + "name": "name", + "description": "(Optional) A filter for name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "organization_id", + "description": "(Optional) Filter for an organization", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "user_id", + "description": "(Optional) Filter for an user", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Credentials" + ] + }, + "post": { + "summary": "Create credential", + "operationId": "CreateCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateCredentialReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "credential", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateCredential" + } + } + ], + "tags": [ + "Credentials" + ] + } + }, + "/v1/credentials/{id}": { + "get": { + "summary": "Get credential", + "operationId": "GetCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetCredentialReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Credentials" + ] + }, + "delete": { + "summary": "Delete credential", + "operationId": "DeleteCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteCredentialReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Credentials" + ] + }, + "put": { + "summary": "Update credential", + "operationId": "UpdateCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateCredentialReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "credential", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Credentials" + ] + }, + "patch": { + "summary": "Update credential", + "operationId": "UpdateCredential2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateCredentialReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "credential", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Credentials" + ] + } + }, + "/v1/subscriptions/{id}": { + "get": { + "summary": "Get Subscription", + "operationId": "GetSubscription", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetSubscriptionReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the instance", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Subscriptions" + ] + } + }, + "/v1/organization_invitations": { + "get": { + "summary": "List Organization Invitations", + "operationId": "ListOrganizationInvitations", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListOrganizationInvitationsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Filter on organization invitation statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "INVALID", + "PENDING", + "ACCEPTED", + "REFUSED", + "EXPIRED" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "user_id", + "description": "(Optional) Filter on invitee ID. Will match both invitations sent to\nthat user_id and invitations sent to the email of that user_id.\nThe only valid value is the requester's user_id", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "OrganizationInvitations" + ] + }, + "post": { + "summary": "Create Organization Invitation", + "operationId": "CreateOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateOrganizationInvitationRequest" + } + } + ], + "tags": [ + "OrganizationInvitations" + ] + } + }, + "/v1/organization_invitations/{id}": { + "get": { + "summary": "Get Organization Invitation", + "operationId": "GetOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the invitation to get", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "OrganizationInvitations" + ] + }, + "delete": { + "summary": "Delete Organization Invitation", + "operationId": "DeleteOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the organization invitation to delete", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "OrganizationInvitations" + ] + } + }, + "/v1/organization_invitations/{id}/resend": { + "post": { + "summary": "Resend Organization Invitation", + "operationId": "ResendOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ResendOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the organization invitation to resend", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "tags": [ + "OrganizationInvitations" + ] + } + }, + "/v1/organization_confirmations/{id}": { + "post": { + "summary": "Confirm organization action", + "operationId": "ConfirmOrganizationAction", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfirmOrganizationActionReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "OrganizationConfirmations" + ] + } + }, + "/v1/organizations/{organization_id}/quotas": { + "get": { + "operationId": "GetQuotas", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetQuotasReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "OrganizationQuotas" + ] + } + }, + "/v1/organizations/{organization_id}/summary": { + "get": { + "summary": "Get organization usage summary", + "operationId": "GetOrganizationSummary", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOrganizationSummaryReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "description": "Organization ID", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Summary" + ] + } + }, + "/v1/organization_members": { + "get": { + "summary": "List organization members", + "operationId": "ListOrganizationMembers", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListOrganizationMembersReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "organization_id", + "description": "(Optional) Filter for an organization", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "user_id", + "description": "(Optional) Filter for an user", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "organization_statuses", + "description": "(Optional) Filter for organization statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "WARNING", + "LOCKED", + "ACTIVE", + "DEACTIVATING", + "DEACTIVATED", + "DELETING", + "DELETED" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "OrganizationMembers" + ] + } + }, + "/v1/organization_members/{id}": { + "delete": { + "summary": "Remove an organization member", + "operationId": "RemoveOrganizationMember", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/RemoveOrganizationMemberReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "OrganizationMembers" + ] + } + }, + "/v1/account/activities": { + "get": { + "operationId": "GetAccountActivities", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ActivityList" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "activity" + ] + } + }, + "/v1/account/idenfy": { + "get": { + "summary": "Begin a session with iDenfy, emit an authToken", + "operationId": "GetIdenfyToken", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetIdenfyTokenReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Profile" + ] + }, + "post": { + "summary": "ClearIdenfyVerificationResult marks the current result for idenfy as superseded", + "operationId": "ClearIdenfyVerificationResult", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClearIdenfyVerificationResultReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClearIdenfyVerificationResultRequest" + } + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/invite": { + "post": { + "operationId": "CreateInvite", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Empty" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InviteUserRequest" + } + } + ], + "tags": [ + "invite" + ] + } + }, + "/v1/account/login_method": { + "get": { + "summary": "Get the login method for an email address", + "operationId": "LoginMethod", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginMethodReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "email", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/oauth": { + "get": { + "summary": "Get OAuth Providers", + "operationId": "GetOAuthOptions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOAuthOptionsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "action", + "description": "Which authentication flow is being initiated", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "signin", + "signup", + "register" + ], + "default": "signin" + }, + { + "name": "metadata", + "description": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + }, + "post": { + "summary": "Authenticate using OAuth", + "operationId": "OAuthCallback", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/OAuthCallbackReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/OAuthCallbackRequest" + } + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/organization": { + "get": { + "summary": "Get Current Organization", + "operationId": "GetCurrentOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Profile" + ] + } + }, + "/v1/account/organization_invitations": { + "get": { + "summary": "List User Organization Invitations", + "operationId": "ListUserOrganizationInvitations", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListUserOrganizationInvitationsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) The number of items to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) The offset in the list of item to return", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Filter on organization invitation statuses", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "INVALID", + "PENDING", + "ACCEPTED", + "REFUSED", + "EXPIRED" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/organization_invitations/{id}": { + "get": { + "summary": "Get User Organization Invitation", + "operationId": "GetUserOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetUserOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the organization invitation to get", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/organization_invitations/{id}/accept": { + "post": { + "summary": "Accept Organization Invitation", + "operationId": "AcceptOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AcceptOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the organization invitation to accept", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/organization_invitations/{id}/decline": { + "post": { + "summary": "Decline Organization Invitation", + "operationId": "DeclineOrganizationInvitation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeclineOrganizationInvitationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The id of the organization invitation to decline", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/organizations": { + "get": { + "summary": "List User Organizations", + "description": "List all organizations that the current user is a member of.", + "operationId": "ListUserOrganizations", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ListUserOrganizationsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "(Optional) Define pagination limit", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "offset", + "description": "(Optional) Define pagination offset", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "order", + "description": "(Optional) Sorts the list in the ascending or the descending order", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "search", + "description": "(Optional) Fuzzy case-insensitive search based on organization name or organization id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "statuses", + "description": "(Optional) Only return organizations which status match one in the list", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "WARNING", + "LOCKED", + "ACTIVE", + "DEACTIVATING", + "DEACTIVATED", + "DELETING", + "DELETED" + ] + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/profile": { + "get": { + "summary": "Get Current User", + "operationId": "GetCurrentUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Profile" + ] + }, + "put": { + "summary": "Update User", + "operationId": "UpdateUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "user", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + }, + "patch": { + "summary": "Update User", + "operationId": "UpdateUser2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "user", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/resend_validation": { + "post": { + "summary": "Resend Email Verification", + "operationId": "ResendEmailValidation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ResendEmailValidationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResendEmailValidationRequest" + } + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/reset_password": { + "post": { + "summary": "Reset Password", + "operationId": "ResetPassword", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ResetPasswordReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResetPasswordRequest" + } + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/settings": { + "get": { + "operationId": "GetUserSettings", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetUserSettingsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "Profile" + ] + }, + "patch": { + "operationId": "UpdateUserSettings", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateUserSettingsReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateUserSettingsRequest" + } + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/signup": { + "post": { + "summary": "Signup", + "operationId": "Signup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Create new account", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateAccountRequest" + } + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/update_password": { + "post": { + "summary": "Update Password", + "operationId": "UpdatePassword", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdatePasswordRequest" + } + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/account/validate/{id}": { + "post": { + "summary": "Validate", + "operationId": "Validate", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + }, + "/v1/billing/has_unpaid_invoices": { + "get": { + "summary": "Experimental: Has unpaid invoices", + "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK.", + "operationId": "HasUnpaidInvoices", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/HasUnpaidInvoicesReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "billing" + ] + } + }, + "/v1/billing/manage": { + "get": { + "operationId": "Manage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ManageReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "billing" + ] + } + }, + "/v1/billing/next_invoice": { + "get": { + "summary": "Experimental: Fetch next invoice", + "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK.", + "operationId": "NextInvoice", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NextInvoiceReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "billing" + ] + } + }, + "/v1/github/installation": { + "get": { + "summary": "Fetch Github Installation configuration", + "operationId": "GetGithubInstallation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetGithubInstallationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "tags": [ + "organization" + ] + }, + "post": { + "summary": "Start Github Installation", + "operationId": "GithubInstallation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GithubInstallationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GithubInstallationRequest" + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations": { + "post": { + "summary": "Create Organization", + "operationId": "CreateOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateOrganizationRequest" + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}": { + "get": { + "summary": "Get Organization", + "operationId": "GetOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "organization" + ] + }, + "delete": { + "summary": "Delete an Organization", + "operationId": "DeleteOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "organization" + ] + }, + "put": { + "summary": "Update Organization", + "operationId": "UpdateOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "organization", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Organization" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "organization" + ] + }, + "patch": { + "summary": "Update Organization", + "operationId": "UpdateOrganization2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "organization", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Organization" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/access_token": { + "post": { + "summary": "CreateAccessToken", + "description": "CreateAccessToken creates a short-lived access token in the scope of the\nspecified organization, provided the user making the request is part of\nsaid organization.\n\nIt's possible to specify a validity for the token, which defaults to 1h\nand must be no more than 24h. The format is `s`, where ``\nis a floating point in seconds (so `123.456789012s` means 123 seconds and\n456789012 nanoseconds). See: https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration.html.", + "operationId": "CreateAccessToken", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateAccessTokenReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Organization id for ephemeral credential", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "validity": { + "type": "string", + "title": "Validity of the credential" + } + } + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/deactivate": { + "post": { + "summary": "Deactivate an Organization", + "operationId": "DeactivateOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeactivateOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "skip_confirmation": { + "type": "boolean", + "description": "if set to true, skip_confirmation will directly start the deactivation process,\nwithout sending a confirmation email beforehand." + } + } + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/plan": { + "post": { + "summary": "Update Organization plan", + "operationId": "UpdateOrganizationPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateOrganizationPlanReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "plan": { + "$ref": "#/definitions/Plan" + } + } + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/reactivate": { + "post": { + "summary": "Reactivate an Organization", + "operationId": "ReactivateOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ReactivateOrganizationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/signup_qualification": { + "post": { + "summary": "Upsert Organization's signup qualification", + "operationId": "UpsertSignupQualification", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpsertSignupQualificationReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "signup_qualification": { + "type": "object" + } + } + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/switch": { + "post": { + "summary": "Switch Organization context", + "operationId": "SwitchOrganization", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{organization_id}/budget": { + "get": { + "summary": "Get Budget", + "operationId": "GetBudget", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetBudgetReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "organization" + ] + }, + "delete": { + "summary": "Delete Budget", + "operationId": "DeleteBudget", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeleteBudgetReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "organization" + ] + }, + "post": { + "summary": "Create Budget", + "operationId": "CreateBudget", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CreateBudgetReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "amount": { + "type": "string", + "format": "int64", + "description": "In cents." + } + } + } + } + ], + "tags": [ + "organization" + ] + }, + "put": { + "summary": "Update Budget", + "operationId": "UpdateBudget", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateBudgetReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "amount": { + "type": "string", + "format": "int64", + "description": "In cents." + } + } + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/sso/canny": { + "post": { + "operationId": "CannyAuth", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CannyAuthReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CannyAuthRequest" + } + } + ], + "tags": [ + "sso" + ] + } + }, + "/v1/sso/discourse": { + "post": { + "operationId": "DiscourseAuth", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DiscourseAuthReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DiscourseAuthRequest" + } + } + ], + "tags": [ + "sso" + ] + } + }, + "/v1/unscope_organization_token": { + "post": { + "summary": "Unscope Organization Token", + "description": "UnscopeOrganizationToken removes the organization scope from a token. This\nendpoint is useful when a user wants to remove an organization: by\nunscoping the token first, the user can then delete the organization\nwithout invalidating his token.", + "operationId": "UnscopeOrganizationToken", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/LoginReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UnscopeOrganizationTokenRequest" + } + }, + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], + "tags": [ + "organization" + ] + } + }, + "/v2/account/profile": { + "put": { + "summary": "Update User V2", + "operationId": "UpdateUserV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "user", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + }, + "patch": { + "summary": "Update User V2", + "operationId": "UpdateUserV22", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UserReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "user", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody" + } + }, + { + "name": "update_mask", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Profile" + ] + } + } + }, + "definitions": { + "google.protobuf.Any": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "google.rpc.Status": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + }, + "Error": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "format": "int32" + }, + "code": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "ErrorField": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "ErrorWithFields": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "format": "int32" + }, + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorField" + } + } + } + }, + "kgitproxy.Branch": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "repository_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "is_default": { + "type": "boolean" + }, + "is_protected": { + "type": "boolean" + }, + "provider": { + "$ref": "#/definitions/kgitproxy.RepositoryProvider" + } + } + }, + "kgitproxy.GitHubRepository": { + "type": "object", + "properties": { + "github_id": { + "type": "string" + } + } + }, + "kgitproxy.ListBranchesReply": { + "type": "object", + "properties": { + "branches": { + "type": "array", + "items": { + "$ref": "#/definitions/kgitproxy.Branch" + }, + "description": "The collection of branches." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The limit in the request." + }, + "offset": { + "type": "integer", + "format": "int64", + "description": "The offset in the request." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "The total number of items." + } + } + }, + "kgitproxy.ListRepositoriesReply": { + "type": "object", + "properties": { + "repositories": { + "type": "array", + "items": { + "$ref": "#/definitions/kgitproxy.Repository" + }, + "description": "The collection of repositories." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The limit in the request." + }, + "offset": { + "type": "integer", + "format": "int64", + "description": "The offset in the request." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "The total number of items." + } + } + }, + "kgitproxy.Repository": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "description": { + "type": "string" + }, + "is_private": { + "type": "boolean" + }, + "is_disabled": { + "type": "boolean" + }, + "default_branch": { + "type": "string" + }, + "provider": { + "$ref": "#/definitions/kgitproxy.RepositoryProvider" + }, + "last_push_date": { + "type": "string", + "format": "date-time" + }, + "github": { + "$ref": "#/definitions/kgitproxy.GitHubRepository" + } + } + }, + "kgitproxy.RepositoryProvider": { + "type": "string", + "enum": [ + "INVALID_PROVIDER", + "GITHUB" + ], + "default": "INVALID_PROVIDER" + }, + "kgitproxy.ResyncOrganizationReply": { + "type": "object" + }, + "AppUsage": { + "type": "object", + "properties": { + "app_id": { + "type": "string" + }, + "app_name": { + "type": "string" + }, + "services": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceUsage" + } + }, + "databases": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseUsage" + } + } + } + }, + "DatabaseUsage": { + "type": "object", + "properties": { + "service_id": { + "type": "string" + }, + "service_name": { + "type": "string" + }, + "compute_time_seconds": { + "type": "integer", + "format": "int64" + }, + "data_storage_megabytes_hours": { + "type": "integer", + "format": "int64" + } + } + }, + "DatabaseUsageDetails": { + "type": "object", + "properties": { + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "app_name": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "service_name": { + "type": "string" + }, + "compute_time_seconds": { + "type": "integer", + "format": "int64" + }, + "data_storage_megabytes_hour": { + "type": "integer", + "format": "int64" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + } + } + }, + "GetOrganizationUsageDetailsReply": { + "type": "object", + "properties": { + "usage_details": { + "type": "array", + "items": { + "$ref": "#/definitions/UsageDetails" + }, + "title": "The collection of usage instances" + }, + "database_details": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseUsageDetails" + }, + "title": "The collection of database deployments used during the month" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + }, + "order": { + "type": "string", + "title": "The order in the request" + } + } + }, + "GetOrganizationUsageReply": { + "type": "object", + "properties": { + "usage": { + "$ref": "#/definitions/Usage", + "title": "The computed usage of instances per month" + } + } + }, + "InstanceUsage": { + "type": "object", + "properties": { + "duration_seconds": { + "type": "integer", + "format": "int64" + } + } + }, + "PeriodUsage": { + "type": "object", + "properties": { + "starting_time": { + "type": "string", + "format": "date-time" + }, + "ending_time": { + "type": "string", + "format": "date-time" + }, + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/AppUsage" + } + } + } + }, + "RegionUsage": { + "type": "object", + "properties": { + "instances": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/InstanceUsage" + } + } + } + }, + "ServiceUsage": { + "type": "object", + "properties": { + "service_id": { + "type": "string" + }, + "service_name": { + "type": "string" + }, + "regions": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RegionUsage" + } + } + } + }, + "Usage": { + "type": "object", + "properties": { + "organization_id": { + "type": "string" + }, + "periods": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/PeriodUsage" + } + } + } + }, + "UsageDetails": { + "type": "object", + "properties": { + "organization_id": { + "type": "string" + }, + "instance_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "app_name": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "service_name": { + "type": "string" + }, + "regional_deployment_id": { + "type": "string" + }, + "region": { + "type": "string" + }, + "deployment_id": { + "type": "string" + }, + "instance_type": { + "type": "string" + }, + "duration_seconds": { + "type": "integer", + "format": "int64" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + } + } + }, + "google.protobuf.NullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "ArchiveSource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The ID of the archive to deploy" + }, + "buildpack": { + "$ref": "#/definitions/BuildpackBuilder" + }, + "docker": { + "$ref": "#/definitions/DockerBuilder" + } + } + }, + "BuildpackBuilder": { + "type": "object", + "properties": { + "build_command": { + "type": "string", + "title": "A command used to override the build command, run after all build steps" + }, + "run_command": { + "type": "string", + "title": "A command used to override the default run command" + }, + "privileged": { + "type": "boolean", + "title": "A flag to run the container in privileged mode" + } + } + }, + "ConfigFile": { + "type": "object", + "properties": { + "path": { + "type": "string", + "title": "the path where the file is copied" + }, + "permissions": { + "type": "string", + "title": "the permissions of the file in format 0644" + }, + "content": { + "type": "string", + "title": "the content of the file" + } + } + }, + "DeploymentHealthCheck": { + "type": "object", + "properties": { + "grace_period": { + "type": "integer", + "format": "int64", + "title": "An optional initial period in seconds to wait for the instance to become healthy, default is 5s" + }, + "interval": { + "type": "integer", + "format": "int64", + "title": "An optional period in seconds between two health checks, default is 60s" + }, + "restart_limit": { + "type": "integer", + "format": "int64", + "title": "An optional number of consecutive failures before attempting to restart the service, default is 3" + }, + "timeout": { + "type": "integer", + "format": "int64", + "title": "An optional maximum time to wait in seconds before considering the check as a failure, default is 5s" + }, + "tcp": { + "$ref": "#/definitions/TCPHealthCheck" + }, + "http": { + "$ref": "#/definitions/HTTPHealthCheck" + } + } + }, + "DeploymentProvisioningInfo": { + "type": "object", + "properties": { + "sha": { + "type": "string", + "description": "The git sha for this build (we resolve the reference at the start of the build)." + }, + "image": { + "type": "string", + "description": "The docker image built as a result of this build." + }, + "stages": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage" + }, + "description": "Some info about the build." + } + } + }, + "DeploymentProvisioningInfo.Stage": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "finished_at": { + "type": "string", + "format": "date-time" + }, + "build_attempts": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt" + } + } + } + }, + "DeploymentProvisioningInfo.Stage.BuildAttempt": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "status": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "finished_at": { + "type": "string", + "format": "date-time" + }, + "steps": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep" + } + }, + "image_pushed": { + "type": "boolean" + }, + "internal_failure": { + "type": "boolean" + }, + "retryable_failure": { + "type": "boolean" + }, + "wait_completion": { + "type": "boolean", + "description": "This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure." + } + } + }, + "DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "finished_at": { + "type": "string", + "format": "date-time" + } + } + }, + "DeploymentProvisioningInfo.Stage.Status": { + "type": "string", + "enum": [ + "UNKNOWN", + "PENDING", + "RUNNING", + "FAILED", + "COMPLETED", + "ABORTED" + ], + "default": "UNKNOWN" + }, + "DeploymentScalingTarget": { + "type": "object", + "properties": { + "average_cpu": { + "$ref": "#/definitions/DeploymentScalingTargetAverageCPU" + }, + "average_mem": { + "$ref": "#/definitions/DeploymentScalingTargetAverageMem" + }, + "requests_per_second": { + "$ref": "#/definitions/DeploymentScalingTargetRequestsPerSecond" + }, + "concurrent_requests": { + "$ref": "#/definitions/DeploymentScalingTargetConcurrentRequests" + }, + "requests_response_time": { + "$ref": "#/definitions/DeploymentScalingTargetRequestsResponseTime" + }, + "sleep_idle_delay": { + "$ref": "#/definitions/DeploymentScalingTargetSleepIdleDelay" + } + } + }, + "DeploymentScalingTargetAverageCPU": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + } + } + }, + "DeploymentScalingTargetAverageMem": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + } + } + }, + "DeploymentScalingTargetConcurrentRequests": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + } + } + }, + "DeploymentScalingTargetRequestsPerSecond": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + } + } + }, + "DeploymentScalingTargetRequestsResponseTime": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + }, + "quantile": { + "type": "integer", + "format": "int64", + "description": "The quantile to use for autoscaling. For example, set to 95 to use the 95th\npercentile (p95) for autoscaling. Valid values are between 0 and 100." + } + } + }, + "DeploymentScalingTargetSleepIdleDelay": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64", + "description": "DEPRECATED: use deep_sleep_value instead.\nDelay in seconds after which a service which received 0 request is put to deep sleep." + }, + "deep_sleep_value": { + "type": "integer", + "format": "int64", + "description": "Delay in seconds after which a service which received 0 request is put to deep sleep." + }, + "light_sleep_value": { + "type": "integer", + "format": "int64", + "description": "Delay in seconds after which a service which received 0 request is put to light sleep." + } + } + }, + "DeploymentStrategy": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/DeploymentStrategyType", + "title": "Strategy type" + } + } + }, + "DeploymentStrategyType": { + "type": "string", + "enum": [ + "DEPLOYMENT_STRATEGY_TYPE_INVALID", + "DEPLOYMENT_STRATEGY_TYPE_CANARY", + "DEPLOYMENT_STRATEGY_TYPE_ROLLING", + "DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN", + "DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE" + ], + "default": "DEPLOYMENT_STRATEGY_TYPE_INVALID", + "description": " - DEPLOYMENT_STRATEGY_TYPE_INVALID: Invalid / Zero value.\n - DEPLOYMENT_STRATEGY_TYPE_CANARY: Use canary strategy.\n - DEPLOYMENT_STRATEGY_TYPE_ROLLING: Use rolling strategy.\n - DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN: Use blue green strategy.\n - DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE: Use immediate strategy." + }, + "DockerBuilder": { + "type": "object", + "properties": { + "dockerfile": { + "type": "string", + "title": "A path to the Dockerfile" + }, + "entrypoint": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The docker ENTRYPOINT" + }, + "command": { + "type": "string", + "title": "The docker CMD" + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The docker CMD args" + }, + "target": { + "type": "string", + "title": "The target for multi-stage builds" + }, + "privileged": { + "type": "boolean", + "title": "A flag to run the container in privileged mode" + } + } + }, + "DockerSource": { + "type": "object", + "properties": { + "image": { + "type": "string" + }, + "command": { + "type": "string" + }, + "args": { + "type": "array", + "items": { + "type": "string" + } + }, + "image_registry_secret": { + "type": "string" + }, + "entrypoint": { + "type": "array", + "items": { + "type": "string" + } + }, + "privileged": { + "type": "boolean", + "title": "A flag to run the container in privileged mode" + } + } + }, + "Env": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "GetRegionalDeploymentReply": { + "type": "object", + "properties": { + "regional_deployment": { + "$ref": "#/definitions/RegionalDeployment" + } + } + }, + "GitSource": { + "type": "object", + "properties": { + "repository": { + "type": "string", + "description": "A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test." + }, + "branch": { + "type": "string", + "title": "A git branch that will be tracked for new commits and deployments will be created" + }, + "tag": { + "type": "string", + "title": "A git tag that should be built" + }, + "sha": { + "type": "string", + "title": "A git commit that should be built (useful for pinning to a commit, this will always be set when a deployment is created by a code push)" + }, + "build_command": { + "type": "string", + "title": "A command used to override the build command, run after all build steps \u2014 deprecated, use buildpack.build_command instead" + }, + "run_command": { + "type": "string", + "title": "A command used to override the default run command - deprecated, use buildpack.run_command instead" + }, + "no_deploy_on_push": { + "type": "boolean", + "title": "A flag to disable a new deployment when a push event is detected" + }, + "workdir": { + "type": "string", + "title": "A subdirectory to use as the build directory" + }, + "buildpack": { + "$ref": "#/definitions/BuildpackBuilder" + }, + "docker": { + "$ref": "#/definitions/DockerBuilder" + } + } + }, + "HTTPHeader": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "HTTPHealthCheck": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64", + "title": "The port to use to perform the health check, must be declared in the ports section" + }, + "path": { + "type": "string", + "title": "The path to use to perform the HTTP health check" + }, + "method": { + "type": "string", + "title": "An optional HTTP method to use to perform the health check, default is GET" + }, + "headers": { + "type": "array", + "items": { + "$ref": "#/definitions/HTTPHeader" + }, + "title": "An optional list of HTTP headers to provide when performing the request, default is empty" + } + } + }, + "ListRegionalDeploymentEventsReply": { + "type": "object", + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/RegionalDeploymentEvent" + }, + "title": "The collection of events" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "order": { + "type": "string", + "title": "The order in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "ListRegionalDeploymentsReply": { + "type": "object", + "properties": { + "regional_deployments": { + "type": "array", + "items": { + "$ref": "#/definitions/RegionalDeploymentListItem" + }, + "title": "The collection of regional deployments" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "Port": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64" + }, + "protocol": { + "type": "string" + } + } + }, + "RegionalDeployment": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "scheduled_at": { + "type": "string", + "format": "date-time" + }, + "allocated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "succeeded_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "region": { + "type": "string" + }, + "parent_id": { + "type": "string" + }, + "child_id": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/RegionalDeployment.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "definition": { + "$ref": "#/definitions/RegionalDeploymentDefinition" + }, + "datacenters": { + "type": "array", + "items": { + "type": "string" + } + }, + "metadata": { + "$ref": "#/definitions/RegionalDeploymentMetadata" + }, + "provisioning_info": { + "$ref": "#/definitions/DeploymentProvisioningInfo" + }, + "role": { + "$ref": "#/definitions/RegionalDeployment.Role" + }, + "version": { + "type": "string", + "format": "uint64" + }, + "deployment_group": { + "type": "string", + "title": "Legacy stuff" + }, + "deployment_id": { + "type": "string" + } + } + }, + "RegionalDeployment.Role": { + "type": "string", + "enum": [ + "INVALID", + "ACTIVE", + "UPCOMING", + "CURRENT" + ], + "default": "INVALID" + }, + "RegionalDeployment.Status": { + "type": "string", + "enum": [ + "PENDING", + "PROVISIONING", + "SCHEDULED", + "CANCELING", + "CANCELED", + "ALLOCATING", + "STARTING", + "HEALTHY", + "DEGRADED", + "UNHEALTHY", + "STOPPING", + "STOPPED", + "ERRORING", + "ERROR", + "SLEEPING" + ], + "default": "PENDING" + }, + "RegionalDeploymentDefinition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RegionalDeploymentDefinition.Type" + }, + "strategy": { + "$ref": "#/definitions/DeploymentStrategy" + }, + "routes": { + "type": "array", + "items": { + "$ref": "#/definitions/Route" + } + }, + "ports": { + "type": "array", + "items": { + "$ref": "#/definitions/Port" + } + }, + "env": { + "type": "array", + "items": { + "$ref": "#/definitions/Env" + } + }, + "region": { + "type": "string" + }, + "scaling": { + "$ref": "#/definitions/Scaling" + }, + "instance_type": { + "type": "string" + }, + "deployment_group": { + "type": "string" + }, + "health_checks": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentHealthCheck" + } + }, + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/RegionalDeploymentVolume" + } + }, + "config_files": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigFile" + } + }, + "skip_cache": { + "type": "boolean" + }, + "docker": { + "$ref": "#/definitions/DockerSource" + }, + "git": { + "$ref": "#/definitions/GitSource" + }, + "archive": { + "$ref": "#/definitions/ArchiveSource" + } + } + }, + "RegionalDeploymentDefinition.Type": { + "type": "string", + "enum": [ + "INVALID", + "WEB", + "WORKER" + ], + "default": "INVALID" + }, + "RegionalDeploymentEvent": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "when": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "regional_deployment_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + }, + "metadata": { + "type": "object" + } + } + }, + "RegionalDeploymentListItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "region": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/RegionalDeployment.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "definition": { + "$ref": "#/definitions/RegionalDeploymentDefinition" + } + } + }, + "RegionalDeploymentMetadata": { + "type": "object" + }, + "RegionalDeploymentVolume": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "the id of the volume" + }, + "path": { + "type": "string", + "title": "the path where the volume is mounted to" + }, + "replica_index": { + "type": "integer", + "format": "int64", + "title": "the replica index to mount the volume to" + } + } + }, + "Route": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64" + }, + "path": { + "type": "string" + } + } + }, + "Scaling": { + "type": "object", + "properties": { + "min": { + "type": "integer", + "format": "int64" + }, + "max": { + "type": "integer", + "format": "int64" + }, + "targets": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentScalingTarget" + } + } + } + }, + "TCPHealthCheck": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64", + "title": "The port to use to perform the health check, must be declared in the ports section" + } + } + }, + "App": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "succeeded_at": { + "type": "string", + "format": "date-time" + }, + "paused_at": { + "type": "string", + "format": "date-time" + }, + "resumed_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "status": { + "$ref": "#/definitions/App.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "format": "uint64" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/Domain" + } + } + } + }, + "App.Status": { + "type": "string", + "enum": [ + "STARTING", + "HEALTHY", + "DEGRADED", + "UNHEALTHY", + "DELETING", + "DELETED", + "PAUSING", + "PAUSED", + "RESUMING" + ], + "default": "STARTING" + }, + "AutoRelease": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/AutoRelease.Group" + } + } + } + }, + "AutoRelease.Group": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "git_ref": { + "type": "string", + "title": "A git ref to track (.e.g: refs/tags/ or refs/heads/" + }, + "latest_sha": { + "type": "string", + "title": "The last hash that was resolved (used to avoid triggering releases when things haven't changed)" + } + }, + "title": "Configuration extracted from the latest deployment in this deployment_group" + }, + "ComposeReply": { + "type": "object", + "properties": { + "app": { + "$ref": "#/definitions/App" + }, + "services": { + "type": "array", + "items": { + "$ref": "#/definitions/Service" + } + } + } + }, + "CreateApp": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "CreateCompose": { + "type": "object", + "properties": { + "app": { + "$ref": "#/definitions/CreateApp" + }, + "services": { + "type": "array", + "items": { + "$ref": "#/definitions/CreateService" + } + } + } + }, + "CreateService": { + "type": "object", + "properties": { + "app_id": { + "type": "string" + }, + "definition": { + "$ref": "#/definitions/DeploymentDefinition" + } + } + }, + "DatabaseSource": { + "type": "object", + "properties": { + "neon_postgres": { + "$ref": "#/definitions/NeonPostgresDatabase" + } + } + }, + "DeploymentDefinition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/DeploymentDefinition.Type" + }, + "strategy": { + "$ref": "#/definitions/DeploymentStrategy" + }, + "routes": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentRoute" + } + }, + "ports": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentPort" + } + }, + "proxy_ports": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentProxyPort" + } + }, + "env": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentEnv" + } + }, + "regions": { + "type": "array", + "items": { + "type": "string" + } + }, + "scalings": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentScaling" + } + }, + "instance_types": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentInstanceType" + } + }, + "health_checks": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentHealthCheck" + } + }, + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentVolume" + } + }, + "config_files": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigFile" + } + }, + "skip_cache": { + "type": "boolean" + }, + "docker": { + "$ref": "#/definitions/DockerSource" + }, + "git": { + "$ref": "#/definitions/GitSource" + }, + "database": { + "$ref": "#/definitions/DatabaseSource" + }, + "archive": { + "$ref": "#/definitions/ArchiveSource" + } + } + }, + "DeploymentDefinition.Type": { + "type": "string", + "enum": [ + "INVALID", + "WEB", + "WORKER", + "DATABASE" + ], + "default": "INVALID" + }, + "DeploymentEnv": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "key": { + "type": "string" + }, + "value": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "DeploymentInstanceType": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string" + } + } + }, + "DeploymentPort": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64" + }, + "protocol": { + "type": "string", + "title": "One of http, http2, tcp" + } + } + }, + "DeploymentProxyPort": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64" + }, + "protocol": { + "$ref": "#/definitions/ProxyPortProtocol" + } + } + }, + "DeploymentRoute": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int64" + }, + "path": { + "type": "string" + } + } + }, + "DeploymentScaling": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "min": { + "type": "integer", + "format": "int64" + }, + "max": { + "type": "integer", + "format": "int64" + }, + "targets": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentScalingTarget" + } + } + } + }, + "DeploymentVolume": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "the id of the volume" + }, + "path": { + "type": "string", + "title": "the path where the volume is mounted to" + }, + "replica_index": { + "type": "integer", + "format": "int64", + "title": "optionally, explicitly choose the replica index to mount the volume to" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "title": "scope of the associated" + } + } + }, + "DesiredDeployment": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/DesiredDeployment.Group" + } + } + } + }, + "DesiredDeployment.Group": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "deployment_ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Domain": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "status": { + "$ref": "#/definitions/Domain.Status" + }, + "type": { + "$ref": "#/definitions/Domain.Type" + }, + "app_id": { + "type": "string" + }, + "deployment_group": { + "type": "string" + }, + "verified_at": { + "type": "string", + "format": "date-time" + }, + "intended_cname": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "format": "uint64" + }, + "cloudflare": { + "$ref": "#/definitions/Domain.LoadBalancerCloudflare" + }, + "koyeb": { + "$ref": "#/definitions/Domain.LoadBalancerKoyeb" + } + } + }, + "Domain.LoadBalancerCloudflare": { + "type": "object" + }, + "Domain.LoadBalancerKoyeb": { + "type": "object", + "properties": { + "request_timeout_seconds": { + "type": "integer", + "format": "int64", + "title": "Between 100 and 900" + } + } + }, + "Domain.Status": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "ERROR", + "DELETING", + "DELETED" + ], + "default": "PENDING" + }, + "Domain.Type": { + "type": "string", + "enum": [ + "AUTOASSIGNED", + "CUSTOM" + ], + "default": "AUTOASSIGNED", + "title": "- AUTOASSIGNED: Domain like -.koyeb.app" + }, + "NeonPostgresDatabase": { + "type": "object", + "properties": { + "pg_version": { + "type": "integer", + "format": "int64" + }, + "region": { + "type": "string" + }, + "instance_type": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/NeonPostgresDatabase.NeonRole" + } + }, + "databases": { + "type": "array", + "items": { + "$ref": "#/definitions/NeonPostgresDatabase.NeonDatabase" + } + } + } + }, + "NeonPostgresDatabase.NeonDatabase": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "owner": { + "type": "string" + } + } + }, + "NeonPostgresDatabase.NeonRole": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "ProxyPortProtocol": { + "type": "string", + "enum": [ + "tcp" + ], + "default": "tcp" + }, + "Service": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "succeeded_at": { + "type": "string", + "format": "date-time" + }, + "paused_at": { + "type": "string", + "format": "date-time" + }, + "resumed_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/Service.Type" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/Service.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "format": "uint64" + }, + "active_deployment_id": { + "type": "string" + }, + "latest_deployment_id": { + "type": "string" + }, + "last_provisioned_deployment_id": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/ServiceState", + "title": "Legacy stuff" + } + } + }, + "Service.Status": { + "type": "string", + "enum": [ + "STARTING", + "HEALTHY", + "DEGRADED", + "UNHEALTHY", + "DELETING", + "DELETED", + "PAUSING", + "PAUSED", + "RESUMING" + ], + "default": "STARTING" + }, + "Service.Type": { + "type": "string", + "enum": [ + "INVALID_TYPE", + "WEB", + "WORKER", + "DATABASE" + ], + "default": "INVALID_TYPE" + }, + "ServiceState": { + "type": "object", + "properties": { + "desired_deployment": { + "$ref": "#/definitions/DesiredDeployment" + }, + "auto_release": { + "$ref": "#/definitions/AutoRelease" + } + } + }, + "VerifyDockerImageReply": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "title": "Whether the image is accessible or not" + }, + "reason": { + "type": "string", + "title": "(Optional) If the image is not accessible, the reason" + }, + "code": { + "$ref": "#/definitions/VerifyDockerImageReply.ErrCode", + "title": "(Optional) If the image is not accessible, return an error code" + } + } + }, + "VerifyDockerImageReply.ErrCode": { + "type": "string", + "enum": [ + "UNKNOWN", + "AUTH_ACCESS_DENIED", + "ANON_ACCESS_DENIED", + "AUTH_NOT_FOUND", + "ANON_NOT_FOUND", + "REGISTRY_ERROR", + "TIMEOUT", + "DNS", + "MALFORMED", + "INVALID_OS", + "INVALID_ARCH", + "INVALID_SCHEME", + "GENERIC" + ], + "default": "UNKNOWN", + "description": "- UNKNOWN: Default value\n - AUTH_ACCESS_DENIED: The registry denied access to an authenticated request\n - ANON_ACCESS_DENIED: The registry denied access to an anonymous request\n - AUTH_NOT_FOUND: The image has not been found after an authenticated request\n - ANON_NOT_FOUND: The image has not been found after an anonymous request\n - REGISTRY_ERROR: The registry returned an error\n - TIMEOUT: The request to the registry timed out\n - DNS: There was an error trying to resolve the name of the registry\n - MALFORMED: The provided image name is malformed\n - INVALID_OS: The operating system is not supported\n - INVALID_ARCH: The architecture is not supported\n - INVALID_SCHEME: The scheme is not https\n - GENERIC: Generic catch-all error code", + "title": "The error code associated to each specific failure mode" + }, + "ArchiveDeploymentMetadata": { + "type": "object", + "properties": { + "last_provisioned_deployment_id": { + "type": "string" + } + } + }, + "CancelDeploymentReply": { + "type": "object" + }, + "DatabaseDeploymentMetadata": { + "type": "object", + "properties": { + "neon_postgres": { + "$ref": "#/definitions/NeonPostgresDatabaseDeploymentMetadata" + } + } + }, + "Deployment": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "allocated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "succeeded_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "parent_id": { + "type": "string" + }, + "child_id": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/Deployment.Status" + }, + "metadata": { + "$ref": "#/definitions/DeploymentMetadata" + }, + "definition": { + "$ref": "#/definitions/DeploymentDefinition" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "provisioning_info": { + "$ref": "#/definitions/DeploymentProvisioningInfo" + }, + "database_info": { + "$ref": "#/definitions/DeploymentDatabaseInfo" + }, + "skip_build": { + "type": "boolean" + }, + "role": { + "$ref": "#/definitions/Deployment.Role" + }, + "version": { + "type": "string", + "format": "uint64" + }, + "deployment_group": { + "type": "string" + } + } + }, + "Deployment.Role": { + "type": "string", + "enum": [ + "INVALID", + "ACTIVE", + "UPCOMING", + "CURRENT" + ], + "default": "INVALID" + }, + "Deployment.Status": { + "type": "string", + "enum": [ + "PENDING", + "PROVISIONING", + "SCHEDULED", + "CANCELING", + "CANCELED", + "ALLOCATING", + "STARTING", + "HEALTHY", + "DEGRADED", + "UNHEALTHY", + "STOPPING", + "STOPPED", + "ERRORING", + "ERROR", + "STASHED", + "SLEEPING" + ], + "default": "PENDING" + }, + "DeploymentDatabaseInfo": { + "type": "object", + "properties": { + "neon_postgres": { + "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfo" + } + } + }, + "DeploymentEvent": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "when": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "deployment_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + }, + "metadata": { + "type": "object" + } + } + }, + "DeploymentListItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "allocated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "succeeded_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "parent_id": { + "type": "string" + }, + "child_id": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/Deployment.Status" + }, + "metadata": { + "$ref": "#/definitions/DeploymentMetadata" + }, + "definition": { + "$ref": "#/definitions/DeploymentDefinition" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "provisioning_info": { + "$ref": "#/definitions/DeploymentProvisioningInfo" + }, + "database_info": { + "$ref": "#/definitions/DeploymentDatabaseInfo" + }, + "version": { + "type": "string", + "format": "uint64" + }, + "deployment_group": { + "type": "string" + } + } + }, + "DeploymentMetadata": { + "type": "object", + "properties": { + "trigger": { + "$ref": "#/definitions/TriggerDeploymentMetadata" + }, + "database": { + "$ref": "#/definitions/DatabaseDeploymentMetadata" + }, + "git": { + "$ref": "#/definitions/GitDeploymentMetadata" + }, + "archive": { + "$ref": "#/definitions/ArchiveDeploymentMetadata" + }, + "proxy_ports": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentProxyPortMetadata" + } + } + } + }, + "DeploymentNeonPostgresDatabaseInfo": { + "type": "object", + "properties": { + "active_time_seconds": { + "type": "string", + "format": "int64" + }, + "compute_time_seconds": { + "type": "string", + "format": "int64" + }, + "written_data_bytes": { + "type": "string", + "format": "int64" + }, + "data_transfer_bytes": { + "type": "string", + "format": "int64" + }, + "data_storage_bytes_hour": { + "type": "string", + "format": "int64" + }, + "server_host": { + "type": "string" + }, + "server_port": { + "type": "integer", + "format": "int64" + }, + "endpoint_state": { + "type": "string" + }, + "endpoint_last_active": { + "type": "string", + "format": "date-time" + }, + "default_branch_id": { + "type": "string" + }, + "default_branch_name": { + "type": "string" + }, + "default_branch_state": { + "type": "string" + }, + "default_branch_logical_size": { + "type": "string", + "format": "int64" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfoRole" + } + } + } + }, + "DeploymentNeonPostgresDatabaseInfoRole": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "secret_id": { + "type": "string" + } + } + }, + "DeploymentProxyPortMetadata": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "public_port": { + "type": "integer", + "format": "int64" + }, + "port": { + "type": "integer", + "format": "int64" + }, + "protocol": { + "$ref": "#/definitions/ProxyPortProtocol" + } + } + }, + "GetDeploymentReply": { + "type": "object", + "properties": { + "deployment": { + "$ref": "#/definitions/Deployment" + } + } + }, + "GetDeploymentScalingReply": { + "type": "object", + "properties": { + "replicas": { + "type": "array", + "items": { + "$ref": "#/definitions/GetDeploymentScalingReplyItem" + }, + "title": "The replicas" + } + } + }, + "GetDeploymentScalingReplyItem": { + "type": "object", + "properties": { + "region": { + "type": "string", + "title": "The replica region" + }, + "replica_index": { + "type": "integer", + "format": "int64" + }, + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/Instance" + }, + "description": "An array of `active` and `starting` instances.\n\nStatus of the active instance (and if none the most recent instance)\n string status = 4;\n Status message of the active instance (and if none the most recent instance)\n string message = 5;" + } + } + }, + "GitDeploymentMetadata": { + "type": "object", + "properties": { + "last_provisioned_deployment_id": { + "type": "string" + }, + "git_env": { + "$ref": "#/definitions/GitEnvDeploymentMetadata" + } + } + }, + "GitEnvDeploymentMetadata": { + "type": "object", + "properties": { + "sha": { + "type": "string" + }, + "commit_author": { + "type": "string" + }, + "commit_message": { + "type": "string" + } + } + }, + "Instance": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "regional_deployment_id": { + "type": "string" + }, + "allocation_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "replica_index": { + "type": "integer", + "format": "int64" + }, + "region": { + "type": "string" + }, + "datacenter": { + "type": "string" + }, + "hypervisor": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/Instance.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "succeeded_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "xyz_deployment_id": { + "type": "string", + "description": "WARNING: Please don't use the following attribute.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK." + } + } + }, + "Instance.Status": { + "type": "string", + "enum": [ + "ALLOCATING", + "STARTING", + "HEALTHY", + "UNHEALTHY", + "STOPPING", + "STOPPED", + "ERROR", + "SLEEPING" + ], + "default": "ALLOCATING" + }, + "ListDeploymentEventsReply": { + "type": "object", + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentEvent" + }, + "title": "The collection of events" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "order": { + "type": "string", + "title": "The order in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "ListDeploymentsReply": { + "type": "object", + "properties": { + "deployments": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentListItem" + }, + "title": "The collection of deployments" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "NeonPostgresDatabaseDeploymentMetadata": { + "type": "object", + "properties": { + "reset_role_passwords": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TriggerDeploymentMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/TriggerDeploymentMetadata.TriggerType" + }, + "actor": { + "$ref": "#/definitions/TriggerDeploymentMetadata.ActorType" + }, + "git": { + "$ref": "#/definitions/TriggerGitDeploymentMetadata" + } + } + }, + "TriggerDeploymentMetadata.ActorType": { + "type": "string", + "enum": [ + "UNKNOWN_ACTOR", + "USER", + "SYSTEM" + ], + "default": "UNKNOWN_ACTOR" + }, + "TriggerDeploymentMetadata.TriggerType": { + "type": "string", + "enum": [ + "UNKNOWN_TYPE", + "GIT", + "RESUME", + "DATABASE_SYNC" + ], + "default": "UNKNOWN_TYPE" + }, + "TriggerGitDeploymentMetadata": { + "type": "object", + "properties": { + "provider": { + "$ref": "#/definitions/TriggerGitDeploymentMetadata.Provider" + }, + "repository": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "message": { + "type": "string" + }, + "sender_username": { + "type": "string" + }, + "sender_avatar_url": { + "type": "string" + }, + "sender_profile_url": { + "type": "string" + } + } + }, + "TriggerGitDeploymentMetadata.Provider": { + "type": "string", + "enum": [ + "UNKNOWN", + "GITHUB" + ], + "default": "UNKNOWN" + }, + "CreateStageAttemptReply": { + "type": "object" + }, + "DeclareStageProgressReply": { + "type": "object" + }, + "DeclareStepProgressReply": { + "type": "object" + }, + "CreatePersistentVolumeReply": { + "type": "object", + "properties": { + "volume": { + "$ref": "#/definitions/PersistentVolume" + } + } + }, + "CreatePersistentVolumeRequest": { + "type": "object", + "properties": { + "volume_type": { + "$ref": "#/definitions/PersistentVolumeBackingStore", + "title": "the volume backing store type" + }, + "name": { + "type": "string", + "title": "the volume name" + }, + "region": { + "type": "string", + "title": "the volume region" + }, + "read_only": { + "type": "boolean", + "title": "whether the volume must be set as read only" + }, + "max_size": { + "type": "integer", + "format": "int64", + "title": "the size of the volume (in Gigabyte / GB)" + }, + "snapshot_id": { + "type": "string", + "title": "(optional) the id of the snapshot whence the volume comes from" + } + } + }, + "DeletePersistentVolumeReply": { + "type": "object", + "properties": { + "volume": { + "$ref": "#/definitions/PersistentVolume" + } + } + }, + "GetPersistentVolumeReply": { + "type": "object", + "properties": { + "volume": { + "$ref": "#/definitions/PersistentVolume" + } + } + }, + "ListPersistentVolumeEventsReply": { + "type": "object", + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/PersistentVolumeEvent" + }, + "title": "The collection of events" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "order": { + "type": "string", + "title": "The order in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "ListPersistentVolumesReply": { + "type": "object", + "properties": { + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/PersistentVolume" + }, + "title": "The collection of persistent volumes" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "PersistentVolume": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "the identifier for the volume object" + }, + "name": { + "type": "string", + "title": "the volume name" + }, + "snapshot_id": { + "type": "string", + "title": "(optional) the id of the snapshot whence the volume comes from" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "creation timestamp" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "last change timestamp" + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "title": "deletion timestamp" + }, + "organization_id": { + "type": "string", + "title": "the organization to which the volume belongs to" + }, + "service_id": { + "type": "string", + "title": "the service_id to which the volume is eventually bound to" + }, + "region": { + "type": "string", + "title": "the region where the volume exists" + }, + "read_only": { + "type": "boolean", + "title": "whether to mount the volume in read-only mode" + }, + "max_size": { + "type": "integer", + "format": "int64", + "title": "the maximum size of the volume (in Gigabyte / GB)" + }, + "cur_size": { + "type": "integer", + "format": "int64", + "title": "the used amount of space as measured the last time (in Gigabyte / GB)" + }, + "status": { + "$ref": "#/definitions/PersistentVolumeStatus", + "title": "the status of the volume" + }, + "backing_store": { + "$ref": "#/definitions/PersistentVolumeBackingStore", + "title": "the backing store type" + } + }, + "title": "The object that represent a volume to handle persistency for deployments" + }, + "PersistentVolumeBackingStore": { + "type": "string", + "enum": [ + "PERSISTENT_VOLUME_BACKING_STORE_INVALID", + "PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK" + ], + "default": "PERSISTENT_VOLUME_BACKING_STORE_INVALID", + "title": "- PERSISTENT_VOLUME_BACKING_STORE_INVALID: zero value, invalid\n - PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK: the backing store is a locally reachable block device" + }, + "PersistentVolumeEvent": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "when": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "persistent_volume_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + }, + "metadata": { + "type": "object" + } + } + }, + "PersistentVolumeStatus": { + "type": "string", + "enum": [ + "PERSISTENT_VOLUME_STATUS_INVALID", + "PERSISTENT_VOLUME_STATUS_ATTACHED", + "PERSISTENT_VOLUME_STATUS_DETACHED", + "PERSISTENT_VOLUME_STATUS_DELETING", + "PERSISTENT_VOLUME_STATUS_DELETED" + ], + "default": "PERSISTENT_VOLUME_STATUS_INVALID", + "title": "- PERSISTENT_VOLUME_STATUS_INVALID: zero value, invalid\n - PERSISTENT_VOLUME_STATUS_ATTACHED: the volume is attached to an instance\n - PERSISTENT_VOLUME_STATUS_DETACHED: the volume is free to use\n - PERSISTENT_VOLUME_STATUS_DELETING: the volume will be deleted\n - PERSISTENT_VOLUME_STATUS_DELETED: the volume was deleted" + }, + "UpdatePersistentVolumeReply": { + "type": "object", + "properties": { + "volume": { + "$ref": "#/definitions/PersistentVolume" + } + } + }, + "CreateDomain": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/Domain.Type" + }, + "app_id": { + "type": "string", + "title": "to auto-attach to an app. Optional" + }, + "cloudflare": { + "$ref": "#/definitions/Domain.LoadBalancerCloudflare" + }, + "koyeb": { + "$ref": "#/definitions/Domain.LoadBalancerKoyeb", + "description": "Only applicable to auto-assigned domains, for organizations on the Scale plan." + } + } + }, + "CreateDomainReply": { + "type": "object", + "properties": { + "domain": { + "$ref": "#/definitions/Domain" + } + } + }, + "DeleteDomainReply": { + "type": "object" + }, + "GetDomainReply": { + "type": "object", + "properties": { + "domain": { + "$ref": "#/definitions/Domain" + } + } + }, + "ListDomainsReply": { + "type": "object", + "properties": { + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/Domain" + } + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "RefreshDomainStatusReply": { + "type": "object" + }, + "UpdateDomain": { + "type": "object", + "properties": { + "app_id": { + "type": "string", + "description": "To attach or detach from an app for custom domain." + }, + "subdomain": { + "type": "string", + "description": "To change subdomain for auto-assigned domain." + } + } + }, + "UpdateDomainReply": { + "type": "object", + "properties": { + "domain": { + "$ref": "#/definitions/Domain" + } + } + }, + "GetInstanceReply": { + "type": "object", + "properties": { + "instance": { + "$ref": "#/definitions/Instance" + } + } + }, + "InstanceEvent": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "when": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "instance_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + }, + "metadata": { + "type": "object" + } + } + }, + "InstanceListItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "regional_deployment_id": { + "type": "string" + }, + "allocation_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "replica_index": { + "type": "integer", + "format": "int64" + }, + "region": { + "type": "string" + }, + "datacenter": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/Instance.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "xyz_deployment_id": { + "type": "string", + "description": "WARNING: Please don't use the following attribute.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK." + } + } + }, + "ListInstanceEventsReply": { + "type": "object", + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceEvent" + }, + "title": "The collection of events" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "order": { + "type": "string", + "title": "The order in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "ListInstancesReply": { + "type": "object", + "properties": { + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceListItem" + }, + "title": "The collection of instances" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + }, + "order": { + "type": "string", + "title": "The order in the request" + } + } + }, + "Archive": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The archive id, that can be referenced when creating or updating a service." + }, + "organization_id": { + "type": "string", + "description": "Organization owning the archive." + }, + "upload_url": { + "type": "string", + "description": "The URL where to upload the archive. This URL is signed and can only be\nused to upload the archive until `valid_until`." + }, + "size": { + "type": "string", + "format": "uint64", + "description": "The provisioned space for the archive." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date of creation of the archive." + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "description": "This field is automatically set by Koyeb when the\narchive is garbage collected." + } + } + }, + "CreateArchive": { + "type": "object", + "properties": { + "size": { + "type": "string", + "format": "uint64", + "description": "How much space to provision for the archive, in bytes." + } + } + }, + "CreateArchiveReply": { + "type": "object", + "properties": { + "archive": { + "$ref": "#/definitions/Archive" + } + } + }, + "AppEvent": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "when": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + }, + "metadata": { + "type": "object" + } + } + }, + "AppListItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/Domain" + } + }, + "status": { + "$ref": "#/definitions/App.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CreateAppReply": { + "type": "object", + "properties": { + "app": { + "$ref": "#/definitions/App", + "title": "The entity created" + } + } + }, + "DeleteAppReply": { + "type": "object" + }, + "GetAppReply": { + "type": "object", + "properties": { + "app": { + "$ref": "#/definitions/App", + "title": "The App retrieved" + } + } + }, + "ListAppEventsReply": { + "type": "object", + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/AppEvent" + }, + "title": "The collection of events" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "order": { + "type": "string", + "title": "The order in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "ListAppsReply": { + "type": "object", + "properties": { + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/AppListItem" + } + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "PauseAppReply": { + "type": "object" + }, + "ResumeAppReply": { + "type": "object" + }, + "UpdateApp": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "UpdateAppReply": { + "type": "object", + "properties": { + "app": { + "$ref": "#/definitions/App", + "title": "The entity updated" + } + } + }, + "ReviewOrganizationCapacityReply": { + "type": "object", + "properties": { + "has_capacity": { + "type": "boolean" + } + } + }, + "ReviewOrganizationCapacityRequest": { + "type": "object", + "properties": { + "plan": { + "type": "string" + }, + "trialing": { + "type": "boolean" + } + } + }, + "AutocompleteReply": { + "type": "object", + "properties": { + "secrets": { + "type": "array", + "items": { + "type": "string" + }, + "title": "List of available secrets" + }, + "user_env": { + "type": "array", + "items": { + "type": "string" + }, + "title": "List of available user's environment variables" + }, + "system_env": { + "type": "array", + "items": { + "type": "string" + }, + "title": "List of available system's environment variables" + } + } + }, + "AutocompleteRequest": { + "type": "object", + "properties": { + "definition": { + "$ref": "#/definitions/DeploymentDefinition", + "title": "Deployment definition" + } + } + }, + "CreateServiceReply": { + "type": "object", + "properties": { + "service": { + "$ref": "#/definitions/Service", + "title": "The entity created" + } + } + }, + "DeleteServiceReply": { + "type": "object" + }, + "GetServiceReply": { + "type": "object", + "properties": { + "service": { + "$ref": "#/definitions/Service", + "title": "The Service retrieved" + } + } + }, + "ListServiceEventsReply": { + "type": "object", + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceEvent" + }, + "title": "The collection of events" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "order": { + "type": "string", + "title": "The order in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "ListServicesReply": { + "type": "object", + "properties": { + "services": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceListItem" + } + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "PauseServiceReply": { + "type": "object" + }, + "RedeployReply": { + "type": "object", + "properties": { + "deployment": { + "$ref": "#/definitions/Deployment", + "title": "The entity updated" + } + } + }, + "RedeployRequest.Info": { + "type": "object", + "properties": { + "deployment_group": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "use_cache": { + "type": "boolean" + }, + "skip_build": { + "type": "boolean", + "description": "If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead.\nThe call fails if no previous successful builds happened." + } + } + }, + "ResumeServiceReply": { + "type": "object" + }, + "ServiceEvent": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "when": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + }, + "metadata": { + "type": "object" + } + } + }, + "ServiceListItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/Service.Type" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "status": { + "$ref": "#/definitions/Service.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "format": "uint64", + "title": "A version updated whenever this state changes (useful for caching)" + }, + "state": { + "$ref": "#/definitions/ServiceState" + }, + "active_deployment_id": { + "type": "string" + }, + "latest_deployment_id": { + "type": "string" + } + } + }, + "UpdateService": { + "type": "object", + "properties": { + "definition": { + "$ref": "#/definitions/DeploymentDefinition" + }, + "metadata": { + "$ref": "#/definitions/DeploymentMetadata" + }, + "skip_build": { + "type": "boolean", + "description": "If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead.\nThe call fails if no previous successful builds happened." + }, + "save_only": { + "type": "boolean", + "title": "If set, do not trigger a deployment, only store the new settings" + } + } + }, + "UpdateServiceReply": { + "type": "object", + "properties": { + "service": { + "$ref": "#/definitions/Service", + "title": "The entity updated" + } + } + }, + "AzureContainerRegistryConfiguration": { + "type": "object", + "properties": { + "registry_name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "CreateSecret": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/SecretType" + }, + "value": { + "type": "string" + }, + "docker_hub_registry": { + "$ref": "#/definitions/DockerHubRegistryConfiguration" + }, + "private_registry": { + "$ref": "#/definitions/PrivateRegistryConfiguration" + }, + "digital_ocean_registry": { + "$ref": "#/definitions/DigitalOceanRegistryConfiguration" + }, + "github_registry": { + "$ref": "#/definitions/GitHubRegistryConfiguration" + }, + "gitlab_registry": { + "$ref": "#/definitions/GitLabRegistryConfiguration" + }, + "gcp_container_registry": { + "$ref": "#/definitions/GCPContainerRegistryConfiguration" + }, + "azure_container_registry": { + "$ref": "#/definitions/AzureContainerRegistryConfiguration" + } + } + }, + "CreateSecretReply": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/Secret" + } + } + }, + "DatabaseRolePassword": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "DeleteSecretReply": { + "type": "object" + }, + "DigitalOceanRegistryConfiguration": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "DockerHubRegistryConfiguration": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "GCPContainerRegistryConfiguration": { + "type": "object", + "properties": { + "keyfile_content": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "GetSecretReply": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/Secret" + } + } + }, + "GitHubRegistryConfiguration": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "GitLabRegistryConfiguration": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "ListSecretsReply": { + "type": "object", + "properties": { + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/Secret" + } + }, + "limit": { + "type": "integer", + "format": "int64" + }, + "offset": { + "type": "integer", + "format": "int64" + }, + "count": { + "type": "integer", + "format": "int64" + } + } + }, + "PrivateRegistryConfiguration": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "RevealSecretReply": { + "type": "object", + "properties": { + "value": {} + } + }, + "Secret": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/SecretType" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "value": { + "type": "string" + }, + "docker_hub_registry": { + "$ref": "#/definitions/DockerHubRegistryConfiguration" + }, + "private_registry": { + "$ref": "#/definitions/PrivateRegistryConfiguration" + }, + "digital_ocean_registry": { + "$ref": "#/definitions/DigitalOceanRegistryConfiguration" + }, + "github_registry": { + "$ref": "#/definitions/GitHubRegistryConfiguration" + }, + "gitlab_registry": { + "$ref": "#/definitions/GitLabRegistryConfiguration" + }, + "gcp_container_registry": { + "$ref": "#/definitions/GCPContainerRegistryConfiguration" + }, + "azure_container_registry": { + "$ref": "#/definitions/AzureContainerRegistryConfiguration" + }, + "database_role_password": { + "$ref": "#/definitions/DatabaseRolePassword" + } + } + }, + "SecretType": { + "type": "string", + "enum": [ + "SIMPLE", + "REGISTRY", + "MANAGED" + ], + "default": "SIMPLE" + }, + "UpdateSecretReply": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/Secret" + } + } + }, + "CreateSnapshotReply": { + "type": "object", + "properties": { + "snapshot": { + "$ref": "#/definitions/Snapshot" + } + } + }, + "CreateSnapshotRequest": { + "type": "object", + "properties": { + "parent_volume_id": { + "type": "string", + "title": "The id of the volume to snapshot" + }, + "name": { + "type": "string", + "title": "The name of the snapshot" + } + } + }, + "DeleteSnapshotReply": { + "type": "object", + "properties": { + "snapshot": { + "$ref": "#/definitions/Snapshot" + } + } + }, + "GetSnapshotReply": { + "type": "object", + "properties": { + "snapshot": { + "$ref": "#/definitions/Snapshot" + } + } + }, + "ListSnapshotsReply": { + "type": "object", + "properties": { + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/Snapshot" + }, + "title": "The collection of snapshots" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "Snapshot": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "the identifier of the snapshot object" + }, + "name": { + "type": "string", + "title": "the snapshot name" + }, + "size": { + "type": "integer", + "format": "int64", + "title": "the original volume size" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "creation timestamp" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "last change timestamp" + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "title": "deletion timestamp" + }, + "organization_id": { + "type": "string", + "title": "the organization to which the snapshot belongs to" + }, + "parent_volume_id": { + "type": "string", + "title": "the volume from which the snapshot has been created" + }, + "region": { + "type": "string", + "title": "the region where the snapshot resides, if any" + }, + "status": { + "$ref": "#/definitions/SnapshotStatus", + "title": "the status of the snapshot" + }, + "type": { + "$ref": "#/definitions/SnapshotType", + "title": "the type of snapshot (can be local or remote)" + } + }, + "description": "The object that represents a snapshot. It can either be local, on a node, or remote, in a cold storage." + }, + "SnapshotStatus": { + "type": "string", + "enum": [ + "SNAPSHOT_STATUS_INVALID", + "SNAPSHOT_STATUS_CREATING", + "SNAPSHOT_STATUS_AVAILABLE", + "SNAPSHOT_STATUS_MIGRATING", + "SNAPSHOT_STATUS_DELETING", + "SNAPSHOT_STATUS_DELETED" + ], + "default": "SNAPSHOT_STATUS_INVALID", + "title": "- SNAPSHOT_STATUS_INVALID: zero value, invalid\n - SNAPSHOT_STATUS_CREATING: the snapshot is being created\n - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available\n - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated\n - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted\n - SNAPSHOT_STATUS_DELETED: the snapshot is deleted" + }, + "SnapshotType": { + "type": "string", + "enum": [ + "SNAPSHOT_TYPE_INVALID", + "SNAPSHOT_TYPE_LOCAL", + "SNAPSHOT_TYPE_REMOTE" + ], + "default": "SNAPSHOT_TYPE_INVALID", + "title": "- SNAPSHOT_TYPE_INVALID: zero value, invalid\n - SNAPSHOT_TYPE_LOCAL: the snapshot is local to the machine\n - SNAPSHOT_TYPE_REMOTE: the snapshot is remote in a cold storage" + }, + "UpdateSnapshotReply": { + "type": "object", + "properties": { + "snapshot": { + "$ref": "#/definitions/Snapshot" + } + } + }, + "ksearch.App": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ksearch.GlobalDeployment": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + } + } + }, + "ksearch.Instance": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "allocation_id": { + "type": "string" + } + } + }, + "ksearch.Organization": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ksearch.RegionalDeployment": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "service_id": { + "type": "string" + }, + "region": { + "type": "string" + } + } + }, + "ksearch.SearchReply": { + "type": "object", + "properties": { + "organizations": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.Organization" + } + }, + "users": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.User" + } + }, + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.App" + } + }, + "services": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.Service" + } + }, + "global_deployments": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.GlobalDeployment" + } + }, + "regional_deployments": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.RegionalDeployment" + } + }, + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/ksearch.Instance" + } + } + } + }, + "ksearch.Service": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "app_id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ksearch.User": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "github_user": { + "type": "string" + } + } + }, + "Activity": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "actor": { + "$ref": "#/definitions/Object" + }, + "object": { + "$ref": "#/definitions/Object" + }, + "verb": { + "type": "string" + }, + "metadata": { + "type": "object" + }, + "created_at": { + "type": "string", + "format": "date-time" + } + } + }, + "ActivityList": { + "type": "object", + "properties": { + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "limit": { + "type": "integer", + "format": "int64" + }, + "offset": { + "type": "integer", + "format": "int64" + }, + "has_next": { + "type": "boolean" + } + } + }, + "Notification": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "activity": { + "$ref": "#/definitions/Activity" + }, + "is_read": { + "type": "boolean" + }, + "is_seen": { + "type": "boolean" + }, + "created_at": { + "type": "string", + "format": "date-time" + } + } + }, + "NotificationList": { + "type": "object", + "properties": { + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/Notification" + } + }, + "limit": { + "type": "integer", + "format": "int64" + }, + "offset": { + "type": "integer", + "format": "int64" + }, + "count": { + "type": "integer", + "format": "int64" + }, + "is_read": { + "type": "boolean" + }, + "is_seen": { + "type": "boolean" + }, + "unread": { + "type": "integer", + "format": "int64" + }, + "unseen": { + "type": "integer", + "format": "int64" + } + } + }, + "Object": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "metadata": { + "type": "object" + }, + "deleted": { + "type": "boolean" + } + } + }, + "GetRegionReply": { + "type": "object", + "properties": { + "region": { + "$ref": "#/definitions/Region", + "title": "The Region retrieved" + } + } + }, + "ListRegionsReply": { + "type": "object", + "properties": { + "regions": { + "type": "array", + "items": { + "$ref": "#/definitions/RegionListItem" + } + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "Region": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The id of the region" + }, + "name": { + "type": "string", + "title": "The name of the region" + }, + "coordinates": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The coordinates of the region (lat/long)" + }, + "status": { + "type": "string", + "title": "The status of the region" + }, + "instances": { + "type": "array", + "items": { + "type": "string" + }, + "title": "A list of instances available in this region" + }, + "datacenters": { + "type": "array", + "items": { + "type": "string" + }, + "title": "A list of datacenters available in this region" + }, + "volumes_enabled": { + "type": "boolean", + "title": "Are the volumes enabled for this instance type" + }, + "scope": { + "type": "string", + "description": "The scope of the region, continent, metropolitan area, etc." + } + } + }, + "RegionListItem": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The id of the region" + }, + "name": { + "type": "string", + "title": "The name of the region" + }, + "coordinates": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The coordinates of the region (lat/long)" + }, + "status": { + "type": "string", + "title": "The status of the region" + }, + "instances": { + "type": "array", + "items": { + "type": "string" + }, + "title": "A list of instances available in this region" + }, + "datacenters": { + "type": "array", + "items": { + "type": "string" + }, + "title": "A list of datacenters available in this region" + }, + "volumes_enabled": { + "type": "boolean", + "title": "Are the volumes enabled for this instance type" + }, + "scope": { + "type": "string", + "description": "The scope of the region, continent, metropolitan area, etc." + } + } + }, + "CatalogGPUDetails": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64", + "title": "The number of GPUs" + }, + "brand": { + "type": "string", + "title": "The brand of GPU" + }, + "memory": { + "type": "string", + "title": "GPU memory" + }, + "name": { + "type": "string", + "title": "Name of GPU" + } + } + }, + "CatalogInstance": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The name of the instance" + }, + "description": { + "type": "string", + "title": "A short description of the instance" + }, + "vcpu": { + "type": "integer", + "format": "int64", + "description": "The number of cpus. Deprecated. Use vcpu_shares instead." + }, + "memory": { + "type": "string", + "title": "The memory in bytes in a format like 5MB" + }, + "disk": { + "type": "string", + "title": "The size of the disk in bytes in a format like 5MB" + }, + "price_per_second": { + "type": "string", + "title": "The price to pay per second" + }, + "price_hourly": { + "type": "string", + "title": "The price to pay per hour" + }, + "price_monthly": { + "type": "string", + "title": "The price to pay per month" + }, + "regions": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The regions where this instance type is available" + }, + "status": { + "type": "string", + "title": "The status of the instance" + }, + "require_plan": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The plan required to use instance" + }, + "vcpu_shares": { + "type": "number", + "format": "float", + "description": "The number of vcpu shares reserved for the instance." + }, + "display_name": { + "type": "string", + "title": "The display name of the instance" + }, + "aliases": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Aliases" + }, + "type": { + "type": "string", + "title": "The type of the instance (e.g. \"gpu\")" + }, + "gpu": { + "$ref": "#/definitions/CatalogGPUDetails", + "title": "GPU details" + }, + "service_types": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Allowed service types for this instance (e.g. [\"web\", \"worker\"])" + }, + "volumes_enabled": { + "type": "boolean", + "title": "Are the volumes enabled for this instance type" + }, + "light_sleep_enabled": { + "type": "boolean", + "title": "Is light sleep enabled for this instance type" + } + } + }, + "CatalogInstanceListItem": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The name of the instance" + }, + "description": { + "type": "string", + "title": "A short description of the instance" + }, + "vcpu": { + "type": "integer", + "format": "int64", + "description": "The number of cpus. Deprecated. Use vcpu_shares instead." + }, + "memory": { + "type": "string", + "title": "The memory in bytes in a format like 5MB" + }, + "disk": { + "type": "string", + "title": "The size of the disk in bytes in a format like 5MB" + }, + "price_per_second": { + "type": "string", + "title": "The price to pay per second" + }, + "price_hourly": { + "type": "string", + "title": "The price to pay per hour" + }, + "price_monthly": { + "type": "string", + "title": "The price to pay per month" + }, + "regions": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The regions where this instance type is available" + }, + "status": { + "type": "string", + "title": "The status of the instance" + }, + "require_plan": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The plan required to use instance" + }, + "vcpu_shares": { + "type": "number", + "format": "float", + "description": "The number of vcpu shares reserved for the instance." + }, + "display_name": { + "type": "string", + "title": "The display name of the instance" + }, + "aliases": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Aliases" + }, + "type": { + "type": "string", + "title": "The type of the instance (e.g. \"gpu\")" + }, + "gpu": { + "$ref": "#/definitions/CatalogGPUDetails", + "title": "GPU details" + }, + "service_types": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Allowed service types for this instance (e.g. [\"web\", \"worker\"])" + }, + "volumes_enabled": { + "type": "boolean", + "title": "Are the volumes enabled for this instance type" + }, + "light_sleep_enabled": { + "type": "boolean", + "title": "Is light sleep enabled for this instance type" + } + } + }, + "GetCatalogInstanceReply": { + "type": "object", + "properties": { + "instance": { + "$ref": "#/definitions/CatalogInstance", + "title": "The instance retrieved" + } + } + }, + "ListCatalogInstancesReply": { + "type": "object", + "properties": { + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/CatalogInstanceListItem" + } + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "DatacenterListItem": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "e.g. \"par1\"" + }, + "region_id": { + "type": "string", + "title": "e.g. \"par\"" + }, + "domain": { + "type": "string", + "title": "e.g. \"all-par1.infra.prod.koyeb.com\"" + }, + "coordinates": { + "type": "array", + "items": { + "type": "string" + }, + "title": "e.g. \"8.856614\" ,\"2.352221\"?" + }, + "use_gpu": { + "type": "boolean", + "title": "e.g. true" + }, + "regions": { + "type": "array", + "items": { + "type": "string" + }, + "title": "e.g. \"par\", \"fra\"" + } + } + }, + "ListDatacentersReply": { + "type": "object", + "properties": { + "datacenters": { + "type": "array", + "items": { + "$ref": "#/definitions/DatacenterListItem" + } + } + } + }, + "AvailabilityLevel": { + "type": "string", + "enum": [ + "UNKNOWN", + "LOW", + "MEDIUM", + "HIGH" + ], + "default": "UNKNOWN" + }, + "CatalogUsage": { + "type": "object", + "properties": { + "instances": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/InstanceAvailability" + } + } + } + }, + "InstanceAvailability": { + "type": "object", + "properties": { + "regions": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RegionAvailability" + } + }, + "availability": { + "$ref": "#/definitions/AvailabilityLevel" + } + } + }, + "ListUsageReply": { + "type": "object", + "properties": { + "usage": { + "$ref": "#/definitions/CatalogUsage", + "title": "The Usage retrieved" + } + } + }, + "RegionAvailability": { + "type": "object", + "properties": { + "availability": { + "$ref": "#/definitions/AvailabilityLevel" + } + } + }, + "ExecCommandIO": { + "type": "object", + "properties": { + "data": { + "type": "string", + "format": "byte", + "description": "Data is base64 encoded" + }, + "close": { + "type": "boolean", + "description": "Indicate last data frame" + } + } + }, + "ExecCommandReply": { + "type": "object", + "properties": { + "stdout": { + "$ref": "#/definitions/ExecCommandIO" + }, + "stderr": { + "$ref": "#/definitions/ExecCommandIO" + }, + "exited": { + "type": "boolean" + }, + "exit_code": { + "type": "integer", + "format": "int32" + } + } + }, + "ExecCommandRequest.Body": { + "type": "object", + "properties": { + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to exec. Mandatory in the first frame sent" + }, + "tty_size": { + "$ref": "#/definitions/ExecCommandRequest.TerminalSize" + }, + "stdin": { + "$ref": "#/definitions/ExecCommandIO" + }, + "disableTty": { + "type": "boolean", + "description": "Disable TTY. It's enough to specify it in the first frame" + } + } + }, + "ExecCommandRequest.IdType": { + "type": "string", + "enum": [ + "INVALID", + "INSTANCE_ID", + "SERVICE_ID" + ], + "default": "INVALID" + }, + "ExecCommandRequest.TerminalSize": { + "type": "object", + "properties": { + "height": { + "type": "integer", + "format": "int32" + }, + "width": { + "type": "integer", + "format": "int32" + } + } + }, + "GetMetricsReply": { + "type": "object", + "properties": { + "metrics": { + "type": "array", + "items": { + "$ref": "#/definitions/GetMetricsReply.Metric" + } + } + } + }, + "GetMetricsReply.Metric": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "samples": { + "type": "array", + "items": { + "$ref": "#/definitions/Sample" + } + } + } + }, + "MetricName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU_TOTAL_PERCENT", + "MEM_RSS", + "HTTP_THROUGHPUT", + "HTTP_RESPONSE_TIME_50P", + "HTTP_RESPONSE_TIME_90P", + "HTTP_RESPONSE_TIME_99P", + "HTTP_RESPONSE_TIME_MAX", + "PUBLIC_DATA_TRANSFER_IN", + "PUBLIC_DATA_TRANSFER_OUT" + ], + "default": "UNKNOWN" + }, + "Sample": { + "type": "object", + "properties": { + "timestamp": { + "type": "string" + }, + "value": { + "type": "number", + "format": "double" + } + } + }, + "LogEntry": { + "type": "object", + "properties": { + "msg": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "labels": { + "type": "object" + } + } + }, + "QueryLogsReply": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/LogEntry" + } + }, + "pagination": { + "$ref": "#/definitions/QueryLogsReplyPagination" + } + } + }, + "QueryLogsReplyPagination": { + "type": "object", + "properties": { + "has_more": { + "type": "boolean" + }, + "next_start": { + "type": "string", + "format": "date-time" + }, + "next_end": { + "type": "string", + "format": "date-time" + } + } + }, + "LoginReply": { + "type": "object", + "properties": { + "token": { + "$ref": "#/definitions/Token" + } + } + }, + "LoginRequest": { + "type": "object", + "example": { + "email": "john@snow.com", + "password": "..." + }, + "properties": { + "email": { + "type": "string", + "title": "User email" + }, + "password": { + "type": "string", + "title": "User password" + }, + "organization_id": { + "type": "string", + "title": "(Optional) Login into this organization" + } + } + }, + "LogoutReply": { + "type": "object" + }, + "Token": { + "type": "object", + "example": { + "id": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", + "expires": "2022-09-08T14:00:00Z", + "user_id": "996d7822-6b58-11e9-956f-32001b70f000", + "organization_id": "9f33b2c6-6b58-11e9-883c-32001b70f000" + }, + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "GetIntercomProfileReply": { + "type": "object", + "properties": { + "hash": { + "type": "string" + } + } + }, + "DeleteUserReply": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + } + } + }, + "User": { + "type": "object", + "example": { + "id": "78352123-a06f-4ec2-81ed-27a056725385", + "email": "john@snow.com", + "name": "John Snow", + "avatar_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000", + "is_admin": false, + "is_test": true, + "two_factor_authentication": false, + "last_login": "0001-01-01T00:00:00Z", + "last_login_id": "10.1.1.1", + "updated_at": "0001-01-01T00:00:00Z", + "created_at": "0001-01-01T00:00:00Z", + "newsletter_subscribed": true, + "email_validated": true + }, + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "two_factor_authentication": { + "type": "boolean" + }, + "last_login": { + "type": "string", + "format": "date-time" + }, + "last_login_ip": { + "type": "string" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "newsletter_subscribed": { + "type": "boolean" + }, + "github_id": { + "type": "string" + }, + "github_user": { + "type": "string" + }, + "flags": { + "type": "array", + "items": { + "$ref": "#/definitions/UserFlags" + } + }, + "name": { + "type": "string" + }, + "email_validated": { + "type": "boolean" + }, + "trialed": { + "type": "boolean" + } + }, + "title": "Represent a User" + }, + "UserFlags": { + "type": "string", + "enum": [ + "ADMIN", + "TEST", + "RESTRICTED", + "ACTIVE", + "BETA", + "MAX_ORGANIZATIONS_25", + "MAX_ORGANIZATIONS_100", + "MAX_ORGANIZATIONS_1000", + "MAX_ORGANIZATIONS_10000", + "MAX_ORGANIZATIONS_100000", + "MAX_ORGANIZATIONS_1000000", + "PARTNER_CSP", + "IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX" + ], + "default": "ADMIN", + "title": "- ADMIN: A user is an admin user\n - TEST: A user is a test user\n - RESTRICTED: Whether this account as restricted access\n - ACTIVE: Whether this account is active\n - BETA: Account in beta program\n - MAX_ORGANIZATIONS_25: User can create this much organizations, overriding the default amount\n - PARTNER_CSP: User can create sub-organizations\n - IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX: User can bypass organization name reservations rules" + }, + "ConfirmPaymentAuthorizationReply": { + "type": "object", + "properties": { + "payment_method": { + "$ref": "#/definitions/PaymentMethod" + } + } + }, + "CreatePaymentAuthorizationReply": { + "type": "object", + "properties": { + "payment_method": { + "$ref": "#/definitions/PaymentMethod" + } + } + }, + "CreatePaymentAuthorizationRequest": { + "type": "object" + }, + "DeletePaymentMethodReply": { + "type": "object" + }, + "GetPaymentMethodReply": { + "type": "object", + "properties": { + "payment_method": { + "$ref": "#/definitions/PaymentMethod" + } + } + }, + "ListPaymentMethodsReply": { + "type": "object", + "properties": { + "payment_methods": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentMethod" + }, + "title": "The collection of payment methods" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "PaymentMethod": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "version": { + "type": "string", + "format": "uint64" + }, + "organization_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/PaymentMethod.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "stripe_payment_method_id": { + "type": "string" + }, + "authorization_verified_at": { + "type": "string", + "format": "date-time" + }, + "authorization_canceled_at": { + "type": "string", + "format": "date-time" + }, + "authorization_stripe_payment_intent_id": { + "type": "string" + }, + "authorization_stripe_payment_intent_client_secret": { + "type": "string" + }, + "card_brand": { + "type": "string" + }, + "card_country": { + "type": "string" + }, + "card_funding": { + "type": "string" + }, + "card_fingerprint": { + "type": "string" + }, + "card_last_digits": { + "type": "string" + }, + "card_expiration_month": { + "type": "integer", + "format": "int64" + }, + "card_expiration_year": { + "type": "integer", + "format": "int64" + } + } + }, + "PaymentMethod.Status": { + "type": "string", + "enum": [ + "INVALID", + "CREATED", + "AUTHORIZED", + "DECLINED", + "CANCELED", + "EXPIRED", + "UNCHECKED" + ], + "default": "INVALID" + }, + "RedeemCouponReply": { + "type": "object" + }, + "RedeemCouponRequest": { + "type": "object", + "properties": { + "code": { + "type": "string" + } + } + }, + "CreateCredential": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Credential name" + }, + "description": { + "type": "string", + "title": "Credential description" + }, + "type": { + "$ref": "#/definitions/Credential.Type", + "title": "Credential type" + }, + "organization_id": { + "type": "string", + "title": "Organization id for user credential" + } + } + }, + "CreateCredentialReply": { + "type": "object", + "properties": { + "credential": { + "$ref": "#/definitions/Credential" + } + } + }, + "Credential": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/Credential.Type" + }, + "name": { + "type": "string" + }, + "token": { + "type": "string" + }, + "description": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "Credential.Type": { + "type": "string", + "enum": [ + "INVALID", + "USER", + "ORGANIZATION" + ], + "default": "INVALID" + }, + "DeleteCredentialReply": { + "type": "object" + }, + "GetCredentialReply": { + "type": "object", + "properties": { + "credential": { + "$ref": "#/definitions/Credential" + } + } + }, + "ListCredentialsReply": { + "type": "object", + "properties": { + "credentials": { + "type": "array", + "items": { + "$ref": "#/definitions/Credential" + } + }, + "limit": { + "type": "integer", + "format": "int64" + }, + "offset": { + "type": "integer", + "format": "int64" + }, + "count": { + "type": "integer", + "format": "int64" + } + } + }, + "UpdateCredentialReply": { + "type": "object", + "properties": { + "credential": { + "$ref": "#/definitions/Credential" + } + } + }, + "GetSubscriptionReply": { + "type": "object", + "properties": { + "subscription": { + "$ref": "#/definitions/Subscription" + } + } + }, + "Subscription": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "version": { + "type": "string", + "format": "uint64" + }, + "organization_id": { + "type": "string" + }, + "stripe_subscription_id": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/Subscription.Status" + }, + "messages": { + "type": "array", + "items": { + "type": "string" + } + }, + "has_pending_update": { + "type": "boolean" + }, + "stripe_pending_invoice_id": { + "type": "string" + }, + "terminate_at": { + "type": "string", + "format": "date-time" + }, + "canceled_at": { + "type": "string", + "format": "date-time" + }, + "terminated_at": { + "type": "string", + "format": "date-time" + }, + "current_period_start": { + "type": "string", + "format": "date-time" + }, + "current_period_end": { + "type": "string", + "format": "date-time" + }, + "currency": { + "type": "string" + }, + "amount_payable": { + "type": "string", + "format": "int64" + }, + "amount_paid": { + "type": "string", + "format": "int64" + }, + "amount_remaining": { + "type": "string", + "format": "int64" + }, + "payment_failure": { + "$ref": "#/definitions/Subscription.PaymentFailure" + }, + "trialing": { + "type": "boolean" + }, + "trial_ends_at": { + "type": "string", + "format": "date-time" + }, + "trial_max_spend": { + "type": "string", + "format": "int64" + }, + "current_spend": { + "type": "string", + "format": "int64" + } + } + }, + "Subscription.PaymentFailure": { + "type": "object", + "properties": { + "failed_at": { + "type": "string", + "format": "date-time" + }, + "next_attempt": { + "type": "string", + "format": "date-time" + }, + "attempt_count": { + "type": "string", + "format": "int64" + }, + "error_code": { + "type": "string" + }, + "error_reason": { + "type": "string" + }, + "error_type": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "payment_method_required": { + "type": "boolean" + }, + "redirect_url": { + "type": "string" + }, + "stripe_sdk": { + "$ref": "#/definitions/Subscription.PaymentFailure.StripeSDK" + } + } + }, + "Subscription.PaymentFailure.StripeSDK": { + "type": "object", + "properties": { + "client_secret_key": { + "type": "string" + }, + "raw_json": { + "type": "string" + } + } + }, + "Subscription.Status": { + "type": "string", + "enum": [ + "INVALID", + "CREATED", + "ACTIVE", + "WARNING", + "URGENT", + "CANCELING", + "CANCELED", + "TERMINATING", + "TERMINATED" + ], + "default": "INVALID" + }, + "CreateOrganizationInvitationReply": { + "type": "object", + "properties": { + "invitation": { + "$ref": "#/definitions/OrganizationInvitation", + "title": "The organization invitation sent" + } + } + }, + "CreateOrganizationInvitationRequest": { + "type": "object", + "properties": { + "email": { + "type": "string", + "title": "The email of the person to invite" + } + } + }, + "DeleteOrganizationInvitationReply": { + "type": "object" + }, + "GetOrganizationInvitationReply": { + "type": "object", + "properties": { + "invitation": { + "$ref": "#/definitions/OrganizationInvitation" + } + } + }, + "ListOrganizationInvitationsReply": { + "type": "object", + "properties": { + "invitations": { + "type": "array", + "items": { + "$ref": "#/definitions/OrganizationInvitation" + }, + "title": "The collection of organization invitations" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "Organization.Status": { + "type": "string", + "enum": [ + "WARNING", + "LOCKED", + "ACTIVE", + "DEACTIVATING", + "DEACTIVATED", + "DELETING", + "DELETED" + ], + "default": "WARNING" + }, + "OrganizationInvitation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "role": { + "$ref": "#/definitions/UserRole.Role" + }, + "status": { + "$ref": "#/definitions/OrganizationInvitation.Status" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "organization_id": { + "type": "string" + }, + "organization": { + "$ref": "#/definitions/PublicOrganization" + }, + "invitee_id": { + "type": "string" + }, + "invitee": { + "$ref": "#/definitions/PublicUser" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/PublicUser" + } + } + }, + "OrganizationInvitation.Status": { + "type": "string", + "enum": [ + "INVALID", + "PENDING", + "ACCEPTED", + "REFUSED", + "EXPIRED" + ], + "default": "INVALID" + }, + "Plan": { + "type": "string", + "enum": [ + "hobby", + "starter", + "startup", + "business", + "enterprise", + "internal", + "hobby23", + "no_plan", + "pro", + "scale", + "partner_csp", + "partner_csp_unit" + ], + "default": "hobby" + }, + "PublicOrganization": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "plan": { + "$ref": "#/definitions/Plan" + }, + "status": { + "$ref": "#/definitions/Organization.Status" + } + } + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "github_id": { + "type": "string" + }, + "github_user": { + "type": "string" + } + } + }, + "ResendOrganizationInvitationReply": { + "type": "object", + "properties": { + "invitation": { + "$ref": "#/definitions/OrganizationInvitation", + "title": "The organization invitation resent" + } + } + }, + "UserRole.Role": { + "type": "string", + "enum": [ + "INVALID", + "OWNER" + ], + "default": "INVALID" + }, + "ConfirmOrganizationActionReply": { + "type": "object" + }, + "DomainLoadBalancerQuotas": { + "type": "object", + "properties": { + "max_koyeb": { + "type": "integer", + "format": "int64" + } + } + }, + "GetQuotasReply": { + "type": "object", + "properties": { + "quotas": { + "$ref": "#/definitions/Quotas" + } + } + }, + "PersistentVolumeQuotas": { + "type": "object", + "properties": { + "max_total_size": { + "type": "integer", + "format": "int64", + "description": "MaxTotalSize for all volumes on a region (in Gigabyte / GB)." + }, + "max_volume_size": { + "type": "integer", + "format": "int64", + "description": "MaxVolumeSize for one volume (in Gigabyte / GB)." + }, + "max_per_instance_size": { + "type": "integer", + "format": "int64", + "description": "MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB)." + } + } + }, + "Quotas": { + "type": "object", + "properties": { + "apps": { + "type": "string", + "format": "int64" + }, + "services": { + "type": "string", + "format": "int64" + }, + "domains": { + "type": "string", + "format": "int64", + "title": "Deprecated, use custom_domains instead" + }, + "services_by_app": { + "type": "string", + "format": "int64" + }, + "service_provisioning_concurrency": { + "type": "string", + "format": "int64" + }, + "memory_mb": { + "type": "string", + "format": "int64" + }, + "instance_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "regions": { + "type": "array", + "items": { + "type": "string" + } + }, + "max_organization_members": { + "type": "string", + "format": "int64" + }, + "max_instances_by_type": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + } + }, + "persistent_volumes_by_region": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/PersistentVolumeQuotas" + } + }, + "custom_domains": { + "type": "string", + "format": "int64" + }, + "domains_load_balancer": { + "$ref": "#/definitions/DomainLoadBalancerQuotas" + }, + "metrics_retention": { + "type": "integer", + "format": "int32", + "title": "Time in days" + }, + "logs_retention": { + "type": "integer", + "format": "int32", + "title": "Time in days" + }, + "access_reserved_subdomains": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The mapping between reserved_subdomain names and their value is in the code" + }, + "proxy_ports": { + "type": "integer", + "format": "int64" + }, + "scale_to_zero": { + "$ref": "#/definitions/ScaleToZeroQuotas" + }, + "archives": { + "type": "string", + "format": "int64" + }, + "archive_max_size_mb": { + "type": "string", + "format": "int64" + } + } + }, + "ScaleToZeroQuotas": { + "type": "object", + "properties": { + "is_deep_sleep_enabled": { + "type": "boolean", + "title": "deep sleep limits" + }, + "deep_sleep_idle_delay_min": { + "type": "integer", + "format": "int64" + }, + "deep_sleep_idle_delay_max": { + "type": "integer", + "format": "int64" + }, + "is_light_sleep_enabled": { + "type": "boolean", + "title": "light sleep limits" + }, + "light_sleep_idle_delay_min": { + "type": "integer", + "format": "int64" + }, + "light_sleep_idle_delay_max": { + "type": "integer", + "format": "int64" + } + } + }, + "AppsSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Total number of apps" + }, + "by_status": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of apps grouped by status" + } + } + }, + "DomainsSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Total number of domains" + }, + "by_status": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of domains grouped by status" + } + } + }, + "GetOrganizationSummaryReply": { + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/OrganizationSummary", + "title": "Organization usage summary" + } + } + }, + "InstancesSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Total number of instances" + }, + "by_type": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of instances grouped by type" + } + } + }, + "MembersSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Number of members" + }, + "invitations_by_status": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of invitations grouped by status" + } + } + }, + "NeonPostgresSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Total number of databases" + }, + "by_instance_type": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of databases grouped by instance type" + } + } + }, + "OrganizationSummary": { + "type": "object", + "properties": { + "organization_id": { + "type": "string" + }, + "instances": { + "$ref": "#/definitions/InstancesSummary" + }, + "apps": { + "$ref": "#/definitions/AppsSummary" + }, + "services": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ServiceSummary" + }, + "title": "Number of services grouped by type" + }, + "domains": { + "$ref": "#/definitions/DomainsSummary" + }, + "secrets": { + "$ref": "#/definitions/SecretsSummary" + }, + "neon_postgres": { + "$ref": "#/definitions/NeonPostgresSummary" + }, + "members": { + "$ref": "#/definitions/MembersSummary" + } + } + }, + "SecretsSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Total number of secrets" + }, + "by_type": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of secrets grouped by type" + } + } + }, + "ServiceSummary": { + "type": "object", + "properties": { + "total": { + "type": "string", + "format": "int64", + "title": "Total number of services" + }, + "by_status": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "int64" + }, + "title": "Number of services grouped by status" + } + } + }, + "ListOrganizationMembersReply": { + "type": "object", + "properties": { + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/OrganizationMember" + }, + "title": "The collection of organization members" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "OrganizationMember": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "role": { + "$ref": "#/definitions/UserRole.Role" + }, + "status": { + "$ref": "#/definitions/OrganizationMember.Status" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "organization": { + "$ref": "#/definitions/PublicOrganization" + } + } + }, + "OrganizationMember.Status": { + "type": "string", + "enum": [ + "INVALID", + "ACTIVE", + "DELETED" + ], + "default": "INVALID" + }, + "RemoveOrganizationMemberReply": { + "type": "object", + "properties": { + "member": { + "$ref": "#/definitions/OrganizationMember" + } + } + }, + "AcceptOrganizationInvitationReply": { + "type": "object", + "properties": { + "invitation": { + "$ref": "#/definitions/OrganizationInvitation", + "title": "The organization invitation accepted" + } + } + }, + "Action": { + "type": "string", + "enum": [ + "signin", + "signup", + "register" + ], + "default": "signin" + }, + "Budget": { + "type": "object", + "properties": { + "amount": { + "type": "string", + "format": "int64" + }, + "thresholds": { + "type": "array", + "items": { + "type": "string", + "format": "int64" + } + } + } + }, + "CannyAuthReply": { + "type": "object", + "properties": { + "token": { + "type": "string" + } + } + }, + "CannyAuthRequest": { + "type": "object" + }, + "ClearIdenfyVerificationResultReply": { + "type": "object" + }, + "ClearIdenfyVerificationResultRequest": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "organization_id": { + "type": "string" + } + } + }, + "CreateAccessTokenReply": { + "type": "object", + "properties": { + "token": { + "type": "string" + } + } + }, + "CreateAccountRequest": { + "type": "object", + "example": { + "email": "john@snow.com", + "password": "..." + }, + "properties": { + "email": { + "type": "string" + }, + "password": { + "type": "string" + }, + "name": { + "type": "string" + }, + "captcha": { + "type": "string" + } + }, + "description": "Create new account", + "title": "Create new account", + "required": [ + "email", + "password" + ] + }, + "CreateBudgetReply": { + "type": "object", + "properties": { + "budget": { + "$ref": "#/definitions/Budget" + } + } + }, + "CreateOrganizationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "CreateOrganizationRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "DeactivateOrganizationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "DeclineOrganizationInvitationReply": { + "type": "object", + "properties": { + "invitation": { + "$ref": "#/definitions/OrganizationInvitation", + "title": "The organization invitation declined" + } + } + }, + "DeleteBudgetReply": { + "type": "object" + }, + "DeleteOrganizationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "DiscourseAuthReply": { + "type": "object", + "properties": { + "sso": { + "type": "string" + }, + "sig": { + "type": "string" + } + } + }, + "DiscourseAuthRequest": { + "type": "object", + "properties": { + "payload": { + "type": "string" + }, + "sig": { + "type": "string" + } + } + }, + "GetBudgetReply": { + "type": "object", + "properties": { + "budget": { + "$ref": "#/definitions/Budget" + } + } + }, + "GetGithubInstallationReply": { + "type": "object", + "properties": { + "installation_id": { + "type": "string" + }, + "installation_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/kgitproxy.GithubInstallation.Status" + }, + "installed_at": { + "type": "string", + "format": "date-time" + }, + "suspended_at": { + "type": "string", + "format": "date-time" + }, + "indexing_status": { + "$ref": "#/definitions/kgitproxy.IndexingStatus" + }, + "indexed_repositories": { + "type": "integer", + "format": "int64" + }, + "total_repositories": { + "type": "integer", + "format": "int64" + } + } + }, + "GetIdenfyTokenReply": { + "type": "object", + "properties": { + "auth_token": { + "type": "string" + } + } + }, + "GetOAuthOptionsReply": { + "type": "object", + "properties": { + "oauth_providers": { + "type": "array", + "items": { + "$ref": "#/definitions/OAuthProvider" + } + } + }, + "description": "A list of providers which you can use for single sign-on." + }, + "GetOrganizationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "GetUserOrganizationInvitationReply": { + "type": "object", + "properties": { + "invitation": { + "$ref": "#/definitions/OrganizationInvitation" + } + } + }, + "GetUserSettingsReply": { + "type": "object", + "properties": { + "settings": { + "$ref": "#/definitions/UserSettings" + } + } + }, + "GithubInstallationReply": { + "type": "object", + "properties": { + "app_name": { + "type": "string", + "title": "The github app name" + }, + "app_id": { + "type": "string", + "format": "int64", + "title": "The github app id" + }, + "url": { + "type": "string", + "title": "The url to start the installation flow" + }, + "state": { + "type": "string", + "title": "The state required by the protocol, it is only valid 10 minutes and encodes information about the type of flow" + } + } + }, + "GithubInstallationRequest": { + "type": "object", + "properties": { + "metadata": { + "type": "string", + "title": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" + } + } + }, + "HasUnpaidInvoicesReply": { + "type": "object", + "properties": { + "has_unpaid_invoices": { + "type": "boolean" + } + } + }, + "InviteUserRequest": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "ListUserOrganizationInvitationsReply": { + "type": "object", + "properties": { + "invitations": { + "type": "array", + "items": { + "$ref": "#/definitions/OrganizationInvitation" + }, + "title": "The collection of organization invitations" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "count": { + "type": "integer", + "format": "int64", + "title": "The total number of items" + } + } + }, + "ListUserOrganizationsReply": { + "type": "object", + "properties": { + "organizations": { + "type": "array", + "items": { + "$ref": "#/definitions/Organization" + }, + "title": "The collection of organizations" + }, + "limit": { + "type": "integer", + "format": "int64", + "title": "The limit in the request" + }, + "offset": { + "type": "integer", + "format": "int64", + "title": "The offset in the request" + }, + "has_next": { + "type": "boolean", + "title": "If there is more items after in the collection" + } + } + }, + "LoginMethodReply": { + "type": "object", + "properties": { + "method": { + "$ref": "#/definitions/LoginMethodReply.Method" + } + } + }, + "LoginMethodReply.Method": { + "type": "string", + "enum": [ + "KOYEB", + "WORKOS" + ], + "default": "KOYEB" + }, + "ManageReply": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + } + }, + "NextInvoiceReply": { + "type": "object", + "properties": { + "stripe_invoice": { + "type": "object" + }, + "lines": { + "type": "array", + "items": { + "$ref": "#/definitions/NextInvoiceReply.Line" + } + }, + "discounts": { + "type": "array", + "items": { + "$ref": "#/definitions/NextInvoiceReply.Discount" + } + } + } + }, + "NextInvoiceReply.Discount": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/NextInvoiceReply.Discount.Type" + }, + "name": { + "type": "string" + }, + "amount": { + "type": "string", + "format": "int64" + } + } + }, + "NextInvoiceReply.Discount.Type": { + "type": "string", + "enum": [ + "PERCENT_OFF", + "AMOUNT_OFF" + ], + "default": "PERCENT_OFF" + }, + "NextInvoiceReply.Line": { + "type": "object", + "properties": { + "amount_excluding_tax": { + "type": "integer", + "format": "int32" + }, + "period": { + "$ref": "#/definitions/NextInvoiceReply.Line.Period" + }, + "plan_nickname": { + "type": "string" + }, + "price": { + "$ref": "#/definitions/NextInvoiceReply.Line.Price" + }, + "quantity": { + "type": "integer", + "format": "int32" + } + } + }, + "NextInvoiceReply.Line.Period": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + } + } + }, + "NextInvoiceReply.Line.Price": { + "type": "object", + "properties": { + "unit_amount_decimal": { + "type": "number", + "format": "double" + } + } + }, + "OAuthCallbackReply": { + "type": "object", + "properties": { + "token": { + "$ref": "#/definitions/Token", + "title": "A jwt token to be used for session" + } + } + }, + "OAuthCallbackRequest": { + "type": "object", + "properties": { + "state": { + "type": "string", + "title": "The state created at the origin of the OAuth flow" + }, + "code": { + "type": "string", + "title": "The code returned by the OAuth provider" + }, + "setup_action": { + "type": "string", + "description": "setup_action is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set." + }, + "installation_id": { + "type": "string", + "description": "installation_id is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set." + } + } + }, + "OAuthProvider": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The name of the provider (.e.g github, google)" + }, + "url": { + "type": "string", + "title": "The URL to call to initiate the OAuth flow" + }, + "state": { + "type": "string", + "title": "The OAuth state required by the protocol, it is only valid 10 minutes and encodes information about the type of flow" + } + } + }, + "Organization": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "external_id": { + "type": "string" + }, + "address1": { + "type": "string" + }, + "address2": { + "type": "string" + }, + "city": { + "type": "string" + }, + "postal_code": { + "type": "string" + }, + "state": { + "type": "string" + }, + "country": { + "type": "string" + }, + "company": { + "type": "boolean" + }, + "vat_number": { + "type": "string" + }, + "billing_name": { + "type": "string" + }, + "billing_email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "plan": { + "$ref": "#/definitions/Plan" + }, + "plan_updated_at": { + "type": "string", + "format": "date-time" + }, + "has_payment_method": { + "type": "boolean" + }, + "subscription_id": { + "type": "string" + }, + "current_subscription_id": { + "type": "string" + }, + "latest_subscription_id": { + "type": "string" + }, + "signup_qualification": { + "type": "object" + }, + "status": { + "$ref": "#/definitions/Organization.Status" + }, + "status_message": { + "$ref": "#/definitions/OrganizationDetailedStatus" + }, + "deactivation_reason": { + "$ref": "#/definitions/Organization.DeactivationReason" + }, + "verified": { + "type": "boolean" + }, + "qualifies_for_hobby23": { + "type": "boolean" + }, + "reprocess_after": { + "type": "string", + "format": "date-time" + }, + "trialing": { + "type": "boolean" + }, + "trial_starts_at": { + "type": "string", + "format": "date-time" + }, + "trial_ends_at": { + "type": "string", + "format": "date-time" + }, + "email_domain_allowlist": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "Represent an Organization" + }, + "Organization.DeactivationReason": { + "type": "string", + "enum": [ + "INVALID", + "REQUESTED_BY_OWNER", + "SUBSCRIPTION_TERMINATION", + "LOCKED_BY_ADMIN", + "VERIFICATION_FAILED", + "TRIAL_DID_NOT_CONVERT" + ], + "default": "INVALID" + }, + "OrganizationDetailedStatus": { + "type": "string", + "enum": [ + "NEW", + "EMAIL_NOT_VALIDATED", + "BILLING_INFO_MISSING", + "LOCKED", + "PAYMENT_FAILURE", + "VALID", + "PENDING_VERIFICATION", + "VERIFICATION_FAILED", + "REVIEWING_ACCOUNT", + "PLAN_UPGRADE_REQUIRED" + ], + "default": "NEW" + }, + "ReactivateOrganizationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "ResendEmailValidationReply": { + "type": "object" + }, + "ResendEmailValidationRequest": { + "type": "object" + }, + "ResetPasswordReply": { + "type": "object" + }, + "ResetPasswordRequest": { + "type": "object", + "example": { + "email": "john@snow.com" + }, + "properties": { + "email": { + "type": "string" + } + } + }, + "UnscopeOrganizationTokenRequest": { + "type": "object" + }, + "UpdateBudgetReply": { + "type": "object", + "properties": { + "budget": { + "$ref": "#/definitions/Budget" + } + } + }, + "UpdateOrganizationPlanReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "UpdateOrganizationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "UpdatePasswordRequest": { + "type": "object", + "example": { + "id": "...", + "password": "..." + }, + "properties": { + "id": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "UpdateUserRequest.UserUpdateBody": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "current_password": { + "type": "string" + }, + "password": { + "type": "string" + }, + "newsletter_subscribed": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, + "UpdateUserSettingsReply": { + "type": "object", + "properties": { + "settings": { + "$ref": "#/definitions/UserSettings" + } + } + }, + "UpdateUserSettingsRequest": { + "type": "object", + "properties": { + "failed_deployment_email_notification": { + "type": "boolean", + "description": "(Optional) Toggle failed deployment email notification." + } + } + }, + "UpsertSignupQualificationReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, + "UserReply": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + } + } + }, + "UserSettings": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "failed_deployment_email_notification": { + "type": "boolean" + } + } + }, + "Empty": { + "type": "object" + }, + "kgitproxy.GithubInstallation.Status": { + "type": "string", + "enum": [ + "INVALID", + "INSTALLED", + "SUSPENDED", + "DELETED" + ], + "default": "INVALID" + }, + "kgitproxy.IndexingStatus": { + "type": "string", + "enum": [ + "INVALID_INDEXING_STATUS", + "NOT_STARTED", + "IN_PROGRESS", + "COMPLETED" + ], + "default": "INVALID_INDEXING_STATUS" + } + }, + "securityDefinitions": { + "Bearer": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + } + } +} \ No newline at end of file From 700172c4807c8556fe0e1ab2dedd26f0afc55f22 Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 16:20:03 +0100 Subject: [PATCH 6/9] Move koyeb api client to dedicated submodule --- .openapi-generator/FILES | 2429 ++++++------ .openapi-generator/VERSION | 2 +- Makefile | 10 +- koyeb/__init__.py | 1225 ------- koyeb/api/__init__.py | 890 ++++- koyeb/api/api/__init__.py | 45 + koyeb/api/{ => api}/activity_api.py | 421 ++- koyeb/api/{ => api}/apps_api.py | 1184 +++--- koyeb/api/{ => api}/archives_api.py | 127 +- koyeb/api/{ => api}/billing_api.py | 343 +- .../api/{ => api}/catalog_datacenters_api.py | 89 +- .../{ => api}/catalog_instance_usage_api.py | 95 +- koyeb/api/{ => api}/catalog_instances_api.py | 224 +- koyeb/api/{ => api}/catalog_regions_api.py | 224 +- koyeb/api/{ => api}/compose_api.py | 127 +- koyeb/api/{ => api}/coupons_api.py | 125 +- koyeb/api/{ => api}/credentials_api.py | 807 ++-- koyeb/api/{ => api}/deployments_api.py | 821 +++-- koyeb/api/{ => api}/docker_helper_api.py | 170 +- koyeb/api/{ => api}/domains_api.py | 840 +++-- koyeb/api/{ => api}/instances_api.py | 981 +++-- koyeb/api/{ => api}/intercom_api.py | 125 +- koyeb/api/{ => api}/invite_api.py | 125 +- koyeb/api/{ => api}/logs_api.py | 547 ++- koyeb/api/{ => api}/metrics_api.py | 266 +- koyeb/api/{ => api}/organization_api.py | 2074 ++++++----- .../organization_confirmations_api.py | 125 +- .../{ => api}/organization_invitations_api.py | 698 ++-- .../api/{ => api}/organization_members_api.py | 337 +- .../api/{ => api}/organization_quotas_api.py | 127 +- koyeb/api/{ => api}/payment_methods_api.py | 631 ++-- koyeb/api/{ => api}/persistent_volumes_api.py | 893 ++--- koyeb/api/{ => api}/profile_api.py | 3256 +++++++++++------ koyeb/api/{ => api}/provisioning_api.py | 363 +- koyeb/api/{ => api}/quotas_api.py | 131 +- .../api/{ => api}/regional_deployments_api.py | 529 ++- koyeb/api/{ => api}/repositories_api.py | 531 ++- koyeb/api/{ => api}/search_api.py | 143 +- koyeb/api/{ => api}/secrets_api.py | 836 +++-- koyeb/api/{ => api}/services_api.py | 1559 ++++---- koyeb/api/{ => api}/sessions_api.py | 462 ++- koyeb/api/{ => api}/snapshots_api.py | 678 ++-- koyeb/api/{ => api}/sso_api.py | 236 +- koyeb/api/{ => api}/subscriptions_api.py | 127 +- koyeb/api/{ => api}/summary_api.py | 127 +- koyeb/api/{ => api}/usages_api.py | 348 +- koyeb/api/api/users_api.py | 590 +++ koyeb/{ => api}/api_client.py | 287 +- koyeb/{ => api}/api_response.py | 5 +- koyeb/{ => api}/configuration.py | 243 +- .../docs/AcceptOrganizationInvitationReply.md | 2 +- koyeb/{ => api}/docs/Action.md | 0 koyeb/{ => api}/docs/Activity.md | 2 +- koyeb/{ => api}/docs/ActivityApi.md | 38 +- koyeb/{ => api}/docs/ActivityList.md | 2 +- koyeb/{ => api}/docs/App.md | 2 +- koyeb/{ => api}/docs/AppEvent.md | 2 +- koyeb/{ => api}/docs/AppListItem.md | 2 +- koyeb/{ => api}/docs/AppStatus.md | 0 koyeb/{ => api}/docs/AppUsage.md | 2 +- koyeb/{ => api}/docs/AppsApi.md | 116 +- koyeb/{ => api}/docs/AppsSummary.md | 2 +- koyeb/{ => api}/docs/Archive.md | 2 +- .../docs/ArchiveDeploymentMetadata.md | 2 +- koyeb/{ => api}/docs/ArchiveSource.md | 2 +- koyeb/{ => api}/docs/ArchivesApi.md | 18 +- koyeb/{ => api}/docs/AutoRelease.md | 2 +- koyeb/{ => api}/docs/AutoReleaseGroup.md | 2 +- koyeb/{ => api}/docs/AutocompleteReply.md | 2 +- koyeb/{ => api}/docs/AutocompleteRequest.md | 2 +- koyeb/{ => api}/docs/AvailabilityLevel.md | 0 .../AzureContainerRegistryConfiguration.md | 2 +- koyeb/{ => api}/docs/BillingApi.md | 38 +- koyeb/{ => api}/docs/Budget.md | 2 +- koyeb/{ => api}/docs/BuildpackBuilder.md | 2 +- koyeb/{ => api}/docs/CannyAuthReply.md | 2 +- koyeb/{ => api}/docs/CatalogDatacentersApi.md | 14 +- koyeb/{ => api}/docs/CatalogGPUDetails.md | 2 +- koyeb/{ => api}/docs/CatalogInstance.md | 2 +- .../{ => api}/docs/CatalogInstanceListItem.md | 2 +- .../{ => api}/docs/CatalogInstanceUsageApi.md | 14 +- koyeb/{ => api}/docs/CatalogInstancesApi.md | 26 +- koyeb/{ => api}/docs/CatalogRegionsApi.md | 26 +- koyeb/{ => api}/docs/CatalogUsage.md | 2 +- .../ClearIdenfyVerificationResultRequest.md | 2 +- koyeb/{ => api}/docs/ComposeApi.md | 18 +- koyeb/{ => api}/docs/ComposeReply.md | 2 +- koyeb/{ => api}/docs/ConfigFile.md | 2 +- .../docs/ConfirmPaymentAuthorizationReply.md | 2 +- koyeb/{ => api}/docs/CouponsApi.md | 16 +- .../{ => api}/docs/CreateAccessTokenReply.md | 2 +- .../docs/CreateAccessTokenRequest.md | 2 +- koyeb/{ => api}/docs/CreateAccountRequest.md | 2 +- koyeb/{ => api}/docs/CreateApp.md | 2 +- koyeb/{ => api}/docs/CreateAppReply.md | 2 +- koyeb/{ => api}/docs/CreateArchive.md | 2 +- koyeb/{ => api}/docs/CreateArchiveReply.md | 2 +- koyeb/{ => api}/docs/CreateBudgetReply.md | 2 +- koyeb/{ => api}/docs/CreateCompose.md | 2 +- koyeb/{ => api}/docs/CreateCredential.md | 2 +- koyeb/{ => api}/docs/CreateCredentialReply.md | 2 +- koyeb/{ => api}/docs/CreateDomain.md | 2 +- koyeb/{ => api}/docs/CreateDomainReply.md | 2 +- .../docs/CreateOrganizationInvitationReply.md | 2 +- .../CreateOrganizationInvitationRequest.md | 2 +- .../{ => api}/docs/CreateOrganizationReply.md | 2 +- .../docs/CreateOrganizationRequest.md | 2 +- .../docs/CreatePaymentAuthorizationReply.md | 2 +- .../docs/CreatePersistentVolumeReply.md | 2 +- .../docs/CreatePersistentVolumeRequest.md | 2 +- koyeb/{ => api}/docs/CreateSecret.md | 2 +- koyeb/{ => api}/docs/CreateSecretReply.md | 2 +- koyeb/{ => api}/docs/CreateService.md | 2 +- koyeb/{ => api}/docs/CreateServiceReply.md | 2 +- koyeb/{ => api}/docs/CreateSnapshotReply.md | 2 +- koyeb/{ => api}/docs/CreateSnapshotRequest.md | 2 +- .../docs/CreateStageAttemptRequest.md | 2 +- koyeb/{ => api}/docs/Credential.md | 2 +- koyeb/{ => api}/docs/CredentialType.md | 0 koyeb/{ => api}/docs/CredentialsApi.md | 84 +- .../docs/DatabaseDeploymentMetadata.md | 2 +- koyeb/{ => api}/docs/DatabaseRolePassword.md | 2 +- koyeb/{ => api}/docs/DatabaseSource.md | 2 +- koyeb/{ => api}/docs/DatabaseUsage.md | 2 +- koyeb/{ => api}/docs/DatabaseUsageDetails.md | 2 +- koyeb/{ => api}/docs/DatacenterListItem.md | 2 +- .../docs/DeactivateOrganizationReply.md | 2 +- .../docs/DeactivateOrganizationRequest.md | 2 +- .../docs/DeclareStageProgressRequest.md | 2 +- .../docs/DeclareStepProgressRequest.md | 2 +- .../DeclineOrganizationInvitationReply.md | 2 +- .../{ => api}/docs/DeleteOrganizationReply.md | 2 +- .../docs/DeletePersistentVolumeReply.md | 2 +- koyeb/{ => api}/docs/DeleteSnapshotReply.md | 2 +- koyeb/{ => api}/docs/DeleteUserReply.md | 2 +- koyeb/{ => api}/docs/Deployment.md | 2 +- .../{ => api}/docs/DeploymentDatabaseInfo.md | 2 +- koyeb/{ => api}/docs/DeploymentDefinition.md | 10 +- .../docs/DeploymentDefinitionType.md | 0 koyeb/{ => api}/docs/DeploymentEnv.md | 2 +- koyeb/{ => api}/docs/DeploymentEvent.md | 2 +- koyeb/{ => api}/docs/DeploymentHealthCheck.md | 2 +- .../{ => api}/docs/DeploymentInstanceType.md | 2 +- koyeb/{ => api}/docs/DeploymentListItem.md | 2 +- koyeb/{ => api}/docs/DeploymentMetadata.md | 2 +- .../DeploymentNeonPostgresDatabaseInfo.md | 2 +- .../DeploymentNeonPostgresDatabaseInfoRole.md | 2 +- koyeb/{ => api}/docs/DeploymentPort.md | 2 +- .../docs/DeploymentProvisioningInfo.md | 2 +- .../docs/DeploymentProvisioningInfoStage.md | 2 +- ...oymentProvisioningInfoStageBuildAttempt.md | 2 +- ...visioningInfoStageBuildAttemptBuildStep.md | 2 +- .../DeploymentProvisioningInfoStageStatus.md | 0 koyeb/{ => api}/docs/DeploymentProxyPort.md | 2 +- .../docs/DeploymentProxyPortMetadata.md | 2 +- koyeb/{ => api}/docs/DeploymentRole.md | 0 koyeb/{ => api}/docs/DeploymentRoute.md | 2 +- koyeb/{ => api}/docs/DeploymentScaling.md | 2 +- .../{ => api}/docs/DeploymentScalingTarget.md | 2 +- .../docs/DeploymentScalingTargetAverageCPU.md | 2 +- .../docs/DeploymentScalingTargetAverageMem.md | 2 +- ...ploymentScalingTargetConcurrentRequests.md | 2 +- ...eploymentScalingTargetRequestsPerSecond.md | 2 +- ...oymentScalingTargetRequestsResponseTime.md | 2 +- .../DeploymentScalingTargetSleepIdleDelay.md | 2 +- koyeb/{ => api}/docs/DeploymentStatus.md | 0 koyeb/{ => api}/docs/DeploymentStrategy.md | 2 +- .../{ => api}/docs/DeploymentStrategyType.md | 0 koyeb/{ => api}/docs/DeploymentVolume.md | 2 +- koyeb/{ => api}/docs/DeploymentsApi.md | 60 +- koyeb/{ => api}/docs/DesiredDeployment.md | 2 +- .../{ => api}/docs/DesiredDeploymentGroup.md | 2 +- .../docs/DigitalOceanRegistryConfiguration.md | 2 +- koyeb/{ => api}/docs/DiscourseAuthReply.md | 2 +- koyeb/{ => api}/docs/DiscourseAuthRequest.md | 2 +- koyeb/{ => api}/docs/DockerBuilder.md | 2 +- koyeb/{ => api}/docs/DockerHelperApi.md | 14 +- .../docs/DockerHubRegistryConfiguration.md | 2 +- koyeb/{ => api}/docs/DockerSource.md | 2 +- koyeb/{ => api}/docs/Domain.md | 2 +- .../{ => api}/docs/DomainLoadBalancerKoyeb.md | 2 +- .../docs/DomainLoadBalancerQuotas.md | 2 +- koyeb/{ => api}/docs/DomainStatus.md | 0 koyeb/{ => api}/docs/DomainType.md | 0 koyeb/{ => api}/docs/DomainsApi.md | 78 +- koyeb/{ => api}/docs/DomainsSummary.md | 2 +- koyeb/{ => api}/docs/Env.md | 2 +- koyeb/{ => api}/docs/Error.md | 2 +- koyeb/{ => api}/docs/ErrorField.md | 2 +- koyeb/{ => api}/docs/ErrorWithFields.md | 2 +- koyeb/{ => api}/docs/ExecCommandIO.md | 2 +- koyeb/{ => api}/docs/ExecCommandReply.md | 2 +- .../{ => api}/docs/ExecCommandRequestBody.md | 2 +- .../docs/ExecCommandRequestIdType.md | 0 .../docs/ExecCommandRequestTerminalSize.md | 2 +- .../docs/GCPContainerRegistryConfiguration.md | 2 +- koyeb/{ => api}/docs/GetAppReply.md | 2 +- koyeb/{ => api}/docs/GetBudgetReply.md | 2 +- .../{ => api}/docs/GetCatalogInstanceReply.md | 2 +- koyeb/{ => api}/docs/GetCredentialReply.md | 2 +- koyeb/{ => api}/docs/GetDeploymentReply.md | 2 +- .../docs/GetDeploymentScalingReply.md | 2 +- .../docs/GetDeploymentScalingReplyItem.md | 2 +- koyeb/{ => api}/docs/GetDomainReply.md | 2 +- .../docs/GetGithubInstallationReply.md | 2 +- koyeb/{ => api}/docs/GetIdenfyTokenReply.md | 2 +- koyeb/{ => api}/docs/GetInstanceReply.md | 2 +- .../{ => api}/docs/GetIntercomProfileReply.md | 2 +- koyeb/{ => api}/docs/GetMetricsReply.md | 2 +- koyeb/{ => api}/docs/GetMetricsReplyMetric.md | 2 +- koyeb/{ => api}/docs/GetOAuthOptionsReply.md | 2 +- .../docs/GetOrganizationInvitationReply.md | 2 +- koyeb/{ => api}/docs/GetOrganizationReply.md | 2 +- .../docs/GetOrganizationSummaryReply.md | 2 +- .../docs/GetOrganizationUsageDetailsReply.md | 2 +- .../docs/GetOrganizationUsageReply.md | 2 +- koyeb/{ => api}/docs/GetPaymentMethodReply.md | 2 +- .../docs/GetPersistentVolumeReply.md | 2 +- koyeb/{ => api}/docs/GetQuotasReply.md | 2 +- koyeb/{ => api}/docs/GetRegionReply.md | 2 +- .../docs/GetRegionalDeploymentReply.md | 2 +- koyeb/{ => api}/docs/GetSecretReply.md | 2 +- koyeb/{ => api}/docs/GetServiceReply.md | 2 +- koyeb/{ => api}/docs/GetSnapshotReply.md | 2 +- koyeb/{ => api}/docs/GetSubscriptionReply.md | 2 +- .../GetUserOrganizationInvitationReply.md | 2 +- koyeb/{ => api}/docs/GetUserSettingsReply.md | 2 +- koyeb/{ => api}/docs/GitDeploymentMetadata.md | 2 +- .../docs/GitEnvDeploymentMetadata.md | 2 +- .../docs/GitHubRegistryConfiguration.md | 2 +- .../docs/GitLabRegistryConfiguration.md | 2 +- koyeb/{ => api}/docs/GitSource.md | 2 +- .../{ => api}/docs/GithubInstallationReply.md | 2 +- .../docs/GithubInstallationRequest.md | 2 +- koyeb/{ => api}/docs/GoogleProtobufAny.md | 2 +- .../{ => api}/docs/GoogleProtobufNullValue.md | 0 koyeb/{ => api}/docs/GoogleRpcStatus.md | 2 +- koyeb/{ => api}/docs/HTTPHeader.md | 2 +- koyeb/{ => api}/docs/HTTPHealthCheck.md | 2 +- .../{ => api}/docs/HasUnpaidInvoicesReply.md | 2 +- koyeb/{ => api}/docs/Instance.md | 2 +- koyeb/{ => api}/docs/InstanceAvailability.md | 2 +- koyeb/{ => api}/docs/InstanceEvent.md | 2 +- koyeb/{ => api}/docs/InstanceListItem.md | 2 +- koyeb/{ => api}/docs/InstanceStatus.md | 0 koyeb/{ => api}/docs/InstanceUsage.md | 2 +- koyeb/{ => api}/docs/InstancesApi.md | 50 +- koyeb/{ => api}/docs/InstancesSummary.md | 2 +- koyeb/{ => api}/docs/IntercomApi.md | 14 +- koyeb/{ => api}/docs/InviteApi.md | 16 +- koyeb/{ => api}/docs/InviteUserRequest.md | 2 +- koyeb/{ => api}/docs/KgitproxyBranch.md | 2 +- .../docs/KgitproxyGitHubRepository.md | 2 +- .../docs/KgitproxyGithubInstallationStatus.md | 0 .../{ => api}/docs/KgitproxyIndexingStatus.md | 0 .../docs/KgitproxyListBranchesReply.md | 2 +- .../docs/KgitproxyListRepositoriesReply.md | 2 +- koyeb/{ => api}/docs/KgitproxyRepository.md | 2 +- .../docs/KgitproxyRepositoryProvider.md | 0 koyeb/{ => api}/docs/KsearchApp.md | 2 +- .../{ => api}/docs/KsearchGlobalDeployment.md | 2 +- koyeb/{ => api}/docs/KsearchInstance.md | 2 +- koyeb/{ => api}/docs/KsearchOrganization.md | 2 +- .../docs/KsearchRegionalDeployment.md | 2 +- koyeb/{ => api}/docs/KsearchSearchReply.md | 2 +- koyeb/{ => api}/docs/KsearchService.md | 2 +- koyeb/{ => api}/docs/KsearchUser.md | 2 +- koyeb/{ => api}/docs/ListAppEventsReply.md | 2 +- koyeb/{ => api}/docs/ListAppsReply.md | 2 +- .../docs/ListCatalogInstancesReply.md | 2 +- koyeb/{ => api}/docs/ListCredentialsReply.md | 2 +- koyeb/{ => api}/docs/ListDatacentersReply.md | 2 +- .../docs/ListDeploymentEventsReply.md | 2 +- koyeb/{ => api}/docs/ListDeploymentsReply.md | 2 +- koyeb/{ => api}/docs/ListDomainsReply.md | 2 +- .../{ => api}/docs/ListInstanceEventsReply.md | 2 +- koyeb/{ => api}/docs/ListInstancesReply.md | 2 +- .../docs/ListOrganizationInvitationsReply.md | 2 +- .../docs/ListOrganizationMembersReply.md | 2 +- .../{ => api}/docs/ListPaymentMethodsReply.md | 2 +- .../docs/ListPersistentVolumeEventsReply.md | 2 +- .../docs/ListPersistentVolumesReply.md | 2 +- .../docs/ListRegionalDeploymentEventsReply.md | 2 +- .../docs/ListRegionalDeploymentsReply.md | 2 +- koyeb/{ => api}/docs/ListRegionsReply.md | 2 +- koyeb/{ => api}/docs/ListSecretsReply.md | 2 +- .../{ => api}/docs/ListServiceEventsReply.md | 2 +- koyeb/{ => api}/docs/ListServicesReply.md | 2 +- koyeb/{ => api}/docs/ListSnapshotsReply.md | 2 +- koyeb/{ => api}/docs/ListUsageReply.md | 2 +- .../ListUserOrganizationInvitationsReply.md | 2 +- .../docs/ListUserOrganizationsReply.md | 2 +- koyeb/{ => api}/docs/LogEntry.md | 2 +- koyeb/{ => api}/docs/LoginMethodReply.md | 2 +- .../{ => api}/docs/LoginMethodReplyMethod.md | 0 koyeb/{ => api}/docs/LoginReply.md | 2 +- koyeb/{ => api}/docs/LoginRequest.md | 2 +- koyeb/{ => api}/docs/LogsApi.md | 26 +- koyeb/{ => api}/docs/ManageReply.md | 2 +- koyeb/{ => api}/docs/MembersSummary.md | 2 +- koyeb/{ => api}/docs/MetricName.md | 0 koyeb/{ => api}/docs/MetricsApi.md | 14 +- koyeb/{ => api}/docs/NeonPostgresDatabase.md | 2 +- .../NeonPostgresDatabaseDeploymentMetadata.md | 2 +- .../docs/NeonPostgresDatabaseNeonDatabase.md | 2 +- .../docs/NeonPostgresDatabaseNeonRole.md | 2 +- koyeb/{ => api}/docs/NeonPostgresSummary.md | 2 +- koyeb/{ => api}/docs/NextInvoiceReply.md | 2 +- .../docs/NextInvoiceReplyDiscount.md | 2 +- .../docs/NextInvoiceReplyDiscountType.md | 0 koyeb/{ => api}/docs/NextInvoiceReplyLine.md | 2 +- .../docs/NextInvoiceReplyLinePeriod.md | 2 +- .../docs/NextInvoiceReplyLinePrice.md | 2 +- koyeb/{ => api}/docs/Notification.md | 2 +- koyeb/{ => api}/docs/NotificationList.md | 2 +- koyeb/{ => api}/docs/OAuthCallbackReply.md | 2 +- koyeb/{ => api}/docs/OAuthCallbackRequest.md | 2 +- koyeb/{ => api}/docs/OAuthProvider.md | 2 +- koyeb/{ => api}/docs/Object.md | 2 +- koyeb/{ => api}/docs/Organization.md | 3 +- koyeb/{ => api}/docs/OrganizationApi.md | 256 +- .../docs/OrganizationConfirmationsApi.md | 12 +- .../docs/OrganizationDeactivationReason.md | 0 .../docs/OrganizationDetailedStatus.md | 0 .../{ => api}/docs/OrganizationInvitation.md | 2 +- .../docs/OrganizationInvitationStatus.md | 0 .../docs/OrganizationInvitationsApi.md | 64 +- koyeb/{ => api}/docs/OrganizationMember.md | 2 +- .../docs/OrganizationMemberStatus.md | 0 .../{ => api}/docs/OrganizationMembersApi.md | 26 +- koyeb/{ => api}/docs/OrganizationQuotasApi.md | 14 +- koyeb/{ => api}/docs/OrganizationStatus.md | 0 koyeb/{ => api}/docs/OrganizationSummary.md | 2 +- koyeb/{ => api}/docs/PaymentMethod.md | 2 +- koyeb/{ => api}/docs/PaymentMethodStatus.md | 0 koyeb/{ => api}/docs/PaymentMethodsApi.md | 60 +- koyeb/{ => api}/docs/PeriodUsage.md | 2 +- koyeb/{ => api}/docs/PersistentVolume.md | 2 +- .../docs/PersistentVolumeBackingStore.md | 0 koyeb/{ => api}/docs/PersistentVolumeEvent.md | 2 +- .../{ => api}/docs/PersistentVolumeQuotas.md | 2 +- .../{ => api}/docs/PersistentVolumeStatus.md | 0 koyeb/{ => api}/docs/PersistentVolumesApi.md | 82 +- koyeb/{ => api}/docs/Plan.md | 0 koyeb/{ => api}/docs/Port.md | 2 +- .../docs/PrivateRegistryConfiguration.md | 2 +- koyeb/{ => api}/docs/ProfileApi.md | 456 ++- koyeb/{ => api}/docs/ProvisioningApi.md | 44 +- koyeb/{ => api}/docs/ProxyPortProtocol.md | 0 koyeb/{ => api}/docs/PublicOrganization.md | 2 +- koyeb/{ => api}/docs/PublicUser.md | 2 +- koyeb/{ => api}/docs/QueryLogsReply.md | 2 +- .../docs/QueryLogsReplyPagination.md | 2 +- koyeb/{ => api}/docs/Quotas.md | 3 +- koyeb/{ => api}/docs/QuotasApi.md | 18 +- .../docs/ReactivateOrganizationReply.md | 2 +- koyeb/{ => api}/docs/RedeemCouponRequest.md | 2 +- koyeb/{ => api}/docs/RedeployReply.md | 2 +- koyeb/{ => api}/docs/RedeployRequestInfo.md | 2 +- koyeb/{ => api}/docs/Region.md | 2 +- koyeb/{ => api}/docs/RegionAvailability.md | 2 +- koyeb/{ => api}/docs/RegionListItem.md | 2 +- koyeb/{ => api}/docs/RegionUsage.md | 2 +- koyeb/{ => api}/docs/RegionalDeployment.md | 2 +- .../docs/RegionalDeploymentDefinition.md | 2 +- .../docs/RegionalDeploymentDefinitionType.md | 0 .../{ => api}/docs/RegionalDeploymentEvent.md | 2 +- .../docs/RegionalDeploymentListItem.md | 2 +- .../{ => api}/docs/RegionalDeploymentRole.md | 0 .../docs/RegionalDeploymentStatus.md | 0 .../docs/RegionalDeploymentVolume.md | 2 +- .../{ => api}/docs/RegionalDeploymentsApi.md | 38 +- .../docs/RemoveOrganizationMemberReply.md | 2 +- koyeb/{ => api}/docs/RepositoriesApi.md | 36 +- .../docs/ResendOrganizationInvitationReply.md | 2 +- koyeb/{ => api}/docs/ResetPasswordRequest.md | 2 +- koyeb/{ => api}/docs/RevealSecretReply.md | 2 +- .../docs/ReviewOrganizationCapacityReply.md | 2 +- .../docs/ReviewOrganizationCapacityRequest.md | 2 +- koyeb/{ => api}/docs/Route.md | 2 +- koyeb/{ => api}/docs/Sample.md | 2 +- koyeb/{ => api}/docs/ScaleToZeroQuotas.md | 2 +- koyeb/{ => api}/docs/Scaling.md | 2 +- koyeb/{ => api}/docs/SearchApi.md | 14 +- koyeb/{ => api}/docs/Secret.md | 2 +- koyeb/{ => api}/docs/SecretType.md | 0 koyeb/{ => api}/docs/SecretsApi.md | 96 +- koyeb/{ => api}/docs/SecretsSummary.md | 2 +- koyeb/{ => api}/docs/Service.md | 2 +- koyeb/{ => api}/docs/ServiceEvent.md | 2 +- koyeb/{ => api}/docs/ServiceListItem.md | 2 +- koyeb/{ => api}/docs/ServiceState.md | 2 +- koyeb/{ => api}/docs/ServiceStatus.md | 0 koyeb/{ => api}/docs/ServiceSummary.md | 2 +- koyeb/{ => api}/docs/ServiceType.md | 0 koyeb/{ => api}/docs/ServiceUsage.md | 2 +- koyeb/{ => api}/docs/ServicesApi.md | 154 +- koyeb/{ => api}/docs/SessionsApi.md | 52 +- koyeb/{ => api}/docs/Snapshot.md | 2 +- koyeb/{ => api}/docs/SnapshotStatus.md | 0 koyeb/{ => api}/docs/SnapshotType.md | 0 koyeb/{ => api}/docs/SnapshotsApi.md | 70 +- koyeb/{ => api}/docs/SsoApi.md | 30 +- .../docs/StreamResultOfExecCommandReply.md | 2 +- .../{ => api}/docs/StreamResultOfLogEntry.md | 2 +- koyeb/{ => api}/docs/Subscription.md | 2 +- .../docs/SubscriptionPaymentFailure.md | 2 +- .../SubscriptionPaymentFailureStripeSDK.md | 2 +- koyeb/{ => api}/docs/SubscriptionStatus.md | 0 koyeb/{ => api}/docs/SubscriptionsApi.md | 14 +- koyeb/{ => api}/docs/SummaryApi.md | 14 +- koyeb/{ => api}/docs/TCPHealthCheck.md | 2 +- koyeb/{ => api}/docs/Token.md | 2 +- .../docs/TriggerDeploymentMetadata.md | 2 +- .../TriggerDeploymentMetadataActorType.md | 0 .../TriggerDeploymentMetadataTriggerType.md | 0 .../docs/TriggerGitDeploymentMetadata.md | 2 +- .../TriggerGitDeploymentMetadataProvider.md | 0 koyeb/{ => api}/docs/UpdateApp.md | 2 +- koyeb/{ => api}/docs/UpdateAppReply.md | 2 +- koyeb/{ => api}/docs/UpdateBudgetReply.md | 2 +- koyeb/{ => api}/docs/UpdateBudgetRequest.md | 2 +- koyeb/{ => api}/docs/UpdateCredentialReply.md | 2 +- koyeb/{ => api}/docs/UpdateDomain.md | 2 +- koyeb/{ => api}/docs/UpdateDomainReply.md | 2 +- .../docs/UpdateOrganizationPlanReply.md | 2 +- .../docs/UpdateOrganizationPlanRequest.md | 2 +- .../{ => api}/docs/UpdateOrganizationReply.md | 2 +- koyeb/{ => api}/docs/UpdatePasswordRequest.md | 2 +- .../docs/UpdatePersistentVolumeReply.md | 2 +- .../docs/UpdatePersistentVolumeRequest.md | 2 +- koyeb/{ => api}/docs/UpdateSecretReply.md | 2 +- koyeb/{ => api}/docs/UpdateService.md | 2 +- koyeb/{ => api}/docs/UpdateServiceReply.md | 2 +- koyeb/{ => api}/docs/UpdateSnapshotReply.md | 2 +- koyeb/{ => api}/docs/UpdateSnapshotRequest.md | 2 +- .../docs/UpdateUserRequestUserUpdateBody.md | 2 +- .../{ => api}/docs/UpdateUserSettingsReply.md | 2 +- .../docs/UpdateUserSettingsRequest.md | 2 +- .../docs/UpsertSignupQualificationReply.md | 2 +- .../docs/UpsertSignupQualificationRequest.md | 2 +- koyeb/{ => api}/docs/Usage.md | 2 +- koyeb/{ => api}/docs/UsageDetails.md | 2 +- koyeb/{ => api}/docs/UsagesApi.md | 26 +- koyeb/{ => api}/docs/User.md | 2 +- koyeb/{ => api}/docs/UserFlags.md | 0 koyeb/{ => api}/docs/UserReply.md | 2 +- koyeb/{ => api}/docs/UserRoleRole.md | 0 koyeb/{ => api}/docs/UserSettings.md | 2 +- koyeb/api/docs/UsersApi.md | 178 + .../{ => api}/docs/VerifyDockerImageReply.md | 2 +- .../docs/VerifyDockerImageReplyErrCode.md | 0 koyeb/{ => api}/exceptions.py | 46 +- koyeb/api/models/__init__.py | 377 ++ .../accept_organization_invitation_reply.py | 36 +- koyeb/{ => api}/models/action.py | 18 +- koyeb/{ => api}/models/activity.py | 61 +- koyeb/{ => api}/models/activity_list.py | 42 +- koyeb/{ => api}/models/app.py | 85 +- koyeb/{ => api}/models/app_event.py | 50 +- koyeb/{ => api}/models/app_list_item.py | 67 +- koyeb/api/models/app_status.py | 44 + koyeb/{ => api}/models/app_usage.py | 50 +- koyeb/{ => api}/models/apps_summary.py | 27 +- koyeb/{ => api}/models/archive.py | 74 +- .../models/archive_deployment_metadata.py | 30 +- koyeb/{ => api}/models/archive_source.py | 48 +- koyeb/{ => api}/models/auto_release.py | 36 +- koyeb/{ => api}/models/auto_release_group.py | 34 +- koyeb/{ => api}/models/autocomplete_reply.py | 32 +- .../{ => api}/models/autocomplete_request.py | 36 +- koyeb/{ => api}/models/availability_level.py | 20 +- .../azure_container_registry_configuration.py | 32 +- koyeb/{ => api}/models/budget.py | 27 +- koyeb/{ => api}/models/buildpack_builder.py | 32 +- koyeb/{ => api}/models/canny_auth_reply.py | 24 +- koyeb/{ => api}/models/catalog_gpu_details.py | 34 +- koyeb/{ => api}/models/catalog_instance.py | 113 +- .../models/catalog_instance_list_item.py | 113 +- koyeb/{ => api}/models/catalog_usage.py | 48 +- ...lear_idenfy_verification_result_request.py | 30 +- koyeb/{ => api}/models/compose_reply.py | 44 +- koyeb/{ => api}/models/config_file.py | 32 +- .../confirm_payment_authorization_reply.py | 36 +- .../models/create_access_token_reply.py | 24 +- .../models/create_access_token_request.py | 24 +- .../models/create_account_request.py | 34 +- koyeb/{ => api}/models/create_app.py | 24 +- koyeb/{ => api}/models/create_app_reply.py | 30 +- koyeb/{ => api}/models/create_archive.py | 29 +- .../{ => api}/models/create_archive_reply.py | 36 +- koyeb/{ => api}/models/create_budget_reply.py | 36 +- koyeb/{ => api}/models/create_compose.py | 46 +- koyeb/{ => api}/models/create_credential.py | 47 +- .../models/create_credential_reply.py | 36 +- koyeb/{ => api}/models/create_domain.py | 58 +- koyeb/{ => api}/models/create_domain_reply.py | 36 +- .../create_organization_invitation_reply.py | 36 +- .../create_organization_invitation_request.py | 24 +- .../models/create_organization_reply.py | 36 +- .../models/create_organization_request.py | 24 +- .../create_payment_authorization_reply.py | 36 +- .../models/create_persistent_volume_reply.py | 36 +- .../create_persistent_volume_request.py | 57 +- koyeb/api/models/create_secret.py | 134 + koyeb/{ => api}/models/create_secret_reply.py | 36 +- koyeb/{ => api}/models/create_service.py | 38 +- .../{ => api}/models/create_service_reply.py | 36 +- .../{ => api}/models/create_snapshot_reply.py | 36 +- .../models/create_snapshot_request.py | 27 +- .../models/create_stage_attempt_request.py | 56 +- koyeb/{ => api}/models/credential.py | 65 +- koyeb/{ => api}/models/credential_type.py | 18 +- .../models/database_deployment_metadata.py | 40 +- .../models/database_role_password.py | 27 +- koyeb/{ => api}/models/database_source.py | 36 +- koyeb/{ => api}/models/database_usage.py | 41 +- .../models/database_usage_details.py | 56 +- .../{ => api}/models/datacenter_list_item.py | 47 +- .../models/deactivate_organization_reply.py | 36 +- .../models/deactivate_organization_request.py | 29 +- .../models/declare_stage_progress_request.py | 62 +- .../models/declare_step_progress_request.py | 56 +- .../decline_organization_invitation_reply.py | 36 +- .../models/delete_organization_reply.py | 36 +- .../models/delete_persistent_volume_reply.py | 36 +- .../{ => api}/models/delete_snapshot_reply.py | 36 +- koyeb/{ => api}/models/delete_user_reply.py | 34 +- koyeb/api/models/deployment.py | 148 + .../models/deployment_database_info.py | 38 +- koyeb/api/models/deployment_definition.py | 214 ++ .../models/deployment_definition_type.py | 20 +- koyeb/{ => api}/models/deployment_env.py | 34 +- koyeb/{ => api}/models/deployment_event.py | 50 +- .../models/deployment_health_check.py | 63 +- .../models/deployment_instance_type.py | 27 +- .../{ => api}/models/deployment_list_item.py | 127 +- koyeb/{ => api}/models/deployment_metadata.py | 87 +- .../deployment_neon_postgres_database_info.py | 84 +- ...oyment_neon_postgres_database_info_role.py | 27 +- koyeb/{ => api}/models/deployment_port.py | 27 +- .../models/deployment_provisioning_info.py | 58 +- .../deployment_provisioning_info_stage.py | 72 +- ...t_provisioning_info_stage_build_attempt.py | 91 +- ...ing_info_stage_build_attempt_build_step.py | 56 +- ...ployment_provisioning_info_stage_status.py | 24 +- .../{ => api}/models/deployment_proxy_port.py | 36 +- .../models/deployment_proxy_port_metadata.py | 40 +- koyeb/{ => api}/models/deployment_role.py | 20 +- koyeb/{ => api}/models/deployment_route.py | 25 +- koyeb/{ => api}/models/deployment_scaling.py | 45 +- koyeb/api/models/deployment_scaling_target.py | 121 + .../deployment_scaling_target_average_cpu.py | 24 +- .../deployment_scaling_target_average_mem.py | 24 +- ...ment_scaling_target_concurrent_requests.py | 24 +- ...ment_scaling_target_requests_per_second.py | 24 +- ...t_scaling_target_requests_response_time.py | 32 +- ...loyment_scaling_target_sleep_idle_delay.py | 53 +- koyeb/api/models/deployment_status.py | 51 + koyeb/{ => api}/models/deployment_strategy.py | 38 +- koyeb/api/models/deployment_strategy_type.py | 40 + koyeb/{ => api}/models/deployment_volume.py | 34 +- koyeb/{ => api}/models/desired_deployment.py | 36 +- .../models/desired_deployment_group.py | 27 +- .../digital_ocean_registry_configuration.py | 27 +- .../{ => api}/models/discourse_auth_reply.py | 25 +- .../models/discourse_auth_request.py | 27 +- koyeb/{ => api}/models/docker_builder.py | 47 +- .../docker_hub_registry_configuration.py | 27 +- koyeb/{ => api}/models/docker_source.py | 47 +- koyeb/{ => api}/models/domain.py | 94 +- .../models/domain_load_balancer_koyeb.py | 26 +- .../models/domain_load_balancer_quotas.py | 24 +- koyeb/{ => api}/models/domain_status.py | 22 +- koyeb/{ => api}/models/domain_type.py | 16 +- koyeb/{ => api}/models/domains_summary.py | 27 +- koyeb/{ => api}/models/env.py | 32 +- koyeb/{ => api}/models/error.py | 32 +- koyeb/{ => api}/models/error_field.py | 27 +- koyeb/{ => api}/models/error_with_fields.py | 42 +- koyeb/{ => api}/models/exec_command_io.py | 44 +- koyeb/{ => api}/models/exec_command_reply.py | 48 +- .../models/exec_command_request_body.py | 62 +- .../models/exec_command_request_id_type.py | 18 +- .../exec_command_request_terminal_size.py | 27 +- .../gcp_container_registry_configuration.py | 27 +- koyeb/{ => api}/models/get_app_reply.py | 30 +- koyeb/{ => api}/models/get_budget_reply.py | 36 +- .../models/get_catalog_instance_reply.py | 36 +- .../{ => api}/models/get_credential_reply.py | 36 +- .../{ => api}/models/get_deployment_reply.py | 36 +- .../models/get_deployment_scaling_reply.py | 39 +- .../get_deployment_scaling_reply_item.py | 45 +- koyeb/{ => api}/models/get_domain_reply.py | 36 +- .../models/get_github_installation_reply.py | 81 +- .../models/get_idenfy_token_reply.py | 24 +- koyeb/{ => api}/models/get_instance_reply.py | 36 +- .../models/get_intercom_profile_reply.py | 24 +- koyeb/{ => api}/models/get_metrics_reply.py | 36 +- .../models/get_metrics_reply_metric.py | 38 +- .../models/get_o_auth_options_reply.py | 36 +- .../get_organization_invitation_reply.py | 36 +- .../models/get_organization_reply.py | 36 +- .../models/get_organization_summary_reply.py | 36 +- .../get_organization_usage_details_reply.py | 66 +- .../models/get_organization_usage_reply.py | 36 +- .../models/get_payment_method_reply.py | 36 +- .../models/get_persistent_volume_reply.py | 36 +- koyeb/{ => api}/models/get_quotas_reply.py | 36 +- koyeb/{ => api}/models/get_region_reply.py | 36 +- .../models/get_regional_deployment_reply.py | 36 +- koyeb/{ => api}/models/get_secret_reply.py | 36 +- koyeb/{ => api}/models/get_service_reply.py | 36 +- koyeb/{ => api}/models/get_snapshot_reply.py | 36 +- .../models/get_subscription_reply.py | 36 +- .../get_user_organization_invitation_reply.py | 36 +- .../models/get_user_settings_reply.py | 36 +- .../models/git_deployment_metadata.py | 40 +- .../models/git_env_deployment_metadata.py | 32 +- .../models/git_hub_registry_configuration.py | 27 +- .../models/git_lab_registry_configuration.py | 27 +- koyeb/{ => api}/models/git_source.py | 80 +- .../models/github_installation_reply.py | 34 +- .../models/github_installation_request.py | 24 +- koyeb/{ => api}/models/google_protobuf_any.py | 29 +- .../models/google_protobuf_null_value.py | 14 +- koyeb/{ => api}/models/google_rpc_status.py | 40 +- .../models/has_unpaid_invoices_reply.py | 26 +- koyeb/{ => api}/models/http_header.py | 25 +- koyeb/{ => api}/models/http_health_check.py | 42 +- koyeb/{ => api}/models/instance.py | 97 +- .../{ => api}/models/instance_availability.py | 52 +- koyeb/{ => api}/models/instance_event.py | 50 +- koyeb/{ => api}/models/instance_list_item.py | 85 +- koyeb/api/models/instance_status.py | 43 + koyeb/{ => api}/models/instance_usage.py | 24 +- koyeb/{ => api}/models/instances_summary.py | 27 +- koyeb/{ => api}/models/invite_user_request.py | 32 +- koyeb/{ => api}/models/kgitproxy_branch.py | 60 +- .../models/kgitproxy_git_hub_repository.py | 24 +- .../kgitproxy_github_installation_status.py | 20 +- .../models/kgitproxy_indexing_status.py | 20 +- .../models/kgitproxy_list_branches_reply.py | 58 +- .../kgitproxy_list_repositories_reply.py | 61 +- .../{ => api}/models/kgitproxy_repository.py | 80 +- .../models/kgitproxy_repository_provider.py | 16 +- koyeb/{ => api}/models/ksearch_app.py | 32 +- .../models/ksearch_global_deployment.py | 41 +- koyeb/{ => api}/models/ksearch_instance.py | 44 +- .../{ => api}/models/ksearch_organization.py | 25 +- .../models/ksearch_regional_deployment.py | 44 +- .../{ => api}/models/ksearch_search_reply.py | 115 +- koyeb/{ => api}/models/ksearch_service.py | 34 +- koyeb/{ => api}/models/ksearch_user.py | 34 +- .../{ => api}/models/list_app_events_reply.py | 52 +- koyeb/{ => api}/models/list_apps_reply.py | 44 +- .../models/list_catalog_instances_reply.py | 45 +- .../models/list_credentials_reply.py | 42 +- .../models/list_datacenters_reply.py | 39 +- .../models/list_deployment_events_reply.py | 52 +- .../models/list_deployments_reply.py | 55 +- koyeb/{ => api}/models/list_domains_reply.py | 42 +- .../models/list_instance_events_reply.py | 52 +- .../{ => api}/models/list_instances_reply.py | 52 +- .../list_organization_invitations_reply.py | 45 +- .../models/list_organization_members_reply.py | 42 +- .../models/list_payment_methods_reply.py | 42 +- .../list_persistent_volume_events_reply.py | 52 +- .../models/list_persistent_volumes_reply.py | 42 +- .../list_regional_deployment_events_reply.py | 55 +- .../models/list_regional_deployments_reply.py | 55 +- koyeb/{ => api}/models/list_regions_reply.py | 42 +- koyeb/{ => api}/models/list_secrets_reply.py | 42 +- .../models/list_service_events_reply.py | 52 +- koyeb/{ => api}/models/list_services_reply.py | 52 +- .../{ => api}/models/list_snapshots_reply.py | 42 +- koyeb/{ => api}/models/list_usage_reply.py | 36 +- ...ist_user_organization_invitations_reply.py | 45 +- .../models/list_user_organizations_reply.py | 42 +- koyeb/{ => api}/models/log_entry.py | 32 +- koyeb/{ => api}/models/login_method_reply.py | 34 +- .../models/login_method_reply_method.py | 16 +- koyeb/{ => api}/models/login_reply.py | 36 +- koyeb/{ => api}/models/login_request.py | 32 +- koyeb/{ => api}/models/manage_reply.py | 24 +- koyeb/{ => api}/models/members_summary.py | 30 +- koyeb/api/models/metric_name.py | 45 + .../models/neon_postgres_database.py | 68 +- ...n_postgres_database_deployment_metadata.py | 26 +- .../neon_postgres_database_neon_database.py | 25 +- .../neon_postgres_database_neon_role.py | 27 +- .../{ => api}/models/neon_postgres_summary.py | 27 +- koyeb/{ => api}/models/next_invoice_reply.py | 51 +- .../models/next_invoice_reply_discount.py | 42 +- .../next_invoice_reply_discount_type.py | 16 +- .../models/next_invoice_reply_line.py | 60 +- .../models/next_invoice_reply_line_period.py | 25 +- .../models/next_invoice_reply_line_price.py | 26 +- koyeb/{ => api}/models/notification.py | 52 +- koyeb/{ => api}/models/notification_list.py | 61 +- .../{ => api}/models/o_auth_callback_reply.py | 36 +- .../models/o_auth_callback_request.py | 51 +- koyeb/{ => api}/models/o_auth_provider.py | 28 +- koyeb/{ => api}/models/object.py | 36 +- koyeb/api/models/organization.py | 150 + .../organization_deactivation_reason.py | 41 + .../models/organization_detailed_status.py | 45 + .../models/organization_invitation.py | 100 +- .../models/organization_invitation_status.py | 22 +- koyeb/{ => api}/models/organization_member.py | 81 +- .../models/organization_member_status.py | 18 +- koyeb/api/models/organization_status.py | 42 + .../{ => api}/models/organization_summary.py | 117 +- koyeb/{ => api}/models/payment_method.py | 102 +- koyeb/api/models/payment_method_status.py | 42 + koyeb/{ => api}/models/period_usage.py | 40 +- koyeb/{ => api}/models/persistent_volume.py | 91 +- .../models/persistent_volume_backing_store.py | 37 + .../models/persistent_volume_event.py | 50 +- .../models/persistent_volume_quotas.py | 52 +- koyeb/api/models/persistent_volume_status.py | 40 + koyeb/api/models/plan.py | 47 + koyeb/{ => api}/models/port.py | 27 +- .../models/private_registry_configuration.py | 32 +- koyeb/{ => api}/models/proxy_port_protocol.py | 14 +- koyeb/{ => api}/models/public_organization.py | 42 +- koyeb/{ => api}/models/public_user.py | 47 +- koyeb/{ => api}/models/query_logs_reply.py | 46 +- .../models/query_logs_reply_pagination.py | 32 +- koyeb/{ => api}/models/quotas.py | 128 +- .../models/reactivate_organization_reply.py | 36 +- .../{ => api}/models/redeem_coupon_request.py | 24 +- koyeb/{ => api}/models/redeploy_reply.py | 36 +- .../{ => api}/models/redeploy_request_info.py | 46 +- koyeb/{ => api}/models/region.py | 58 +- koyeb/{ => api}/models/region_availability.py | 34 +- koyeb/{ => api}/models/region_list_item.py | 58 +- koyeb/{ => api}/models/region_usage.py | 48 +- koyeb/{ => api}/models/regional_deployment.py | 129 +- .../models/regional_deployment_definition.py | 186 +- .../regional_deployment_definition_type.py | 18 +- .../models/regional_deployment_event.py | 50 +- .../models/regional_deployment_list_item.py | 64 +- .../models/regional_deployment_role.py | 20 +- .../api/models/regional_deployment_status.py | 50 + .../models/regional_deployment_volume.py | 32 +- .../remove_organization_member_reply.py | 36 +- .../resend_organization_invitation_reply.py | 36 +- .../models/reset_password_request.py | 24 +- koyeb/{ => api}/models/reveal_secret_reply.py | 24 +- .../review_organization_capacity_reply.py | 24 +- .../review_organization_capacity_request.py | 27 +- koyeb/{ => api}/models/route.py | 25 +- koyeb/{ => api}/models/sample.py | 27 +- .../{ => api}/models/scale_to_zero_quotas.py | 47 +- koyeb/{ => api}/models/scaling.py | 43 +- koyeb/api/models/secret.py | 149 + koyeb/{ => api}/models/secret_type.py | 18 +- koyeb/{ => api}/models/secrets_summary.py | 27 +- koyeb/{ => api}/models/service.py | 108 +- koyeb/{ => api}/models/service_event.py | 50 +- koyeb/{ => api}/models/service_list_item.py | 88 +- koyeb/{ => api}/models/service_state.py | 46 +- koyeb/api/models/service_status.py | 44 + koyeb/{ => api}/models/service_summary.py | 27 +- koyeb/{ => api}/models/service_type.py | 20 +- koyeb/{ => api}/models/service_usage.py | 48 +- koyeb/{ => api}/models/snapshot.py | 74 +- koyeb/api/models/snapshot_status.py | 41 + koyeb/api/models/snapshot_type.py | 38 + .../stream_result_of_exec_command_reply.py | 46 +- .../models/stream_result_of_log_entry.py | 46 +- koyeb/{ => api}/models/subscription.py | 115 +- .../models/subscription_payment_failure.py | 69 +- ...subscription_payment_failure_stripe_sdk.py | 30 +- koyeb/api/models/subscription_status.py | 44 + koyeb/{ => api}/models/tcp_health_check.py | 24 +- koyeb/{ => api}/models/token.py | 41 +- .../models/trigger_deployment_metadata.py | 64 +- .../trigger_deployment_metadata_actor_type.py | 18 +- ...rigger_deployment_metadata_trigger_type.py | 20 +- .../models/trigger_git_deployment_metadata.py | 65 +- ...rigger_git_deployment_metadata_provider.py | 16 +- koyeb/{ => api}/models/update_app.py | 24 +- koyeb/{ => api}/models/update_app_reply.py | 30 +- koyeb/{ => api}/models/update_budget_reply.py | 36 +- .../{ => api}/models/update_budget_request.py | 24 +- .../models/update_credential_reply.py | 36 +- koyeb/{ => api}/models/update_domain.py | 35 +- koyeb/{ => api}/models/update_domain_reply.py | 36 +- .../models/update_organization_plan_reply.py | 36 +- .../update_organization_plan_request.py | 28 +- .../models/update_organization_reply.py | 36 +- .../models/update_password_request.py | 27 +- .../models/update_persistent_volume_reply.py | 36 +- .../update_persistent_volume_request.py | 27 +- koyeb/{ => api}/models/update_secret_reply.py | 36 +- koyeb/{ => api}/models/update_service.py | 62 +- .../{ => api}/models/update_service_reply.py | 36 +- .../{ => api}/models/update_snapshot_reply.py | 36 +- .../models/update_snapshot_request.py | 24 +- .../update_user_request_user_update_body.py | 47 +- .../models/update_user_settings_reply.py | 36 +- .../models/update_user_settings_request.py | 35 +- .../upsert_signup_qualification_reply.py | 36 +- .../upsert_signup_qualification_request.py | 26 +- koyeb/{ => api}/models/usage.py | 46 +- koyeb/{ => api}/models/usage_details.py | 68 +- koyeb/{ => api}/models/user.py | 76 +- koyeb/api/models/user_flags.py | 48 + koyeb/{ => api}/models/user_reply.py | 34 +- koyeb/{ => api}/models/user_role_role.py | 16 +- koyeb/{ => api}/models/user_settings.py | 40 +- .../models/verify_docker_image_reply.py | 44 +- .../verify_docker_image_reply_err_code.py | 38 +- koyeb/{ => api}/rest.py | 83 +- koyeb/{ => api}/test/__init__.py | 0 ...st_accept_organization_invitation_reply.py | 32 +- koyeb/api/test/test_action.py | 33 + koyeb/{ => api}/test/test_activity.py | 30 +- koyeb/{ => api}/test/test_activity_api.py | 18 +- koyeb/{ => api}/test/test_activity_list.py | 34 +- koyeb/{ => api}/test/test_app.py | 28 +- koyeb/{ => api}/test/test_app_event.py | 22 +- koyeb/{ => api}/test/test_app_list_item.py | 28 +- koyeb/api/test/test_app_status.py | 33 + koyeb/{ => api}/test/test_app_usage.py | 30 +- koyeb/{ => api}/test/test_apps_api.py | 14 +- koyeb/{ => api}/test/test_apps_summary.py | 22 +- koyeb/{ => api}/test/test_archive.py | 22 +- .../test/test_archive_deployment_metadata.py | 22 +- koyeb/{ => api}/test/test_archive_source.py | 26 +- koyeb/{ => api}/test/test_archives_api.py | 14 +- koyeb/{ => api}/test/test_auto_release.py | 24 +- .../{ => api}/test/test_auto_release_group.py | 22 +- .../{ => api}/test/test_autocomplete_reply.py | 22 +- .../test/test_autocomplete_request.py | 80 +- koyeb/api/test/test_availability_level.py | 33 + ..._azure_container_registry_configuration.py | 24 +- koyeb/{ => api}/test/test_billing_api.py | 18 +- koyeb/{ => api}/test/test_budget.py | 22 +- .../{ => api}/test/test_buildpack_builder.py | 22 +- koyeb/{ => api}/test/test_canny_auth_reply.py | 22 +- .../test/test_catalog_datacenters_api.py | 14 +- .../test/test_catalog_gpu_details.py | 22 +- koyeb/{ => api}/test/test_catalog_instance.py | 24 +- .../test/test_catalog_instance_list_item.py | 24 +- .../test/test_catalog_instance_usage_api.py | 37 + .../test/test_catalog_instances_api.py | 14 +- .../test/test_catalog_regions_api.py | 14 +- koyeb/{ => api}/test/test_catalog_usage.py | 26 +- ...lear_idenfy_verification_result_request.py | 24 +- koyeb/{ => api}/test/test_compose_api.py | 14 +- koyeb/{ => api}/test/test_compose_reply.py | 40 +- koyeb/{ => api}/test/test_config_file.py | 22 +- ...est_confirm_payment_authorization_reply.py | 26 +- koyeb/{ => api}/test/test_coupons_api.py | 14 +- .../test/test_create_access_token_reply.py | 22 +- .../test/test_create_access_token_request.py | 22 +- .../test/test_create_account_request.py | 22 +- koyeb/{ => api}/test/test_create_app.py | 22 +- koyeb/{ => api}/test/test_create_app_reply.py | 30 +- koyeb/{ => api}/test/test_create_archive.py | 22 +- .../test/test_create_archive_reply.py | 24 +- .../test/test_create_budget_reply.py | 24 +- koyeb/{ => api}/test/test_create_compose.py | 84 +- .../{ => api}/test/test_create_credential.py | 22 +- .../test/test_create_credential_reply.py | 24 +- koyeb/{ => api}/test/test_create_domain.py | 26 +- .../test/test_create_domain_reply.py | 28 +- ...st_create_organization_invitation_reply.py | 32 +- ..._create_organization_invitation_request.py | 24 +- .../test/test_create_organization_reply.py | 27 +- .../test/test_create_organization_request.py | 22 +- ...test_create_payment_authorization_reply.py | 26 +- .../test_create_persistent_volume_reply.py | 24 +- .../test_create_persistent_volume_request.py | 22 +- koyeb/{ => api}/test/test_create_secret.py | 36 +- .../test/test_create_secret_reply.py | 40 +- koyeb/{ => api}/test/test_create_service.py | 80 +- .../test/test_create_service_reply.py | 32 +- .../test/test_create_snapshot_reply.py | 24 +- .../test/test_create_snapshot_request.py | 22 +- .../test/test_create_stage_attempt_request.py | 22 +- koyeb/{ => api}/test/test_credential.py | 22 +- koyeb/api/test/test_credential_type.py | 33 + koyeb/{ => api}/test/test_credentials_api.py | 14 +- .../test/test_database_deployment_metadata.py | 24 +- .../test/test_database_role_password.py | 22 +- koyeb/{ => api}/test/test_database_source.py | 28 +- koyeb/{ => api}/test/test_database_usage.py | 22 +- .../test/test_database_usage_details.py | 22 +- .../test/test_datacenter_list_item.py | 22 +- .../test_deactivate_organization_reply.py | 27 +- .../test_deactivate_organization_request.py | 22 +- .../test_declare_stage_progress_request.py | 22 +- .../test_declare_step_progress_request.py | 22 +- ...t_decline_organization_invitation_reply.py | 32 +- .../test/test_delete_organization_reply.py | 27 +- .../test_delete_persistent_volume_reply.py | 24 +- .../test/test_delete_snapshot_reply.py | 24 +- .../{ => api}/test/test_delete_user_reply.py | 22 +- koyeb/{ => api}/test/test_deployment.py | 112 +- .../test/test_deployment_database_info.py | 26 +- .../test/test_deployment_definition.py | 121 +- .../test/test_deployment_definition_type.py | 33 + koyeb/{ => api}/test/test_deployment_env.py | 22 +- koyeb/{ => api}/test/test_deployment_event.py | 22 +- .../test/test_deployment_health_check.py | 28 +- .../test/test_deployment_instance_type.py | 22 +- .../test/test_deployment_list_item.py | 112 +- .../test/test_deployment_metadata.py | 38 +- ..._deployment_neon_postgres_database_info.py | 26 +- ...oyment_neon_postgres_database_info_role.py | 24 +- koyeb/{ => api}/test/test_deployment_port.py | 22 +- .../test/test_deployment_provisioning_info.py | 28 +- ...test_deployment_provisioning_info_stage.py | 28 +- ...t_provisioning_info_stage_build_attempt.py | 30 +- ...ing_info_stage_build_attempt_build_step.py | 28 +- ...ployment_provisioning_info_stage_status.py | 18 +- .../test/test_deployment_proxy_port.py | 22 +- .../test_deployment_proxy_port_metadata.py | 22 +- koyeb/api/test/test_deployment_role.py | 33 + koyeb/{ => api}/test/test_deployment_route.py | 22 +- koyeb/api/test/test_deployment_scaling.py | 73 + .../test/test_deployment_scaling_target.py | 65 + ...t_deployment_scaling_target_average_cpu.py | 24 +- ...t_deployment_scaling_target_average_mem.py | 24 +- ...ment_scaling_target_concurrent_requests.py | 28 +- ...ment_scaling_target_requests_per_second.py | 28 +- ...t_scaling_target_requests_response_time.py | 28 +- ...loyment_scaling_target_sleep_idle_delay.py | 24 +- koyeb/api/test/test_deployment_status.py | 33 + .../test/test_deployment_strategy.py | 22 +- .../api/test/test_deployment_strategy_type.py | 33 + .../{ => api}/test/test_deployment_volume.py | 22 +- koyeb/{ => api}/test/test_deployments_api.py | 14 +- .../{ => api}/test/test_desired_deployment.py | 24 +- .../test/test_desired_deployment_group.py | 22 +- ...st_digital_ocean_registry_configuration.py | 24 +- .../test/test_discourse_auth_reply.py | 22 +- .../test/test_discourse_auth_request.py | 22 +- koyeb/{ => api}/test/test_docker_builder.py | 22 +- .../{ => api}/test/test_docker_helper_api.py | 14 +- .../test_docker_hub_registry_configuration.py | 24 +- koyeb/{ => api}/test/test_docker_source.py | 22 +- koyeb/{ => api}/test/test_domain.py | 26 +- .../test/test_domain_load_balancer_koyeb.py | 22 +- .../test/test_domain_load_balancer_quotas.py | 22 +- koyeb/api/test/test_domain_status.py | 33 + koyeb/api/test/test_domain_type.py | 33 + koyeb/{ => api}/test/test_domains_api.py | 14 +- koyeb/{ => api}/test/test_domains_summary.py | 22 +- koyeb/{ => api}/test/test_env.py | 22 +- koyeb/{ => api}/test/test_error.py | 22 +- koyeb/{ => api}/test/test_error_field.py | 22 +- .../{ => api}/test/test_error_with_fields.py | 24 +- koyeb/{ => api}/test/test_exec_command_io.py | 22 +- .../{ => api}/test/test_exec_command_reply.py | 26 +- .../test/test_exec_command_request_body.py | 26 +- .../test/test_exec_command_request_id_type.py | 33 + ...test_exec_command_request_terminal_size.py | 24 +- ...st_gcp_container_registry_configuration.py | 24 +- koyeb/{ => api}/test/test_get_app_reply.py | 30 +- koyeb/{ => api}/test/test_get_budget_reply.py | 24 +- .../test/test_get_catalog_instance_reply.py | 26 +- .../test/test_get_credential_reply.py | 24 +- .../test/test_get_deployment_reply.py | 95 +- .../test/test_get_deployment_scaling_reply.py | 26 +- .../test_get_deployment_scaling_reply_item.py | 24 +- koyeb/{ => api}/test/test_get_domain_reply.py | 28 +- .../test_get_github_installation_reply.py | 22 +- .../test/test_get_idenfy_token_reply.py | 22 +- .../{ => api}/test/test_get_instance_reply.py | 24 +- .../test/test_get_intercom_profile_reply.py | 22 +- .../{ => api}/test/test_get_metrics_reply.py | 26 +- .../test/test_get_metrics_reply_metric.py | 24 +- .../test/test_get_o_auth_options_reply.py | 24 +- .../test_get_organization_invitation_reply.py | 32 +- .../test/test_get_organization_reply.py | 27 +- .../test_get_organization_summary_reply.py | 38 +- ...st_get_organization_usage_details_reply.py | 28 +- .../test/test_get_organization_usage_reply.py | 36 +- .../test/test_get_payment_method_reply.py | 24 +- .../test/test_get_persistent_volume_reply.py | 24 +- koyeb/{ => api}/test/test_get_quotas_reply.py | 33 +- koyeb/{ => api}/test/test_get_region_reply.py | 24 +- .../test_get_regional_deployment_reply.py | 80 +- koyeb/{ => api}/test/test_get_secret_reply.py | 40 +- .../{ => api}/test/test_get_service_reply.py | 32 +- .../{ => api}/test/test_get_snapshot_reply.py | 24 +- .../test/test_get_subscription_reply.py | 28 +- ..._get_user_organization_invitation_reply.py | 32 +- .../test/test_get_user_settings_reply.py | 24 +- .../test/test_git_deployment_metadata.py | 24 +- .../test/test_git_env_deployment_metadata.py | 22 +- .../test_git_hub_registry_configuration.py | 22 +- .../test_git_lab_registry_configuration.py | 22 +- koyeb/{ => api}/test/test_git_source.py | 26 +- .../test/test_github_installation_reply.py | 22 +- .../test/test_github_installation_request.py | 22 +- .../test/test_google_protobuf_any.py | 22 +- .../test/test_google_protobuf_null_value.py | 33 + .../{ => api}/test/test_google_rpc_status.py | 22 +- .../test/test_has_unpaid_invoices_reply.py | 22 +- koyeb/{ => api}/test/test_http_header.py | 22 +- .../{ => api}/test/test_http_health_check.py | 24 +- koyeb/{ => api}/test/test_instance.py | 22 +- .../test/test_instance_availability.py | 24 +- koyeb/{ => api}/test/test_instance_event.py | 22 +- .../{ => api}/test/test_instance_list_item.py | 22 +- koyeb/api/test/test_instance_status.py | 33 + koyeb/{ => api}/test/test_instance_usage.py | 22 +- koyeb/{ => api}/test/test_instances_api.py | 14 +- .../{ => api}/test/test_instances_summary.py | 22 +- koyeb/{ => api}/test/test_intercom_api.py | 14 +- koyeb/api/test/test_invite_api.py | 37 + .../test/test_invite_user_request.py | 22 +- koyeb/{ => api}/test/test_kgitproxy_branch.py | 22 +- .../test/test_kgitproxy_git_hub_repository.py | 22 +- ...st_kgitproxy_github_installation_status.py | 18 +- .../test/test_kgitproxy_indexing_status.py | 33 + .../test_kgitproxy_list_branches_reply.py | 24 +- .../test_kgitproxy_list_repositories_reply.py | 28 +- .../test/test_kgitproxy_repository.py | 24 +- .../test_kgitproxy_repository_provider.py | 33 + koyeb/{ => api}/test/test_ksearch_app.py | 22 +- .../test/test_ksearch_global_deployment.py | 22 +- koyeb/{ => api}/test/test_ksearch_instance.py | 22 +- .../test/test_ksearch_organization.py | 22 +- .../test/test_ksearch_regional_deployment.py | 22 +- .../test/test_ksearch_search_reply.py | 36 +- koyeb/{ => api}/test/test_ksearch_service.py | 22 +- koyeb/{ => api}/test/test_ksearch_user.py | 22 +- .../test/test_list_app_events_reply.py | 26 +- koyeb/{ => api}/test/test_list_apps_reply.py | 30 +- .../test/test_list_catalog_instances_reply.py | 26 +- .../test/test_list_credentials_reply.py | 24 +- .../test/test_list_datacenters_reply.py | 24 +- .../test/test_list_deployment_events_reply.py | 26 +- .../test/test_list_deployments_reply.py | 95 +- .../{ => api}/test/test_list_domains_reply.py | 28 +- .../test/test_list_instance_events_reply.py | 26 +- .../test/test_list_instances_reply.py | 24 +- ...est_list_organization_invitations_reply.py | 32 +- .../test_list_organization_members_reply.py | 28 +- .../test/test_list_payment_methods_reply.py | 24 +- ...est_list_persistent_volume_events_reply.py | 28 +- .../test_list_persistent_volumes_reply.py | 24 +- ...t_list_regional_deployment_events_reply.py | 28 +- .../test_list_regional_deployments_reply.py | 70 +- .../{ => api}/test/test_list_regions_reply.py | 24 +- .../{ => api}/test/test_list_secrets_reply.py | 40 +- .../test/test_list_service_events_reply.py | 26 +- .../test/test_list_services_reply.py | 32 +- .../test/test_list_snapshots_reply.py | 24 +- koyeb/{ => api}/test/test_list_usage_reply.py | 28 +- ...ist_user_organization_invitations_reply.py | 32 +- .../test_list_user_organizations_reply.py | 27 +- koyeb/{ => api}/test/test_log_entry.py | 22 +- .../{ => api}/test/test_login_method_reply.py | 22 +- .../test/test_login_method_reply_method.py | 33 + koyeb/{ => api}/test/test_login_reply.py | 22 +- koyeb/{ => api}/test/test_login_request.py | 22 +- koyeb/{ => api}/test/test_logs_api.py | 14 +- koyeb/{ => api}/test/test_manage_reply.py | 22 +- koyeb/{ => api}/test/test_members_summary.py | 22 +- koyeb/api/test/test_metric_name.py | 33 + koyeb/{ => api}/test/test_metrics_api.py | 14 +- .../test/test_neon_postgres_database.py | 26 +- ...n_postgres_database_deployment_metadata.py | 24 +- ...st_neon_postgres_database_neon_database.py | 24 +- .../test_neon_postgres_database_neon_role.py | 22 +- .../test/test_neon_postgres_summary.py | 22 +- .../{ => api}/test/test_next_invoice_reply.py | 30 +- .../test/test_next_invoice_reply_discount.py | 22 +- .../test_next_invoice_reply_discount_type.py | 33 + .../test/test_next_invoice_reply_line.py | 26 +- .../test_next_invoice_reply_line_period.py | 22 +- .../test_next_invoice_reply_line_price.py | 22 +- koyeb/{ => api}/test/test_notification.py | 34 +- .../{ => api}/test/test_notification_list.py | 36 +- .../test/test_o_auth_callback_reply.py | 22 +- .../test/test_o_auth_callback_request.py | 22 +- koyeb/{ => api}/test/test_o_auth_provider.py | 22 +- koyeb/{ => api}/test/test_object.py | 24 +- koyeb/{ => api}/test/test_organization.py | 25 +- koyeb/{ => api}/test/test_organization_api.py | 14 +- .../test_organization_confirmations_api.py | 14 +- .../test_organization_deactivation_reason.py | 16 +- .../test/test_organization_detailed_status.py | 33 + .../test/test_organization_invitation.py | 28 +- .../test_organization_invitation_status.py | 33 + .../test/test_organization_invitations_api.py | 14 +- .../test/test_organization_member.py | 26 +- .../test/test_organization_member_status.py | 33 + .../test/test_organization_members_api.py | 14 +- .../api/test/test_organization_quotas_api.py | 37 + koyeb/api/test/test_organization_status.py | 33 + .../test/test_organization_summary.py | 36 +- koyeb/{ => api}/test/test_payment_method.py | 22 +- koyeb/api/test/test_payment_method_status.py | 33 + .../test/test_payment_methods_api.py | 14 +- koyeb/{ => api}/test/test_period_usage.py | 32 +- .../{ => api}/test/test_persistent_volume.py | 22 +- .../test_persistent_volume_backing_store.py | 33 + .../test/test_persistent_volume_event.py | 24 +- .../test/test_persistent_volume_quotas.py | 22 +- .../api/test/test_persistent_volume_status.py | 33 + .../test/test_persistent_volumes_api.py | 14 +- koyeb/api/test/test_plan.py | 33 + koyeb/{ => api}/test/test_port.py | 22 +- .../test_private_registry_configuration.py | 22 +- koyeb/{ => api}/test/test_profile_api.py | 36 +- koyeb/{ => api}/test/test_provisioning_api.py | 14 +- koyeb/api/test/test_proxy_port_protocol.py | 33 + .../test/test_public_organization.py | 22 +- koyeb/{ => api}/test/test_public_user.py | 22 +- koyeb/{ => api}/test/test_query_logs_reply.py | 28 +- .../test/test_query_logs_reply_pagination.py | 22 +- koyeb/{ => api}/test/test_quotas.py | 31 +- koyeb/{ => api}/test/test_quotas_api.py | 14 +- .../test_reactivate_organization_reply.py | 27 +- .../test/test_redeem_coupon_request.py | 22 +- koyeb/{ => api}/test/test_redeploy_reply.py | 95 +- .../test/test_redeploy_request_info.py | 22 +- koyeb/{ => api}/test/test_region.py | 22 +- .../test/test_region_availability.py | 22 +- koyeb/{ => api}/test/test_region_list_item.py | 22 +- koyeb/{ => api}/test/test_region_usage.py | 24 +- .../test/test_regional_deployment.py | 78 +- .../test_regional_deployment_definition.py | 72 +- ...est_regional_deployment_definition_type.py | 18 +- .../test/test_regional_deployment_event.py | 24 +- .../test_regional_deployment_list_item.py | 68 +- .../api/test/test_regional_deployment_role.py | 33 + .../test/test_regional_deployment_status.py | 33 + .../test/test_regional_deployment_volume.py | 22 +- .../test/test_regional_deployments_api.py | 14 +- .../test_remove_organization_member_reply.py | 28 +- koyeb/{ => api}/test/test_repositories_api.py | 14 +- ...st_resend_organization_invitation_reply.py | 32 +- .../test/test_reset_password_request.py | 22 +- .../test/test_reveal_secret_reply.py | 22 +- ...test_review_organization_capacity_reply.py | 24 +- ...st_review_organization_capacity_request.py | 24 +- koyeb/{ => api}/test/test_route.py | 22 +- koyeb/{ => api}/test/test_sample.py | 22 +- .../test/test_scale_to_zero_quotas.py | 22 +- koyeb/api/test/test_scaling.py | 70 + koyeb/{ => api}/test/test_search_api.py | 14 +- koyeb/{ => api}/test/test_secret.py | 38 +- koyeb/api/test/test_secret_type.py | 33 + koyeb/{ => api}/test/test_secrets_api.py | 14 +- koyeb/{ => api}/test/test_secrets_summary.py | 22 +- koyeb/{ => api}/test/test_service.py | 30 +- koyeb/{ => api}/test/test_service_event.py | 24 +- .../{ => api}/test/test_service_list_item.py | 30 +- koyeb/{ => api}/test/test_service_state.py | 30 +- koyeb/api/test/test_service_status.py | 33 + koyeb/{ => api}/test/test_service_summary.py | 22 +- koyeb/api/test/test_service_type.py | 33 + koyeb/{ => api}/test/test_service_usage.py | 26 +- koyeb/{ => api}/test/test_services_api.py | 14 +- koyeb/{ => api}/test/test_sessions_api.py | 14 +- koyeb/{ => api}/test/test_snapshot.py | 22 +- koyeb/api/test/test_snapshot_status.py | 33 + koyeb/api/test/test_snapshot_type.py | 33 + koyeb/{ => api}/test/test_snapshots_api.py | 14 +- koyeb/api/test/test_sso_api.py | 43 + ...est_stream_result_of_exec_command_reply.py | 32 +- .../test/test_stream_result_of_log_entry.py | 28 +- koyeb/{ => api}/test/test_subscription.py | 26 +- .../test/test_subscription_payment_failure.py | 24 +- ...subscription_payment_failure_stripe_sdk.py | 24 +- koyeb/api/test/test_subscription_status.py | 33 + .../{ => api}/test/test_subscriptions_api.py | 14 +- koyeb/{ => api}/test/test_summary_api.py | 14 +- koyeb/{ => api}/test/test_tcp_health_check.py | 22 +- koyeb/{ => api}/test/test_token.py | 22 +- .../test/test_trigger_deployment_metadata.py | 24 +- ..._trigger_deployment_metadata_actor_type.py | 18 +- ...rigger_deployment_metadata_trigger_type.py | 18 +- .../test_trigger_git_deployment_metadata.py | 22 +- ...rigger_git_deployment_metadata_provider.py | 18 +- koyeb/{ => api}/test/test_update_app.py | 22 +- koyeb/{ => api}/test/test_update_app_reply.py | 30 +- .../test/test_update_budget_reply.py | 24 +- .../test/test_update_budget_request.py | 22 +- .../test/test_update_credential_reply.py | 24 +- koyeb/{ => api}/test/test_update_domain.py | 22 +- .../test/test_update_domain_reply.py | 28 +- .../test_update_organization_plan_reply.py | 27 +- .../test_update_organization_plan_request.py | 22 +- .../test/test_update_organization_reply.py | 27 +- .../test/test_update_password_request.py | 22 +- .../test_update_persistent_volume_reply.py | 24 +- .../test_update_persistent_volume_request.py | 22 +- .../test/test_update_secret_reply.py | 40 +- koyeb/{ => api}/test/test_update_service.py | 98 +- .../test/test_update_service_reply.py | 32 +- .../test/test_update_snapshot_reply.py | 24 +- .../test/test_update_snapshot_request.py | 22 +- ...st_update_user_request_user_update_body.py | 24 +- .../test/test_update_user_settings_reply.py | 24 +- .../test/test_update_user_settings_request.py | 22 +- .../test_upsert_signup_qualification_reply.py | 29 +- ...est_upsert_signup_qualification_request.py | 24 +- koyeb/{ => api}/test/test_usage.py | 34 +- koyeb/{ => api}/test/test_usage_details.py | 22 +- koyeb/{ => api}/test/test_usages_api.py | 14 +- koyeb/{ => api}/test/test_user.py | 22 +- koyeb/api/test/test_user_flags.py | 33 + koyeb/{ => api}/test/test_user_reply.py | 22 +- koyeb/api/test/test_user_role_role.py | 33 + koyeb/{ => api}/test/test_user_settings.py | 22 +- koyeb/api/test/test_users_api.py | 45 + .../test/test_verify_docker_image_reply.py | 22 +- ...test_verify_docker_image_reply_err_code.py | 33 + koyeb/api/users_api.py | 293 -- koyeb/api_README.md | 619 ++++ koyeb/docs/UsersApi.md | 93 - koyeb/models/__init__.py | 473 --- koyeb/models/app_status.py | 42 - koyeb/models/create_secret.py | 191 - koyeb/models/deployment.py | 195 - koyeb/models/deployment_definition.py | 302 -- koyeb/models/deployment_scaling_target.py | 172 - koyeb/models/deployment_status.py | 49 - koyeb/models/deployment_strategy_type.py | 38 - koyeb/models/instance_status.py | 41 - koyeb/models/metric_name.py | 43 - koyeb/models/organization.py | 194 - .../organization_deactivation_reason.py | 39 - koyeb/models/organization_detailed_status.py | 43 - koyeb/models/organization_status.py | 40 - koyeb/models/payment_method_status.py | 40 - .../models/persistent_volume_backing_store.py | 37 - koyeb/models/persistent_volume_status.py | 38 - koyeb/models/plan.py | 45 - koyeb/models/regional_deployment_status.py | 48 - koyeb/models/secret.py | 215 -- koyeb/models/service_status.py | 42 - koyeb/models/snapshot_status.py | 39 - koyeb/models/snapshot_type.py | 36 - koyeb/models/subscription_status.py | 42 - koyeb/models/user_flags.py | 48 - koyeb/test/test_action.py | 35 - koyeb/test/test_app_status.py | 35 - koyeb/test/test_availability_level.py | 35 - koyeb/test/test_catalog_instance_usage_api.py | 35 - koyeb/test/test_credential_type.py | 35 - koyeb/test/test_deployment_definition_type.py | 35 - koyeb/test/test_deployment_role.py | 35 - koyeb/test/test_deployment_scaling.py | 75 - koyeb/test/test_deployment_scaling_target.py | 67 - koyeb/test/test_deployment_status.py | 35 - koyeb/test/test_deployment_strategy_type.py | 35 - koyeb/test/test_domain_status.py | 35 - koyeb/test/test_domain_type.py | 35 - .../test/test_exec_command_request_id_type.py | 35 - koyeb/test/test_google_protobuf_null_value.py | 35 - koyeb/test/test_instance_status.py | 35 - koyeb/test/test_invite_api.py | 35 - koyeb/test/test_kgitproxy_indexing_status.py | 35 - .../test_kgitproxy_repository_provider.py | 35 - koyeb/test/test_login_method_reply_method.py | 35 - koyeb/test/test_metric_name.py | 35 - .../test_next_invoice_reply_discount_type.py | 35 - .../test/test_organization_detailed_status.py | 35 - .../test_organization_invitation_status.py | 35 - koyeb/test/test_organization_member_status.py | 35 - koyeb/test/test_organization_quotas_api.py | 35 - koyeb/test/test_organization_status.py | 35 - koyeb/test/test_payment_method_status.py | 35 - .../test_persistent_volume_backing_store.py | 35 - koyeb/test/test_persistent_volume_status.py | 35 - koyeb/test/test_plan.py | 35 - koyeb/test/test_proxy_port_protocol.py | 35 - koyeb/test/test_regional_deployment_role.py | 35 - koyeb/test/test_regional_deployment_status.py | 35 - koyeb/test/test_scaling.py | 72 - koyeb/test/test_secret_type.py | 35 - koyeb/test/test_service_status.py | 35 - koyeb/test/test_service_type.py | 35 - koyeb/test/test_snapshot_status.py | 35 - koyeb/test/test_snapshot_type.py | 35 - koyeb/test/test_sso_api.py | 39 - koyeb/test/test_subscription_status.py | 35 - koyeb/test/test_user_flags.py | 35 - koyeb/test/test_user_role_role.py | 35 - koyeb/test/test_users_api.py | 38 - ...test_verify_docker_image_reply_err_code.py | 37 - 1293 files changed, 31658 insertions(+), 31747 deletions(-) create mode 100644 koyeb/api/api/__init__.py rename koyeb/api/{ => api}/activity_api.py (79%) rename koyeb/api/{ => api}/apps_api.py (79%) rename koyeb/api/{ => api}/archives_api.py (78%) rename koyeb/api/{ => api}/billing_api.py (80%) rename koyeb/api/{ => api}/catalog_datacenters_api.py (82%) rename koyeb/api/{ => api}/catalog_instance_usage_api.py (82%) rename koyeb/api/{ => api}/catalog_instances_api.py (79%) rename koyeb/api/{ => api}/catalog_regions_api.py (79%) rename koyeb/api/{ => api}/compose_api.py (78%) rename koyeb/api/{ => api}/coupons_api.py (79%) rename koyeb/api/{ => api}/credentials_api.py (78%) rename koyeb/api/{ => api}/deployments_api.py (74%) rename koyeb/api/{ => api}/docker_helper_api.py (74%) rename koyeb/api/{ => api}/domains_api.py (77%) rename koyeb/api/{ => api}/instances_api.py (68%) rename koyeb/api/{ => api}/intercom_api.py (77%) rename koyeb/api/{ => api}/invite_api.py (79%) rename koyeb/api/{ => api}/logs_api.py (73%) rename koyeb/api/{ => api}/metrics_api.py (66%) rename koyeb/api/{ => api}/organization_api.py (80%) rename koyeb/api/{ => api}/organization_confirmations_api.py (79%) rename koyeb/api/{ => api}/organization_invitations_api.py (77%) rename koyeb/api/{ => api}/organization_members_api.py (74%) rename koyeb/api/{ => api}/organization_quotas_api.py (78%) rename koyeb/api/{ => api}/payment_methods_api.py (79%) rename koyeb/api/{ => api}/persistent_volumes_api.py (76%) rename koyeb/api/{ => api}/profile_api.py (72%) rename koyeb/api/{ => api}/provisioning_api.py (81%) rename koyeb/api/{ => api}/quotas_api.py (78%) rename koyeb/api/{ => api}/regional_deployments_api.py (73%) rename koyeb/api/{ => api}/repositories_api.py (72%) rename koyeb/api/{ => api}/search_api.py (76%) rename koyeb/api/{ => api}/secrets_api.py (80%) rename koyeb/api/{ => api}/services_api.py (77%) rename koyeb/api/{ => api}/sessions_api.py (80%) rename koyeb/api/{ => api}/snapshots_api.py (77%) rename koyeb/api/{ => api}/sso_api.py (79%) rename koyeb/api/{ => api}/subscriptions_api.py (78%) rename koyeb/api/{ => api}/summary_api.py (78%) rename koyeb/api/{ => api}/usages_api.py (73%) create mode 100644 koyeb/api/api/users_api.py rename koyeb/{ => api}/api_client.py (75%) rename koyeb/{ => api}/api_response.py (89%) rename koyeb/{ => api}/configuration.py (71%) rename koyeb/{ => api}/docs/AcceptOrganizationInvitationReply.md (91%) rename koyeb/{ => api}/docs/Action.md (100%) rename koyeb/{ => api}/docs/Activity.md (95%) rename koyeb/{ => api}/docs/ActivityApi.md (91%) rename koyeb/{ => api}/docs/ActivityList.md (94%) rename koyeb/{ => api}/docs/App.md (97%) rename koyeb/{ => api}/docs/AppEvent.md (95%) rename koyeb/{ => api}/docs/AppListItem.md (95%) rename koyeb/{ => api}/docs/AppStatus.md (100%) rename koyeb/{ => api}/docs/AppUsage.md (95%) rename koyeb/{ => api}/docs/AppsApi.md (90%) rename koyeb/{ => api}/docs/AppsSummary.md (93%) rename koyeb/{ => api}/docs/Archive.md (96%) rename koyeb/{ => api}/docs/ArchiveDeploymentMetadata.md (92%) rename koyeb/{ => api}/docs/ArchiveSource.md (94%) rename koyeb/{ => api}/docs/ArchivesApi.md (86%) rename koyeb/{ => api}/docs/AutoRelease.md (93%) rename koyeb/{ => api}/docs/AutoReleaseGroup.md (93%) rename koyeb/{ => api}/docs/AutocompleteReply.md (93%) rename koyeb/{ => api}/docs/AutocompleteRequest.md (92%) rename koyeb/{ => api}/docs/AvailabilityLevel.md (100%) rename koyeb/{ => api}/docs/AzureContainerRegistryConfiguration.md (91%) rename koyeb/{ => api}/docs/BillingApi.md (89%) rename koyeb/{ => api}/docs/Budget.md (94%) rename koyeb/{ => api}/docs/BuildpackBuilder.md (93%) rename koyeb/{ => api}/docs/CannyAuthReply.md (93%) rename koyeb/{ => api}/docs/CatalogDatacentersApi.md (86%) rename koyeb/{ => api}/docs/CatalogGPUDetails.md (93%) rename koyeb/{ => api}/docs/CatalogInstance.md (96%) rename koyeb/{ => api}/docs/CatalogInstanceListItem.md (95%) rename koyeb/{ => api}/docs/CatalogInstanceUsageApi.md (87%) rename koyeb/{ => api}/docs/CatalogInstancesApi.md (88%) rename koyeb/{ => api}/docs/CatalogRegionsApi.md (89%) rename koyeb/{ => api}/docs/CatalogUsage.md (93%) rename koyeb/{ => api}/docs/ClearIdenfyVerificationResultRequest.md (91%) rename koyeb/{ => api}/docs/ComposeApi.md (86%) rename koyeb/{ => api}/docs/ComposeReply.md (93%) rename koyeb/{ => api}/docs/ConfigFile.md (94%) rename koyeb/{ => api}/docs/ConfirmPaymentAuthorizationReply.md (91%) rename koyeb/{ => api}/docs/CouponsApi.md (87%) rename koyeb/{ => api}/docs/CreateAccessTokenReply.md (92%) rename koyeb/{ => api}/docs/CreateAccessTokenRequest.md (92%) rename koyeb/{ => api}/docs/CreateAccountRequest.md (93%) rename koyeb/{ => api}/docs/CreateApp.md (93%) rename koyeb/{ => api}/docs/CreateAppReply.md (93%) rename koyeb/{ => api}/docs/CreateArchive.md (93%) rename koyeb/{ => api}/docs/CreateArchiveReply.md (92%) rename koyeb/{ => api}/docs/CreateBudgetReply.md (92%) rename koyeb/{ => api}/docs/CreateCompose.md (94%) rename koyeb/{ => api}/docs/CreateCredential.md (94%) rename koyeb/{ => api}/docs/CreateCredentialReply.md (92%) rename koyeb/{ => api}/docs/CreateDomain.md (95%) rename koyeb/{ => api}/docs/CreateDomainReply.md (92%) rename koyeb/{ => api}/docs/CreateOrganizationInvitationReply.md (91%) rename koyeb/{ => api}/docs/CreateOrganizationInvitationRequest.md (91%) rename koyeb/{ => api}/docs/CreateOrganizationReply.md (92%) rename koyeb/{ => api}/docs/CreateOrganizationRequest.md (91%) rename koyeb/{ => api}/docs/CreatePaymentAuthorizationReply.md (91%) rename koyeb/{ => api}/docs/CreatePersistentVolumeReply.md (92%) rename koyeb/{ => api}/docs/CreatePersistentVolumeRequest.md (93%) rename koyeb/{ => api}/docs/CreateSecret.md (96%) rename koyeb/{ => api}/docs/CreateSecretReply.md (92%) rename koyeb/{ => api}/docs/CreateService.md (93%) rename koyeb/{ => api}/docs/CreateServiceReply.md (92%) rename koyeb/{ => api}/docs/CreateSnapshotReply.md (92%) rename koyeb/{ => api}/docs/CreateSnapshotRequest.md (92%) rename koyeb/{ => api}/docs/CreateStageAttemptRequest.md (93%) rename koyeb/{ => api}/docs/Credential.md (95%) rename koyeb/{ => api}/docs/CredentialType.md (100%) rename koyeb/{ => api}/docs/CredentialsApi.md (89%) rename koyeb/{ => api}/docs/DatabaseDeploymentMetadata.md (92%) rename koyeb/{ => api}/docs/DatabaseRolePassword.md (92%) rename koyeb/{ => api}/docs/DatabaseSource.md (93%) rename koyeb/{ => api}/docs/DatabaseUsage.md (94%) rename koyeb/{ => api}/docs/DatabaseUsageDetails.md (94%) rename koyeb/{ => api}/docs/DatacenterListItem.md (94%) rename koyeb/{ => api}/docs/DeactivateOrganizationReply.md (92%) rename koyeb/{ => api}/docs/DeactivateOrganizationRequest.md (92%) rename koyeb/{ => api}/docs/DeclareStageProgressRequest.md (94%) rename koyeb/{ => api}/docs/DeclareStepProgressRequest.md (93%) rename koyeb/{ => api}/docs/DeclineOrganizationInvitationReply.md (91%) rename koyeb/{ => api}/docs/DeleteOrganizationReply.md (92%) rename koyeb/{ => api}/docs/DeletePersistentVolumeReply.md (92%) rename koyeb/{ => api}/docs/DeleteSnapshotReply.md (92%) rename koyeb/{ => api}/docs/DeleteUserReply.md (93%) rename koyeb/{ => api}/docs/Deployment.md (97%) rename koyeb/{ => api}/docs/DeploymentDatabaseInfo.md (92%) rename koyeb/{ => api}/docs/DeploymentDefinition.md (89%) rename koyeb/{ => api}/docs/DeploymentDefinitionType.md (100%) rename koyeb/{ => api}/docs/DeploymentEnv.md (94%) rename koyeb/{ => api}/docs/DeploymentEvent.md (94%) rename koyeb/{ => api}/docs/DeploymentHealthCheck.md (94%) rename koyeb/{ => api}/docs/DeploymentInstanceType.md (92%) rename koyeb/{ => api}/docs/DeploymentListItem.md (96%) rename koyeb/{ => api}/docs/DeploymentMetadata.md (95%) rename koyeb/{ => api}/docs/DeploymentNeonPostgresDatabaseInfo.md (94%) rename koyeb/{ => api}/docs/DeploymentNeonPostgresDatabaseInfoRole.md (91%) rename koyeb/{ => api}/docs/DeploymentPort.md (93%) rename koyeb/{ => api}/docs/DeploymentProvisioningInfo.md (93%) rename koyeb/{ => api}/docs/DeploymentProvisioningInfoStage.md (93%) rename koyeb/{ => api}/docs/DeploymentProvisioningInfoStageBuildAttempt.md (94%) rename koyeb/{ => api}/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md (91%) rename koyeb/{ => api}/docs/DeploymentProvisioningInfoStageStatus.md (100%) rename koyeb/{ => api}/docs/DeploymentProxyPort.md (93%) rename koyeb/{ => api}/docs/DeploymentProxyPortMetadata.md (92%) rename koyeb/{ => api}/docs/DeploymentRole.md (100%) rename koyeb/{ => api}/docs/DeploymentRoute.md (93%) rename koyeb/{ => api}/docs/DeploymentScaling.md (93%) rename koyeb/{ => api}/docs/DeploymentScalingTarget.md (95%) rename koyeb/{ => api}/docs/DeploymentScalingTargetAverageCPU.md (91%) rename koyeb/{ => api}/docs/DeploymentScalingTargetAverageMem.md (91%) rename koyeb/{ => api}/docs/DeploymentScalingTargetConcurrentRequests.md (90%) rename koyeb/{ => api}/docs/DeploymentScalingTargetRequestsPerSecond.md (90%) rename koyeb/{ => api}/docs/DeploymentScalingTargetRequestsResponseTime.md (91%) rename koyeb/{ => api}/docs/DeploymentScalingTargetSleepIdleDelay.md (93%) rename koyeb/{ => api}/docs/DeploymentStatus.md (100%) rename koyeb/{ => api}/docs/DeploymentStrategy.md (93%) rename koyeb/{ => api}/docs/DeploymentStrategyType.md (100%) rename koyeb/{ => api}/docs/DeploymentVolume.md (93%) rename koyeb/{ => api}/docs/DeploymentsApi.md (91%) rename koyeb/{ => api}/docs/DesiredDeployment.md (93%) rename koyeb/{ => api}/docs/DesiredDeploymentGroup.md (92%) rename koyeb/{ => api}/docs/DigitalOceanRegistryConfiguration.md (91%) rename koyeb/{ => api}/docs/DiscourseAuthReply.md (92%) rename koyeb/{ => api}/docs/DiscourseAuthRequest.md (92%) rename koyeb/{ => api}/docs/DockerBuilder.md (94%) rename koyeb/{ => api}/docs/DockerHelperApi.md (90%) rename koyeb/{ => api}/docs/DockerHubRegistryConfiguration.md (91%) rename koyeb/{ => api}/docs/DockerSource.md (94%) rename koyeb/{ => api}/docs/Domain.md (97%) rename koyeb/{ => api}/docs/DomainLoadBalancerKoyeb.md (92%) rename koyeb/{ => api}/docs/DomainLoadBalancerQuotas.md (92%) rename koyeb/{ => api}/docs/DomainStatus.md (100%) rename koyeb/{ => api}/docs/DomainType.md (100%) rename koyeb/{ => api}/docs/DomainsApi.md (90%) rename koyeb/{ => api}/docs/DomainsSummary.md (93%) rename koyeb/{ => api}/docs/Env.md (95%) rename koyeb/{ => api}/docs/Error.md (95%) rename koyeb/{ => api}/docs/ErrorField.md (94%) rename koyeb/{ => api}/docs/ErrorWithFields.md (93%) rename koyeb/{ => api}/docs/ExecCommandIO.md (93%) rename koyeb/{ => api}/docs/ExecCommandReply.md (94%) rename koyeb/{ => api}/docs/ExecCommandRequestBody.md (94%) rename koyeb/{ => api}/docs/ExecCommandRequestIdType.md (100%) rename koyeb/{ => api}/docs/ExecCommandRequestTerminalSize.md (91%) rename koyeb/{ => api}/docs/GCPContainerRegistryConfiguration.md (91%) rename koyeb/{ => api}/docs/GetAppReply.md (93%) rename koyeb/{ => api}/docs/GetBudgetReply.md (93%) rename koyeb/{ => api}/docs/GetCatalogInstanceReply.md (92%) rename koyeb/{ => api}/docs/GetCredentialReply.md (92%) rename koyeb/{ => api}/docs/GetDeploymentReply.md (92%) rename koyeb/{ => api}/docs/GetDeploymentScalingReply.md (92%) rename koyeb/{ => api}/docs/GetDeploymentScalingReplyItem.md (93%) rename koyeb/{ => api}/docs/GetDomainReply.md (93%) rename koyeb/{ => api}/docs/GetGithubInstallationReply.md (94%) rename koyeb/{ => api}/docs/GetIdenfyTokenReply.md (92%) rename koyeb/{ => api}/docs/GetInstanceReply.md (93%) rename koyeb/{ => api}/docs/GetIntercomProfileReply.md (92%) rename koyeb/{ => api}/docs/GetMetricsReply.md (93%) rename koyeb/{ => api}/docs/GetMetricsReplyMetric.md (92%) rename koyeb/{ => api}/docs/GetOAuthOptionsReply.md (93%) rename koyeb/{ => api}/docs/GetOrganizationInvitationReply.md (91%) rename koyeb/{ => api}/docs/GetOrganizationReply.md (92%) rename koyeb/{ => api}/docs/GetOrganizationSummaryReply.md (92%) rename koyeb/{ => api}/docs/GetOrganizationUsageDetailsReply.md (93%) rename koyeb/{ => api}/docs/GetOrganizationUsageReply.md (92%) rename koyeb/{ => api}/docs/GetPaymentMethodReply.md (92%) rename koyeb/{ => api}/docs/GetPersistentVolumeReply.md (92%) rename koyeb/{ => api}/docs/GetQuotasReply.md (93%) rename koyeb/{ => api}/docs/GetRegionReply.md (93%) rename koyeb/{ => api}/docs/GetRegionalDeploymentReply.md (92%) rename koyeb/{ => api}/docs/GetSecretReply.md (93%) rename koyeb/{ => api}/docs/GetServiceReply.md (93%) rename koyeb/{ => api}/docs/GetSnapshotReply.md (93%) rename koyeb/{ => api}/docs/GetSubscriptionReply.md (92%) rename koyeb/{ => api}/docs/GetUserOrganizationInvitationReply.md (91%) rename koyeb/{ => api}/docs/GetUserSettingsReply.md (92%) rename koyeb/{ => api}/docs/GitDeploymentMetadata.md (93%) rename koyeb/{ => api}/docs/GitEnvDeploymentMetadata.md (92%) rename koyeb/{ => api}/docs/GitHubRegistryConfiguration.md (92%) rename koyeb/{ => api}/docs/GitLabRegistryConfiguration.md (92%) rename koyeb/{ => api}/docs/GitSource.md (96%) rename koyeb/{ => api}/docs/GithubInstallationReply.md (92%) rename koyeb/{ => api}/docs/GithubInstallationRequest.md (91%) rename koyeb/{ => api}/docs/GoogleProtobufAny.md (92%) rename koyeb/{ => api}/docs/GoogleProtobufNullValue.md (100%) rename koyeb/{ => api}/docs/GoogleRpcStatus.md (93%) rename koyeb/{ => api}/docs/HTTPHeader.md (94%) rename koyeb/{ => api}/docs/HTTPHealthCheck.md (93%) rename koyeb/{ => api}/docs/HasUnpaidInvoicesReply.md (92%) rename koyeb/{ => api}/docs/Instance.md (97%) rename koyeb/{ => api}/docs/InstanceAvailability.md (93%) rename koyeb/{ => api}/docs/InstanceEvent.md (94%) rename koyeb/{ => api}/docs/InstanceListItem.md (96%) rename koyeb/{ => api}/docs/InstanceStatus.md (100%) rename koyeb/{ => api}/docs/InstanceUsage.md (93%) rename koyeb/{ => api}/docs/InstancesApi.md (93%) rename koyeb/{ => api}/docs/InstancesSummary.md (93%) rename koyeb/{ => api}/docs/IntercomApi.md (88%) rename koyeb/{ => api}/docs/InviteApi.md (87%) rename koyeb/{ => api}/docs/InviteUserRequest.md (93%) rename koyeb/{ => api}/docs/KgitproxyBranch.md (95%) rename koyeb/{ => api}/docs/KgitproxyGitHubRepository.md (91%) rename koyeb/{ => api}/docs/KgitproxyGithubInstallationStatus.md (100%) rename koyeb/{ => api}/docs/KgitproxyIndexingStatus.md (100%) rename koyeb/{ => api}/docs/KgitproxyListBranchesReply.md (93%) rename koyeb/{ => api}/docs/KgitproxyListRepositoriesReply.md (93%) rename koyeb/{ => api}/docs/KgitproxyRepository.md (95%) rename koyeb/{ => api}/docs/KgitproxyRepositoryProvider.md (100%) rename koyeb/{ => api}/docs/KsearchApp.md (94%) rename koyeb/{ => api}/docs/KsearchGlobalDeployment.md (93%) rename koyeb/{ => api}/docs/KsearchInstance.md (94%) rename koyeb/{ => api}/docs/KsearchOrganization.md (92%) rename koyeb/{ => api}/docs/KsearchRegionalDeployment.md (93%) rename koyeb/{ => api}/docs/KsearchSearchReply.md (95%) rename koyeb/{ => api}/docs/KsearchService.md (94%) rename koyeb/{ => api}/docs/KsearchUser.md (94%) rename koyeb/{ => api}/docs/ListAppEventsReply.md (93%) rename koyeb/{ => api}/docs/ListAppsReply.md (94%) rename koyeb/{ => api}/docs/ListCatalogInstancesReply.md (93%) rename koyeb/{ => api}/docs/ListCredentialsReply.md (93%) rename koyeb/{ => api}/docs/ListDatacentersReply.md (92%) rename koyeb/{ => api}/docs/ListDeploymentEventsReply.md (93%) rename koyeb/{ => api}/docs/ListDeploymentsReply.md (93%) rename koyeb/{ => api}/docs/ListDomainsReply.md (93%) rename koyeb/{ => api}/docs/ListInstanceEventsReply.md (93%) rename koyeb/{ => api}/docs/ListInstancesReply.md (93%) rename koyeb/{ => api}/docs/ListOrganizationInvitationsReply.md (92%) rename koyeb/{ => api}/docs/ListOrganizationMembersReply.md (92%) rename koyeb/{ => api}/docs/ListPaymentMethodsReply.md (93%) rename koyeb/{ => api}/docs/ListPersistentVolumeEventsReply.md (92%) rename koyeb/{ => api}/docs/ListPersistentVolumesReply.md (92%) rename koyeb/{ => api}/docs/ListRegionalDeploymentEventsReply.md (92%) rename koyeb/{ => api}/docs/ListRegionalDeploymentsReply.md (93%) rename koyeb/{ => api}/docs/ListRegionsReply.md (93%) rename koyeb/{ => api}/docs/ListSecretsReply.md (93%) rename koyeb/{ => api}/docs/ListServiceEventsReply.md (93%) rename koyeb/{ => api}/docs/ListServicesReply.md (94%) rename koyeb/{ => api}/docs/ListSnapshotsReply.md (93%) rename koyeb/{ => api}/docs/ListUsageReply.md (93%) rename koyeb/{ => api}/docs/ListUserOrganizationInvitationsReply.md (92%) rename koyeb/{ => api}/docs/ListUserOrganizationsReply.md (92%) rename koyeb/{ => api}/docs/LogEntry.md (94%) rename koyeb/{ => api}/docs/LoginMethodReply.md (93%) rename koyeb/{ => api}/docs/LoginMethodReplyMethod.md (100%) rename koyeb/{ => api}/docs/LoginReply.md (93%) rename koyeb/{ => api}/docs/LoginRequest.md (94%) rename koyeb/{ => api}/docs/LogsApi.md (94%) rename koyeb/{ => api}/docs/ManageReply.md (93%) rename koyeb/{ => api}/docs/MembersSummary.md (93%) rename koyeb/{ => api}/docs/MetricName.md (100%) rename koyeb/{ => api}/docs/MetricsApi.md (92%) rename koyeb/{ => api}/docs/NeonPostgresDatabase.md (94%) rename koyeb/{ => api}/docs/NeonPostgresDatabaseDeploymentMetadata.md (91%) rename koyeb/{ => api}/docs/NeonPostgresDatabaseNeonDatabase.md (91%) rename koyeb/{ => api}/docs/NeonPostgresDatabaseNeonRole.md (91%) rename koyeb/{ => api}/docs/NeonPostgresSummary.md (93%) rename koyeb/{ => api}/docs/NextInvoiceReply.md (94%) rename koyeb/{ => api}/docs/NextInvoiceReplyDiscount.md (93%) rename koyeb/{ => api}/docs/NextInvoiceReplyDiscountType.md (100%) rename koyeb/{ => api}/docs/NextInvoiceReplyLine.md (94%) rename koyeb/{ => api}/docs/NextInvoiceReplyLinePeriod.md (92%) rename koyeb/{ => api}/docs/NextInvoiceReplyLinePrice.md (91%) rename koyeb/{ => api}/docs/Notification.md (94%) rename koyeb/{ => api}/docs/NotificationList.md (94%) rename koyeb/{ => api}/docs/OAuthCallbackReply.md (92%) rename koyeb/{ => api}/docs/OAuthCallbackRequest.md (94%) rename koyeb/{ => api}/docs/OAuthProvider.md (93%) rename koyeb/{ => api}/docs/Object.md (95%) rename koyeb/{ => api}/docs/Organization.md (96%) rename koyeb/{ => api}/docs/OrganizationApi.md (87%) rename koyeb/{ => api}/docs/OrganizationConfirmationsApi.md (91%) rename koyeb/{ => api}/docs/OrganizationDeactivationReason.md (100%) rename koyeb/{ => api}/docs/OrganizationDetailedStatus.md (100%) rename koyeb/{ => api}/docs/OrganizationInvitation.md (95%) rename koyeb/{ => api}/docs/OrganizationInvitationStatus.md (100%) rename koyeb/{ => api}/docs/OrganizationInvitationsApi.md (89%) rename koyeb/{ => api}/docs/OrganizationMember.md (95%) rename koyeb/{ => api}/docs/OrganizationMemberStatus.md (100%) rename koyeb/{ => api}/docs/OrganizationMembersApi.md (90%) rename koyeb/{ => api}/docs/OrganizationQuotasApi.md (89%) rename koyeb/{ => api}/docs/OrganizationStatus.md (100%) rename koyeb/{ => api}/docs/OrganizationSummary.md (95%) rename koyeb/{ => api}/docs/PaymentMethod.md (97%) rename koyeb/{ => api}/docs/PaymentMethodStatus.md (100%) rename koyeb/{ => api}/docs/PaymentMethodsApi.md (90%) rename koyeb/{ => api}/docs/PeriodUsage.md (94%) rename koyeb/{ => api}/docs/PersistentVolume.md (96%) rename koyeb/{ => api}/docs/PersistentVolumeBackingStore.md (100%) rename koyeb/{ => api}/docs/PersistentVolumeEvent.md (93%) rename koyeb/{ => api}/docs/PersistentVolumeQuotas.md (93%) rename koyeb/{ => api}/docs/PersistentVolumeStatus.md (100%) rename koyeb/{ => api}/docs/PersistentVolumesApi.md (88%) rename koyeb/{ => api}/docs/Plan.md (100%) rename koyeb/{ => api}/docs/Port.md (95%) rename koyeb/{ => api}/docs/PrivateRegistryConfiguration.md (92%) rename koyeb/{ => api}/docs/ProfileApi.md (80%) rename koyeb/{ => api}/docs/ProvisioningApi.md (88%) rename koyeb/{ => api}/docs/ProxyPortProtocol.md (100%) rename koyeb/{ => api}/docs/PublicOrganization.md (94%) rename koyeb/{ => api}/docs/PublicUser.md (94%) rename koyeb/{ => api}/docs/QueryLogsReply.md (93%) rename koyeb/{ => api}/docs/QueryLogsReplyPagination.md (92%) rename koyeb/{ => api}/docs/Quotas.md (94%) rename koyeb/{ => api}/docs/QuotasApi.md (84%) rename koyeb/{ => api}/docs/ReactivateOrganizationReply.md (92%) rename koyeb/{ => api}/docs/RedeemCouponRequest.md (92%) rename koyeb/{ => api}/docs/RedeployReply.md (93%) rename koyeb/{ => api}/docs/RedeployRequestInfo.md (94%) rename koyeb/{ => api}/docs/Region.md (96%) rename koyeb/{ => api}/docs/RegionAvailability.md (93%) rename koyeb/{ => api}/docs/RegionListItem.md (95%) rename koyeb/{ => api}/docs/RegionUsage.md (93%) rename koyeb/{ => api}/docs/RegionalDeployment.md (96%) rename koyeb/{ => api}/docs/RegionalDeploymentDefinition.md (95%) rename koyeb/{ => api}/docs/RegionalDeploymentDefinitionType.md (100%) rename koyeb/{ => api}/docs/RegionalDeploymentEvent.md (93%) rename koyeb/{ => api}/docs/RegionalDeploymentListItem.md (94%) rename koyeb/{ => api}/docs/RegionalDeploymentRole.md (100%) rename koyeb/{ => api}/docs/RegionalDeploymentStatus.md (100%) rename koyeb/{ => api}/docs/RegionalDeploymentVolume.md (92%) rename koyeb/{ => api}/docs/RegionalDeploymentsApi.md (91%) rename koyeb/{ => api}/docs/RemoveOrganizationMemberReply.md (91%) rename koyeb/{ => api}/docs/RepositoriesApi.md (91%) rename koyeb/{ => api}/docs/ResendOrganizationInvitationReply.md (91%) rename koyeb/{ => api}/docs/ResetPasswordRequest.md (92%) rename koyeb/{ => api}/docs/RevealSecretReply.md (92%) rename koyeb/{ => api}/docs/ReviewOrganizationCapacityReply.md (91%) rename koyeb/{ => api}/docs/ReviewOrganizationCapacityRequest.md (91%) rename koyeb/{ => api}/docs/Route.md (94%) rename koyeb/{ => api}/docs/Sample.md (94%) rename koyeb/{ => api}/docs/ScaleToZeroQuotas.md (94%) rename koyeb/{ => api}/docs/Scaling.md (95%) rename koyeb/{ => api}/docs/SearchApi.md (89%) rename koyeb/{ => api}/docs/Secret.md (97%) rename koyeb/{ => api}/docs/SecretType.md (100%) rename koyeb/{ => api}/docs/SecretsApi.md (89%) rename koyeb/{ => api}/docs/SecretsSummary.md (93%) rename koyeb/{ => api}/docs/Service.md (97%) rename koyeb/{ => api}/docs/ServiceEvent.md (94%) rename koyeb/{ => api}/docs/ServiceListItem.md (95%) rename koyeb/{ => api}/docs/ServiceState.md (94%) rename koyeb/{ => api}/docs/ServiceStatus.md (100%) rename koyeb/{ => api}/docs/ServiceSummary.md (93%) rename koyeb/{ => api}/docs/ServiceType.md (100%) rename koyeb/{ => api}/docs/ServiceUsage.md (94%) rename koyeb/{ => api}/docs/ServicesApi.md (88%) rename koyeb/{ => api}/docs/SessionsApi.md (89%) rename koyeb/{ => api}/docs/Snapshot.md (96%) rename koyeb/{ => api}/docs/SnapshotStatus.md (100%) rename koyeb/{ => api}/docs/SnapshotType.md (100%) rename koyeb/{ => api}/docs/SnapshotsApi.md (89%) rename koyeb/{ => api}/docs/SsoApi.md (87%) rename koyeb/{ => api}/docs/StreamResultOfExecCommandReply.md (92%) rename koyeb/{ => api}/docs/StreamResultOfLogEntry.md (92%) rename koyeb/{ => api}/docs/Subscription.md (97%) rename koyeb/{ => api}/docs/SubscriptionPaymentFailure.md (94%) rename koyeb/{ => api}/docs/SubscriptionPaymentFailureStripeSDK.md (91%) rename koyeb/{ => api}/docs/SubscriptionStatus.md (100%) rename koyeb/{ => api}/docs/SubscriptionsApi.md (89%) rename koyeb/{ => api}/docs/SummaryApi.md (89%) rename koyeb/{ => api}/docs/TCPHealthCheck.md (93%) rename koyeb/{ => api}/docs/Token.md (95%) rename koyeb/{ => api}/docs/TriggerDeploymentMetadata.md (94%) rename koyeb/{ => api}/docs/TriggerDeploymentMetadataActorType.md (100%) rename koyeb/{ => api}/docs/TriggerDeploymentMetadataTriggerType.md (100%) rename koyeb/{ => api}/docs/TriggerGitDeploymentMetadata.md (94%) rename koyeb/{ => api}/docs/TriggerGitDeploymentMetadataProvider.md (100%) rename koyeb/{ => api}/docs/UpdateApp.md (93%) rename koyeb/{ => api}/docs/UpdateAppReply.md (93%) rename koyeb/{ => api}/docs/UpdateBudgetReply.md (92%) rename koyeb/{ => api}/docs/UpdateBudgetRequest.md (92%) rename koyeb/{ => api}/docs/UpdateCredentialReply.md (92%) rename koyeb/{ => api}/docs/UpdateDomain.md (94%) rename koyeb/{ => api}/docs/UpdateDomainReply.md (92%) rename koyeb/{ => api}/docs/UpdateOrganizationPlanReply.md (92%) rename koyeb/{ => api}/docs/UpdateOrganizationPlanRequest.md (91%) rename koyeb/{ => api}/docs/UpdateOrganizationReply.md (92%) rename koyeb/{ => api}/docs/UpdatePasswordRequest.md (92%) rename koyeb/{ => api}/docs/UpdatePersistentVolumeReply.md (92%) rename koyeb/{ => api}/docs/UpdatePersistentVolumeRequest.md (91%) rename koyeb/{ => api}/docs/UpdateSecretReply.md (92%) rename koyeb/{ => api}/docs/UpdateService.md (95%) rename koyeb/{ => api}/docs/UpdateServiceReply.md (92%) rename koyeb/{ => api}/docs/UpdateSnapshotReply.md (92%) rename koyeb/{ => api}/docs/UpdateSnapshotRequest.md (92%) rename koyeb/{ => api}/docs/UpdateUserRequestUserUpdateBody.md (92%) rename koyeb/{ => api}/docs/UpdateUserSettingsReply.md (92%) rename koyeb/{ => api}/docs/UpdateUserSettingsRequest.md (92%) rename koyeb/{ => api}/docs/UpsertSignupQualificationReply.md (91%) rename koyeb/{ => api}/docs/UpsertSignupQualificationRequest.md (91%) rename koyeb/{ => api}/docs/Usage.md (95%) rename koyeb/{ => api}/docs/UsageDetails.md (96%) rename koyeb/{ => api}/docs/UsagesApi.md (91%) rename koyeb/{ => api}/docs/User.md (97%) rename koyeb/{ => api}/docs/UserFlags.md (100%) rename koyeb/{ => api}/docs/UserReply.md (93%) rename koyeb/{ => api}/docs/UserRoleRole.md (100%) rename koyeb/{ => api}/docs/UserSettings.md (94%) create mode 100644 koyeb/api/docs/UsersApi.md rename koyeb/{ => api}/docs/VerifyDockerImageReply.md (93%) rename koyeb/{ => api}/docs/VerifyDockerImageReplyErrCode.md (100%) rename koyeb/{ => api}/exceptions.py (86%) create mode 100644 koyeb/api/models/__init__.py rename koyeb/{ => api}/models/accept_organization_invitation_reply.py (74%) rename koyeb/{ => api}/models/action.py (52%) rename koyeb/{ => api}/models/activity.py (65%) rename koyeb/{ => api}/models/activity_list.py (74%) rename koyeb/{ => api}/models/app.py (60%) rename koyeb/{ => api}/models/app_event.py (71%) rename koyeb/{ => api}/models/app_list_item.py (64%) create mode 100644 koyeb/api/models/app_status.py rename koyeb/{ => api}/models/app_usage.py (71%) rename koyeb/{ => api}/models/apps_summary.py (80%) rename koyeb/{ => api}/models/archive.py (52%) rename koyeb/{ => api}/models/archive_deployment_metadata.py (79%) rename koyeb/{ => api}/models/archive_source.py (69%) rename koyeb/{ => api}/models/auto_release.py (76%) rename koyeb/{ => api}/models/auto_release_group.py (78%) rename koyeb/{ => api}/models/autocomplete_reply.py (79%) rename koyeb/{ => api}/models/autocomplete_request.py (74%) rename koyeb/{ => api}/models/availability_level.py (53%) rename koyeb/{ => api}/models/azure_container_registry_configuration.py (79%) rename koyeb/{ => api}/models/budget.py (80%) rename koyeb/{ => api}/models/buildpack_builder.py (79%) rename koyeb/{ => api}/models/canny_auth_reply.py (81%) rename koyeb/{ => api}/models/catalog_gpu_details.py (79%) rename koyeb/{ => api}/models/catalog_instance.py (53%) rename koyeb/{ => api}/models/catalog_instance_list_item.py (53%) rename koyeb/{ => api}/models/catalog_usage.py (72%) rename koyeb/{ => api}/models/clear_idenfy_verification_result_request.py (80%) rename koyeb/{ => api}/models/compose_reply.py (73%) rename koyeb/{ => api}/models/config_file.py (79%) rename koyeb/{ => api}/models/confirm_payment_authorization_reply.py (75%) rename koyeb/{ => api}/models/create_access_token_reply.py (82%) rename koyeb/{ => api}/models/create_access_token_request.py (81%) rename koyeb/{ => api}/models/create_account_request.py (78%) rename koyeb/{ => api}/models/create_app.py (81%) rename koyeb/{ => api}/models/create_app_reply.py (78%) rename koyeb/{ => api}/models/create_archive.py (77%) rename koyeb/{ => api}/models/create_archive_reply.py (75%) rename koyeb/{ => api}/models/create_budget_reply.py (75%) rename koyeb/{ => api}/models/create_compose.py (71%) rename koyeb/{ => api}/models/create_credential.py (69%) rename koyeb/{ => api}/models/create_credential_reply.py (75%) rename koyeb/{ => api}/models/create_domain.py (65%) rename koyeb/{ => api}/models/create_domain_reply.py (75%) rename koyeb/{ => api}/models/create_organization_invitation_reply.py (74%) rename koyeb/{ => api}/models/create_organization_invitation_request.py (82%) rename koyeb/{ => api}/models/create_organization_reply.py (75%) rename koyeb/{ => api}/models/create_organization_request.py (82%) rename koyeb/{ => api}/models/create_payment_authorization_reply.py (75%) rename koyeb/{ => api}/models/create_persistent_volume_reply.py (75%) rename koyeb/{ => api}/models/create_persistent_volume_request.py (63%) create mode 100644 koyeb/api/models/create_secret.py rename koyeb/{ => api}/models/create_secret_reply.py (75%) rename koyeb/{ => api}/models/create_service.py (73%) rename koyeb/{ => api}/models/create_service_reply.py (75%) rename koyeb/{ => api}/models/create_snapshot_reply.py (75%) rename koyeb/{ => api}/models/create_snapshot_request.py (80%) rename koyeb/{ => api}/models/create_stage_attempt_request.py (65%) rename koyeb/{ => api}/models/credential.py (64%) rename koyeb/{ => api}/models/credential_type.py (53%) rename koyeb/{ => api}/models/database_deployment_metadata.py (72%) rename koyeb/{ => api}/models/database_role_password.py (80%) rename koyeb/{ => api}/models/database_source.py (74%) rename koyeb/{ => api}/models/database_usage.py (71%) rename koyeb/{ => api}/models/database_usage_details.py (66%) rename koyeb/{ => api}/models/datacenter_list_item.py (72%) rename koyeb/{ => api}/models/deactivate_organization_reply.py (75%) rename koyeb/{ => api}/models/deactivate_organization_request.py (75%) rename koyeb/{ => api}/models/declare_stage_progress_request.py (62%) rename koyeb/{ => api}/models/declare_step_progress_request.py (64%) rename koyeb/{ => api}/models/decline_organization_invitation_reply.py (75%) rename koyeb/{ => api}/models/delete_organization_reply.py (75%) rename koyeb/{ => api}/models/delete_persistent_volume_reply.py (75%) rename koyeb/{ => api}/models/delete_snapshot_reply.py (75%) rename koyeb/{ => api}/models/delete_user_reply.py (78%) create mode 100644 koyeb/api/models/deployment.py rename koyeb/{ => api}/models/deployment_database_info.py (73%) create mode 100644 koyeb/api/models/deployment_definition.py rename koyeb/{ => api}/models/deployment_definition_type.py (54%) rename koyeb/{ => api}/models/deployment_env.py (78%) rename koyeb/{ => api}/models/deployment_event.py (71%) rename koyeb/{ => api}/models/deployment_health_check.py (64%) rename koyeb/{ => api}/models/deployment_instance_type.py (81%) rename koyeb/{ => api}/models/deployment_list_item.py (50%) rename koyeb/{ => api}/models/deployment_metadata.py (56%) rename koyeb/{ => api}/models/deployment_neon_postgres_database_info.py (58%) rename koyeb/{ => api}/models/deployment_neon_postgres_database_info_role.py (81%) rename koyeb/{ => api}/models/deployment_port.py (80%) rename koyeb/{ => api}/models/deployment_provisioning_info.py (65%) rename koyeb/{ => api}/models/deployment_provisioning_info_stage.py (60%) rename koyeb/{ => api}/models/deployment_provisioning_info_stage_build_attempt.py (54%) rename koyeb/{ => api}/models/deployment_provisioning_info_stage_build_attempt_build_step.py (65%) rename koyeb/{ => api}/models/deployment_provisioning_info_stage_status.py (52%) rename koyeb/{ => api}/models/deployment_proxy_port.py (75%) rename koyeb/{ => api}/models/deployment_proxy_port_metadata.py (74%) rename koyeb/{ => api}/models/deployment_role.py (52%) rename koyeb/{ => api}/models/deployment_route.py (81%) rename koyeb/{ => api}/models/deployment_scaling.py (72%) create mode 100644 koyeb/api/models/deployment_scaling_target.py rename koyeb/{ => api}/models/deployment_scaling_target_average_cpu.py (82%) rename koyeb/{ => api}/models/deployment_scaling_target_average_mem.py (82%) rename koyeb/{ => api}/models/deployment_scaling_target_concurrent_requests.py (82%) rename koyeb/{ => api}/models/deployment_scaling_target_requests_per_second.py (82%) rename koyeb/{ => api}/models/deployment_scaling_target_requests_response_time.py (75%) rename koyeb/{ => api}/models/deployment_scaling_target_sleep_idle_delay.py (61%) create mode 100644 koyeb/api/models/deployment_status.py rename koyeb/{ => api}/models/deployment_strategy.py (71%) create mode 100644 koyeb/api/models/deployment_strategy_type.py rename koyeb/{ => api}/models/deployment_volume.py (78%) rename koyeb/{ => api}/models/desired_deployment.py (76%) rename koyeb/{ => api}/models/desired_deployment_group.py (80%) rename koyeb/{ => api}/models/digital_ocean_registry_configuration.py (81%) rename koyeb/{ => api}/models/discourse_auth_reply.py (81%) rename koyeb/{ => api}/models/discourse_auth_request.py (81%) rename koyeb/{ => api}/models/docker_builder.py (71%) rename koyeb/{ => api}/models/docker_hub_registry_configuration.py (81%) rename koyeb/{ => api}/models/docker_source.py (71%) rename koyeb/{ => api}/models/domain.py (55%) rename koyeb/{ => api}/models/domain_load_balancer_koyeb.py (81%) rename koyeb/{ => api}/models/domain_load_balancer_quotas.py (81%) rename koyeb/{ => api}/models/domain_status.py (50%) rename koyeb/{ => api}/models/domain_type.py (54%) rename koyeb/{ => api}/models/domains_summary.py (80%) rename koyeb/{ => api}/models/env.py (79%) rename koyeb/{ => api}/models/error.py (79%) rename koyeb/{ => api}/models/error_field.py (80%) rename koyeb/{ => api}/models/error_with_fields.py (74%) rename koyeb/{ => api}/models/exec_command_io.py (68%) rename koyeb/{ => api}/models/exec_command_reply.py (70%) rename koyeb/{ => api}/models/exec_command_request_body.py (61%) rename koyeb/{ => api}/models/exec_command_request_id_type.py (54%) rename koyeb/{ => api}/models/exec_command_request_terminal_size.py (81%) rename koyeb/{ => api}/models/gcp_container_registry_configuration.py (81%) rename koyeb/{ => api}/models/get_app_reply.py (78%) rename koyeb/{ => api}/models/get_budget_reply.py (75%) rename koyeb/{ => api}/models/get_catalog_instance_reply.py (75%) rename koyeb/{ => api}/models/get_credential_reply.py (75%) rename koyeb/{ => api}/models/get_deployment_reply.py (75%) rename koyeb/{ => api}/models/get_deployment_scaling_reply.py (74%) rename koyeb/{ => api}/models/get_deployment_scaling_reply_item.py (68%) rename koyeb/{ => api}/models/get_domain_reply.py (75%) rename koyeb/{ => api}/models/get_github_installation_reply.py (54%) rename koyeb/{ => api}/models/get_idenfy_token_reply.py (81%) rename koyeb/{ => api}/models/get_instance_reply.py (75%) rename koyeb/{ => api}/models/get_intercom_profile_reply.py (82%) rename koyeb/{ => api}/models/get_metrics_reply.py (76%) rename koyeb/{ => api}/models/get_metrics_reply_metric.py (76%) rename koyeb/{ => api}/models/get_o_auth_options_reply.py (76%) rename koyeb/{ => api}/models/get_organization_invitation_reply.py (74%) rename koyeb/{ => api}/models/get_organization_reply.py (75%) rename koyeb/{ => api}/models/get_organization_summary_reply.py (75%) rename koyeb/{ => api}/models/get_organization_usage_details_reply.py (66%) rename koyeb/{ => api}/models/get_organization_usage_reply.py (76%) rename koyeb/{ => api}/models/get_payment_method_reply.py (74%) rename koyeb/{ => api}/models/get_persistent_volume_reply.py (75%) rename koyeb/{ => api}/models/get_quotas_reply.py (75%) rename koyeb/{ => api}/models/get_region_reply.py (75%) rename koyeb/{ => api}/models/get_regional_deployment_reply.py (74%) rename koyeb/{ => api}/models/get_secret_reply.py (75%) rename koyeb/{ => api}/models/get_service_reply.py (75%) rename koyeb/{ => api}/models/get_snapshot_reply.py (75%) rename koyeb/{ => api}/models/get_subscription_reply.py (75%) rename koyeb/{ => api}/models/get_user_organization_invitation_reply.py (75%) rename koyeb/{ => api}/models/get_user_settings_reply.py (75%) rename koyeb/{ => api}/models/git_deployment_metadata.py (72%) rename koyeb/{ => api}/models/git_env_deployment_metadata.py (79%) rename koyeb/{ => api}/models/git_hub_registry_configuration.py (81%) rename koyeb/{ => api}/models/git_lab_registry_configuration.py (81%) rename koyeb/{ => api}/models/git_source.py (58%) rename koyeb/{ => api}/models/github_installation_reply.py (79%) rename koyeb/{ => api}/models/github_installation_request.py (81%) rename koyeb/{ => api}/models/google_protobuf_any.py (84%) rename koyeb/{ => api}/models/google_protobuf_null_value.py (65%) rename koyeb/{ => api}/models/google_rpc_status.py (75%) rename koyeb/{ => api}/models/has_unpaid_invoices_reply.py (81%) rename koyeb/{ => api}/models/http_header.py (80%) rename koyeb/{ => api}/models/http_health_check.py (75%) rename koyeb/{ => api}/models/instance.py (53%) rename koyeb/{ => api}/models/instance_availability.py (69%) rename koyeb/{ => api}/models/instance_event.py (71%) rename koyeb/{ => api}/models/instance_list_item.py (55%) create mode 100644 koyeb/api/models/instance_status.py rename koyeb/{ => api}/models/instance_usage.py (81%) rename koyeb/{ => api}/models/instances_summary.py (80%) rename koyeb/{ => api}/models/invite_user_request.py (79%) rename koyeb/{ => api}/models/kgitproxy_branch.py (62%) rename koyeb/{ => api}/models/kgitproxy_git_hub_repository.py (81%) rename koyeb/{ => api}/models/kgitproxy_github_installation_status.py (54%) rename koyeb/{ => api}/models/kgitproxy_indexing_status.py (50%) rename koyeb/{ => api}/models/kgitproxy_list_branches_reply.py (64%) rename koyeb/{ => api}/models/kgitproxy_list_repositories_reply.py (63%) rename koyeb/{ => api}/models/kgitproxy_repository.py (57%) rename koyeb/{ => api}/models/kgitproxy_repository_provider.py (56%) rename koyeb/{ => api}/models/ksearch_app.py (79%) rename koyeb/{ => api}/models/ksearch_global_deployment.py (74%) rename koyeb/{ => api}/models/ksearch_instance.py (72%) rename koyeb/{ => api}/models/ksearch_organization.py (81%) rename koyeb/{ => api}/models/ksearch_regional_deployment.py (73%) rename koyeb/{ => api}/models/ksearch_search_reply.py (59%) rename koyeb/{ => api}/models/ksearch_service.py (78%) rename koyeb/{ => api}/models/ksearch_user.py (78%) rename koyeb/{ => api}/models/list_app_events_reply.py (71%) rename koyeb/{ => api}/models/list_apps_reply.py (74%) rename koyeb/{ => api}/models/list_catalog_instances_reply.py (72%) rename koyeb/{ => api}/models/list_credentials_reply.py (74%) rename koyeb/{ => api}/models/list_datacenters_reply.py (74%) rename koyeb/{ => api}/models/list_deployment_events_reply.py (70%) rename koyeb/{ => api}/models/list_deployments_reply.py (68%) rename koyeb/{ => api}/models/list_domains_reply.py (75%) rename koyeb/{ => api}/models/list_instance_events_reply.py (70%) rename koyeb/{ => api}/models/list_instances_reply.py (70%) rename koyeb/{ => api}/models/list_organization_invitations_reply.py (73%) rename koyeb/{ => api}/models/list_organization_members_reply.py (74%) rename koyeb/{ => api}/models/list_payment_methods_reply.py (74%) rename koyeb/{ => api}/models/list_persistent_volume_events_reply.py (70%) rename koyeb/{ => api}/models/list_persistent_volumes_reply.py (74%) rename koyeb/{ => api}/models/list_regional_deployment_events_reply.py (69%) rename koyeb/{ => api}/models/list_regional_deployments_reply.py (68%) rename koyeb/{ => api}/models/list_regions_reply.py (74%) rename koyeb/{ => api}/models/list_secrets_reply.py (75%) rename koyeb/{ => api}/models/list_service_events_reply.py (70%) rename koyeb/{ => api}/models/list_services_reply.py (70%) rename koyeb/{ => api}/models/list_snapshots_reply.py (75%) rename koyeb/{ => api}/models/list_usage_reply.py (75%) rename koyeb/{ => api}/models/list_user_organization_invitations_reply.py (73%) rename koyeb/{ => api}/models/list_user_organizations_reply.py (74%) rename koyeb/{ => api}/models/log_entry.py (79%) rename koyeb/{ => api}/models/login_method_reply.py (75%) rename koyeb/{ => api}/models/login_method_reply_method.py (57%) rename koyeb/{ => api}/models/login_reply.py (75%) rename koyeb/{ => api}/models/login_request.py (79%) rename koyeb/{ => api}/models/manage_reply.py (81%) rename koyeb/{ => api}/models/members_summary.py (80%) create mode 100644 koyeb/api/models/metric_name.py rename koyeb/{ => api}/models/neon_postgres_database.py (64%) rename koyeb/{ => api}/models/neon_postgres_database_deployment_metadata.py (81%) rename koyeb/{ => api}/models/neon_postgres_database_neon_database.py (81%) rename koyeb/{ => api}/models/neon_postgres_database_neon_role.py (81%) rename koyeb/{ => api}/models/neon_postgres_summary.py (80%) rename koyeb/{ => api}/models/next_invoice_reply.py (69%) rename koyeb/{ => api}/models/next_invoice_reply_discount.py (70%) rename koyeb/{ => api}/models/next_invoice_reply_discount_type.py (56%) rename koyeb/{ => api}/models/next_invoice_reply_line.py (63%) rename koyeb/{ => api}/models/next_invoice_reply_line_period.py (81%) rename koyeb/{ => api}/models/next_invoice_reply_line_price.py (81%) rename koyeb/{ => api}/models/notification.py (69%) rename koyeb/{ => api}/models/notification_list.py (67%) rename koyeb/{ => api}/models/o_auth_callback_reply.py (76%) rename koyeb/{ => api}/models/o_auth_callback_request.py (63%) rename koyeb/{ => api}/models/o_auth_provider.py (80%) rename koyeb/{ => api}/models/object.py (77%) create mode 100644 koyeb/api/models/organization.py create mode 100644 koyeb/api/models/organization_deactivation_reason.py create mode 100644 koyeb/api/models/organization_detailed_status.py rename koyeb/{ => api}/models/organization_invitation.py (53%) rename koyeb/{ => api}/models/organization_invitation_status.py (52%) rename koyeb/{ => api}/models/organization_member.py (57%) rename koyeb/{ => api}/models/organization_member_status.py (55%) create mode 100644 koyeb/api/models/organization_status.py rename koyeb/{ => api}/models/organization_summary.py (53%) rename koyeb/{ => api}/models/payment_method.py (53%) create mode 100644 koyeb/api/models/payment_method_status.py rename koyeb/{ => api}/models/period_usage.py (75%) rename koyeb/{ => api}/models/persistent_volume.py (52%) create mode 100644 koyeb/api/models/persistent_volume_backing_store.py rename koyeb/{ => api}/models/persistent_volume_event.py (70%) rename koyeb/{ => api}/models/persistent_volume_quotas.py (62%) create mode 100644 koyeb/api/models/persistent_volume_status.py create mode 100644 koyeb/api/models/plan.py rename koyeb/{ => api}/models/port.py (80%) rename koyeb/{ => api}/models/private_registry_configuration.py (80%) rename koyeb/{ => api}/models/proxy_port_protocol.py (58%) rename koyeb/{ => api}/models/public_organization.py (72%) rename koyeb/{ => api}/models/public_user.py (71%) rename koyeb/{ => api}/models/query_logs_reply.py (70%) rename koyeb/{ => api}/models/query_logs_reply_pagination.py (79%) rename koyeb/{ => api}/models/quotas.py (51%) rename koyeb/{ => api}/models/reactivate_organization_reply.py (75%) rename koyeb/{ => api}/models/redeem_coupon_request.py (82%) rename koyeb/{ => api}/models/redeploy_reply.py (75%) rename koyeb/{ => api}/models/redeploy_request_info.py (67%) rename koyeb/{ => api}/models/region.py (66%) rename koyeb/{ => api}/models/region_availability.py (75%) rename koyeb/{ => api}/models/region_list_item.py (66%) rename koyeb/{ => api}/models/region_usage.py (72%) rename koyeb/{ => api}/models/regional_deployment.py (50%) rename koyeb/{ => api}/models/regional_deployment_definition.py (50%) rename koyeb/{ => api}/models/regional_deployment_definition_type.py (57%) rename koyeb/{ => api}/models/regional_deployment_event.py (70%) rename koyeb/{ => api}/models/regional_deployment_list_item.py (63%) rename koyeb/{ => api}/models/regional_deployment_role.py (53%) create mode 100644 koyeb/api/models/regional_deployment_status.py rename koyeb/{ => api}/models/regional_deployment_volume.py (80%) rename koyeb/{ => api}/models/remove_organization_member_reply.py (75%) rename koyeb/{ => api}/models/resend_organization_invitation_reply.py (74%) rename koyeb/{ => api}/models/reset_password_request.py (81%) rename koyeb/{ => api}/models/reveal_secret_reply.py (81%) rename koyeb/{ => api}/models/review_organization_capacity_reply.py (81%) rename koyeb/{ => api}/models/review_organization_capacity_request.py (81%) rename koyeb/{ => api}/models/route.py (80%) rename koyeb/{ => api}/models/sample.py (80%) rename koyeb/{ => api}/models/scale_to_zero_quotas.py (66%) rename koyeb/{ => api}/models/scaling.py (73%) create mode 100644 koyeb/api/models/secret.py rename koyeb/{ => api}/models/secret_type.py (53%) rename koyeb/{ => api}/models/secrets_summary.py (80%) rename koyeb/{ => api}/models/service.py (53%) rename koyeb/{ => api}/models/service_event.py (71%) rename koyeb/{ => api}/models/service_list_item.py (57%) rename koyeb/{ => api}/models/service_state.py (68%) create mode 100644 koyeb/api/models/service_status.py rename koyeb/{ => api}/models/service_summary.py (80%) rename koyeb/{ => api}/models/service_type.py (51%) rename koyeb/{ => api}/models/service_usage.py (73%) rename koyeb/{ => api}/models/snapshot.py (61%) create mode 100644 koyeb/api/models/snapshot_status.py create mode 100644 koyeb/api/models/snapshot_type.py rename koyeb/{ => api}/models/stream_result_of_exec_command_reply.py (70%) rename koyeb/{ => api}/models/stream_result_of_log_entry.py (70%) rename koyeb/{ => api}/models/subscription.py (52%) rename koyeb/{ => api}/models/subscription_payment_failure.py (62%) rename koyeb/{ => api}/models/subscription_payment_failure_stripe_sdk.py (80%) create mode 100644 koyeb/api/models/subscription_status.py rename koyeb/{ => api}/models/tcp_health_check.py (81%) rename koyeb/{ => api}/models/token.py (74%) rename koyeb/{ => api}/models/trigger_deployment_metadata.py (57%) rename koyeb/{ => api}/models/trigger_deployment_metadata_actor_type.py (56%) rename koyeb/{ => api}/models/trigger_deployment_metadata_trigger_type.py (54%) rename koyeb/{ => api}/models/trigger_git_deployment_metadata.py (61%) rename koyeb/{ => api}/models/trigger_git_deployment_metadata_provider.py (59%) rename koyeb/{ => api}/models/update_app.py (81%) rename koyeb/{ => api}/models/update_app_reply.py (78%) rename koyeb/{ => api}/models/update_budget_reply.py (75%) rename koyeb/{ => api}/models/update_budget_request.py (82%) rename koyeb/{ => api}/models/update_credential_reply.py (75%) rename koyeb/{ => api}/models/update_domain.py (73%) rename koyeb/{ => api}/models/update_domain_reply.py (75%) rename koyeb/{ => api}/models/update_organization_plan_reply.py (75%) rename koyeb/{ => api}/models/update_organization_plan_request.py (79%) rename koyeb/{ => api}/models/update_organization_reply.py (75%) rename koyeb/{ => api}/models/update_password_request.py (81%) rename koyeb/{ => api}/models/update_persistent_volume_reply.py (75%) rename koyeb/{ => api}/models/update_persistent_volume_request.py (81%) rename koyeb/{ => api}/models/update_secret_reply.py (75%) rename koyeb/{ => api}/models/update_service.py (59%) rename koyeb/{ => api}/models/update_service_reply.py (75%) rename koyeb/{ => api}/models/update_snapshot_reply.py (75%) rename koyeb/{ => api}/models/update_snapshot_request.py (82%) rename koyeb/{ => api}/models/update_user_request_user_update_body.py (71%) rename koyeb/{ => api}/models/update_user_settings_reply.py (75%) rename koyeb/{ => api}/models/update_user_settings_request.py (76%) rename koyeb/{ => api}/models/upsert_signup_qualification_reply.py (75%) rename koyeb/{ => api}/models/upsert_signup_qualification_request.py (81%) rename koyeb/{ => api}/models/usage.py (73%) rename koyeb/{ => api}/models/usage_details.py (63%) rename koyeb/{ => api}/models/user.py (61%) create mode 100644 koyeb/api/models/user_flags.py rename koyeb/{ => api}/models/user_reply.py (78%) rename koyeb/{ => api}/models/user_role_role.py (55%) rename koyeb/{ => api}/models/user_settings.py (73%) rename koyeb/{ => api}/models/verify_docker_image_reply.py (70%) rename koyeb/{ => api}/models/verify_docker_image_reply_err_code.py (62%) rename koyeb/{ => api}/rest.py (78%) rename koyeb/{ => api}/test/__init__.py (100%) rename koyeb/{ => api}/test/test_accept_organization_invitation_reply.py (67%) create mode 100644 koyeb/api/test/test_action.py rename koyeb/{ => api}/test/test_activity.py (60%) rename koyeb/{ => api}/test/test_activity_api.py (58%) rename koyeb/{ => api}/test/test_activity_list.py (60%) rename koyeb/{ => api}/test/test_app.py (76%) rename koyeb/{ => api}/test/test_app_event.py (65%) rename koyeb/{ => api}/test/test_app_list_item.py (72%) create mode 100644 koyeb/api/test/test_app_status.py rename koyeb/{ => api}/test/test_app_usage.py (62%) rename koyeb/{ => api}/test/test_apps_api.py (78%) rename koyeb/{ => api}/test/test_apps_summary.py (61%) rename koyeb/{ => api}/test/test_archive.py (66%) rename koyeb/{ => api}/test/test_archive_deployment_metadata.py (62%) rename koyeb/{ => api}/test/test_archive_source.py (64%) rename koyeb/{ => api}/test/test_archives_api.py (51%) rename koyeb/{ => api}/test/test_auto_release.py (57%) rename koyeb/{ => api}/test/test_auto_release_group.py (62%) rename koyeb/{ => api}/test/test_autocomplete_reply.py (65%) rename koyeb/{ => api}/test/test_autocomplete_request.py (61%) create mode 100644 koyeb/api/test/test_availability_level.py rename koyeb/{ => api}/test/test_azure_container_registry_configuration.py (64%) rename koyeb/{ => api}/test/test_billing_api.py (59%) rename koyeb/{ => api}/test/test_budget.py (60%) rename koyeb/{ => api}/test/test_buildpack_builder.py (62%) rename koyeb/{ => api}/test/test_canny_auth_reply.py (59%) rename koyeb/{ => api}/test/test_catalog_datacenters_api.py (52%) rename koyeb/{ => api}/test/test_catalog_gpu_details.py (62%) rename koyeb/{ => api}/test/test_catalog_instance.py (72%) rename koyeb/{ => api}/test/test_catalog_instance_list_item.py (73%) create mode 100644 koyeb/api/test/test_catalog_instance_usage_api.py rename koyeb/{ => api}/test/test_catalog_instances_api.py (59%) rename koyeb/{ => api}/test/test_catalog_regions_api.py (57%) rename koyeb/{ => api}/test/test_catalog_usage.py (58%) rename koyeb/{ => api}/test/test_clear_idenfy_verification_result_request.py (64%) rename koyeb/{ => api}/test/test_compose_api.py (51%) rename koyeb/{ => api}/test/test_compose_reply.py (76%) rename koyeb/{ => api}/test/test_config_file.py (61%) rename koyeb/{ => api}/test/test_confirm_payment_authorization_reply.py (77%) rename koyeb/{ => api}/test/test_coupons_api.py (51%) rename koyeb/{ => api}/test/test_create_access_token_reply.py (61%) rename koyeb/{ => api}/test/test_create_access_token_request.py (61%) rename koyeb/{ => api}/test/test_create_account_request.py (64%) rename koyeb/{ => api}/test/test_create_app.py (58%) rename koyeb/{ => api}/test/test_create_app_reply.py (75%) rename koyeb/{ => api}/test/test_create_archive.py (59%) rename koyeb/{ => api}/test/test_create_archive_reply.py (66%) rename koyeb/{ => api}/test/test_create_budget_reply.py (60%) rename koyeb/{ => api}/test/test_create_compose.py (64%) rename koyeb/{ => api}/test/test_create_credential.py (63%) rename koyeb/{ => api}/test/test_create_credential_reply.py (69%) rename koyeb/{ => api}/test/test_create_domain.py (55%) rename koyeb/{ => api}/test/test_create_domain_reply.py (66%) rename koyeb/{ => api}/test/test_create_organization_invitation_reply.py (67%) rename koyeb/{ => api}/test/test_create_organization_invitation_request.py (63%) rename koyeb/{ => api}/test/test_create_organization_reply.py (74%) rename koyeb/{ => api}/test/test_create_organization_request.py (61%) rename koyeb/{ => api}/test/test_create_payment_authorization_reply.py (77%) rename koyeb/{ => api}/test/test_create_persistent_volume_reply.py (69%) rename koyeb/{ => api}/test/test_create_persistent_volume_request.py (66%) rename koyeb/{ => api}/test/test_create_secret.py (51%) rename koyeb/{ => api}/test/test_create_secret_reply.py (55%) rename koyeb/{ => api}/test/test_create_service.py (61%) rename koyeb/{ => api}/test/test_create_service_reply.py (70%) rename koyeb/{ => api}/test/test_create_snapshot_reply.py (70%) rename koyeb/{ => api}/test/test_create_snapshot_request.py (62%) rename koyeb/{ => api}/test/test_create_stage_attempt_request.py (67%) rename koyeb/{ => api}/test/test_credential.py (70%) create mode 100644 koyeb/api/test/test_credential_type.py rename koyeb/{ => api}/test/test_credentials_api.py (74%) rename koyeb/{ => api}/test/test_database_deployment_metadata.py (59%) rename koyeb/{ => api}/test/test_database_role_password.py (61%) rename koyeb/{ => api}/test/test_database_source.py (58%) rename koyeb/{ => api}/test/test_database_usage.py (63%) rename koyeb/{ => api}/test/test_database_usage_details.py (70%) rename koyeb/{ => api}/test/test_datacenter_list_item.py (66%) rename koyeb/{ => api}/test/test_deactivate_organization_reply.py (74%) rename koyeb/{ => api}/test/test_deactivate_organization_request.py (62%) rename koyeb/{ => api}/test/test_declare_stage_progress_request.py (69%) rename koyeb/{ => api}/test/test_declare_step_progress_request.py (68%) rename koyeb/{ => api}/test/test_decline_organization_invitation_reply.py (67%) rename koyeb/{ => api}/test/test_delete_organization_reply.py (74%) rename koyeb/{ => api}/test/test_delete_persistent_volume_reply.py (69%) rename koyeb/{ => api}/test/test_delete_snapshot_reply.py (70%) rename koyeb/{ => api}/test/test_delete_user_reply.py (68%) rename koyeb/{ => api}/test/test_deployment.py (65%) rename koyeb/{ => api}/test/test_deployment_database_info.py (67%) rename koyeb/{ => api}/test/test_deployment_definition.py (51%) create mode 100644 koyeb/api/test/test_deployment_definition_type.py rename koyeb/{ => api}/test/test_deployment_env.py (63%) rename koyeb/{ => api}/test/test_deployment_event.py (66%) rename koyeb/{ => api}/test/test_deployment_health_check.py (62%) rename koyeb/{ => api}/test/test_deployment_instance_type.py (63%) rename koyeb/{ => api}/test/test_deployment_list_item.py (65%) rename koyeb/{ => api}/test/test_deployment_metadata.py (57%) rename koyeb/{ => api}/test/test_deployment_neon_postgres_database_info.py (70%) rename koyeb/{ => api}/test/test_deployment_neon_postgres_database_info_role.py (64%) rename koyeb/{ => api}/test/test_deployment_port.py (60%) rename koyeb/{ => api}/test/test_deployment_provisioning_info.py (70%) rename koyeb/{ => api}/test/test_deployment_provisioning_info_stage.py (72%) rename koyeb/{ => api}/test/test_deployment_provisioning_info_stage_build_attempt.py (69%) rename koyeb/{ => api}/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py (65%) rename koyeb/{ => api}/test/test_deployment_provisioning_info_stage_status.py (51%) rename koyeb/{ => api}/test/test_deployment_proxy_port.py (61%) rename koyeb/{ => api}/test/test_deployment_proxy_port_metadata.py (64%) create mode 100644 koyeb/api/test/test_deployment_role.py rename koyeb/{ => api}/test/test_deployment_route.py (60%) create mode 100644 koyeb/api/test/test_deployment_scaling.py create mode 100644 koyeb/api/test/test_deployment_scaling_target.py rename koyeb/{ => api}/test/test_deployment_scaling_target_average_cpu.py (63%) rename koyeb/{ => api}/test/test_deployment_scaling_target_average_mem.py (63%) rename koyeb/{ => api}/test/test_deployment_scaling_target_concurrent_requests.py (58%) rename koyeb/{ => api}/test/test_deployment_scaling_target_requests_per_second.py (58%) rename koyeb/{ => api}/test/test_deployment_scaling_target_requests_response_time.py (59%) rename koyeb/{ => api}/test/test_deployment_scaling_target_sleep_idle_delay.py (65%) create mode 100644 koyeb/api/test/test_deployment_status.py rename koyeb/{ => api}/test/test_deployment_strategy.py (61%) create mode 100644 koyeb/api/test/test_deployment_strategy_type.py rename koyeb/{ => api}/test/test_deployment_volume.py (63%) rename koyeb/{ => api}/test/test_deployments_api.py (72%) rename koyeb/{ => api}/test/test_desired_deployment.py (61%) rename koyeb/{ => api}/test/test_desired_deployment_group.py (63%) rename koyeb/{ => api}/test/test_digital_ocean_registry_configuration.py (63%) rename koyeb/{ => api}/test/test_discourse_auth_reply.py (61%) rename koyeb/{ => api}/test/test_discourse_auth_request.py (61%) rename koyeb/{ => api}/test/test_docker_builder.py (65%) rename koyeb/{ => api}/test/test_docker_helper_api.py (52%) rename koyeb/{ => api}/test/test_docker_hub_registry_configuration.py (63%) rename koyeb/{ => api}/test/test_docker_source.py (65%) rename koyeb/{ => api}/test/test_domain.py (66%) rename koyeb/{ => api}/test/test_domain_load_balancer_koyeb.py (62%) rename koyeb/{ => api}/test/test_domain_load_balancer_quotas.py (61%) create mode 100644 koyeb/api/test/test_domain_status.py create mode 100644 koyeb/api/test/test_domain_type.py rename koyeb/{ => api}/test/test_domains_api.py (73%) rename koyeb/{ => api}/test/test_domains_summary.py (62%) rename koyeb/{ => api}/test/test_env.py (59%) rename koyeb/{ => api}/test/test_error.py (59%) rename koyeb/{ => api}/test/test_error_field.py (60%) rename koyeb/{ => api}/test/test_error_with_fields.py (62%) rename koyeb/{ => api}/test/test_exec_command_io.py (60%) rename koyeb/{ => api}/test/test_exec_command_reply.py (59%) rename koyeb/{ => api}/test/test_exec_command_request_body.py (60%) create mode 100644 koyeb/api/test/test_exec_command_request_id_type.py rename koyeb/{ => api}/test/test_exec_command_request_terminal_size.py (63%) rename koyeb/{ => api}/test/test_gcp_container_registry_configuration.py (63%) rename koyeb/{ => api}/test/test_get_app_reply.py (75%) rename koyeb/{ => api}/test/test_get_budget_reply.py (60%) rename koyeb/{ => api}/test/test_get_catalog_instance_reply.py (72%) rename koyeb/{ => api}/test/test_get_credential_reply.py (69%) rename koyeb/{ => api}/test/test_get_deployment_reply.py (65%) rename koyeb/{ => api}/test/test_get_deployment_scaling_reply.py (77%) rename koyeb/{ => api}/test/test_get_deployment_scaling_reply_item.py (78%) rename koyeb/{ => api}/test/test_get_domain_reply.py (66%) rename koyeb/{ => api}/test/test_get_github_installation_reply.py (71%) rename koyeb/{ => api}/test/test_get_idenfy_token_reply.py (61%) rename koyeb/{ => api}/test/test_get_instance_reply.py (76%) rename koyeb/{ => api}/test/test_get_intercom_profile_reply.py (61%) rename koyeb/{ => api}/test/test_get_metrics_reply.py (61%) rename koyeb/{ => api}/test/test_get_metrics_reply_metric.py (63%) rename koyeb/{ => api}/test/test_get_o_auth_options_reply.py (61%) rename koyeb/{ => api}/test/test_get_organization_invitation_reply.py (67%) rename koyeb/{ => api}/test/test_get_organization_reply.py (74%) rename koyeb/{ => api}/test/test_get_organization_summary_reply.py (63%) rename koyeb/{ => api}/test/test_get_organization_usage_details_reply.py (77%) rename koyeb/{ => api}/test/test_get_organization_usage_reply.py (68%) rename koyeb/{ => api}/test/test_get_payment_method_reply.py (76%) rename koyeb/{ => api}/test/test_get_persistent_volume_reply.py (69%) rename koyeb/{ => api}/test/test_get_quotas_reply.py (69%) rename koyeb/{ => api}/test/test_get_region_reply.py (67%) rename koyeb/{ => api}/test/test_get_regional_deployment_reply.py (68%) rename koyeb/{ => api}/test/test_get_secret_reply.py (54%) rename koyeb/{ => api}/test/test_get_service_reply.py (70%) rename koyeb/{ => api}/test/test_get_snapshot_reply.py (70%) rename koyeb/{ => api}/test/test_get_subscription_reply.py (77%) rename koyeb/{ => api}/test/test_get_user_organization_invitation_reply.py (67%) rename koyeb/{ => api}/test/test_get_user_settings_reply.py (60%) rename koyeb/{ => api}/test/test_git_deployment_metadata.py (61%) rename koyeb/{ => api}/test/test_git_env_deployment_metadata.py (63%) rename koyeb/{ => api}/test/test_git_hub_registry_configuration.py (63%) rename koyeb/{ => api}/test/test_git_lab_registry_configuration.py (63%) rename koyeb/{ => api}/test/test_git_source.py (67%) rename koyeb/{ => api}/test/test_github_installation_reply.py (63%) rename koyeb/{ => api}/test/test_github_installation_request.py (62%) rename koyeb/{ => api}/test/test_google_protobuf_any.py (60%) create mode 100644 koyeb/api/test/test_google_protobuf_null_value.py rename koyeb/{ => api}/test/test_google_rpc_status.py (64%) rename koyeb/{ => api}/test/test_has_unpaid_invoices_reply.py (61%) rename koyeb/{ => api}/test/test_http_header.py (59%) rename koyeb/{ => api}/test/test_http_health_check.py (62%) rename koyeb/{ => api}/test/test_instance.py (76%) rename koyeb/{ => api}/test/test_instance_availability.py (60%) rename koyeb/{ => api}/test/test_instance_event.py (66%) rename koyeb/{ => api}/test/test_instance_list_item.py (73%) create mode 100644 koyeb/api/test/test_instance_status.py rename koyeb/{ => api}/test/test_instance_usage.py (60%) rename koyeb/{ => api}/test/test_instances_api.py (68%) rename koyeb/{ => api}/test/test_instances_summary.py (62%) rename koyeb/{ => api}/test/test_intercom_api.py (52%) create mode 100644 koyeb/api/test/test_invite_api.py rename koyeb/{ => api}/test/test_invite_user_request.py (62%) rename koyeb/{ => api}/test/test_kgitproxy_branch.py (65%) rename koyeb/{ => api}/test/test_kgitproxy_git_hub_repository.py (62%) rename koyeb/{ => api}/test/test_kgitproxy_github_installation_status.py (50%) create mode 100644 koyeb/api/test/test_kgitproxy_indexing_status.py rename koyeb/{ => api}/test/test_kgitproxy_list_branches_reply.py (67%) rename koyeb/{ => api}/test/test_kgitproxy_list_repositories_reply.py (68%) rename koyeb/{ => api}/test/test_kgitproxy_repository.py (66%) create mode 100644 koyeb/api/test/test_kgitproxy_repository_provider.py rename koyeb/{ => api}/test/test_ksearch_app.py (60%) rename koyeb/{ => api}/test/test_ksearch_global_deployment.py (63%) rename koyeb/{ => api}/test/test_ksearch_instance.py (63%) rename koyeb/{ => api}/test/test_ksearch_organization.py (61%) rename koyeb/{ => api}/test/test_ksearch_regional_deployment.py (64%) rename koyeb/{ => api}/test/test_ksearch_search_reply.py (67%) rename koyeb/{ => api}/test/test_ksearch_service.py (62%) rename koyeb/{ => api}/test/test_ksearch_user.py (61%) rename koyeb/{ => api}/test/test_list_app_events_reply.py (65%) rename koyeb/{ => api}/test/test_list_apps_reply.py (73%) rename koyeb/{ => api}/test/test_list_catalog_instances_reply.py (74%) rename koyeb/{ => api}/test/test_list_credentials_reply.py (72%) rename koyeb/{ => api}/test/test_list_datacenters_reply.py (66%) rename koyeb/{ => api}/test/test_list_deployment_events_reply.py (65%) rename koyeb/{ => api}/test/test_list_deployments_reply.py (67%) rename koyeb/{ => api}/test/test_list_domains_reply.py (68%) rename koyeb/{ => api}/test/test_list_instance_events_reply.py (65%) rename koyeb/{ => api}/test/test_list_instances_reply.py (74%) rename koyeb/{ => api}/test/test_list_organization_invitations_reply.py (70%) rename koyeb/{ => api}/test/test_list_organization_members_reply.py (68%) rename koyeb/{ => api}/test/test_list_payment_methods_reply.py (78%) rename koyeb/{ => api}/test/test_list_persistent_volume_events_reply.py (66%) rename koyeb/{ => api}/test/test_list_persistent_volumes_reply.py (71%) rename koyeb/{ => api}/test/test_list_regional_deployment_events_reply.py (66%) rename koyeb/{ => api}/test/test_list_regional_deployments_reply.py (66%) rename koyeb/{ => api}/test/test_list_regions_reply.py (69%) rename koyeb/{ => api}/test/test_list_secrets_reply.py (57%) rename koyeb/{ => api}/test/test_list_service_events_reply.py (65%) rename koyeb/{ => api}/test/test_list_services_reply.py (66%) rename koyeb/{ => api}/test/test_list_snapshots_reply.py (73%) rename koyeb/{ => api}/test/test_list_usage_reply.py (56%) rename koyeb/{ => api}/test/test_list_user_organization_invitations_reply.py (70%) rename koyeb/{ => api}/test/test_list_user_organizations_reply.py (76%) rename koyeb/{ => api}/test/test_log_entry.py (62%) rename koyeb/{ => api}/test/test_login_method_reply.py (60%) create mode 100644 koyeb/api/test/test_login_method_reply_method.py rename koyeb/{ => api}/test/test_login_reply.py (63%) rename koyeb/{ => api}/test/test_login_request.py (61%) rename koyeb/{ => api}/test/test_logs_api.py (57%) rename koyeb/{ => api}/test/test_manage_reply.py (59%) rename koyeb/{ => api}/test/test_members_summary.py (62%) create mode 100644 koyeb/api/test/test_metric_name.py rename koyeb/{ => api}/test/test_metrics_api.py (51%) rename koyeb/{ => api}/test/test_neon_postgres_database.py (60%) rename koyeb/{ => api}/test/test_neon_postgres_database_deployment_metadata.py (65%) rename koyeb/{ => api}/test/test_neon_postgres_database_neon_database.py (63%) rename koyeb/{ => api}/test/test_neon_postgres_database_neon_role.py (63%) rename koyeb/{ => api}/test/test_neon_postgres_summary.py (63%) rename koyeb/{ => api}/test/test_next_invoice_reply.py (61%) rename koyeb/{ => api}/test/test_next_invoice_reply_discount.py (63%) create mode 100644 koyeb/api/test/test_next_invoice_reply_discount_type.py rename koyeb/{ => api}/test/test_next_invoice_reply_line.py (61%) rename koyeb/{ => api}/test/test_next_invoice_reply_line_period.py (65%) rename koyeb/{ => api}/test/test_next_invoice_reply_line_price.py (62%) rename koyeb/{ => api}/test/test_notification.py (60%) rename koyeb/{ => api}/test/test_notification_list.py (64%) rename koyeb/{ => api}/test/test_o_auth_callback_reply.py (64%) rename koyeb/{ => api}/test/test_o_auth_callback_request.py (63%) rename koyeb/{ => api}/test/test_o_auth_provider.py (61%) rename koyeb/{ => api}/test/test_object.py (58%) rename koyeb/{ => api}/test/test_organization.py (75%) rename koyeb/{ => api}/test/test_organization_api.py (88%) rename koyeb/{ => api}/test/test_organization_confirmations_api.py (54%) rename koyeb/{ => api}/test/test_organization_deactivation_reason.py (50%) create mode 100644 koyeb/api/test/test_organization_detailed_status.py rename koyeb/{ => api}/test/test_organization_invitation.py (69%) create mode 100644 koyeb/api/test/test_organization_invitation_status.py rename koyeb/{ => api}/test/test_organization_invitations_api.py (74%) rename koyeb/{ => api}/test/test_organization_member.py (67%) create mode 100644 koyeb/api/test/test_organization_member_status.py rename koyeb/{ => api}/test/test_organization_members_api.py (61%) create mode 100644 koyeb/api/test/test_organization_quotas_api.py create mode 100644 koyeb/api/test/test_organization_status.py rename koyeb/{ => api}/test/test_organization_summary.py (63%) rename koyeb/{ => api}/test/test_payment_method.py (77%) create mode 100644 koyeb/api/test/test_payment_method_status.py rename koyeb/{ => api}/test/test_payment_methods_api.py (73%) rename koyeb/{ => api}/test/test_period_usage.py (66%) rename koyeb/{ => api}/test/test_persistent_volume.py (73%) create mode 100644 koyeb/api/test/test_persistent_volume_backing_store.py rename koyeb/{ => api}/test/test_persistent_volume_event.py (64%) rename koyeb/{ => api}/test/test_persistent_volume_quotas.py (63%) create mode 100644 koyeb/api/test/test_persistent_volume_status.py rename koyeb/{ => api}/test/test_persistent_volumes_api.py (76%) create mode 100644 koyeb/api/test/test_plan.py rename koyeb/{ => api}/test/test_port.py (58%) rename koyeb/{ => api}/test/test_private_registry_configuration.py (63%) rename koyeb/{ => api}/test/test_profile_api.py (81%) rename koyeb/{ => api}/test/test_provisioning_api.py (66%) create mode 100644 koyeb/api/test/test_proxy_port_protocol.py rename koyeb/{ => api}/test/test_public_organization.py (63%) rename koyeb/{ => api}/test/test_public_user.py (63%) rename koyeb/{ => api}/test/test_query_logs_reply.py (61%) rename koyeb/{ => api}/test/test_query_logs_reply_pagination.py (66%) rename koyeb/{ => api}/test/test_quotas.py (69%) rename koyeb/{ => api}/test/test_quotas_api.py (54%) rename koyeb/{ => api}/test/test_reactivate_organization_reply.py (74%) rename koyeb/{ => api}/test/test_redeem_coupon_request.py (60%) rename koyeb/{ => api}/test/test_redeploy_reply.py (65%) rename koyeb/{ => api}/test/test_redeploy_request_info.py (63%) rename koyeb/{ => api}/test/test_region.py (67%) rename koyeb/{ => api}/test/test_region_availability.py (61%) rename koyeb/{ => api}/test/test_region_list_item.py (68%) rename koyeb/{ => api}/test/test_region_usage.py (58%) rename koyeb/{ => api}/test/test_regional_deployment.py (67%) rename koyeb/{ => api}/test/test_regional_deployment_definition.py (62%) rename koyeb/{ => api}/test/test_regional_deployment_definition_type.py (50%) rename koyeb/{ => api}/test/test_regional_deployment_event.py (64%) rename koyeb/{ => api}/test/test_regional_deployment_list_item.py (61%) create mode 100644 koyeb/api/test/test_regional_deployment_role.py create mode 100644 koyeb/api/test/test_regional_deployment_status.py rename koyeb/{ => api}/test/test_regional_deployment_volume.py (63%) rename koyeb/{ => api}/test/test_regional_deployments_api.py (67%) rename koyeb/{ => api}/test/test_remove_organization_member_reply.py (65%) rename koyeb/{ => api}/test/test_repositories_api.py (64%) rename koyeb/{ => api}/test/test_resend_organization_invitation_reply.py (67%) rename koyeb/{ => api}/test/test_reset_password_request.py (61%) rename koyeb/{ => api}/test/test_reveal_secret_reply.py (60%) rename koyeb/{ => api}/test/test_review_organization_capacity_reply.py (63%) rename koyeb/{ => api}/test/test_review_organization_capacity_request.py (63%) rename koyeb/{ => api}/test/test_route.py (58%) rename koyeb/{ => api}/test/test_sample.py (59%) rename koyeb/{ => api}/test/test_scale_to_zero_quotas.py (66%) create mode 100644 koyeb/api/test/test_scaling.py rename koyeb/{ => api}/test/test_search_api.py (50%) rename koyeb/{ => api}/test/test_secret.py (54%) create mode 100644 koyeb/api/test/test_secret_type.py rename koyeb/{ => api}/test/test_secrets_api.py (75%) rename koyeb/{ => api}/test/test_secrets_summary.py (62%) rename koyeb/{ => api}/test/test_service.py (71%) rename koyeb/{ => api}/test/test_service_event.py (62%) rename koyeb/{ => api}/test/test_service_list_item.py (64%) rename koyeb/{ => api}/test/test_service_state.py (55%) create mode 100644 koyeb/api/test/test_service_status.py rename koyeb/{ => api}/test/test_service_summary.py (62%) create mode 100644 koyeb/api/test/test_service_type.py rename koyeb/{ => api}/test/test_service_usage.py (59%) rename koyeb/{ => api}/test/test_services_api.py (82%) rename koyeb/{ => api}/test/test_sessions_api.py (66%) rename koyeb/{ => api}/test/test_snapshot.py (71%) create mode 100644 koyeb/api/test/test_snapshot_status.py create mode 100644 koyeb/api/test/test_snapshot_type.py rename koyeb/{ => api}/test/test_snapshots_api.py (71%) create mode 100644 koyeb/api/test/test_sso_api.py rename koyeb/{ => api}/test/test_stream_result_of_exec_command_reply.py (61%) rename koyeb/{ => api}/test/test_stream_result_of_log_entry.py (61%) rename koyeb/{ => api}/test/test_subscription.py (78%) rename koyeb/{ => api}/test/test_subscription_payment_failure.py (67%) rename koyeb/{ => api}/test/test_subscription_payment_failure_stripe_sdk.py (64%) create mode 100644 koyeb/api/test/test_subscription_status.py rename koyeb/{ => api}/test/test_subscriptions_api.py (52%) rename koyeb/{ => api}/test/test_summary_api.py (53%) rename koyeb/{ => api}/test/test_tcp_health_check.py (59%) rename koyeb/{ => api}/test/test_token.py (63%) rename koyeb/{ => api}/test/test_trigger_deployment_metadata.py (65%) rename koyeb/{ => api}/test/test_trigger_deployment_metadata_actor_type.py (50%) rename koyeb/{ => api}/test/test_trigger_deployment_metadata_trigger_type.py (51%) rename koyeb/{ => api}/test/test_trigger_git_deployment_metadata.py (67%) rename koyeb/{ => api}/test/test_trigger_git_deployment_metadata_provider.py (51%) rename koyeb/{ => api}/test/test_update_app.py (58%) rename koyeb/{ => api}/test/test_update_app_reply.py (75%) rename koyeb/{ => api}/test/test_update_budget_reply.py (60%) rename koyeb/{ => api}/test/test_update_budget_request.py (60%) rename koyeb/{ => api}/test/test_update_credential_reply.py (69%) rename koyeb/{ => api}/test/test_update_domain.py (60%) rename koyeb/{ => api}/test/test_update_domain_reply.py (66%) rename koyeb/{ => api}/test/test_update_organization_plan_reply.py (74%) rename koyeb/{ => api}/test/test_update_organization_plan_request.py (62%) rename koyeb/{ => api}/test/test_update_organization_reply.py (74%) rename koyeb/{ => api}/test/test_update_password_request.py (62%) rename koyeb/{ => api}/test/test_update_persistent_volume_reply.py (69%) rename koyeb/{ => api}/test/test_update_persistent_volume_request.py (63%) rename koyeb/{ => api}/test/test_update_secret_reply.py (55%) rename koyeb/{ => api}/test/test_update_service.py (60%) rename koyeb/{ => api}/test/test_update_service_reply.py (70%) rename koyeb/{ => api}/test/test_update_snapshot_reply.py (70%) rename koyeb/{ => api}/test/test_update_snapshot_request.py (61%) rename koyeb/{ => api}/test/test_update_user_request_user_update_body.py (66%) rename koyeb/{ => api}/test/test_update_user_settings_reply.py (61%) rename koyeb/{ => api}/test/test_update_user_settings_request.py (62%) rename koyeb/{ => api}/test/test_upsert_signup_qualification_reply.py (74%) rename koyeb/{ => api}/test/test_upsert_signup_qualification_request.py (63%) rename koyeb/{ => api}/test/test_usage.py (68%) rename koyeb/{ => api}/test/test_usage_details.py (71%) rename koyeb/{ => api}/test/test_usages_api.py (61%) rename koyeb/{ => api}/test/test_user.py (73%) create mode 100644 koyeb/api/test/test_user_flags.py rename koyeb/{ => api}/test/test_user_reply.py (68%) create mode 100644 koyeb/api/test/test_user_role_role.py rename koyeb/{ => api}/test/test_user_settings.py (62%) create mode 100644 koyeb/api/test/test_users_api.py rename koyeb/{ => api}/test/test_verify_docker_image_reply.py (63%) create mode 100644 koyeb/api/test/test_verify_docker_image_reply_err_code.py delete mode 100644 koyeb/api/users_api.py create mode 100644 koyeb/api_README.md delete mode 100644 koyeb/docs/UsersApi.md delete mode 100644 koyeb/models/__init__.py delete mode 100644 koyeb/models/app_status.py delete mode 100644 koyeb/models/create_secret.py delete mode 100644 koyeb/models/deployment.py delete mode 100644 koyeb/models/deployment_definition.py delete mode 100644 koyeb/models/deployment_scaling_target.py delete mode 100644 koyeb/models/deployment_status.py delete mode 100644 koyeb/models/deployment_strategy_type.py delete mode 100644 koyeb/models/instance_status.py delete mode 100644 koyeb/models/metric_name.py delete mode 100644 koyeb/models/organization.py delete mode 100644 koyeb/models/organization_deactivation_reason.py delete mode 100644 koyeb/models/organization_detailed_status.py delete mode 100644 koyeb/models/organization_status.py delete mode 100644 koyeb/models/payment_method_status.py delete mode 100644 koyeb/models/persistent_volume_backing_store.py delete mode 100644 koyeb/models/persistent_volume_status.py delete mode 100644 koyeb/models/plan.py delete mode 100644 koyeb/models/regional_deployment_status.py delete mode 100644 koyeb/models/secret.py delete mode 100644 koyeb/models/service_status.py delete mode 100644 koyeb/models/snapshot_status.py delete mode 100644 koyeb/models/snapshot_type.py delete mode 100644 koyeb/models/subscription_status.py delete mode 100644 koyeb/models/user_flags.py delete mode 100644 koyeb/test/test_action.py delete mode 100644 koyeb/test/test_app_status.py delete mode 100644 koyeb/test/test_availability_level.py delete mode 100644 koyeb/test/test_catalog_instance_usage_api.py delete mode 100644 koyeb/test/test_credential_type.py delete mode 100644 koyeb/test/test_deployment_definition_type.py delete mode 100644 koyeb/test/test_deployment_role.py delete mode 100644 koyeb/test/test_deployment_scaling.py delete mode 100644 koyeb/test/test_deployment_scaling_target.py delete mode 100644 koyeb/test/test_deployment_status.py delete mode 100644 koyeb/test/test_deployment_strategy_type.py delete mode 100644 koyeb/test/test_domain_status.py delete mode 100644 koyeb/test/test_domain_type.py delete mode 100644 koyeb/test/test_exec_command_request_id_type.py delete mode 100644 koyeb/test/test_google_protobuf_null_value.py delete mode 100644 koyeb/test/test_instance_status.py delete mode 100644 koyeb/test/test_invite_api.py delete mode 100644 koyeb/test/test_kgitproxy_indexing_status.py delete mode 100644 koyeb/test/test_kgitproxy_repository_provider.py delete mode 100644 koyeb/test/test_login_method_reply_method.py delete mode 100644 koyeb/test/test_metric_name.py delete mode 100644 koyeb/test/test_next_invoice_reply_discount_type.py delete mode 100644 koyeb/test/test_organization_detailed_status.py delete mode 100644 koyeb/test/test_organization_invitation_status.py delete mode 100644 koyeb/test/test_organization_member_status.py delete mode 100644 koyeb/test/test_organization_quotas_api.py delete mode 100644 koyeb/test/test_organization_status.py delete mode 100644 koyeb/test/test_payment_method_status.py delete mode 100644 koyeb/test/test_persistent_volume_backing_store.py delete mode 100644 koyeb/test/test_persistent_volume_status.py delete mode 100644 koyeb/test/test_plan.py delete mode 100644 koyeb/test/test_proxy_port_protocol.py delete mode 100644 koyeb/test/test_regional_deployment_role.py delete mode 100644 koyeb/test/test_regional_deployment_status.py delete mode 100644 koyeb/test/test_scaling.py delete mode 100644 koyeb/test/test_secret_type.py delete mode 100644 koyeb/test/test_service_status.py delete mode 100644 koyeb/test/test_service_type.py delete mode 100644 koyeb/test/test_snapshot_status.py delete mode 100644 koyeb/test/test_snapshot_type.py delete mode 100644 koyeb/test/test_sso_api.py delete mode 100644 koyeb/test/test_subscription_status.py delete mode 100644 koyeb/test/test_user_flags.py delete mode 100644 koyeb/test/test_user_role_role.py delete mode 100644 koyeb/test/test_users_api.py delete mode 100644 koyeb/test/test_verify_docker_image_reply_err_code.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7ed1ccc7..961ec2ee 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,1216 +1,1217 @@ koyeb/__init__.py koyeb/api/__init__.py -koyeb/api/activity_api.py -koyeb/api/apps_api.py -koyeb/api/archives_api.py -koyeb/api/billing_api.py -koyeb/api/catalog_datacenters_api.py -koyeb/api/catalog_instance_usage_api.py -koyeb/api/catalog_instances_api.py -koyeb/api/catalog_regions_api.py -koyeb/api/compose_api.py -koyeb/api/coupons_api.py -koyeb/api/credentials_api.py -koyeb/api/deployments_api.py -koyeb/api/docker_helper_api.py -koyeb/api/domains_api.py -koyeb/api/instances_api.py -koyeb/api/intercom_api.py -koyeb/api/invite_api.py -koyeb/api/logs_api.py -koyeb/api/metrics_api.py -koyeb/api/organization_api.py -koyeb/api/organization_confirmations_api.py -koyeb/api/organization_invitations_api.py -koyeb/api/organization_members_api.py -koyeb/api/organization_quotas_api.py -koyeb/api/payment_methods_api.py -koyeb/api/persistent_volumes_api.py -koyeb/api/profile_api.py -koyeb/api/provisioning_api.py -koyeb/api/quotas_api.py -koyeb/api/regional_deployments_api.py -koyeb/api/repositories_api.py -koyeb/api/search_api.py -koyeb/api/secrets_api.py -koyeb/api/services_api.py -koyeb/api/sessions_api.py -koyeb/api/snapshots_api.py -koyeb/api/sso_api.py -koyeb/api/subscriptions_api.py -koyeb/api/summary_api.py -koyeb/api/usages_api.py -koyeb/api/users_api.py -koyeb/api_client.py -koyeb/api_response.py -koyeb/configuration.py -koyeb/docs/AcceptOrganizationInvitationReply.md -koyeb/docs/Action.md -koyeb/docs/Activity.md -koyeb/docs/ActivityApi.md -koyeb/docs/ActivityList.md -koyeb/docs/App.md -koyeb/docs/AppEvent.md -koyeb/docs/AppListItem.md -koyeb/docs/AppStatus.md -koyeb/docs/AppUsage.md -koyeb/docs/AppsApi.md -koyeb/docs/AppsSummary.md -koyeb/docs/Archive.md -koyeb/docs/ArchiveDeploymentMetadata.md -koyeb/docs/ArchiveSource.md -koyeb/docs/ArchivesApi.md -koyeb/docs/AutoRelease.md -koyeb/docs/AutoReleaseGroup.md -koyeb/docs/AutocompleteReply.md -koyeb/docs/AutocompleteRequest.md -koyeb/docs/AvailabilityLevel.md -koyeb/docs/AzureContainerRegistryConfiguration.md -koyeb/docs/BillingApi.md -koyeb/docs/Budget.md -koyeb/docs/BuildpackBuilder.md -koyeb/docs/CannyAuthReply.md -koyeb/docs/CatalogDatacentersApi.md -koyeb/docs/CatalogGPUDetails.md -koyeb/docs/CatalogInstance.md -koyeb/docs/CatalogInstanceListItem.md -koyeb/docs/CatalogInstanceUsageApi.md -koyeb/docs/CatalogInstancesApi.md -koyeb/docs/CatalogRegionsApi.md -koyeb/docs/CatalogUsage.md -koyeb/docs/ClearIdenfyVerificationResultRequest.md -koyeb/docs/ComposeApi.md -koyeb/docs/ComposeReply.md -koyeb/docs/ConfigFile.md -koyeb/docs/ConfirmPaymentAuthorizationReply.md -koyeb/docs/CouponsApi.md -koyeb/docs/CreateAccessTokenReply.md -koyeb/docs/CreateAccessTokenRequest.md -koyeb/docs/CreateAccountRequest.md -koyeb/docs/CreateApp.md -koyeb/docs/CreateAppReply.md -koyeb/docs/CreateArchive.md -koyeb/docs/CreateArchiveReply.md -koyeb/docs/CreateBudgetReply.md -koyeb/docs/CreateCompose.md -koyeb/docs/CreateCredential.md -koyeb/docs/CreateCredentialReply.md -koyeb/docs/CreateDomain.md -koyeb/docs/CreateDomainReply.md -koyeb/docs/CreateOrganizationInvitationReply.md -koyeb/docs/CreateOrganizationInvitationRequest.md -koyeb/docs/CreateOrganizationReply.md -koyeb/docs/CreateOrganizationRequest.md -koyeb/docs/CreatePaymentAuthorizationReply.md -koyeb/docs/CreatePersistentVolumeReply.md -koyeb/docs/CreatePersistentVolumeRequest.md -koyeb/docs/CreateSecret.md -koyeb/docs/CreateSecretReply.md -koyeb/docs/CreateService.md -koyeb/docs/CreateServiceReply.md -koyeb/docs/CreateSnapshotReply.md -koyeb/docs/CreateSnapshotRequest.md -koyeb/docs/CreateStageAttemptRequest.md -koyeb/docs/Credential.md -koyeb/docs/CredentialType.md -koyeb/docs/CredentialsApi.md -koyeb/docs/DatabaseDeploymentMetadata.md -koyeb/docs/DatabaseRolePassword.md -koyeb/docs/DatabaseSource.md -koyeb/docs/DatabaseUsage.md -koyeb/docs/DatabaseUsageDetails.md -koyeb/docs/DatacenterListItem.md -koyeb/docs/DeactivateOrganizationReply.md -koyeb/docs/DeactivateOrganizationRequest.md -koyeb/docs/DeclareStageProgressRequest.md -koyeb/docs/DeclareStepProgressRequest.md -koyeb/docs/DeclineOrganizationInvitationReply.md -koyeb/docs/DeleteOrganizationReply.md -koyeb/docs/DeletePersistentVolumeReply.md -koyeb/docs/DeleteSnapshotReply.md -koyeb/docs/DeleteUserReply.md -koyeb/docs/Deployment.md -koyeb/docs/DeploymentDatabaseInfo.md -koyeb/docs/DeploymentDefinition.md -koyeb/docs/DeploymentDefinitionType.md -koyeb/docs/DeploymentEnv.md -koyeb/docs/DeploymentEvent.md -koyeb/docs/DeploymentHealthCheck.md -koyeb/docs/DeploymentInstanceType.md -koyeb/docs/DeploymentListItem.md -koyeb/docs/DeploymentMetadata.md -koyeb/docs/DeploymentNeonPostgresDatabaseInfo.md -koyeb/docs/DeploymentNeonPostgresDatabaseInfoRole.md -koyeb/docs/DeploymentPort.md -koyeb/docs/DeploymentProvisioningInfo.md -koyeb/docs/DeploymentProvisioningInfoStage.md -koyeb/docs/DeploymentProvisioningInfoStageBuildAttempt.md -koyeb/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md -koyeb/docs/DeploymentProvisioningInfoStageStatus.md -koyeb/docs/DeploymentProxyPort.md -koyeb/docs/DeploymentProxyPortMetadata.md -koyeb/docs/DeploymentRole.md -koyeb/docs/DeploymentRoute.md -koyeb/docs/DeploymentScaling.md -koyeb/docs/DeploymentScalingTarget.md -koyeb/docs/DeploymentScalingTargetAverageCPU.md -koyeb/docs/DeploymentScalingTargetAverageMem.md -koyeb/docs/DeploymentScalingTargetConcurrentRequests.md -koyeb/docs/DeploymentScalingTargetRequestsPerSecond.md -koyeb/docs/DeploymentScalingTargetRequestsResponseTime.md -koyeb/docs/DeploymentScalingTargetSleepIdleDelay.md -koyeb/docs/DeploymentStatus.md -koyeb/docs/DeploymentStrategy.md -koyeb/docs/DeploymentStrategyType.md -koyeb/docs/DeploymentVolume.md -koyeb/docs/DeploymentsApi.md -koyeb/docs/DesiredDeployment.md -koyeb/docs/DesiredDeploymentGroup.md -koyeb/docs/DigitalOceanRegistryConfiguration.md -koyeb/docs/DiscourseAuthReply.md -koyeb/docs/DiscourseAuthRequest.md -koyeb/docs/DockerBuilder.md -koyeb/docs/DockerHelperApi.md -koyeb/docs/DockerHubRegistryConfiguration.md -koyeb/docs/DockerSource.md -koyeb/docs/Domain.md -koyeb/docs/DomainLoadBalancerKoyeb.md -koyeb/docs/DomainLoadBalancerQuotas.md -koyeb/docs/DomainStatus.md -koyeb/docs/DomainType.md -koyeb/docs/DomainsApi.md -koyeb/docs/DomainsSummary.md -koyeb/docs/Env.md -koyeb/docs/Error.md -koyeb/docs/ErrorField.md -koyeb/docs/ErrorWithFields.md -koyeb/docs/ExecCommandIO.md -koyeb/docs/ExecCommandReply.md -koyeb/docs/ExecCommandRequestBody.md -koyeb/docs/ExecCommandRequestIdType.md -koyeb/docs/ExecCommandRequestTerminalSize.md -koyeb/docs/GCPContainerRegistryConfiguration.md -koyeb/docs/GetAppReply.md -koyeb/docs/GetBudgetReply.md -koyeb/docs/GetCatalogInstanceReply.md -koyeb/docs/GetCredentialReply.md -koyeb/docs/GetDeploymentReply.md -koyeb/docs/GetDeploymentScalingReply.md -koyeb/docs/GetDeploymentScalingReplyItem.md -koyeb/docs/GetDomainReply.md -koyeb/docs/GetGithubInstallationReply.md -koyeb/docs/GetIdenfyTokenReply.md -koyeb/docs/GetInstanceReply.md -koyeb/docs/GetIntercomProfileReply.md -koyeb/docs/GetMetricsReply.md -koyeb/docs/GetMetricsReplyMetric.md -koyeb/docs/GetOAuthOptionsReply.md -koyeb/docs/GetOrganizationInvitationReply.md -koyeb/docs/GetOrganizationReply.md -koyeb/docs/GetOrganizationSummaryReply.md -koyeb/docs/GetOrganizationUsageDetailsReply.md -koyeb/docs/GetOrganizationUsageReply.md -koyeb/docs/GetPaymentMethodReply.md -koyeb/docs/GetPersistentVolumeReply.md -koyeb/docs/GetQuotasReply.md -koyeb/docs/GetRegionReply.md -koyeb/docs/GetRegionalDeploymentReply.md -koyeb/docs/GetSecretReply.md -koyeb/docs/GetServiceReply.md -koyeb/docs/GetSnapshotReply.md -koyeb/docs/GetSubscriptionReply.md -koyeb/docs/GetUserOrganizationInvitationReply.md -koyeb/docs/GetUserSettingsReply.md -koyeb/docs/GitDeploymentMetadata.md -koyeb/docs/GitEnvDeploymentMetadata.md -koyeb/docs/GitHubRegistryConfiguration.md -koyeb/docs/GitLabRegistryConfiguration.md -koyeb/docs/GitSource.md -koyeb/docs/GithubInstallationReply.md -koyeb/docs/GithubInstallationRequest.md -koyeb/docs/GoogleProtobufAny.md -koyeb/docs/GoogleProtobufNullValue.md -koyeb/docs/GoogleRpcStatus.md -koyeb/docs/HTTPHeader.md -koyeb/docs/HTTPHealthCheck.md -koyeb/docs/HasUnpaidInvoicesReply.md -koyeb/docs/Instance.md -koyeb/docs/InstanceAvailability.md -koyeb/docs/InstanceEvent.md -koyeb/docs/InstanceListItem.md -koyeb/docs/InstanceStatus.md -koyeb/docs/InstanceUsage.md -koyeb/docs/InstancesApi.md -koyeb/docs/InstancesSummary.md -koyeb/docs/IntercomApi.md -koyeb/docs/InviteApi.md -koyeb/docs/InviteUserRequest.md -koyeb/docs/KgitproxyBranch.md -koyeb/docs/KgitproxyGitHubRepository.md -koyeb/docs/KgitproxyGithubInstallationStatus.md -koyeb/docs/KgitproxyIndexingStatus.md -koyeb/docs/KgitproxyListBranchesReply.md -koyeb/docs/KgitproxyListRepositoriesReply.md -koyeb/docs/KgitproxyRepository.md -koyeb/docs/KgitproxyRepositoryProvider.md -koyeb/docs/KsearchApp.md -koyeb/docs/KsearchGlobalDeployment.md -koyeb/docs/KsearchInstance.md -koyeb/docs/KsearchOrganization.md -koyeb/docs/KsearchRegionalDeployment.md -koyeb/docs/KsearchSearchReply.md -koyeb/docs/KsearchService.md -koyeb/docs/KsearchUser.md -koyeb/docs/ListAppEventsReply.md -koyeb/docs/ListAppsReply.md -koyeb/docs/ListCatalogInstancesReply.md -koyeb/docs/ListCredentialsReply.md -koyeb/docs/ListDatacentersReply.md -koyeb/docs/ListDeploymentEventsReply.md -koyeb/docs/ListDeploymentsReply.md -koyeb/docs/ListDomainsReply.md -koyeb/docs/ListInstanceEventsReply.md -koyeb/docs/ListInstancesReply.md -koyeb/docs/ListOrganizationInvitationsReply.md -koyeb/docs/ListOrganizationMembersReply.md -koyeb/docs/ListPaymentMethodsReply.md -koyeb/docs/ListPersistentVolumeEventsReply.md -koyeb/docs/ListPersistentVolumesReply.md -koyeb/docs/ListRegionalDeploymentEventsReply.md -koyeb/docs/ListRegionalDeploymentsReply.md -koyeb/docs/ListRegionsReply.md -koyeb/docs/ListSecretsReply.md -koyeb/docs/ListServiceEventsReply.md -koyeb/docs/ListServicesReply.md -koyeb/docs/ListSnapshotsReply.md -koyeb/docs/ListUsageReply.md -koyeb/docs/ListUserOrganizationInvitationsReply.md -koyeb/docs/ListUserOrganizationsReply.md -koyeb/docs/LogEntry.md -koyeb/docs/LoginMethodReply.md -koyeb/docs/LoginMethodReplyMethod.md -koyeb/docs/LoginReply.md -koyeb/docs/LoginRequest.md -koyeb/docs/LogsApi.md -koyeb/docs/ManageReply.md -koyeb/docs/MembersSummary.md -koyeb/docs/MetricName.md -koyeb/docs/MetricsApi.md -koyeb/docs/NeonPostgresDatabase.md -koyeb/docs/NeonPostgresDatabaseDeploymentMetadata.md -koyeb/docs/NeonPostgresDatabaseNeonDatabase.md -koyeb/docs/NeonPostgresDatabaseNeonRole.md -koyeb/docs/NeonPostgresSummary.md -koyeb/docs/NextInvoiceReply.md -koyeb/docs/NextInvoiceReplyDiscount.md -koyeb/docs/NextInvoiceReplyDiscountType.md -koyeb/docs/NextInvoiceReplyLine.md -koyeb/docs/NextInvoiceReplyLinePeriod.md -koyeb/docs/NextInvoiceReplyLinePrice.md -koyeb/docs/Notification.md -koyeb/docs/NotificationList.md -koyeb/docs/OAuthCallbackReply.md -koyeb/docs/OAuthCallbackRequest.md -koyeb/docs/OAuthProvider.md -koyeb/docs/Object.md -koyeb/docs/Organization.md -koyeb/docs/OrganizationApi.md -koyeb/docs/OrganizationConfirmationsApi.md -koyeb/docs/OrganizationDeactivationReason.md -koyeb/docs/OrganizationDetailedStatus.md -koyeb/docs/OrganizationInvitation.md -koyeb/docs/OrganizationInvitationStatus.md -koyeb/docs/OrganizationInvitationsApi.md -koyeb/docs/OrganizationMember.md -koyeb/docs/OrganizationMemberStatus.md -koyeb/docs/OrganizationMembersApi.md -koyeb/docs/OrganizationQuotasApi.md -koyeb/docs/OrganizationStatus.md -koyeb/docs/OrganizationSummary.md -koyeb/docs/PaymentMethod.md -koyeb/docs/PaymentMethodStatus.md -koyeb/docs/PaymentMethodsApi.md -koyeb/docs/PeriodUsage.md -koyeb/docs/PersistentVolume.md -koyeb/docs/PersistentVolumeBackingStore.md -koyeb/docs/PersistentVolumeEvent.md -koyeb/docs/PersistentVolumeQuotas.md -koyeb/docs/PersistentVolumeStatus.md -koyeb/docs/PersistentVolumesApi.md -koyeb/docs/Plan.md -koyeb/docs/Port.md -koyeb/docs/PrivateRegistryConfiguration.md -koyeb/docs/ProfileApi.md -koyeb/docs/ProvisioningApi.md -koyeb/docs/ProxyPortProtocol.md -koyeb/docs/PublicOrganization.md -koyeb/docs/PublicUser.md -koyeb/docs/QueryLogsReply.md -koyeb/docs/QueryLogsReplyPagination.md -koyeb/docs/Quotas.md -koyeb/docs/QuotasApi.md -koyeb/docs/ReactivateOrganizationReply.md -koyeb/docs/RedeemCouponRequest.md -koyeb/docs/RedeployReply.md -koyeb/docs/RedeployRequestInfo.md -koyeb/docs/Region.md -koyeb/docs/RegionAvailability.md -koyeb/docs/RegionListItem.md -koyeb/docs/RegionUsage.md -koyeb/docs/RegionalDeployment.md -koyeb/docs/RegionalDeploymentDefinition.md -koyeb/docs/RegionalDeploymentDefinitionType.md -koyeb/docs/RegionalDeploymentEvent.md -koyeb/docs/RegionalDeploymentListItem.md -koyeb/docs/RegionalDeploymentRole.md -koyeb/docs/RegionalDeploymentStatus.md -koyeb/docs/RegionalDeploymentVolume.md -koyeb/docs/RegionalDeploymentsApi.md -koyeb/docs/RemoveOrganizationMemberReply.md -koyeb/docs/RepositoriesApi.md -koyeb/docs/ResendOrganizationInvitationReply.md -koyeb/docs/ResetPasswordRequest.md -koyeb/docs/RevealSecretReply.md -koyeb/docs/ReviewOrganizationCapacityReply.md -koyeb/docs/ReviewOrganizationCapacityRequest.md -koyeb/docs/Route.md -koyeb/docs/Sample.md -koyeb/docs/ScaleToZeroQuotas.md -koyeb/docs/Scaling.md -koyeb/docs/SearchApi.md -koyeb/docs/Secret.md -koyeb/docs/SecretType.md -koyeb/docs/SecretsApi.md -koyeb/docs/SecretsSummary.md -koyeb/docs/Service.md -koyeb/docs/ServiceEvent.md -koyeb/docs/ServiceListItem.md -koyeb/docs/ServiceState.md -koyeb/docs/ServiceStatus.md -koyeb/docs/ServiceSummary.md -koyeb/docs/ServiceType.md -koyeb/docs/ServiceUsage.md -koyeb/docs/ServicesApi.md -koyeb/docs/SessionsApi.md -koyeb/docs/Snapshot.md -koyeb/docs/SnapshotStatus.md -koyeb/docs/SnapshotType.md -koyeb/docs/SnapshotsApi.md -koyeb/docs/SsoApi.md -koyeb/docs/StreamResultOfExecCommandReply.md -koyeb/docs/StreamResultOfLogEntry.md -koyeb/docs/Subscription.md -koyeb/docs/SubscriptionPaymentFailure.md -koyeb/docs/SubscriptionPaymentFailureStripeSDK.md -koyeb/docs/SubscriptionStatus.md -koyeb/docs/SubscriptionsApi.md -koyeb/docs/SummaryApi.md -koyeb/docs/TCPHealthCheck.md -koyeb/docs/Token.md -koyeb/docs/TriggerDeploymentMetadata.md -koyeb/docs/TriggerDeploymentMetadataActorType.md -koyeb/docs/TriggerDeploymentMetadataTriggerType.md -koyeb/docs/TriggerGitDeploymentMetadata.md -koyeb/docs/TriggerGitDeploymentMetadataProvider.md -koyeb/docs/UpdateApp.md -koyeb/docs/UpdateAppReply.md -koyeb/docs/UpdateBudgetReply.md -koyeb/docs/UpdateBudgetRequest.md -koyeb/docs/UpdateCredentialReply.md -koyeb/docs/UpdateDomain.md -koyeb/docs/UpdateDomainReply.md -koyeb/docs/UpdateOrganizationPlanReply.md -koyeb/docs/UpdateOrganizationPlanRequest.md -koyeb/docs/UpdateOrganizationReply.md -koyeb/docs/UpdatePasswordRequest.md -koyeb/docs/UpdatePersistentVolumeReply.md -koyeb/docs/UpdatePersistentVolumeRequest.md -koyeb/docs/UpdateSecretReply.md -koyeb/docs/UpdateService.md -koyeb/docs/UpdateServiceReply.md -koyeb/docs/UpdateSnapshotReply.md -koyeb/docs/UpdateSnapshotRequest.md -koyeb/docs/UpdateUserRequestUserUpdateBody.md -koyeb/docs/UpdateUserSettingsReply.md -koyeb/docs/UpdateUserSettingsRequest.md -koyeb/docs/UpsertSignupQualificationReply.md -koyeb/docs/UpsertSignupQualificationRequest.md -koyeb/docs/Usage.md -koyeb/docs/UsageDetails.md -koyeb/docs/UsagesApi.md -koyeb/docs/User.md -koyeb/docs/UserFlags.md -koyeb/docs/UserReply.md -koyeb/docs/UserRoleRole.md -koyeb/docs/UserSettings.md -koyeb/docs/UsersApi.md -koyeb/docs/VerifyDockerImageReply.md -koyeb/docs/VerifyDockerImageReplyErrCode.md -koyeb/exceptions.py -koyeb/models/__init__.py -koyeb/models/accept_organization_invitation_reply.py -koyeb/models/action.py -koyeb/models/activity.py -koyeb/models/activity_list.py -koyeb/models/app.py -koyeb/models/app_event.py -koyeb/models/app_list_item.py -koyeb/models/app_status.py -koyeb/models/app_usage.py -koyeb/models/apps_summary.py -koyeb/models/archive.py -koyeb/models/archive_deployment_metadata.py -koyeb/models/archive_source.py -koyeb/models/auto_release.py -koyeb/models/auto_release_group.py -koyeb/models/autocomplete_reply.py -koyeb/models/autocomplete_request.py -koyeb/models/availability_level.py -koyeb/models/azure_container_registry_configuration.py -koyeb/models/budget.py -koyeb/models/buildpack_builder.py -koyeb/models/canny_auth_reply.py -koyeb/models/catalog_gpu_details.py -koyeb/models/catalog_instance.py -koyeb/models/catalog_instance_list_item.py -koyeb/models/catalog_usage.py -koyeb/models/clear_idenfy_verification_result_request.py -koyeb/models/compose_reply.py -koyeb/models/config_file.py -koyeb/models/confirm_payment_authorization_reply.py -koyeb/models/create_access_token_reply.py -koyeb/models/create_access_token_request.py -koyeb/models/create_account_request.py -koyeb/models/create_app.py -koyeb/models/create_app_reply.py -koyeb/models/create_archive.py -koyeb/models/create_archive_reply.py -koyeb/models/create_budget_reply.py -koyeb/models/create_compose.py -koyeb/models/create_credential.py -koyeb/models/create_credential_reply.py -koyeb/models/create_domain.py -koyeb/models/create_domain_reply.py -koyeb/models/create_organization_invitation_reply.py -koyeb/models/create_organization_invitation_request.py -koyeb/models/create_organization_reply.py -koyeb/models/create_organization_request.py -koyeb/models/create_payment_authorization_reply.py -koyeb/models/create_persistent_volume_reply.py -koyeb/models/create_persistent_volume_request.py -koyeb/models/create_secret.py -koyeb/models/create_secret_reply.py -koyeb/models/create_service.py -koyeb/models/create_service_reply.py -koyeb/models/create_snapshot_reply.py -koyeb/models/create_snapshot_request.py -koyeb/models/create_stage_attempt_request.py -koyeb/models/credential.py -koyeb/models/credential_type.py -koyeb/models/database_deployment_metadata.py -koyeb/models/database_role_password.py -koyeb/models/database_source.py -koyeb/models/database_usage.py -koyeb/models/database_usage_details.py -koyeb/models/datacenter_list_item.py -koyeb/models/deactivate_organization_reply.py -koyeb/models/deactivate_organization_request.py -koyeb/models/declare_stage_progress_request.py -koyeb/models/declare_step_progress_request.py -koyeb/models/decline_organization_invitation_reply.py -koyeb/models/delete_organization_reply.py -koyeb/models/delete_persistent_volume_reply.py -koyeb/models/delete_snapshot_reply.py -koyeb/models/delete_user_reply.py -koyeb/models/deployment.py -koyeb/models/deployment_database_info.py -koyeb/models/deployment_definition.py -koyeb/models/deployment_definition_type.py -koyeb/models/deployment_env.py -koyeb/models/deployment_event.py -koyeb/models/deployment_health_check.py -koyeb/models/deployment_instance_type.py -koyeb/models/deployment_list_item.py -koyeb/models/deployment_metadata.py -koyeb/models/deployment_neon_postgres_database_info.py -koyeb/models/deployment_neon_postgres_database_info_role.py -koyeb/models/deployment_port.py -koyeb/models/deployment_provisioning_info.py -koyeb/models/deployment_provisioning_info_stage.py -koyeb/models/deployment_provisioning_info_stage_build_attempt.py -koyeb/models/deployment_provisioning_info_stage_build_attempt_build_step.py -koyeb/models/deployment_provisioning_info_stage_status.py -koyeb/models/deployment_proxy_port.py -koyeb/models/deployment_proxy_port_metadata.py -koyeb/models/deployment_role.py -koyeb/models/deployment_route.py -koyeb/models/deployment_scaling.py -koyeb/models/deployment_scaling_target.py -koyeb/models/deployment_scaling_target_average_cpu.py -koyeb/models/deployment_scaling_target_average_mem.py -koyeb/models/deployment_scaling_target_concurrent_requests.py -koyeb/models/deployment_scaling_target_requests_per_second.py -koyeb/models/deployment_scaling_target_requests_response_time.py -koyeb/models/deployment_scaling_target_sleep_idle_delay.py -koyeb/models/deployment_status.py -koyeb/models/deployment_strategy.py -koyeb/models/deployment_strategy_type.py -koyeb/models/deployment_volume.py -koyeb/models/desired_deployment.py -koyeb/models/desired_deployment_group.py -koyeb/models/digital_ocean_registry_configuration.py -koyeb/models/discourse_auth_reply.py -koyeb/models/discourse_auth_request.py -koyeb/models/docker_builder.py -koyeb/models/docker_hub_registry_configuration.py -koyeb/models/docker_source.py -koyeb/models/domain.py -koyeb/models/domain_load_balancer_koyeb.py -koyeb/models/domain_load_balancer_quotas.py -koyeb/models/domain_status.py -koyeb/models/domain_type.py -koyeb/models/domains_summary.py -koyeb/models/env.py -koyeb/models/error.py -koyeb/models/error_field.py -koyeb/models/error_with_fields.py -koyeb/models/exec_command_io.py -koyeb/models/exec_command_reply.py -koyeb/models/exec_command_request_body.py -koyeb/models/exec_command_request_id_type.py -koyeb/models/exec_command_request_terminal_size.py -koyeb/models/gcp_container_registry_configuration.py -koyeb/models/get_app_reply.py -koyeb/models/get_budget_reply.py -koyeb/models/get_catalog_instance_reply.py -koyeb/models/get_credential_reply.py -koyeb/models/get_deployment_reply.py -koyeb/models/get_deployment_scaling_reply.py -koyeb/models/get_deployment_scaling_reply_item.py -koyeb/models/get_domain_reply.py -koyeb/models/get_github_installation_reply.py -koyeb/models/get_idenfy_token_reply.py -koyeb/models/get_instance_reply.py -koyeb/models/get_intercom_profile_reply.py -koyeb/models/get_metrics_reply.py -koyeb/models/get_metrics_reply_metric.py -koyeb/models/get_o_auth_options_reply.py -koyeb/models/get_organization_invitation_reply.py -koyeb/models/get_organization_reply.py -koyeb/models/get_organization_summary_reply.py -koyeb/models/get_organization_usage_details_reply.py -koyeb/models/get_organization_usage_reply.py -koyeb/models/get_payment_method_reply.py -koyeb/models/get_persistent_volume_reply.py -koyeb/models/get_quotas_reply.py -koyeb/models/get_region_reply.py -koyeb/models/get_regional_deployment_reply.py -koyeb/models/get_secret_reply.py -koyeb/models/get_service_reply.py -koyeb/models/get_snapshot_reply.py -koyeb/models/get_subscription_reply.py -koyeb/models/get_user_organization_invitation_reply.py -koyeb/models/get_user_settings_reply.py -koyeb/models/git_deployment_metadata.py -koyeb/models/git_env_deployment_metadata.py -koyeb/models/git_hub_registry_configuration.py -koyeb/models/git_lab_registry_configuration.py -koyeb/models/git_source.py -koyeb/models/github_installation_reply.py -koyeb/models/github_installation_request.py -koyeb/models/google_protobuf_any.py -koyeb/models/google_protobuf_null_value.py -koyeb/models/google_rpc_status.py -koyeb/models/has_unpaid_invoices_reply.py -koyeb/models/http_header.py -koyeb/models/http_health_check.py -koyeb/models/instance.py -koyeb/models/instance_availability.py -koyeb/models/instance_event.py -koyeb/models/instance_list_item.py -koyeb/models/instance_status.py -koyeb/models/instance_usage.py -koyeb/models/instances_summary.py -koyeb/models/invite_user_request.py -koyeb/models/kgitproxy_branch.py -koyeb/models/kgitproxy_git_hub_repository.py -koyeb/models/kgitproxy_github_installation_status.py -koyeb/models/kgitproxy_indexing_status.py -koyeb/models/kgitproxy_list_branches_reply.py -koyeb/models/kgitproxy_list_repositories_reply.py -koyeb/models/kgitproxy_repository.py -koyeb/models/kgitproxy_repository_provider.py -koyeb/models/ksearch_app.py -koyeb/models/ksearch_global_deployment.py -koyeb/models/ksearch_instance.py -koyeb/models/ksearch_organization.py -koyeb/models/ksearch_regional_deployment.py -koyeb/models/ksearch_search_reply.py -koyeb/models/ksearch_service.py -koyeb/models/ksearch_user.py -koyeb/models/list_app_events_reply.py -koyeb/models/list_apps_reply.py -koyeb/models/list_catalog_instances_reply.py -koyeb/models/list_credentials_reply.py -koyeb/models/list_datacenters_reply.py -koyeb/models/list_deployment_events_reply.py -koyeb/models/list_deployments_reply.py -koyeb/models/list_domains_reply.py -koyeb/models/list_instance_events_reply.py -koyeb/models/list_instances_reply.py -koyeb/models/list_organization_invitations_reply.py -koyeb/models/list_organization_members_reply.py -koyeb/models/list_payment_methods_reply.py -koyeb/models/list_persistent_volume_events_reply.py -koyeb/models/list_persistent_volumes_reply.py -koyeb/models/list_regional_deployment_events_reply.py -koyeb/models/list_regional_deployments_reply.py -koyeb/models/list_regions_reply.py -koyeb/models/list_secrets_reply.py -koyeb/models/list_service_events_reply.py -koyeb/models/list_services_reply.py -koyeb/models/list_snapshots_reply.py -koyeb/models/list_usage_reply.py -koyeb/models/list_user_organization_invitations_reply.py -koyeb/models/list_user_organizations_reply.py -koyeb/models/log_entry.py -koyeb/models/login_method_reply.py -koyeb/models/login_method_reply_method.py -koyeb/models/login_reply.py -koyeb/models/login_request.py -koyeb/models/manage_reply.py -koyeb/models/members_summary.py -koyeb/models/metric_name.py -koyeb/models/neon_postgres_database.py -koyeb/models/neon_postgres_database_deployment_metadata.py -koyeb/models/neon_postgres_database_neon_database.py -koyeb/models/neon_postgres_database_neon_role.py -koyeb/models/neon_postgres_summary.py -koyeb/models/next_invoice_reply.py -koyeb/models/next_invoice_reply_discount.py -koyeb/models/next_invoice_reply_discount_type.py -koyeb/models/next_invoice_reply_line.py -koyeb/models/next_invoice_reply_line_period.py -koyeb/models/next_invoice_reply_line_price.py -koyeb/models/notification.py -koyeb/models/notification_list.py -koyeb/models/o_auth_callback_reply.py -koyeb/models/o_auth_callback_request.py -koyeb/models/o_auth_provider.py -koyeb/models/object.py -koyeb/models/organization.py -koyeb/models/organization_deactivation_reason.py -koyeb/models/organization_detailed_status.py -koyeb/models/organization_invitation.py -koyeb/models/organization_invitation_status.py -koyeb/models/organization_member.py -koyeb/models/organization_member_status.py -koyeb/models/organization_status.py -koyeb/models/organization_summary.py -koyeb/models/payment_method.py -koyeb/models/payment_method_status.py -koyeb/models/period_usage.py -koyeb/models/persistent_volume.py -koyeb/models/persistent_volume_backing_store.py -koyeb/models/persistent_volume_event.py -koyeb/models/persistent_volume_quotas.py -koyeb/models/persistent_volume_status.py -koyeb/models/plan.py -koyeb/models/port.py -koyeb/models/private_registry_configuration.py -koyeb/models/proxy_port_protocol.py -koyeb/models/public_organization.py -koyeb/models/public_user.py -koyeb/models/query_logs_reply.py -koyeb/models/query_logs_reply_pagination.py -koyeb/models/quotas.py -koyeb/models/reactivate_organization_reply.py -koyeb/models/redeem_coupon_request.py -koyeb/models/redeploy_reply.py -koyeb/models/redeploy_request_info.py -koyeb/models/region.py -koyeb/models/region_availability.py -koyeb/models/region_list_item.py -koyeb/models/region_usage.py -koyeb/models/regional_deployment.py -koyeb/models/regional_deployment_definition.py -koyeb/models/regional_deployment_definition_type.py -koyeb/models/regional_deployment_event.py -koyeb/models/regional_deployment_list_item.py -koyeb/models/regional_deployment_role.py -koyeb/models/regional_deployment_status.py -koyeb/models/regional_deployment_volume.py -koyeb/models/remove_organization_member_reply.py -koyeb/models/resend_organization_invitation_reply.py -koyeb/models/reset_password_request.py -koyeb/models/reveal_secret_reply.py -koyeb/models/review_organization_capacity_reply.py -koyeb/models/review_organization_capacity_request.py -koyeb/models/route.py -koyeb/models/sample.py -koyeb/models/scale_to_zero_quotas.py -koyeb/models/scaling.py -koyeb/models/secret.py -koyeb/models/secret_type.py -koyeb/models/secrets_summary.py -koyeb/models/service.py -koyeb/models/service_event.py -koyeb/models/service_list_item.py -koyeb/models/service_state.py -koyeb/models/service_status.py -koyeb/models/service_summary.py -koyeb/models/service_type.py -koyeb/models/service_usage.py -koyeb/models/snapshot.py -koyeb/models/snapshot_status.py -koyeb/models/snapshot_type.py -koyeb/models/stream_result_of_exec_command_reply.py -koyeb/models/stream_result_of_log_entry.py -koyeb/models/subscription.py -koyeb/models/subscription_payment_failure.py -koyeb/models/subscription_payment_failure_stripe_sdk.py -koyeb/models/subscription_status.py -koyeb/models/tcp_health_check.py -koyeb/models/token.py -koyeb/models/trigger_deployment_metadata.py -koyeb/models/trigger_deployment_metadata_actor_type.py -koyeb/models/trigger_deployment_metadata_trigger_type.py -koyeb/models/trigger_git_deployment_metadata.py -koyeb/models/trigger_git_deployment_metadata_provider.py -koyeb/models/update_app.py -koyeb/models/update_app_reply.py -koyeb/models/update_budget_reply.py -koyeb/models/update_budget_request.py -koyeb/models/update_credential_reply.py -koyeb/models/update_domain.py -koyeb/models/update_domain_reply.py -koyeb/models/update_organization_plan_reply.py -koyeb/models/update_organization_plan_request.py -koyeb/models/update_organization_reply.py -koyeb/models/update_password_request.py -koyeb/models/update_persistent_volume_reply.py -koyeb/models/update_persistent_volume_request.py -koyeb/models/update_secret_reply.py -koyeb/models/update_service.py -koyeb/models/update_service_reply.py -koyeb/models/update_snapshot_reply.py -koyeb/models/update_snapshot_request.py -koyeb/models/update_user_request_user_update_body.py -koyeb/models/update_user_settings_reply.py -koyeb/models/update_user_settings_request.py -koyeb/models/upsert_signup_qualification_reply.py -koyeb/models/upsert_signup_qualification_request.py -koyeb/models/usage.py -koyeb/models/usage_details.py -koyeb/models/user.py -koyeb/models/user_flags.py -koyeb/models/user_reply.py -koyeb/models/user_role_role.py -koyeb/models/user_settings.py -koyeb/models/verify_docker_image_reply.py -koyeb/models/verify_docker_image_reply_err_code.py -koyeb/rest.py -koyeb/test/__init__.py -koyeb/test/test_accept_organization_invitation_reply.py -koyeb/test/test_action.py -koyeb/test/test_activity.py -koyeb/test/test_activity_api.py -koyeb/test/test_activity_list.py -koyeb/test/test_app.py -koyeb/test/test_app_event.py -koyeb/test/test_app_list_item.py -koyeb/test/test_app_status.py -koyeb/test/test_app_usage.py -koyeb/test/test_apps_api.py -koyeb/test/test_apps_summary.py -koyeb/test/test_archive.py -koyeb/test/test_archive_deployment_metadata.py -koyeb/test/test_archive_source.py -koyeb/test/test_archives_api.py -koyeb/test/test_auto_release.py -koyeb/test/test_auto_release_group.py -koyeb/test/test_autocomplete_reply.py -koyeb/test/test_autocomplete_request.py -koyeb/test/test_availability_level.py -koyeb/test/test_azure_container_registry_configuration.py -koyeb/test/test_billing_api.py -koyeb/test/test_budget.py -koyeb/test/test_buildpack_builder.py -koyeb/test/test_canny_auth_reply.py -koyeb/test/test_catalog_datacenters_api.py -koyeb/test/test_catalog_gpu_details.py -koyeb/test/test_catalog_instance.py -koyeb/test/test_catalog_instance_list_item.py -koyeb/test/test_catalog_instance_usage_api.py -koyeb/test/test_catalog_instances_api.py -koyeb/test/test_catalog_regions_api.py -koyeb/test/test_catalog_usage.py -koyeb/test/test_clear_idenfy_verification_result_request.py -koyeb/test/test_compose_api.py -koyeb/test/test_compose_reply.py -koyeb/test/test_config_file.py -koyeb/test/test_confirm_payment_authorization_reply.py -koyeb/test/test_coupons_api.py -koyeb/test/test_create_access_token_reply.py -koyeb/test/test_create_access_token_request.py -koyeb/test/test_create_account_request.py -koyeb/test/test_create_app.py -koyeb/test/test_create_app_reply.py -koyeb/test/test_create_archive.py -koyeb/test/test_create_archive_reply.py -koyeb/test/test_create_budget_reply.py -koyeb/test/test_create_compose.py -koyeb/test/test_create_credential.py -koyeb/test/test_create_credential_reply.py -koyeb/test/test_create_domain.py -koyeb/test/test_create_domain_reply.py -koyeb/test/test_create_organization_invitation_reply.py -koyeb/test/test_create_organization_invitation_request.py -koyeb/test/test_create_organization_reply.py -koyeb/test/test_create_organization_request.py -koyeb/test/test_create_payment_authorization_reply.py -koyeb/test/test_create_persistent_volume_reply.py -koyeb/test/test_create_persistent_volume_request.py -koyeb/test/test_create_secret.py -koyeb/test/test_create_secret_reply.py -koyeb/test/test_create_service.py -koyeb/test/test_create_service_reply.py -koyeb/test/test_create_snapshot_reply.py -koyeb/test/test_create_snapshot_request.py -koyeb/test/test_create_stage_attempt_request.py -koyeb/test/test_credential.py -koyeb/test/test_credential_type.py -koyeb/test/test_credentials_api.py -koyeb/test/test_database_deployment_metadata.py -koyeb/test/test_database_role_password.py -koyeb/test/test_database_source.py -koyeb/test/test_database_usage.py -koyeb/test/test_database_usage_details.py -koyeb/test/test_datacenter_list_item.py -koyeb/test/test_deactivate_organization_reply.py -koyeb/test/test_deactivate_organization_request.py -koyeb/test/test_declare_stage_progress_request.py -koyeb/test/test_declare_step_progress_request.py -koyeb/test/test_decline_organization_invitation_reply.py -koyeb/test/test_delete_organization_reply.py -koyeb/test/test_delete_persistent_volume_reply.py -koyeb/test/test_delete_snapshot_reply.py -koyeb/test/test_delete_user_reply.py -koyeb/test/test_deployment.py -koyeb/test/test_deployment_database_info.py -koyeb/test/test_deployment_definition.py -koyeb/test/test_deployment_definition_type.py -koyeb/test/test_deployment_env.py -koyeb/test/test_deployment_event.py -koyeb/test/test_deployment_health_check.py -koyeb/test/test_deployment_instance_type.py -koyeb/test/test_deployment_list_item.py -koyeb/test/test_deployment_metadata.py -koyeb/test/test_deployment_neon_postgres_database_info.py -koyeb/test/test_deployment_neon_postgres_database_info_role.py -koyeb/test/test_deployment_port.py -koyeb/test/test_deployment_provisioning_info.py -koyeb/test/test_deployment_provisioning_info_stage.py -koyeb/test/test_deployment_provisioning_info_stage_build_attempt.py -koyeb/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py -koyeb/test/test_deployment_provisioning_info_stage_status.py -koyeb/test/test_deployment_proxy_port.py -koyeb/test/test_deployment_proxy_port_metadata.py -koyeb/test/test_deployment_role.py -koyeb/test/test_deployment_route.py -koyeb/test/test_deployment_scaling.py -koyeb/test/test_deployment_scaling_target.py -koyeb/test/test_deployment_scaling_target_average_cpu.py -koyeb/test/test_deployment_scaling_target_average_mem.py -koyeb/test/test_deployment_scaling_target_concurrent_requests.py -koyeb/test/test_deployment_scaling_target_requests_per_second.py -koyeb/test/test_deployment_scaling_target_requests_response_time.py -koyeb/test/test_deployment_scaling_target_sleep_idle_delay.py -koyeb/test/test_deployment_status.py -koyeb/test/test_deployment_strategy.py -koyeb/test/test_deployment_strategy_type.py -koyeb/test/test_deployment_volume.py -koyeb/test/test_deployments_api.py -koyeb/test/test_desired_deployment.py -koyeb/test/test_desired_deployment_group.py -koyeb/test/test_digital_ocean_registry_configuration.py -koyeb/test/test_discourse_auth_reply.py -koyeb/test/test_discourse_auth_request.py -koyeb/test/test_docker_builder.py -koyeb/test/test_docker_helper_api.py -koyeb/test/test_docker_hub_registry_configuration.py -koyeb/test/test_docker_source.py -koyeb/test/test_domain.py -koyeb/test/test_domain_load_balancer_koyeb.py -koyeb/test/test_domain_load_balancer_quotas.py -koyeb/test/test_domain_status.py -koyeb/test/test_domain_type.py -koyeb/test/test_domains_api.py -koyeb/test/test_domains_summary.py -koyeb/test/test_env.py -koyeb/test/test_error.py -koyeb/test/test_error_field.py -koyeb/test/test_error_with_fields.py -koyeb/test/test_exec_command_io.py -koyeb/test/test_exec_command_reply.py -koyeb/test/test_exec_command_request_body.py -koyeb/test/test_exec_command_request_id_type.py -koyeb/test/test_exec_command_request_terminal_size.py -koyeb/test/test_gcp_container_registry_configuration.py -koyeb/test/test_get_app_reply.py -koyeb/test/test_get_budget_reply.py -koyeb/test/test_get_catalog_instance_reply.py -koyeb/test/test_get_credential_reply.py -koyeb/test/test_get_deployment_reply.py -koyeb/test/test_get_deployment_scaling_reply.py -koyeb/test/test_get_deployment_scaling_reply_item.py -koyeb/test/test_get_domain_reply.py -koyeb/test/test_get_github_installation_reply.py -koyeb/test/test_get_idenfy_token_reply.py -koyeb/test/test_get_instance_reply.py -koyeb/test/test_get_intercom_profile_reply.py -koyeb/test/test_get_metrics_reply.py -koyeb/test/test_get_metrics_reply_metric.py -koyeb/test/test_get_o_auth_options_reply.py -koyeb/test/test_get_organization_invitation_reply.py -koyeb/test/test_get_organization_reply.py -koyeb/test/test_get_organization_summary_reply.py -koyeb/test/test_get_organization_usage_details_reply.py -koyeb/test/test_get_organization_usage_reply.py -koyeb/test/test_get_payment_method_reply.py -koyeb/test/test_get_persistent_volume_reply.py -koyeb/test/test_get_quotas_reply.py -koyeb/test/test_get_region_reply.py -koyeb/test/test_get_regional_deployment_reply.py -koyeb/test/test_get_secret_reply.py -koyeb/test/test_get_service_reply.py -koyeb/test/test_get_snapshot_reply.py -koyeb/test/test_get_subscription_reply.py -koyeb/test/test_get_user_organization_invitation_reply.py -koyeb/test/test_get_user_settings_reply.py -koyeb/test/test_git_deployment_metadata.py -koyeb/test/test_git_env_deployment_metadata.py -koyeb/test/test_git_hub_registry_configuration.py -koyeb/test/test_git_lab_registry_configuration.py -koyeb/test/test_git_source.py -koyeb/test/test_github_installation_reply.py -koyeb/test/test_github_installation_request.py -koyeb/test/test_google_protobuf_any.py -koyeb/test/test_google_protobuf_null_value.py -koyeb/test/test_google_rpc_status.py -koyeb/test/test_has_unpaid_invoices_reply.py -koyeb/test/test_http_header.py -koyeb/test/test_http_health_check.py -koyeb/test/test_instance.py -koyeb/test/test_instance_availability.py -koyeb/test/test_instance_event.py -koyeb/test/test_instance_list_item.py -koyeb/test/test_instance_status.py -koyeb/test/test_instance_usage.py -koyeb/test/test_instances_api.py -koyeb/test/test_instances_summary.py -koyeb/test/test_intercom_api.py -koyeb/test/test_invite_api.py -koyeb/test/test_invite_user_request.py -koyeb/test/test_kgitproxy_branch.py -koyeb/test/test_kgitproxy_git_hub_repository.py -koyeb/test/test_kgitproxy_github_installation_status.py -koyeb/test/test_kgitproxy_indexing_status.py -koyeb/test/test_kgitproxy_list_branches_reply.py -koyeb/test/test_kgitproxy_list_repositories_reply.py -koyeb/test/test_kgitproxy_repository.py -koyeb/test/test_kgitproxy_repository_provider.py -koyeb/test/test_ksearch_app.py -koyeb/test/test_ksearch_global_deployment.py -koyeb/test/test_ksearch_instance.py -koyeb/test/test_ksearch_organization.py -koyeb/test/test_ksearch_regional_deployment.py -koyeb/test/test_ksearch_search_reply.py -koyeb/test/test_ksearch_service.py -koyeb/test/test_ksearch_user.py -koyeb/test/test_list_app_events_reply.py -koyeb/test/test_list_apps_reply.py -koyeb/test/test_list_catalog_instances_reply.py -koyeb/test/test_list_credentials_reply.py -koyeb/test/test_list_datacenters_reply.py -koyeb/test/test_list_deployment_events_reply.py -koyeb/test/test_list_deployments_reply.py -koyeb/test/test_list_domains_reply.py -koyeb/test/test_list_instance_events_reply.py -koyeb/test/test_list_instances_reply.py -koyeb/test/test_list_organization_invitations_reply.py -koyeb/test/test_list_organization_members_reply.py -koyeb/test/test_list_payment_methods_reply.py -koyeb/test/test_list_persistent_volume_events_reply.py -koyeb/test/test_list_persistent_volumes_reply.py -koyeb/test/test_list_regional_deployment_events_reply.py -koyeb/test/test_list_regional_deployments_reply.py -koyeb/test/test_list_regions_reply.py -koyeb/test/test_list_secrets_reply.py -koyeb/test/test_list_service_events_reply.py -koyeb/test/test_list_services_reply.py -koyeb/test/test_list_snapshots_reply.py -koyeb/test/test_list_usage_reply.py -koyeb/test/test_list_user_organization_invitations_reply.py -koyeb/test/test_list_user_organizations_reply.py -koyeb/test/test_log_entry.py -koyeb/test/test_login_method_reply.py -koyeb/test/test_login_method_reply_method.py -koyeb/test/test_login_reply.py -koyeb/test/test_login_request.py -koyeb/test/test_logs_api.py -koyeb/test/test_manage_reply.py -koyeb/test/test_members_summary.py -koyeb/test/test_metric_name.py -koyeb/test/test_metrics_api.py -koyeb/test/test_neon_postgres_database.py -koyeb/test/test_neon_postgres_database_deployment_metadata.py -koyeb/test/test_neon_postgres_database_neon_database.py -koyeb/test/test_neon_postgres_database_neon_role.py -koyeb/test/test_neon_postgres_summary.py -koyeb/test/test_next_invoice_reply.py -koyeb/test/test_next_invoice_reply_discount.py -koyeb/test/test_next_invoice_reply_discount_type.py -koyeb/test/test_next_invoice_reply_line.py -koyeb/test/test_next_invoice_reply_line_period.py -koyeb/test/test_next_invoice_reply_line_price.py -koyeb/test/test_notification.py -koyeb/test/test_notification_list.py -koyeb/test/test_o_auth_callback_reply.py -koyeb/test/test_o_auth_callback_request.py -koyeb/test/test_o_auth_provider.py -koyeb/test/test_object.py -koyeb/test/test_organization.py -koyeb/test/test_organization_api.py -koyeb/test/test_organization_confirmations_api.py -koyeb/test/test_organization_deactivation_reason.py -koyeb/test/test_organization_detailed_status.py -koyeb/test/test_organization_invitation.py -koyeb/test/test_organization_invitation_status.py -koyeb/test/test_organization_invitations_api.py -koyeb/test/test_organization_member.py -koyeb/test/test_organization_member_status.py -koyeb/test/test_organization_members_api.py -koyeb/test/test_organization_quotas_api.py -koyeb/test/test_organization_status.py -koyeb/test/test_organization_summary.py -koyeb/test/test_payment_method.py -koyeb/test/test_payment_method_status.py -koyeb/test/test_payment_methods_api.py -koyeb/test/test_period_usage.py -koyeb/test/test_persistent_volume.py -koyeb/test/test_persistent_volume_backing_store.py -koyeb/test/test_persistent_volume_event.py -koyeb/test/test_persistent_volume_quotas.py -koyeb/test/test_persistent_volume_status.py -koyeb/test/test_persistent_volumes_api.py -koyeb/test/test_plan.py -koyeb/test/test_port.py -koyeb/test/test_private_registry_configuration.py -koyeb/test/test_profile_api.py -koyeb/test/test_provisioning_api.py -koyeb/test/test_proxy_port_protocol.py -koyeb/test/test_public_organization.py -koyeb/test/test_public_user.py -koyeb/test/test_query_logs_reply.py -koyeb/test/test_query_logs_reply_pagination.py -koyeb/test/test_quotas.py -koyeb/test/test_quotas_api.py -koyeb/test/test_reactivate_organization_reply.py -koyeb/test/test_redeem_coupon_request.py -koyeb/test/test_redeploy_reply.py -koyeb/test/test_redeploy_request_info.py -koyeb/test/test_region.py -koyeb/test/test_region_availability.py -koyeb/test/test_region_list_item.py -koyeb/test/test_region_usage.py -koyeb/test/test_regional_deployment.py -koyeb/test/test_regional_deployment_definition.py -koyeb/test/test_regional_deployment_definition_type.py -koyeb/test/test_regional_deployment_event.py -koyeb/test/test_regional_deployment_list_item.py -koyeb/test/test_regional_deployment_role.py -koyeb/test/test_regional_deployment_status.py -koyeb/test/test_regional_deployment_volume.py -koyeb/test/test_regional_deployments_api.py -koyeb/test/test_remove_organization_member_reply.py -koyeb/test/test_repositories_api.py -koyeb/test/test_resend_organization_invitation_reply.py -koyeb/test/test_reset_password_request.py -koyeb/test/test_reveal_secret_reply.py -koyeb/test/test_review_organization_capacity_reply.py -koyeb/test/test_review_organization_capacity_request.py -koyeb/test/test_route.py -koyeb/test/test_sample.py -koyeb/test/test_scale_to_zero_quotas.py -koyeb/test/test_scaling.py -koyeb/test/test_search_api.py -koyeb/test/test_secret.py -koyeb/test/test_secret_type.py -koyeb/test/test_secrets_api.py -koyeb/test/test_secrets_summary.py -koyeb/test/test_service.py -koyeb/test/test_service_event.py -koyeb/test/test_service_list_item.py -koyeb/test/test_service_state.py -koyeb/test/test_service_status.py -koyeb/test/test_service_summary.py -koyeb/test/test_service_type.py -koyeb/test/test_service_usage.py -koyeb/test/test_services_api.py -koyeb/test/test_sessions_api.py -koyeb/test/test_snapshot.py -koyeb/test/test_snapshot_status.py -koyeb/test/test_snapshot_type.py -koyeb/test/test_snapshots_api.py -koyeb/test/test_sso_api.py -koyeb/test/test_stream_result_of_exec_command_reply.py -koyeb/test/test_stream_result_of_log_entry.py -koyeb/test/test_subscription.py -koyeb/test/test_subscription_payment_failure.py -koyeb/test/test_subscription_payment_failure_stripe_sdk.py -koyeb/test/test_subscription_status.py -koyeb/test/test_subscriptions_api.py -koyeb/test/test_summary_api.py -koyeb/test/test_tcp_health_check.py -koyeb/test/test_token.py -koyeb/test/test_trigger_deployment_metadata.py -koyeb/test/test_trigger_deployment_metadata_actor_type.py -koyeb/test/test_trigger_deployment_metadata_trigger_type.py -koyeb/test/test_trigger_git_deployment_metadata.py -koyeb/test/test_trigger_git_deployment_metadata_provider.py -koyeb/test/test_update_app.py -koyeb/test/test_update_app_reply.py -koyeb/test/test_update_budget_reply.py -koyeb/test/test_update_budget_request.py -koyeb/test/test_update_credential_reply.py -koyeb/test/test_update_domain.py -koyeb/test/test_update_domain_reply.py -koyeb/test/test_update_organization_plan_reply.py -koyeb/test/test_update_organization_plan_request.py -koyeb/test/test_update_organization_reply.py -koyeb/test/test_update_password_request.py -koyeb/test/test_update_persistent_volume_reply.py -koyeb/test/test_update_persistent_volume_request.py -koyeb/test/test_update_secret_reply.py -koyeb/test/test_update_service.py -koyeb/test/test_update_service_reply.py -koyeb/test/test_update_snapshot_reply.py -koyeb/test/test_update_snapshot_request.py -koyeb/test/test_update_user_request_user_update_body.py -koyeb/test/test_update_user_settings_reply.py -koyeb/test/test_update_user_settings_request.py -koyeb/test/test_upsert_signup_qualification_reply.py -koyeb/test/test_upsert_signup_qualification_request.py -koyeb/test/test_usage.py -koyeb/test/test_usage_details.py -koyeb/test/test_usages_api.py -koyeb/test/test_user.py -koyeb/test/test_user_flags.py -koyeb/test/test_user_reply.py -koyeb/test/test_user_role_role.py -koyeb/test/test_user_settings.py -koyeb/test/test_users_api.py -koyeb/test/test_verify_docker_image_reply.py -koyeb/test/test_verify_docker_image_reply_err_code.py -koyeb_README.md +koyeb/api/api/__init__.py +koyeb/api/api/activity_api.py +koyeb/api/api/apps_api.py +koyeb/api/api/archives_api.py +koyeb/api/api/billing_api.py +koyeb/api/api/catalog_datacenters_api.py +koyeb/api/api/catalog_instance_usage_api.py +koyeb/api/api/catalog_instances_api.py +koyeb/api/api/catalog_regions_api.py +koyeb/api/api/compose_api.py +koyeb/api/api/coupons_api.py +koyeb/api/api/credentials_api.py +koyeb/api/api/deployments_api.py +koyeb/api/api/docker_helper_api.py +koyeb/api/api/domains_api.py +koyeb/api/api/instances_api.py +koyeb/api/api/intercom_api.py +koyeb/api/api/invite_api.py +koyeb/api/api/logs_api.py +koyeb/api/api/metrics_api.py +koyeb/api/api/organization_api.py +koyeb/api/api/organization_confirmations_api.py +koyeb/api/api/organization_invitations_api.py +koyeb/api/api/organization_members_api.py +koyeb/api/api/organization_quotas_api.py +koyeb/api/api/payment_methods_api.py +koyeb/api/api/persistent_volumes_api.py +koyeb/api/api/profile_api.py +koyeb/api/api/provisioning_api.py +koyeb/api/api/quotas_api.py +koyeb/api/api/regional_deployments_api.py +koyeb/api/api/repositories_api.py +koyeb/api/api/search_api.py +koyeb/api/api/secrets_api.py +koyeb/api/api/services_api.py +koyeb/api/api/sessions_api.py +koyeb/api/api/snapshots_api.py +koyeb/api/api/sso_api.py +koyeb/api/api/subscriptions_api.py +koyeb/api/api/summary_api.py +koyeb/api/api/usages_api.py +koyeb/api/api/users_api.py +koyeb/api/api_client.py +koyeb/api/api_response.py +koyeb/api/configuration.py +koyeb/api/docs/AcceptOrganizationInvitationReply.md +koyeb/api/docs/Action.md +koyeb/api/docs/Activity.md +koyeb/api/docs/ActivityApi.md +koyeb/api/docs/ActivityList.md +koyeb/api/docs/App.md +koyeb/api/docs/AppEvent.md +koyeb/api/docs/AppListItem.md +koyeb/api/docs/AppStatus.md +koyeb/api/docs/AppUsage.md +koyeb/api/docs/AppsApi.md +koyeb/api/docs/AppsSummary.md +koyeb/api/docs/Archive.md +koyeb/api/docs/ArchiveDeploymentMetadata.md +koyeb/api/docs/ArchiveSource.md +koyeb/api/docs/ArchivesApi.md +koyeb/api/docs/AutoRelease.md +koyeb/api/docs/AutoReleaseGroup.md +koyeb/api/docs/AutocompleteReply.md +koyeb/api/docs/AutocompleteRequest.md +koyeb/api/docs/AvailabilityLevel.md +koyeb/api/docs/AzureContainerRegistryConfiguration.md +koyeb/api/docs/BillingApi.md +koyeb/api/docs/Budget.md +koyeb/api/docs/BuildpackBuilder.md +koyeb/api/docs/CannyAuthReply.md +koyeb/api/docs/CatalogDatacentersApi.md +koyeb/api/docs/CatalogGPUDetails.md +koyeb/api/docs/CatalogInstance.md +koyeb/api/docs/CatalogInstanceListItem.md +koyeb/api/docs/CatalogInstanceUsageApi.md +koyeb/api/docs/CatalogInstancesApi.md +koyeb/api/docs/CatalogRegionsApi.md +koyeb/api/docs/CatalogUsage.md +koyeb/api/docs/ClearIdenfyVerificationResultRequest.md +koyeb/api/docs/ComposeApi.md +koyeb/api/docs/ComposeReply.md +koyeb/api/docs/ConfigFile.md +koyeb/api/docs/ConfirmPaymentAuthorizationReply.md +koyeb/api/docs/CouponsApi.md +koyeb/api/docs/CreateAccessTokenReply.md +koyeb/api/docs/CreateAccessTokenRequest.md +koyeb/api/docs/CreateAccountRequest.md +koyeb/api/docs/CreateApp.md +koyeb/api/docs/CreateAppReply.md +koyeb/api/docs/CreateArchive.md +koyeb/api/docs/CreateArchiveReply.md +koyeb/api/docs/CreateBudgetReply.md +koyeb/api/docs/CreateCompose.md +koyeb/api/docs/CreateCredential.md +koyeb/api/docs/CreateCredentialReply.md +koyeb/api/docs/CreateDomain.md +koyeb/api/docs/CreateDomainReply.md +koyeb/api/docs/CreateOrganizationInvitationReply.md +koyeb/api/docs/CreateOrganizationInvitationRequest.md +koyeb/api/docs/CreateOrganizationReply.md +koyeb/api/docs/CreateOrganizationRequest.md +koyeb/api/docs/CreatePaymentAuthorizationReply.md +koyeb/api/docs/CreatePersistentVolumeReply.md +koyeb/api/docs/CreatePersistentVolumeRequest.md +koyeb/api/docs/CreateSecret.md +koyeb/api/docs/CreateSecretReply.md +koyeb/api/docs/CreateService.md +koyeb/api/docs/CreateServiceReply.md +koyeb/api/docs/CreateSnapshotReply.md +koyeb/api/docs/CreateSnapshotRequest.md +koyeb/api/docs/CreateStageAttemptRequest.md +koyeb/api/docs/Credential.md +koyeb/api/docs/CredentialType.md +koyeb/api/docs/CredentialsApi.md +koyeb/api/docs/DatabaseDeploymentMetadata.md +koyeb/api/docs/DatabaseRolePassword.md +koyeb/api/docs/DatabaseSource.md +koyeb/api/docs/DatabaseUsage.md +koyeb/api/docs/DatabaseUsageDetails.md +koyeb/api/docs/DatacenterListItem.md +koyeb/api/docs/DeactivateOrganizationReply.md +koyeb/api/docs/DeactivateOrganizationRequest.md +koyeb/api/docs/DeclareStageProgressRequest.md +koyeb/api/docs/DeclareStepProgressRequest.md +koyeb/api/docs/DeclineOrganizationInvitationReply.md +koyeb/api/docs/DeleteOrganizationReply.md +koyeb/api/docs/DeletePersistentVolumeReply.md +koyeb/api/docs/DeleteSnapshotReply.md +koyeb/api/docs/DeleteUserReply.md +koyeb/api/docs/Deployment.md +koyeb/api/docs/DeploymentDatabaseInfo.md +koyeb/api/docs/DeploymentDefinition.md +koyeb/api/docs/DeploymentDefinitionType.md +koyeb/api/docs/DeploymentEnv.md +koyeb/api/docs/DeploymentEvent.md +koyeb/api/docs/DeploymentHealthCheck.md +koyeb/api/docs/DeploymentInstanceType.md +koyeb/api/docs/DeploymentListItem.md +koyeb/api/docs/DeploymentMetadata.md +koyeb/api/docs/DeploymentNeonPostgresDatabaseInfo.md +koyeb/api/docs/DeploymentNeonPostgresDatabaseInfoRole.md +koyeb/api/docs/DeploymentPort.md +koyeb/api/docs/DeploymentProvisioningInfo.md +koyeb/api/docs/DeploymentProvisioningInfoStage.md +koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttempt.md +koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md +koyeb/api/docs/DeploymentProvisioningInfoStageStatus.md +koyeb/api/docs/DeploymentProxyPort.md +koyeb/api/docs/DeploymentProxyPortMetadata.md +koyeb/api/docs/DeploymentRole.md +koyeb/api/docs/DeploymentRoute.md +koyeb/api/docs/DeploymentScaling.md +koyeb/api/docs/DeploymentScalingTarget.md +koyeb/api/docs/DeploymentScalingTargetAverageCPU.md +koyeb/api/docs/DeploymentScalingTargetAverageMem.md +koyeb/api/docs/DeploymentScalingTargetConcurrentRequests.md +koyeb/api/docs/DeploymentScalingTargetRequestsPerSecond.md +koyeb/api/docs/DeploymentScalingTargetRequestsResponseTime.md +koyeb/api/docs/DeploymentScalingTargetSleepIdleDelay.md +koyeb/api/docs/DeploymentStatus.md +koyeb/api/docs/DeploymentStrategy.md +koyeb/api/docs/DeploymentStrategyType.md +koyeb/api/docs/DeploymentVolume.md +koyeb/api/docs/DeploymentsApi.md +koyeb/api/docs/DesiredDeployment.md +koyeb/api/docs/DesiredDeploymentGroup.md +koyeb/api/docs/DigitalOceanRegistryConfiguration.md +koyeb/api/docs/DiscourseAuthReply.md +koyeb/api/docs/DiscourseAuthRequest.md +koyeb/api/docs/DockerBuilder.md +koyeb/api/docs/DockerHelperApi.md +koyeb/api/docs/DockerHubRegistryConfiguration.md +koyeb/api/docs/DockerSource.md +koyeb/api/docs/Domain.md +koyeb/api/docs/DomainLoadBalancerKoyeb.md +koyeb/api/docs/DomainLoadBalancerQuotas.md +koyeb/api/docs/DomainStatus.md +koyeb/api/docs/DomainType.md +koyeb/api/docs/DomainsApi.md +koyeb/api/docs/DomainsSummary.md +koyeb/api/docs/Env.md +koyeb/api/docs/Error.md +koyeb/api/docs/ErrorField.md +koyeb/api/docs/ErrorWithFields.md +koyeb/api/docs/ExecCommandIO.md +koyeb/api/docs/ExecCommandReply.md +koyeb/api/docs/ExecCommandRequestBody.md +koyeb/api/docs/ExecCommandRequestIdType.md +koyeb/api/docs/ExecCommandRequestTerminalSize.md +koyeb/api/docs/GCPContainerRegistryConfiguration.md +koyeb/api/docs/GetAppReply.md +koyeb/api/docs/GetBudgetReply.md +koyeb/api/docs/GetCatalogInstanceReply.md +koyeb/api/docs/GetCredentialReply.md +koyeb/api/docs/GetDeploymentReply.md +koyeb/api/docs/GetDeploymentScalingReply.md +koyeb/api/docs/GetDeploymentScalingReplyItem.md +koyeb/api/docs/GetDomainReply.md +koyeb/api/docs/GetGithubInstallationReply.md +koyeb/api/docs/GetIdenfyTokenReply.md +koyeb/api/docs/GetInstanceReply.md +koyeb/api/docs/GetIntercomProfileReply.md +koyeb/api/docs/GetMetricsReply.md +koyeb/api/docs/GetMetricsReplyMetric.md +koyeb/api/docs/GetOAuthOptionsReply.md +koyeb/api/docs/GetOrganizationInvitationReply.md +koyeb/api/docs/GetOrganizationReply.md +koyeb/api/docs/GetOrganizationSummaryReply.md +koyeb/api/docs/GetOrganizationUsageDetailsReply.md +koyeb/api/docs/GetOrganizationUsageReply.md +koyeb/api/docs/GetPaymentMethodReply.md +koyeb/api/docs/GetPersistentVolumeReply.md +koyeb/api/docs/GetQuotasReply.md +koyeb/api/docs/GetRegionReply.md +koyeb/api/docs/GetRegionalDeploymentReply.md +koyeb/api/docs/GetSecretReply.md +koyeb/api/docs/GetServiceReply.md +koyeb/api/docs/GetSnapshotReply.md +koyeb/api/docs/GetSubscriptionReply.md +koyeb/api/docs/GetUserOrganizationInvitationReply.md +koyeb/api/docs/GetUserSettingsReply.md +koyeb/api/docs/GitDeploymentMetadata.md +koyeb/api/docs/GitEnvDeploymentMetadata.md +koyeb/api/docs/GitHubRegistryConfiguration.md +koyeb/api/docs/GitLabRegistryConfiguration.md +koyeb/api/docs/GitSource.md +koyeb/api/docs/GithubInstallationReply.md +koyeb/api/docs/GithubInstallationRequest.md +koyeb/api/docs/GoogleProtobufAny.md +koyeb/api/docs/GoogleProtobufNullValue.md +koyeb/api/docs/GoogleRpcStatus.md +koyeb/api/docs/HTTPHeader.md +koyeb/api/docs/HTTPHealthCheck.md +koyeb/api/docs/HasUnpaidInvoicesReply.md +koyeb/api/docs/Instance.md +koyeb/api/docs/InstanceAvailability.md +koyeb/api/docs/InstanceEvent.md +koyeb/api/docs/InstanceListItem.md +koyeb/api/docs/InstanceStatus.md +koyeb/api/docs/InstanceUsage.md +koyeb/api/docs/InstancesApi.md +koyeb/api/docs/InstancesSummary.md +koyeb/api/docs/IntercomApi.md +koyeb/api/docs/InviteApi.md +koyeb/api/docs/InviteUserRequest.md +koyeb/api/docs/KgitproxyBranch.md +koyeb/api/docs/KgitproxyGitHubRepository.md +koyeb/api/docs/KgitproxyGithubInstallationStatus.md +koyeb/api/docs/KgitproxyIndexingStatus.md +koyeb/api/docs/KgitproxyListBranchesReply.md +koyeb/api/docs/KgitproxyListRepositoriesReply.md +koyeb/api/docs/KgitproxyRepository.md +koyeb/api/docs/KgitproxyRepositoryProvider.md +koyeb/api/docs/KsearchApp.md +koyeb/api/docs/KsearchGlobalDeployment.md +koyeb/api/docs/KsearchInstance.md +koyeb/api/docs/KsearchOrganization.md +koyeb/api/docs/KsearchRegionalDeployment.md +koyeb/api/docs/KsearchSearchReply.md +koyeb/api/docs/KsearchService.md +koyeb/api/docs/KsearchUser.md +koyeb/api/docs/ListAppEventsReply.md +koyeb/api/docs/ListAppsReply.md +koyeb/api/docs/ListCatalogInstancesReply.md +koyeb/api/docs/ListCredentialsReply.md +koyeb/api/docs/ListDatacentersReply.md +koyeb/api/docs/ListDeploymentEventsReply.md +koyeb/api/docs/ListDeploymentsReply.md +koyeb/api/docs/ListDomainsReply.md +koyeb/api/docs/ListInstanceEventsReply.md +koyeb/api/docs/ListInstancesReply.md +koyeb/api/docs/ListOrganizationInvitationsReply.md +koyeb/api/docs/ListOrganizationMembersReply.md +koyeb/api/docs/ListPaymentMethodsReply.md +koyeb/api/docs/ListPersistentVolumeEventsReply.md +koyeb/api/docs/ListPersistentVolumesReply.md +koyeb/api/docs/ListRegionalDeploymentEventsReply.md +koyeb/api/docs/ListRegionalDeploymentsReply.md +koyeb/api/docs/ListRegionsReply.md +koyeb/api/docs/ListSecretsReply.md +koyeb/api/docs/ListServiceEventsReply.md +koyeb/api/docs/ListServicesReply.md +koyeb/api/docs/ListSnapshotsReply.md +koyeb/api/docs/ListUsageReply.md +koyeb/api/docs/ListUserOrganizationInvitationsReply.md +koyeb/api/docs/ListUserOrganizationsReply.md +koyeb/api/docs/LogEntry.md +koyeb/api/docs/LoginMethodReply.md +koyeb/api/docs/LoginMethodReplyMethod.md +koyeb/api/docs/LoginReply.md +koyeb/api/docs/LoginRequest.md +koyeb/api/docs/LogsApi.md +koyeb/api/docs/ManageReply.md +koyeb/api/docs/MembersSummary.md +koyeb/api/docs/MetricName.md +koyeb/api/docs/MetricsApi.md +koyeb/api/docs/NeonPostgresDatabase.md +koyeb/api/docs/NeonPostgresDatabaseDeploymentMetadata.md +koyeb/api/docs/NeonPostgresDatabaseNeonDatabase.md +koyeb/api/docs/NeonPostgresDatabaseNeonRole.md +koyeb/api/docs/NeonPostgresSummary.md +koyeb/api/docs/NextInvoiceReply.md +koyeb/api/docs/NextInvoiceReplyDiscount.md +koyeb/api/docs/NextInvoiceReplyDiscountType.md +koyeb/api/docs/NextInvoiceReplyLine.md +koyeb/api/docs/NextInvoiceReplyLinePeriod.md +koyeb/api/docs/NextInvoiceReplyLinePrice.md +koyeb/api/docs/Notification.md +koyeb/api/docs/NotificationList.md +koyeb/api/docs/OAuthCallbackReply.md +koyeb/api/docs/OAuthCallbackRequest.md +koyeb/api/docs/OAuthProvider.md +koyeb/api/docs/Object.md +koyeb/api/docs/Organization.md +koyeb/api/docs/OrganizationApi.md +koyeb/api/docs/OrganizationConfirmationsApi.md +koyeb/api/docs/OrganizationDeactivationReason.md +koyeb/api/docs/OrganizationDetailedStatus.md +koyeb/api/docs/OrganizationInvitation.md +koyeb/api/docs/OrganizationInvitationStatus.md +koyeb/api/docs/OrganizationInvitationsApi.md +koyeb/api/docs/OrganizationMember.md +koyeb/api/docs/OrganizationMemberStatus.md +koyeb/api/docs/OrganizationMembersApi.md +koyeb/api/docs/OrganizationQuotasApi.md +koyeb/api/docs/OrganizationStatus.md +koyeb/api/docs/OrganizationSummary.md +koyeb/api/docs/PaymentMethod.md +koyeb/api/docs/PaymentMethodStatus.md +koyeb/api/docs/PaymentMethodsApi.md +koyeb/api/docs/PeriodUsage.md +koyeb/api/docs/PersistentVolume.md +koyeb/api/docs/PersistentVolumeBackingStore.md +koyeb/api/docs/PersistentVolumeEvent.md +koyeb/api/docs/PersistentVolumeQuotas.md +koyeb/api/docs/PersistentVolumeStatus.md +koyeb/api/docs/PersistentVolumesApi.md +koyeb/api/docs/Plan.md +koyeb/api/docs/Port.md +koyeb/api/docs/PrivateRegistryConfiguration.md +koyeb/api/docs/ProfileApi.md +koyeb/api/docs/ProvisioningApi.md +koyeb/api/docs/ProxyPortProtocol.md +koyeb/api/docs/PublicOrganization.md +koyeb/api/docs/PublicUser.md +koyeb/api/docs/QueryLogsReply.md +koyeb/api/docs/QueryLogsReplyPagination.md +koyeb/api/docs/Quotas.md +koyeb/api/docs/QuotasApi.md +koyeb/api/docs/ReactivateOrganizationReply.md +koyeb/api/docs/RedeemCouponRequest.md +koyeb/api/docs/RedeployReply.md +koyeb/api/docs/RedeployRequestInfo.md +koyeb/api/docs/Region.md +koyeb/api/docs/RegionAvailability.md +koyeb/api/docs/RegionListItem.md +koyeb/api/docs/RegionUsage.md +koyeb/api/docs/RegionalDeployment.md +koyeb/api/docs/RegionalDeploymentDefinition.md +koyeb/api/docs/RegionalDeploymentDefinitionType.md +koyeb/api/docs/RegionalDeploymentEvent.md +koyeb/api/docs/RegionalDeploymentListItem.md +koyeb/api/docs/RegionalDeploymentRole.md +koyeb/api/docs/RegionalDeploymentStatus.md +koyeb/api/docs/RegionalDeploymentVolume.md +koyeb/api/docs/RegionalDeploymentsApi.md +koyeb/api/docs/RemoveOrganizationMemberReply.md +koyeb/api/docs/RepositoriesApi.md +koyeb/api/docs/ResendOrganizationInvitationReply.md +koyeb/api/docs/ResetPasswordRequest.md +koyeb/api/docs/RevealSecretReply.md +koyeb/api/docs/ReviewOrganizationCapacityReply.md +koyeb/api/docs/ReviewOrganizationCapacityRequest.md +koyeb/api/docs/Route.md +koyeb/api/docs/Sample.md +koyeb/api/docs/ScaleToZeroQuotas.md +koyeb/api/docs/Scaling.md +koyeb/api/docs/SearchApi.md +koyeb/api/docs/Secret.md +koyeb/api/docs/SecretType.md +koyeb/api/docs/SecretsApi.md +koyeb/api/docs/SecretsSummary.md +koyeb/api/docs/Service.md +koyeb/api/docs/ServiceEvent.md +koyeb/api/docs/ServiceListItem.md +koyeb/api/docs/ServiceState.md +koyeb/api/docs/ServiceStatus.md +koyeb/api/docs/ServiceSummary.md +koyeb/api/docs/ServiceType.md +koyeb/api/docs/ServiceUsage.md +koyeb/api/docs/ServicesApi.md +koyeb/api/docs/SessionsApi.md +koyeb/api/docs/Snapshot.md +koyeb/api/docs/SnapshotStatus.md +koyeb/api/docs/SnapshotType.md +koyeb/api/docs/SnapshotsApi.md +koyeb/api/docs/SsoApi.md +koyeb/api/docs/StreamResultOfExecCommandReply.md +koyeb/api/docs/StreamResultOfLogEntry.md +koyeb/api/docs/Subscription.md +koyeb/api/docs/SubscriptionPaymentFailure.md +koyeb/api/docs/SubscriptionPaymentFailureStripeSDK.md +koyeb/api/docs/SubscriptionStatus.md +koyeb/api/docs/SubscriptionsApi.md +koyeb/api/docs/SummaryApi.md +koyeb/api/docs/TCPHealthCheck.md +koyeb/api/docs/Token.md +koyeb/api/docs/TriggerDeploymentMetadata.md +koyeb/api/docs/TriggerDeploymentMetadataActorType.md +koyeb/api/docs/TriggerDeploymentMetadataTriggerType.md +koyeb/api/docs/TriggerGitDeploymentMetadata.md +koyeb/api/docs/TriggerGitDeploymentMetadataProvider.md +koyeb/api/docs/UpdateApp.md +koyeb/api/docs/UpdateAppReply.md +koyeb/api/docs/UpdateBudgetReply.md +koyeb/api/docs/UpdateBudgetRequest.md +koyeb/api/docs/UpdateCredentialReply.md +koyeb/api/docs/UpdateDomain.md +koyeb/api/docs/UpdateDomainReply.md +koyeb/api/docs/UpdateOrganizationPlanReply.md +koyeb/api/docs/UpdateOrganizationPlanRequest.md +koyeb/api/docs/UpdateOrganizationReply.md +koyeb/api/docs/UpdatePasswordRequest.md +koyeb/api/docs/UpdatePersistentVolumeReply.md +koyeb/api/docs/UpdatePersistentVolumeRequest.md +koyeb/api/docs/UpdateSecretReply.md +koyeb/api/docs/UpdateService.md +koyeb/api/docs/UpdateServiceReply.md +koyeb/api/docs/UpdateSnapshotReply.md +koyeb/api/docs/UpdateSnapshotRequest.md +koyeb/api/docs/UpdateUserRequestUserUpdateBody.md +koyeb/api/docs/UpdateUserSettingsReply.md +koyeb/api/docs/UpdateUserSettingsRequest.md +koyeb/api/docs/UpsertSignupQualificationReply.md +koyeb/api/docs/UpsertSignupQualificationRequest.md +koyeb/api/docs/Usage.md +koyeb/api/docs/UsageDetails.md +koyeb/api/docs/UsagesApi.md +koyeb/api/docs/User.md +koyeb/api/docs/UserFlags.md +koyeb/api/docs/UserReply.md +koyeb/api/docs/UserRoleRole.md +koyeb/api/docs/UserSettings.md +koyeb/api/docs/UsersApi.md +koyeb/api/docs/VerifyDockerImageReply.md +koyeb/api/docs/VerifyDockerImageReplyErrCode.md +koyeb/api/exceptions.py +koyeb/api/models/__init__.py +koyeb/api/models/accept_organization_invitation_reply.py +koyeb/api/models/action.py +koyeb/api/models/activity.py +koyeb/api/models/activity_list.py +koyeb/api/models/app.py +koyeb/api/models/app_event.py +koyeb/api/models/app_list_item.py +koyeb/api/models/app_status.py +koyeb/api/models/app_usage.py +koyeb/api/models/apps_summary.py +koyeb/api/models/archive.py +koyeb/api/models/archive_deployment_metadata.py +koyeb/api/models/archive_source.py +koyeb/api/models/auto_release.py +koyeb/api/models/auto_release_group.py +koyeb/api/models/autocomplete_reply.py +koyeb/api/models/autocomplete_request.py +koyeb/api/models/availability_level.py +koyeb/api/models/azure_container_registry_configuration.py +koyeb/api/models/budget.py +koyeb/api/models/buildpack_builder.py +koyeb/api/models/canny_auth_reply.py +koyeb/api/models/catalog_gpu_details.py +koyeb/api/models/catalog_instance.py +koyeb/api/models/catalog_instance_list_item.py +koyeb/api/models/catalog_usage.py +koyeb/api/models/clear_idenfy_verification_result_request.py +koyeb/api/models/compose_reply.py +koyeb/api/models/config_file.py +koyeb/api/models/confirm_payment_authorization_reply.py +koyeb/api/models/create_access_token_reply.py +koyeb/api/models/create_access_token_request.py +koyeb/api/models/create_account_request.py +koyeb/api/models/create_app.py +koyeb/api/models/create_app_reply.py +koyeb/api/models/create_archive.py +koyeb/api/models/create_archive_reply.py +koyeb/api/models/create_budget_reply.py +koyeb/api/models/create_compose.py +koyeb/api/models/create_credential.py +koyeb/api/models/create_credential_reply.py +koyeb/api/models/create_domain.py +koyeb/api/models/create_domain_reply.py +koyeb/api/models/create_organization_invitation_reply.py +koyeb/api/models/create_organization_invitation_request.py +koyeb/api/models/create_organization_reply.py +koyeb/api/models/create_organization_request.py +koyeb/api/models/create_payment_authorization_reply.py +koyeb/api/models/create_persistent_volume_reply.py +koyeb/api/models/create_persistent_volume_request.py +koyeb/api/models/create_secret.py +koyeb/api/models/create_secret_reply.py +koyeb/api/models/create_service.py +koyeb/api/models/create_service_reply.py +koyeb/api/models/create_snapshot_reply.py +koyeb/api/models/create_snapshot_request.py +koyeb/api/models/create_stage_attempt_request.py +koyeb/api/models/credential.py +koyeb/api/models/credential_type.py +koyeb/api/models/database_deployment_metadata.py +koyeb/api/models/database_role_password.py +koyeb/api/models/database_source.py +koyeb/api/models/database_usage.py +koyeb/api/models/database_usage_details.py +koyeb/api/models/datacenter_list_item.py +koyeb/api/models/deactivate_organization_reply.py +koyeb/api/models/deactivate_organization_request.py +koyeb/api/models/declare_stage_progress_request.py +koyeb/api/models/declare_step_progress_request.py +koyeb/api/models/decline_organization_invitation_reply.py +koyeb/api/models/delete_organization_reply.py +koyeb/api/models/delete_persistent_volume_reply.py +koyeb/api/models/delete_snapshot_reply.py +koyeb/api/models/delete_user_reply.py +koyeb/api/models/deployment.py +koyeb/api/models/deployment_database_info.py +koyeb/api/models/deployment_definition.py +koyeb/api/models/deployment_definition_type.py +koyeb/api/models/deployment_env.py +koyeb/api/models/deployment_event.py +koyeb/api/models/deployment_health_check.py +koyeb/api/models/deployment_instance_type.py +koyeb/api/models/deployment_list_item.py +koyeb/api/models/deployment_metadata.py +koyeb/api/models/deployment_neon_postgres_database_info.py +koyeb/api/models/deployment_neon_postgres_database_info_role.py +koyeb/api/models/deployment_port.py +koyeb/api/models/deployment_provisioning_info.py +koyeb/api/models/deployment_provisioning_info_stage.py +koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py +koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py +koyeb/api/models/deployment_provisioning_info_stage_status.py +koyeb/api/models/deployment_proxy_port.py +koyeb/api/models/deployment_proxy_port_metadata.py +koyeb/api/models/deployment_role.py +koyeb/api/models/deployment_route.py +koyeb/api/models/deployment_scaling.py +koyeb/api/models/deployment_scaling_target.py +koyeb/api/models/deployment_scaling_target_average_cpu.py +koyeb/api/models/deployment_scaling_target_average_mem.py +koyeb/api/models/deployment_scaling_target_concurrent_requests.py +koyeb/api/models/deployment_scaling_target_requests_per_second.py +koyeb/api/models/deployment_scaling_target_requests_response_time.py +koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py +koyeb/api/models/deployment_status.py +koyeb/api/models/deployment_strategy.py +koyeb/api/models/deployment_strategy_type.py +koyeb/api/models/deployment_volume.py +koyeb/api/models/desired_deployment.py +koyeb/api/models/desired_deployment_group.py +koyeb/api/models/digital_ocean_registry_configuration.py +koyeb/api/models/discourse_auth_reply.py +koyeb/api/models/discourse_auth_request.py +koyeb/api/models/docker_builder.py +koyeb/api/models/docker_hub_registry_configuration.py +koyeb/api/models/docker_source.py +koyeb/api/models/domain.py +koyeb/api/models/domain_load_balancer_koyeb.py +koyeb/api/models/domain_load_balancer_quotas.py +koyeb/api/models/domain_status.py +koyeb/api/models/domain_type.py +koyeb/api/models/domains_summary.py +koyeb/api/models/env.py +koyeb/api/models/error.py +koyeb/api/models/error_field.py +koyeb/api/models/error_with_fields.py +koyeb/api/models/exec_command_io.py +koyeb/api/models/exec_command_reply.py +koyeb/api/models/exec_command_request_body.py +koyeb/api/models/exec_command_request_id_type.py +koyeb/api/models/exec_command_request_terminal_size.py +koyeb/api/models/gcp_container_registry_configuration.py +koyeb/api/models/get_app_reply.py +koyeb/api/models/get_budget_reply.py +koyeb/api/models/get_catalog_instance_reply.py +koyeb/api/models/get_credential_reply.py +koyeb/api/models/get_deployment_reply.py +koyeb/api/models/get_deployment_scaling_reply.py +koyeb/api/models/get_deployment_scaling_reply_item.py +koyeb/api/models/get_domain_reply.py +koyeb/api/models/get_github_installation_reply.py +koyeb/api/models/get_idenfy_token_reply.py +koyeb/api/models/get_instance_reply.py +koyeb/api/models/get_intercom_profile_reply.py +koyeb/api/models/get_metrics_reply.py +koyeb/api/models/get_metrics_reply_metric.py +koyeb/api/models/get_o_auth_options_reply.py +koyeb/api/models/get_organization_invitation_reply.py +koyeb/api/models/get_organization_reply.py +koyeb/api/models/get_organization_summary_reply.py +koyeb/api/models/get_organization_usage_details_reply.py +koyeb/api/models/get_organization_usage_reply.py +koyeb/api/models/get_payment_method_reply.py +koyeb/api/models/get_persistent_volume_reply.py +koyeb/api/models/get_quotas_reply.py +koyeb/api/models/get_region_reply.py +koyeb/api/models/get_regional_deployment_reply.py +koyeb/api/models/get_secret_reply.py +koyeb/api/models/get_service_reply.py +koyeb/api/models/get_snapshot_reply.py +koyeb/api/models/get_subscription_reply.py +koyeb/api/models/get_user_organization_invitation_reply.py +koyeb/api/models/get_user_settings_reply.py +koyeb/api/models/git_deployment_metadata.py +koyeb/api/models/git_env_deployment_metadata.py +koyeb/api/models/git_hub_registry_configuration.py +koyeb/api/models/git_lab_registry_configuration.py +koyeb/api/models/git_source.py +koyeb/api/models/github_installation_reply.py +koyeb/api/models/github_installation_request.py +koyeb/api/models/google_protobuf_any.py +koyeb/api/models/google_protobuf_null_value.py +koyeb/api/models/google_rpc_status.py +koyeb/api/models/has_unpaid_invoices_reply.py +koyeb/api/models/http_header.py +koyeb/api/models/http_health_check.py +koyeb/api/models/instance.py +koyeb/api/models/instance_availability.py +koyeb/api/models/instance_event.py +koyeb/api/models/instance_list_item.py +koyeb/api/models/instance_status.py +koyeb/api/models/instance_usage.py +koyeb/api/models/instances_summary.py +koyeb/api/models/invite_user_request.py +koyeb/api/models/kgitproxy_branch.py +koyeb/api/models/kgitproxy_git_hub_repository.py +koyeb/api/models/kgitproxy_github_installation_status.py +koyeb/api/models/kgitproxy_indexing_status.py +koyeb/api/models/kgitproxy_list_branches_reply.py +koyeb/api/models/kgitproxy_list_repositories_reply.py +koyeb/api/models/kgitproxy_repository.py +koyeb/api/models/kgitproxy_repository_provider.py +koyeb/api/models/ksearch_app.py +koyeb/api/models/ksearch_global_deployment.py +koyeb/api/models/ksearch_instance.py +koyeb/api/models/ksearch_organization.py +koyeb/api/models/ksearch_regional_deployment.py +koyeb/api/models/ksearch_search_reply.py +koyeb/api/models/ksearch_service.py +koyeb/api/models/ksearch_user.py +koyeb/api/models/list_app_events_reply.py +koyeb/api/models/list_apps_reply.py +koyeb/api/models/list_catalog_instances_reply.py +koyeb/api/models/list_credentials_reply.py +koyeb/api/models/list_datacenters_reply.py +koyeb/api/models/list_deployment_events_reply.py +koyeb/api/models/list_deployments_reply.py +koyeb/api/models/list_domains_reply.py +koyeb/api/models/list_instance_events_reply.py +koyeb/api/models/list_instances_reply.py +koyeb/api/models/list_organization_invitations_reply.py +koyeb/api/models/list_organization_members_reply.py +koyeb/api/models/list_payment_methods_reply.py +koyeb/api/models/list_persistent_volume_events_reply.py +koyeb/api/models/list_persistent_volumes_reply.py +koyeb/api/models/list_regional_deployment_events_reply.py +koyeb/api/models/list_regional_deployments_reply.py +koyeb/api/models/list_regions_reply.py +koyeb/api/models/list_secrets_reply.py +koyeb/api/models/list_service_events_reply.py +koyeb/api/models/list_services_reply.py +koyeb/api/models/list_snapshots_reply.py +koyeb/api/models/list_usage_reply.py +koyeb/api/models/list_user_organization_invitations_reply.py +koyeb/api/models/list_user_organizations_reply.py +koyeb/api/models/log_entry.py +koyeb/api/models/login_method_reply.py +koyeb/api/models/login_method_reply_method.py +koyeb/api/models/login_reply.py +koyeb/api/models/login_request.py +koyeb/api/models/manage_reply.py +koyeb/api/models/members_summary.py +koyeb/api/models/metric_name.py +koyeb/api/models/neon_postgres_database.py +koyeb/api/models/neon_postgres_database_deployment_metadata.py +koyeb/api/models/neon_postgres_database_neon_database.py +koyeb/api/models/neon_postgres_database_neon_role.py +koyeb/api/models/neon_postgres_summary.py +koyeb/api/models/next_invoice_reply.py +koyeb/api/models/next_invoice_reply_discount.py +koyeb/api/models/next_invoice_reply_discount_type.py +koyeb/api/models/next_invoice_reply_line.py +koyeb/api/models/next_invoice_reply_line_period.py +koyeb/api/models/next_invoice_reply_line_price.py +koyeb/api/models/notification.py +koyeb/api/models/notification_list.py +koyeb/api/models/o_auth_callback_reply.py +koyeb/api/models/o_auth_callback_request.py +koyeb/api/models/o_auth_provider.py +koyeb/api/models/object.py +koyeb/api/models/organization.py +koyeb/api/models/organization_deactivation_reason.py +koyeb/api/models/organization_detailed_status.py +koyeb/api/models/organization_invitation.py +koyeb/api/models/organization_invitation_status.py +koyeb/api/models/organization_member.py +koyeb/api/models/organization_member_status.py +koyeb/api/models/organization_status.py +koyeb/api/models/organization_summary.py +koyeb/api/models/payment_method.py +koyeb/api/models/payment_method_status.py +koyeb/api/models/period_usage.py +koyeb/api/models/persistent_volume.py +koyeb/api/models/persistent_volume_backing_store.py +koyeb/api/models/persistent_volume_event.py +koyeb/api/models/persistent_volume_quotas.py +koyeb/api/models/persistent_volume_status.py +koyeb/api/models/plan.py +koyeb/api/models/port.py +koyeb/api/models/private_registry_configuration.py +koyeb/api/models/proxy_port_protocol.py +koyeb/api/models/public_organization.py +koyeb/api/models/public_user.py +koyeb/api/models/query_logs_reply.py +koyeb/api/models/query_logs_reply_pagination.py +koyeb/api/models/quotas.py +koyeb/api/models/reactivate_organization_reply.py +koyeb/api/models/redeem_coupon_request.py +koyeb/api/models/redeploy_reply.py +koyeb/api/models/redeploy_request_info.py +koyeb/api/models/region.py +koyeb/api/models/region_availability.py +koyeb/api/models/region_list_item.py +koyeb/api/models/region_usage.py +koyeb/api/models/regional_deployment.py +koyeb/api/models/regional_deployment_definition.py +koyeb/api/models/regional_deployment_definition_type.py +koyeb/api/models/regional_deployment_event.py +koyeb/api/models/regional_deployment_list_item.py +koyeb/api/models/regional_deployment_role.py +koyeb/api/models/regional_deployment_status.py +koyeb/api/models/regional_deployment_volume.py +koyeb/api/models/remove_organization_member_reply.py +koyeb/api/models/resend_organization_invitation_reply.py +koyeb/api/models/reset_password_request.py +koyeb/api/models/reveal_secret_reply.py +koyeb/api/models/review_organization_capacity_reply.py +koyeb/api/models/review_organization_capacity_request.py +koyeb/api/models/route.py +koyeb/api/models/sample.py +koyeb/api/models/scale_to_zero_quotas.py +koyeb/api/models/scaling.py +koyeb/api/models/secret.py +koyeb/api/models/secret_type.py +koyeb/api/models/secrets_summary.py +koyeb/api/models/service.py +koyeb/api/models/service_event.py +koyeb/api/models/service_list_item.py +koyeb/api/models/service_state.py +koyeb/api/models/service_status.py +koyeb/api/models/service_summary.py +koyeb/api/models/service_type.py +koyeb/api/models/service_usage.py +koyeb/api/models/snapshot.py +koyeb/api/models/snapshot_status.py +koyeb/api/models/snapshot_type.py +koyeb/api/models/stream_result_of_exec_command_reply.py +koyeb/api/models/stream_result_of_log_entry.py +koyeb/api/models/subscription.py +koyeb/api/models/subscription_payment_failure.py +koyeb/api/models/subscription_payment_failure_stripe_sdk.py +koyeb/api/models/subscription_status.py +koyeb/api/models/tcp_health_check.py +koyeb/api/models/token.py +koyeb/api/models/trigger_deployment_metadata.py +koyeb/api/models/trigger_deployment_metadata_actor_type.py +koyeb/api/models/trigger_deployment_metadata_trigger_type.py +koyeb/api/models/trigger_git_deployment_metadata.py +koyeb/api/models/trigger_git_deployment_metadata_provider.py +koyeb/api/models/update_app.py +koyeb/api/models/update_app_reply.py +koyeb/api/models/update_budget_reply.py +koyeb/api/models/update_budget_request.py +koyeb/api/models/update_credential_reply.py +koyeb/api/models/update_domain.py +koyeb/api/models/update_domain_reply.py +koyeb/api/models/update_organization_plan_reply.py +koyeb/api/models/update_organization_plan_request.py +koyeb/api/models/update_organization_reply.py +koyeb/api/models/update_password_request.py +koyeb/api/models/update_persistent_volume_reply.py +koyeb/api/models/update_persistent_volume_request.py +koyeb/api/models/update_secret_reply.py +koyeb/api/models/update_service.py +koyeb/api/models/update_service_reply.py +koyeb/api/models/update_snapshot_reply.py +koyeb/api/models/update_snapshot_request.py +koyeb/api/models/update_user_request_user_update_body.py +koyeb/api/models/update_user_settings_reply.py +koyeb/api/models/update_user_settings_request.py +koyeb/api/models/upsert_signup_qualification_reply.py +koyeb/api/models/upsert_signup_qualification_request.py +koyeb/api/models/usage.py +koyeb/api/models/usage_details.py +koyeb/api/models/user.py +koyeb/api/models/user_flags.py +koyeb/api/models/user_reply.py +koyeb/api/models/user_role_role.py +koyeb/api/models/user_settings.py +koyeb/api/models/verify_docker_image_reply.py +koyeb/api/models/verify_docker_image_reply_err_code.py +koyeb/api/rest.py +koyeb/api/test/__init__.py +koyeb/api/test/test_accept_organization_invitation_reply.py +koyeb/api/test/test_action.py +koyeb/api/test/test_activity.py +koyeb/api/test/test_activity_api.py +koyeb/api/test/test_activity_list.py +koyeb/api/test/test_app.py +koyeb/api/test/test_app_event.py +koyeb/api/test/test_app_list_item.py +koyeb/api/test/test_app_status.py +koyeb/api/test/test_app_usage.py +koyeb/api/test/test_apps_api.py +koyeb/api/test/test_apps_summary.py +koyeb/api/test/test_archive.py +koyeb/api/test/test_archive_deployment_metadata.py +koyeb/api/test/test_archive_source.py +koyeb/api/test/test_archives_api.py +koyeb/api/test/test_auto_release.py +koyeb/api/test/test_auto_release_group.py +koyeb/api/test/test_autocomplete_reply.py +koyeb/api/test/test_autocomplete_request.py +koyeb/api/test/test_availability_level.py +koyeb/api/test/test_azure_container_registry_configuration.py +koyeb/api/test/test_billing_api.py +koyeb/api/test/test_budget.py +koyeb/api/test/test_buildpack_builder.py +koyeb/api/test/test_canny_auth_reply.py +koyeb/api/test/test_catalog_datacenters_api.py +koyeb/api/test/test_catalog_gpu_details.py +koyeb/api/test/test_catalog_instance.py +koyeb/api/test/test_catalog_instance_list_item.py +koyeb/api/test/test_catalog_instance_usage_api.py +koyeb/api/test/test_catalog_instances_api.py +koyeb/api/test/test_catalog_regions_api.py +koyeb/api/test/test_catalog_usage.py +koyeb/api/test/test_clear_idenfy_verification_result_request.py +koyeb/api/test/test_compose_api.py +koyeb/api/test/test_compose_reply.py +koyeb/api/test/test_config_file.py +koyeb/api/test/test_confirm_payment_authorization_reply.py +koyeb/api/test/test_coupons_api.py +koyeb/api/test/test_create_access_token_reply.py +koyeb/api/test/test_create_access_token_request.py +koyeb/api/test/test_create_account_request.py +koyeb/api/test/test_create_app.py +koyeb/api/test/test_create_app_reply.py +koyeb/api/test/test_create_archive.py +koyeb/api/test/test_create_archive_reply.py +koyeb/api/test/test_create_budget_reply.py +koyeb/api/test/test_create_compose.py +koyeb/api/test/test_create_credential.py +koyeb/api/test/test_create_credential_reply.py +koyeb/api/test/test_create_domain.py +koyeb/api/test/test_create_domain_reply.py +koyeb/api/test/test_create_organization_invitation_reply.py +koyeb/api/test/test_create_organization_invitation_request.py +koyeb/api/test/test_create_organization_reply.py +koyeb/api/test/test_create_organization_request.py +koyeb/api/test/test_create_payment_authorization_reply.py +koyeb/api/test/test_create_persistent_volume_reply.py +koyeb/api/test/test_create_persistent_volume_request.py +koyeb/api/test/test_create_secret.py +koyeb/api/test/test_create_secret_reply.py +koyeb/api/test/test_create_service.py +koyeb/api/test/test_create_service_reply.py +koyeb/api/test/test_create_snapshot_reply.py +koyeb/api/test/test_create_snapshot_request.py +koyeb/api/test/test_create_stage_attempt_request.py +koyeb/api/test/test_credential.py +koyeb/api/test/test_credential_type.py +koyeb/api/test/test_credentials_api.py +koyeb/api/test/test_database_deployment_metadata.py +koyeb/api/test/test_database_role_password.py +koyeb/api/test/test_database_source.py +koyeb/api/test/test_database_usage.py +koyeb/api/test/test_database_usage_details.py +koyeb/api/test/test_datacenter_list_item.py +koyeb/api/test/test_deactivate_organization_reply.py +koyeb/api/test/test_deactivate_organization_request.py +koyeb/api/test/test_declare_stage_progress_request.py +koyeb/api/test/test_declare_step_progress_request.py +koyeb/api/test/test_decline_organization_invitation_reply.py +koyeb/api/test/test_delete_organization_reply.py +koyeb/api/test/test_delete_persistent_volume_reply.py +koyeb/api/test/test_delete_snapshot_reply.py +koyeb/api/test/test_delete_user_reply.py +koyeb/api/test/test_deployment.py +koyeb/api/test/test_deployment_database_info.py +koyeb/api/test/test_deployment_definition.py +koyeb/api/test/test_deployment_definition_type.py +koyeb/api/test/test_deployment_env.py +koyeb/api/test/test_deployment_event.py +koyeb/api/test/test_deployment_health_check.py +koyeb/api/test/test_deployment_instance_type.py +koyeb/api/test/test_deployment_list_item.py +koyeb/api/test/test_deployment_metadata.py +koyeb/api/test/test_deployment_neon_postgres_database_info.py +koyeb/api/test/test_deployment_neon_postgres_database_info_role.py +koyeb/api/test/test_deployment_port.py +koyeb/api/test/test_deployment_provisioning_info.py +koyeb/api/test/test_deployment_provisioning_info_stage.py +koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py +koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py +koyeb/api/test/test_deployment_provisioning_info_stage_status.py +koyeb/api/test/test_deployment_proxy_port.py +koyeb/api/test/test_deployment_proxy_port_metadata.py +koyeb/api/test/test_deployment_role.py +koyeb/api/test/test_deployment_route.py +koyeb/api/test/test_deployment_scaling.py +koyeb/api/test/test_deployment_scaling_target.py +koyeb/api/test/test_deployment_scaling_target_average_cpu.py +koyeb/api/test/test_deployment_scaling_target_average_mem.py +koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py +koyeb/api/test/test_deployment_scaling_target_requests_per_second.py +koyeb/api/test/test_deployment_scaling_target_requests_response_time.py +koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py +koyeb/api/test/test_deployment_status.py +koyeb/api/test/test_deployment_strategy.py +koyeb/api/test/test_deployment_strategy_type.py +koyeb/api/test/test_deployment_volume.py +koyeb/api/test/test_deployments_api.py +koyeb/api/test/test_desired_deployment.py +koyeb/api/test/test_desired_deployment_group.py +koyeb/api/test/test_digital_ocean_registry_configuration.py +koyeb/api/test/test_discourse_auth_reply.py +koyeb/api/test/test_discourse_auth_request.py +koyeb/api/test/test_docker_builder.py +koyeb/api/test/test_docker_helper_api.py +koyeb/api/test/test_docker_hub_registry_configuration.py +koyeb/api/test/test_docker_source.py +koyeb/api/test/test_domain.py +koyeb/api/test/test_domain_load_balancer_koyeb.py +koyeb/api/test/test_domain_load_balancer_quotas.py +koyeb/api/test/test_domain_status.py +koyeb/api/test/test_domain_type.py +koyeb/api/test/test_domains_api.py +koyeb/api/test/test_domains_summary.py +koyeb/api/test/test_env.py +koyeb/api/test/test_error.py +koyeb/api/test/test_error_field.py +koyeb/api/test/test_error_with_fields.py +koyeb/api/test/test_exec_command_io.py +koyeb/api/test/test_exec_command_reply.py +koyeb/api/test/test_exec_command_request_body.py +koyeb/api/test/test_exec_command_request_id_type.py +koyeb/api/test/test_exec_command_request_terminal_size.py +koyeb/api/test/test_gcp_container_registry_configuration.py +koyeb/api/test/test_get_app_reply.py +koyeb/api/test/test_get_budget_reply.py +koyeb/api/test/test_get_catalog_instance_reply.py +koyeb/api/test/test_get_credential_reply.py +koyeb/api/test/test_get_deployment_reply.py +koyeb/api/test/test_get_deployment_scaling_reply.py +koyeb/api/test/test_get_deployment_scaling_reply_item.py +koyeb/api/test/test_get_domain_reply.py +koyeb/api/test/test_get_github_installation_reply.py +koyeb/api/test/test_get_idenfy_token_reply.py +koyeb/api/test/test_get_instance_reply.py +koyeb/api/test/test_get_intercom_profile_reply.py +koyeb/api/test/test_get_metrics_reply.py +koyeb/api/test/test_get_metrics_reply_metric.py +koyeb/api/test/test_get_o_auth_options_reply.py +koyeb/api/test/test_get_organization_invitation_reply.py +koyeb/api/test/test_get_organization_reply.py +koyeb/api/test/test_get_organization_summary_reply.py +koyeb/api/test/test_get_organization_usage_details_reply.py +koyeb/api/test/test_get_organization_usage_reply.py +koyeb/api/test/test_get_payment_method_reply.py +koyeb/api/test/test_get_persistent_volume_reply.py +koyeb/api/test/test_get_quotas_reply.py +koyeb/api/test/test_get_region_reply.py +koyeb/api/test/test_get_regional_deployment_reply.py +koyeb/api/test/test_get_secret_reply.py +koyeb/api/test/test_get_service_reply.py +koyeb/api/test/test_get_snapshot_reply.py +koyeb/api/test/test_get_subscription_reply.py +koyeb/api/test/test_get_user_organization_invitation_reply.py +koyeb/api/test/test_get_user_settings_reply.py +koyeb/api/test/test_git_deployment_metadata.py +koyeb/api/test/test_git_env_deployment_metadata.py +koyeb/api/test/test_git_hub_registry_configuration.py +koyeb/api/test/test_git_lab_registry_configuration.py +koyeb/api/test/test_git_source.py +koyeb/api/test/test_github_installation_reply.py +koyeb/api/test/test_github_installation_request.py +koyeb/api/test/test_google_protobuf_any.py +koyeb/api/test/test_google_protobuf_null_value.py +koyeb/api/test/test_google_rpc_status.py +koyeb/api/test/test_has_unpaid_invoices_reply.py +koyeb/api/test/test_http_header.py +koyeb/api/test/test_http_health_check.py +koyeb/api/test/test_instance.py +koyeb/api/test/test_instance_availability.py +koyeb/api/test/test_instance_event.py +koyeb/api/test/test_instance_list_item.py +koyeb/api/test/test_instance_status.py +koyeb/api/test/test_instance_usage.py +koyeb/api/test/test_instances_api.py +koyeb/api/test/test_instances_summary.py +koyeb/api/test/test_intercom_api.py +koyeb/api/test/test_invite_api.py +koyeb/api/test/test_invite_user_request.py +koyeb/api/test/test_kgitproxy_branch.py +koyeb/api/test/test_kgitproxy_git_hub_repository.py +koyeb/api/test/test_kgitproxy_github_installation_status.py +koyeb/api/test/test_kgitproxy_indexing_status.py +koyeb/api/test/test_kgitproxy_list_branches_reply.py +koyeb/api/test/test_kgitproxy_list_repositories_reply.py +koyeb/api/test/test_kgitproxy_repository.py +koyeb/api/test/test_kgitproxy_repository_provider.py +koyeb/api/test/test_ksearch_app.py +koyeb/api/test/test_ksearch_global_deployment.py +koyeb/api/test/test_ksearch_instance.py +koyeb/api/test/test_ksearch_organization.py +koyeb/api/test/test_ksearch_regional_deployment.py +koyeb/api/test/test_ksearch_search_reply.py +koyeb/api/test/test_ksearch_service.py +koyeb/api/test/test_ksearch_user.py +koyeb/api/test/test_list_app_events_reply.py +koyeb/api/test/test_list_apps_reply.py +koyeb/api/test/test_list_catalog_instances_reply.py +koyeb/api/test/test_list_credentials_reply.py +koyeb/api/test/test_list_datacenters_reply.py +koyeb/api/test/test_list_deployment_events_reply.py +koyeb/api/test/test_list_deployments_reply.py +koyeb/api/test/test_list_domains_reply.py +koyeb/api/test/test_list_instance_events_reply.py +koyeb/api/test/test_list_instances_reply.py +koyeb/api/test/test_list_organization_invitations_reply.py +koyeb/api/test/test_list_organization_members_reply.py +koyeb/api/test/test_list_payment_methods_reply.py +koyeb/api/test/test_list_persistent_volume_events_reply.py +koyeb/api/test/test_list_persistent_volumes_reply.py +koyeb/api/test/test_list_regional_deployment_events_reply.py +koyeb/api/test/test_list_regional_deployments_reply.py +koyeb/api/test/test_list_regions_reply.py +koyeb/api/test/test_list_secrets_reply.py +koyeb/api/test/test_list_service_events_reply.py +koyeb/api/test/test_list_services_reply.py +koyeb/api/test/test_list_snapshots_reply.py +koyeb/api/test/test_list_usage_reply.py +koyeb/api/test/test_list_user_organization_invitations_reply.py +koyeb/api/test/test_list_user_organizations_reply.py +koyeb/api/test/test_log_entry.py +koyeb/api/test/test_login_method_reply.py +koyeb/api/test/test_login_method_reply_method.py +koyeb/api/test/test_login_reply.py +koyeb/api/test/test_login_request.py +koyeb/api/test/test_logs_api.py +koyeb/api/test/test_manage_reply.py +koyeb/api/test/test_members_summary.py +koyeb/api/test/test_metric_name.py +koyeb/api/test/test_metrics_api.py +koyeb/api/test/test_neon_postgres_database.py +koyeb/api/test/test_neon_postgres_database_deployment_metadata.py +koyeb/api/test/test_neon_postgres_database_neon_database.py +koyeb/api/test/test_neon_postgres_database_neon_role.py +koyeb/api/test/test_neon_postgres_summary.py +koyeb/api/test/test_next_invoice_reply.py +koyeb/api/test/test_next_invoice_reply_discount.py +koyeb/api/test/test_next_invoice_reply_discount_type.py +koyeb/api/test/test_next_invoice_reply_line.py +koyeb/api/test/test_next_invoice_reply_line_period.py +koyeb/api/test/test_next_invoice_reply_line_price.py +koyeb/api/test/test_notification.py +koyeb/api/test/test_notification_list.py +koyeb/api/test/test_o_auth_callback_reply.py +koyeb/api/test/test_o_auth_callback_request.py +koyeb/api/test/test_o_auth_provider.py +koyeb/api/test/test_object.py +koyeb/api/test/test_organization.py +koyeb/api/test/test_organization_api.py +koyeb/api/test/test_organization_confirmations_api.py +koyeb/api/test/test_organization_deactivation_reason.py +koyeb/api/test/test_organization_detailed_status.py +koyeb/api/test/test_organization_invitation.py +koyeb/api/test/test_organization_invitation_status.py +koyeb/api/test/test_organization_invitations_api.py +koyeb/api/test/test_organization_member.py +koyeb/api/test/test_organization_member_status.py +koyeb/api/test/test_organization_members_api.py +koyeb/api/test/test_organization_quotas_api.py +koyeb/api/test/test_organization_status.py +koyeb/api/test/test_organization_summary.py +koyeb/api/test/test_payment_method.py +koyeb/api/test/test_payment_method_status.py +koyeb/api/test/test_payment_methods_api.py +koyeb/api/test/test_period_usage.py +koyeb/api/test/test_persistent_volume.py +koyeb/api/test/test_persistent_volume_backing_store.py +koyeb/api/test/test_persistent_volume_event.py +koyeb/api/test/test_persistent_volume_quotas.py +koyeb/api/test/test_persistent_volume_status.py +koyeb/api/test/test_persistent_volumes_api.py +koyeb/api/test/test_plan.py +koyeb/api/test/test_port.py +koyeb/api/test/test_private_registry_configuration.py +koyeb/api/test/test_profile_api.py +koyeb/api/test/test_provisioning_api.py +koyeb/api/test/test_proxy_port_protocol.py +koyeb/api/test/test_public_organization.py +koyeb/api/test/test_public_user.py +koyeb/api/test/test_query_logs_reply.py +koyeb/api/test/test_query_logs_reply_pagination.py +koyeb/api/test/test_quotas.py +koyeb/api/test/test_quotas_api.py +koyeb/api/test/test_reactivate_organization_reply.py +koyeb/api/test/test_redeem_coupon_request.py +koyeb/api/test/test_redeploy_reply.py +koyeb/api/test/test_redeploy_request_info.py +koyeb/api/test/test_region.py +koyeb/api/test/test_region_availability.py +koyeb/api/test/test_region_list_item.py +koyeb/api/test/test_region_usage.py +koyeb/api/test/test_regional_deployment.py +koyeb/api/test/test_regional_deployment_definition.py +koyeb/api/test/test_regional_deployment_definition_type.py +koyeb/api/test/test_regional_deployment_event.py +koyeb/api/test/test_regional_deployment_list_item.py +koyeb/api/test/test_regional_deployment_role.py +koyeb/api/test/test_regional_deployment_status.py +koyeb/api/test/test_regional_deployment_volume.py +koyeb/api/test/test_regional_deployments_api.py +koyeb/api/test/test_remove_organization_member_reply.py +koyeb/api/test/test_repositories_api.py +koyeb/api/test/test_resend_organization_invitation_reply.py +koyeb/api/test/test_reset_password_request.py +koyeb/api/test/test_reveal_secret_reply.py +koyeb/api/test/test_review_organization_capacity_reply.py +koyeb/api/test/test_review_organization_capacity_request.py +koyeb/api/test/test_route.py +koyeb/api/test/test_sample.py +koyeb/api/test/test_scale_to_zero_quotas.py +koyeb/api/test/test_scaling.py +koyeb/api/test/test_search_api.py +koyeb/api/test/test_secret.py +koyeb/api/test/test_secret_type.py +koyeb/api/test/test_secrets_api.py +koyeb/api/test/test_secrets_summary.py +koyeb/api/test/test_service.py +koyeb/api/test/test_service_event.py +koyeb/api/test/test_service_list_item.py +koyeb/api/test/test_service_state.py +koyeb/api/test/test_service_status.py +koyeb/api/test/test_service_summary.py +koyeb/api/test/test_service_type.py +koyeb/api/test/test_service_usage.py +koyeb/api/test/test_services_api.py +koyeb/api/test/test_sessions_api.py +koyeb/api/test/test_snapshot.py +koyeb/api/test/test_snapshot_status.py +koyeb/api/test/test_snapshot_type.py +koyeb/api/test/test_snapshots_api.py +koyeb/api/test/test_sso_api.py +koyeb/api/test/test_stream_result_of_exec_command_reply.py +koyeb/api/test/test_stream_result_of_log_entry.py +koyeb/api/test/test_subscription.py +koyeb/api/test/test_subscription_payment_failure.py +koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py +koyeb/api/test/test_subscription_status.py +koyeb/api/test/test_subscriptions_api.py +koyeb/api/test/test_summary_api.py +koyeb/api/test/test_tcp_health_check.py +koyeb/api/test/test_token.py +koyeb/api/test/test_trigger_deployment_metadata.py +koyeb/api/test/test_trigger_deployment_metadata_actor_type.py +koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py +koyeb/api/test/test_trigger_git_deployment_metadata.py +koyeb/api/test/test_trigger_git_deployment_metadata_provider.py +koyeb/api/test/test_update_app.py +koyeb/api/test/test_update_app_reply.py +koyeb/api/test/test_update_budget_reply.py +koyeb/api/test/test_update_budget_request.py +koyeb/api/test/test_update_credential_reply.py +koyeb/api/test/test_update_domain.py +koyeb/api/test/test_update_domain_reply.py +koyeb/api/test/test_update_organization_plan_reply.py +koyeb/api/test/test_update_organization_plan_request.py +koyeb/api/test/test_update_organization_reply.py +koyeb/api/test/test_update_password_request.py +koyeb/api/test/test_update_persistent_volume_reply.py +koyeb/api/test/test_update_persistent_volume_request.py +koyeb/api/test/test_update_secret_reply.py +koyeb/api/test/test_update_service.py +koyeb/api/test/test_update_service_reply.py +koyeb/api/test/test_update_snapshot_reply.py +koyeb/api/test/test_update_snapshot_request.py +koyeb/api/test/test_update_user_request_user_update_body.py +koyeb/api/test/test_update_user_settings_reply.py +koyeb/api/test/test_update_user_settings_request.py +koyeb/api/test/test_upsert_signup_qualification_reply.py +koyeb/api/test/test_upsert_signup_qualification_request.py +koyeb/api/test/test_usage.py +koyeb/api/test/test_usage_details.py +koyeb/api/test/test_usages_api.py +koyeb/api/test/test_user.py +koyeb/api/test/test_user_flags.py +koyeb/api/test/test_user_reply.py +koyeb/api/test/test_user_role_role.py +koyeb/api/test/test_user_settings.py +koyeb/api/test/test_users_api.py +koyeb/api/test/test_verify_docker_image_reply.py +koyeb/api/test/test_verify_docker_image_reply_err_code.py +koyeb/api_README.md diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index e465da43..9e0e9bce 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.14.0 +7.17.0-SNAPSHOT diff --git a/Makefile b/Makefile index a2819d3f..ce8074f4 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,9 @@ OPENAPI_GENERATOR_VERSION?=latest PACKAGE_VERSION?=1.0.0 -.PHONY: gen -gen: clean - docker run --rm -v `pwd`:/builder openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} generate --git-user-id ${GIT_USER_ID} --git-repo-id ${GIT_REPO_ID} -i /builder/spec/openapi.json -g python -o /builder --package-name koyeb --additional-properties packageVersion=${PACKAGE_VERSION} --additional-properties licenseInfo="Apache-2.0" --additional-properties generateSourceCodeOnly=true - -.PHONY: clean -clean: - rm -rf koyeb +.PHONY: gen-api-client +gen-api-client: + docker run --rm -v `pwd`/spec:/spec -v `pwd`:/builder openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} generate --git-user-id ${GIT_USER_ID} --git-repo-id ${GIT_REPO_ID} -i /spec/openapi.json -g python -o /builder --package-name koyeb.api --additional-properties packageVersion=${PACKAGE_VERSION} --additional-properties licenseInfo="Apache-2.0" --additional-properties generateSourceCodeOnly=true .PHONY: format format: diff --git a/koyeb/__init__.py b/koyeb/__init__.py index 0d6ea354..e69de29b 100644 --- a/koyeb/__init__.py +++ b/koyeb/__init__.py @@ -1,1225 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -__version__ = "1.0.0" - -# Define package exports -__all__ = [ - "AppsApi", - "ArchivesApi", - "CatalogDatacentersApi", - "CatalogInstanceUsageApi", - "CatalogInstancesApi", - "CatalogRegionsApi", - "ComposeApi", - "CouponsApi", - "CredentialsApi", - "DeploymentsApi", - "DockerHelperApi", - "DomainsApi", - "InstancesApi", - "IntercomApi", - "LogsApi", - "MetricsApi", - "OrganizationConfirmationsApi", - "OrganizationInvitationsApi", - "OrganizationMembersApi", - "OrganizationQuotasApi", - "PaymentMethodsApi", - "PersistentVolumesApi", - "ProfileApi", - "ProvisioningApi", - "QuotasApi", - "RegionalDeploymentsApi", - "RepositoriesApi", - "SearchApi", - "SecretsApi", - "ServicesApi", - "SessionsApi", - "SnapshotsApi", - "SubscriptionsApi", - "SummaryApi", - "UsagesApi", - "UsersApi", - "ActivityApi", - "BillingApi", - "InviteApi", - "OrganizationApi", - "SsoApi", - "ApiResponse", - "ApiClient", - "Configuration", - "OpenApiException", - "ApiTypeError", - "ApiValueError", - "ApiKeyError", - "ApiAttributeError", - "ApiException", - "AcceptOrganizationInvitationReply", - "Action", - "Activity", - "ActivityList", - "App", - "AppEvent", - "AppListItem", - "AppStatus", - "AppUsage", - "AppsSummary", - "Archive", - "ArchiveDeploymentMetadata", - "ArchiveSource", - "AutoRelease", - "AutoReleaseGroup", - "AutocompleteReply", - "AutocompleteRequest", - "AvailabilityLevel", - "AzureContainerRegistryConfiguration", - "Budget", - "BuildpackBuilder", - "CannyAuthReply", - "CatalogGPUDetails", - "CatalogInstance", - "CatalogInstanceListItem", - "CatalogUsage", - "ClearIdenfyVerificationResultRequest", - "ComposeReply", - "ConfigFile", - "ConfirmPaymentAuthorizationReply", - "CreateAccessTokenReply", - "CreateAccessTokenRequest", - "CreateAccountRequest", - "CreateApp", - "CreateAppReply", - "CreateArchive", - "CreateArchiveReply", - "CreateBudgetReply", - "CreateCompose", - "CreateCredential", - "CreateCredentialReply", - "CreateDomain", - "CreateDomainReply", - "CreateOrganizationInvitationReply", - "CreateOrganizationInvitationRequest", - "CreateOrganizationReply", - "CreateOrganizationRequest", - "CreatePaymentAuthorizationReply", - "CreatePersistentVolumeReply", - "CreatePersistentVolumeRequest", - "CreateSecret", - "CreateSecretReply", - "CreateService", - "CreateServiceReply", - "CreateSnapshotReply", - "CreateSnapshotRequest", - "CreateStageAttemptRequest", - "Credential", - "CredentialType", - "DatabaseDeploymentMetadata", - "DatabaseRolePassword", - "DatabaseSource", - "DatabaseUsage", - "DatabaseUsageDetails", - "DatacenterListItem", - "DeactivateOrganizationReply", - "DeactivateOrganizationRequest", - "DeclareStageProgressRequest", - "DeclareStepProgressRequest", - "DeclineOrganizationInvitationReply", - "DeleteOrganizationReply", - "DeletePersistentVolumeReply", - "DeleteSnapshotReply", - "DeleteUserReply", - "Deployment", - "DeploymentDatabaseInfo", - "DeploymentDefinition", - "DeploymentDefinitionType", - "DeploymentEnv", - "DeploymentEvent", - "DeploymentHealthCheck", - "DeploymentInstanceType", - "DeploymentListItem", - "DeploymentMetadata", - "DeploymentNeonPostgresDatabaseInfo", - "DeploymentNeonPostgresDatabaseInfoRole", - "DeploymentPort", - "DeploymentProvisioningInfo", - "DeploymentProvisioningInfoStage", - "DeploymentProvisioningInfoStageBuildAttempt", - "DeploymentProvisioningInfoStageBuildAttemptBuildStep", - "DeploymentProvisioningInfoStageStatus", - "DeploymentProxyPort", - "DeploymentProxyPortMetadata", - "DeploymentRole", - "DeploymentRoute", - "DeploymentScaling", - "DeploymentScalingTarget", - "DeploymentScalingTargetAverageCPU", - "DeploymentScalingTargetAverageMem", - "DeploymentScalingTargetConcurrentRequests", - "DeploymentScalingTargetRequestsPerSecond", - "DeploymentScalingTargetRequestsResponseTime", - "DeploymentScalingTargetSleepIdleDelay", - "DeploymentStatus", - "DeploymentStrategy", - "DeploymentStrategyType", - "DeploymentVolume", - "DesiredDeployment", - "DesiredDeploymentGroup", - "DigitalOceanRegistryConfiguration", - "DiscourseAuthReply", - "DiscourseAuthRequest", - "DockerBuilder", - "DockerHubRegistryConfiguration", - "DockerSource", - "Domain", - "DomainLoadBalancerKoyeb", - "DomainLoadBalancerQuotas", - "DomainStatus", - "DomainType", - "DomainsSummary", - "Env", - "Error", - "ErrorField", - "ErrorWithFields", - "ExecCommandIO", - "ExecCommandReply", - "ExecCommandRequestBody", - "ExecCommandRequestIdType", - "ExecCommandRequestTerminalSize", - "GCPContainerRegistryConfiguration", - "GetAppReply", - "GetBudgetReply", - "GetCatalogInstanceReply", - "GetCredentialReply", - "GetDeploymentReply", - "GetDeploymentScalingReply", - "GetDeploymentScalingReplyItem", - "GetDomainReply", - "GetGithubInstallationReply", - "GetIdenfyTokenReply", - "GetInstanceReply", - "GetIntercomProfileReply", - "GetMetricsReply", - "GetMetricsReplyMetric", - "GetOAuthOptionsReply", - "GetOrganizationInvitationReply", - "GetOrganizationReply", - "GetOrganizationSummaryReply", - "GetOrganizationUsageDetailsReply", - "GetOrganizationUsageReply", - "GetPaymentMethodReply", - "GetPersistentVolumeReply", - "GetQuotasReply", - "GetRegionReply", - "GetRegionalDeploymentReply", - "GetSecretReply", - "GetServiceReply", - "GetSnapshotReply", - "GetSubscriptionReply", - "GetUserOrganizationInvitationReply", - "GetUserSettingsReply", - "GitDeploymentMetadata", - "GitEnvDeploymentMetadata", - "GitHubRegistryConfiguration", - "GitLabRegistryConfiguration", - "GitSource", - "GithubInstallationReply", - "GithubInstallationRequest", - "GoogleProtobufAny", - "GoogleProtobufNullValue", - "GoogleRpcStatus", - "HTTPHeader", - "HTTPHealthCheck", - "HasUnpaidInvoicesReply", - "Instance", - "InstanceAvailability", - "InstanceEvent", - "InstanceListItem", - "InstanceStatus", - "InstanceUsage", - "InstancesSummary", - "InviteUserRequest", - "KgitproxyBranch", - "KgitproxyGitHubRepository", - "KgitproxyGithubInstallationStatus", - "KgitproxyIndexingStatus", - "KgitproxyListBranchesReply", - "KgitproxyListRepositoriesReply", - "KgitproxyRepository", - "KgitproxyRepositoryProvider", - "KsearchApp", - "KsearchGlobalDeployment", - "KsearchInstance", - "KsearchOrganization", - "KsearchRegionalDeployment", - "KsearchSearchReply", - "KsearchService", - "KsearchUser", - "ListAppEventsReply", - "ListAppsReply", - "ListCatalogInstancesReply", - "ListCredentialsReply", - "ListDatacentersReply", - "ListDeploymentEventsReply", - "ListDeploymentsReply", - "ListDomainsReply", - "ListInstanceEventsReply", - "ListInstancesReply", - "ListOrganizationInvitationsReply", - "ListOrganizationMembersReply", - "ListPaymentMethodsReply", - "ListPersistentVolumeEventsReply", - "ListPersistentVolumesReply", - "ListRegionalDeploymentEventsReply", - "ListRegionalDeploymentsReply", - "ListRegionsReply", - "ListSecretsReply", - "ListServiceEventsReply", - "ListServicesReply", - "ListSnapshotsReply", - "ListUsageReply", - "ListUserOrganizationInvitationsReply", - "ListUserOrganizationsReply", - "LogEntry", - "LoginMethodReply", - "LoginMethodReplyMethod", - "LoginReply", - "LoginRequest", - "ManageReply", - "MembersSummary", - "MetricName", - "NeonPostgresDatabase", - "NeonPostgresDatabaseDeploymentMetadata", - "NeonPostgresDatabaseNeonDatabase", - "NeonPostgresDatabaseNeonRole", - "NeonPostgresSummary", - "NextInvoiceReply", - "NextInvoiceReplyDiscount", - "NextInvoiceReplyDiscountType", - "NextInvoiceReplyLine", - "NextInvoiceReplyLinePeriod", - "NextInvoiceReplyLinePrice", - "Notification", - "NotificationList", - "OAuthCallbackReply", - "OAuthCallbackRequest", - "OAuthProvider", - "Object", - "Organization", - "OrganizationDeactivationReason", - "OrganizationDetailedStatus", - "OrganizationInvitation", - "OrganizationInvitationStatus", - "OrganizationMember", - "OrganizationMemberStatus", - "OrganizationStatus", - "OrganizationSummary", - "PaymentMethod", - "PaymentMethodStatus", - "PeriodUsage", - "PersistentVolume", - "PersistentVolumeBackingStore", - "PersistentVolumeEvent", - "PersistentVolumeQuotas", - "PersistentVolumeStatus", - "Plan", - "Port", - "PrivateRegistryConfiguration", - "ProxyPortProtocol", - "PublicOrganization", - "PublicUser", - "QueryLogsReply", - "QueryLogsReplyPagination", - "Quotas", - "ReactivateOrganizationReply", - "RedeemCouponRequest", - "RedeployReply", - "RedeployRequestInfo", - "Region", - "RegionAvailability", - "RegionListItem", - "RegionUsage", - "RegionalDeployment", - "RegionalDeploymentDefinition", - "RegionalDeploymentDefinitionType", - "RegionalDeploymentEvent", - "RegionalDeploymentListItem", - "RegionalDeploymentRole", - "RegionalDeploymentStatus", - "RegionalDeploymentVolume", - "RemoveOrganizationMemberReply", - "ResendOrganizationInvitationReply", - "ResetPasswordRequest", - "RevealSecretReply", - "ReviewOrganizationCapacityReply", - "ReviewOrganizationCapacityRequest", - "Route", - "Sample", - "ScaleToZeroQuotas", - "Scaling", - "Secret", - "SecretType", - "SecretsSummary", - "Service", - "ServiceEvent", - "ServiceListItem", - "ServiceState", - "ServiceStatus", - "ServiceSummary", - "ServiceType", - "ServiceUsage", - "Snapshot", - "SnapshotStatus", - "SnapshotType", - "StreamResultOfExecCommandReply", - "StreamResultOfLogEntry", - "Subscription", - "SubscriptionPaymentFailure", - "SubscriptionPaymentFailureStripeSDK", - "SubscriptionStatus", - "TCPHealthCheck", - "Token", - "TriggerDeploymentMetadata", - "TriggerDeploymentMetadataActorType", - "TriggerDeploymentMetadataTriggerType", - "TriggerGitDeploymentMetadata", - "TriggerGitDeploymentMetadataProvider", - "UpdateApp", - "UpdateAppReply", - "UpdateBudgetReply", - "UpdateBudgetRequest", - "UpdateCredentialReply", - "UpdateDomain", - "UpdateDomainReply", - "UpdateOrganizationPlanReply", - "UpdateOrganizationPlanRequest", - "UpdateOrganizationReply", - "UpdatePasswordRequest", - "UpdatePersistentVolumeReply", - "UpdatePersistentVolumeRequest", - "UpdateSecretReply", - "UpdateService", - "UpdateServiceReply", - "UpdateSnapshotReply", - "UpdateSnapshotRequest", - "UpdateUserRequestUserUpdateBody", - "UpdateUserSettingsReply", - "UpdateUserSettingsRequest", - "UpsertSignupQualificationReply", - "UpsertSignupQualificationRequest", - "Usage", - "UsageDetails", - "User", - "UserFlags", - "UserReply", - "UserRoleRole", - "UserSettings", - "VerifyDockerImageReply", - "VerifyDockerImageReplyErrCode", -] - -# import apis into sdk package -from koyeb.api.apps_api import AppsApi as AppsApi -from koyeb.api.archives_api import ArchivesApi as ArchivesApi -from koyeb.api.catalog_datacenters_api import ( - CatalogDatacentersApi as CatalogDatacentersApi, -) -from koyeb.api.catalog_instance_usage_api import ( - CatalogInstanceUsageApi as CatalogInstanceUsageApi, -) -from koyeb.api.catalog_instances_api import CatalogInstancesApi as CatalogInstancesApi -from koyeb.api.catalog_regions_api import CatalogRegionsApi as CatalogRegionsApi -from koyeb.api.compose_api import ComposeApi as ComposeApi -from koyeb.api.coupons_api import CouponsApi as CouponsApi -from koyeb.api.credentials_api import CredentialsApi as CredentialsApi -from koyeb.api.deployments_api import DeploymentsApi as DeploymentsApi -from koyeb.api.docker_helper_api import DockerHelperApi as DockerHelperApi -from koyeb.api.domains_api import DomainsApi as DomainsApi -from koyeb.api.instances_api import InstancesApi as InstancesApi -from koyeb.api.intercom_api import IntercomApi as IntercomApi -from koyeb.api.logs_api import LogsApi as LogsApi -from koyeb.api.metrics_api import MetricsApi as MetricsApi -from koyeb.api.organization_confirmations_api import ( - OrganizationConfirmationsApi as OrganizationConfirmationsApi, -) -from koyeb.api.organization_invitations_api import ( - OrganizationInvitationsApi as OrganizationInvitationsApi, -) -from koyeb.api.organization_members_api import ( - OrganizationMembersApi as OrganizationMembersApi, -) -from koyeb.api.organization_quotas_api import ( - OrganizationQuotasApi as OrganizationQuotasApi, -) -from koyeb.api.payment_methods_api import PaymentMethodsApi as PaymentMethodsApi -from koyeb.api.persistent_volumes_api import ( - PersistentVolumesApi as PersistentVolumesApi, -) -from koyeb.api.profile_api import ProfileApi as ProfileApi -from koyeb.api.provisioning_api import ProvisioningApi as ProvisioningApi -from koyeb.api.quotas_api import QuotasApi as QuotasApi -from koyeb.api.regional_deployments_api import ( - RegionalDeploymentsApi as RegionalDeploymentsApi, -) -from koyeb.api.repositories_api import RepositoriesApi as RepositoriesApi -from koyeb.api.search_api import SearchApi as SearchApi -from koyeb.api.secrets_api import SecretsApi as SecretsApi -from koyeb.api.services_api import ServicesApi as ServicesApi -from koyeb.api.sessions_api import SessionsApi as SessionsApi -from koyeb.api.snapshots_api import SnapshotsApi as SnapshotsApi -from koyeb.api.subscriptions_api import SubscriptionsApi as SubscriptionsApi -from koyeb.api.summary_api import SummaryApi as SummaryApi -from koyeb.api.usages_api import UsagesApi as UsagesApi -from koyeb.api.users_api import UsersApi as UsersApi -from koyeb.api.activity_api import ActivityApi as ActivityApi -from koyeb.api.billing_api import BillingApi as BillingApi -from koyeb.api.invite_api import InviteApi as InviteApi -from koyeb.api.organization_api import OrganizationApi as OrganizationApi -from koyeb.api.sso_api import SsoApi as SsoApi - -# import ApiClient -from koyeb.api_response import ApiResponse as ApiResponse -from koyeb.api_client import ApiClient as ApiClient -from koyeb.configuration import Configuration as Configuration -from koyeb.exceptions import OpenApiException as OpenApiException -from koyeb.exceptions import ApiTypeError as ApiTypeError -from koyeb.exceptions import ApiValueError as ApiValueError -from koyeb.exceptions import ApiKeyError as ApiKeyError -from koyeb.exceptions import ApiAttributeError as ApiAttributeError -from koyeb.exceptions import ApiException as ApiException - -# import models into sdk package -from koyeb.models.accept_organization_invitation_reply import ( - AcceptOrganizationInvitationReply as AcceptOrganizationInvitationReply, -) -from koyeb.models.action import Action as Action -from koyeb.models.activity import Activity as Activity -from koyeb.models.activity_list import ActivityList as ActivityList -from koyeb.models.app import App as App -from koyeb.models.app_event import AppEvent as AppEvent -from koyeb.models.app_list_item import AppListItem as AppListItem -from koyeb.models.app_status import AppStatus as AppStatus -from koyeb.models.app_usage import AppUsage as AppUsage -from koyeb.models.apps_summary import AppsSummary as AppsSummary -from koyeb.models.archive import Archive as Archive -from koyeb.models.archive_deployment_metadata import ( - ArchiveDeploymentMetadata as ArchiveDeploymentMetadata, -) -from koyeb.models.archive_source import ArchiveSource as ArchiveSource -from koyeb.models.auto_release import AutoRelease as AutoRelease -from koyeb.models.auto_release_group import AutoReleaseGroup as AutoReleaseGroup -from koyeb.models.autocomplete_reply import AutocompleteReply as AutocompleteReply -from koyeb.models.autocomplete_request import AutocompleteRequest as AutocompleteRequest -from koyeb.models.availability_level import AvailabilityLevel as AvailabilityLevel -from koyeb.models.azure_container_registry_configuration import ( - AzureContainerRegistryConfiguration as AzureContainerRegistryConfiguration, -) -from koyeb.models.budget import Budget as Budget -from koyeb.models.buildpack_builder import BuildpackBuilder as BuildpackBuilder -from koyeb.models.canny_auth_reply import CannyAuthReply as CannyAuthReply -from koyeb.models.catalog_gpu_details import CatalogGPUDetails as CatalogGPUDetails -from koyeb.models.catalog_instance import CatalogInstance as CatalogInstance -from koyeb.models.catalog_instance_list_item import ( - CatalogInstanceListItem as CatalogInstanceListItem, -) -from koyeb.models.catalog_usage import CatalogUsage as CatalogUsage -from koyeb.models.clear_idenfy_verification_result_request import ( - ClearIdenfyVerificationResultRequest as ClearIdenfyVerificationResultRequest, -) -from koyeb.models.compose_reply import ComposeReply as ComposeReply -from koyeb.models.config_file import ConfigFile as ConfigFile -from koyeb.models.confirm_payment_authorization_reply import ( - ConfirmPaymentAuthorizationReply as ConfirmPaymentAuthorizationReply, -) -from koyeb.models.create_access_token_reply import ( - CreateAccessTokenReply as CreateAccessTokenReply, -) -from koyeb.models.create_access_token_request import ( - CreateAccessTokenRequest as CreateAccessTokenRequest, -) -from koyeb.models.create_account_request import ( - CreateAccountRequest as CreateAccountRequest, -) -from koyeb.models.create_app import CreateApp as CreateApp -from koyeb.models.create_app_reply import CreateAppReply as CreateAppReply -from koyeb.models.create_archive import CreateArchive as CreateArchive -from koyeb.models.create_archive_reply import CreateArchiveReply as CreateArchiveReply -from koyeb.models.create_budget_reply import CreateBudgetReply as CreateBudgetReply -from koyeb.models.create_compose import CreateCompose as CreateCompose -from koyeb.models.create_credential import CreateCredential as CreateCredential -from koyeb.models.create_credential_reply import ( - CreateCredentialReply as CreateCredentialReply, -) -from koyeb.models.create_domain import CreateDomain as CreateDomain -from koyeb.models.create_domain_reply import CreateDomainReply as CreateDomainReply -from koyeb.models.create_organization_invitation_reply import ( - CreateOrganizationInvitationReply as CreateOrganizationInvitationReply, -) -from koyeb.models.create_organization_invitation_request import ( - CreateOrganizationInvitationRequest as CreateOrganizationInvitationRequest, -) -from koyeb.models.create_organization_reply import ( - CreateOrganizationReply as CreateOrganizationReply, -) -from koyeb.models.create_organization_request import ( - CreateOrganizationRequest as CreateOrganizationRequest, -) -from koyeb.models.create_payment_authorization_reply import ( - CreatePaymentAuthorizationReply as CreatePaymentAuthorizationReply, -) -from koyeb.models.create_persistent_volume_reply import ( - CreatePersistentVolumeReply as CreatePersistentVolumeReply, -) -from koyeb.models.create_persistent_volume_request import ( - CreatePersistentVolumeRequest as CreatePersistentVolumeRequest, -) -from koyeb.models.create_secret import CreateSecret as CreateSecret -from koyeb.models.create_secret_reply import CreateSecretReply as CreateSecretReply -from koyeb.models.create_service import CreateService as CreateService -from koyeb.models.create_service_reply import CreateServiceReply as CreateServiceReply -from koyeb.models.create_snapshot_reply import ( - CreateSnapshotReply as CreateSnapshotReply, -) -from koyeb.models.create_snapshot_request import ( - CreateSnapshotRequest as CreateSnapshotRequest, -) -from koyeb.models.create_stage_attempt_request import ( - CreateStageAttemptRequest as CreateStageAttemptRequest, -) -from koyeb.models.credential import Credential as Credential -from koyeb.models.credential_type import CredentialType as CredentialType -from koyeb.models.database_deployment_metadata import ( - DatabaseDeploymentMetadata as DatabaseDeploymentMetadata, -) -from koyeb.models.database_role_password import ( - DatabaseRolePassword as DatabaseRolePassword, -) -from koyeb.models.database_source import DatabaseSource as DatabaseSource -from koyeb.models.database_usage import DatabaseUsage as DatabaseUsage -from koyeb.models.database_usage_details import ( - DatabaseUsageDetails as DatabaseUsageDetails, -) -from koyeb.models.datacenter_list_item import DatacenterListItem as DatacenterListItem -from koyeb.models.deactivate_organization_reply import ( - DeactivateOrganizationReply as DeactivateOrganizationReply, -) -from koyeb.models.deactivate_organization_request import ( - DeactivateOrganizationRequest as DeactivateOrganizationRequest, -) -from koyeb.models.declare_stage_progress_request import ( - DeclareStageProgressRequest as DeclareStageProgressRequest, -) -from koyeb.models.declare_step_progress_request import ( - DeclareStepProgressRequest as DeclareStepProgressRequest, -) -from koyeb.models.decline_organization_invitation_reply import ( - DeclineOrganizationInvitationReply as DeclineOrganizationInvitationReply, -) -from koyeb.models.delete_organization_reply import ( - DeleteOrganizationReply as DeleteOrganizationReply, -) -from koyeb.models.delete_persistent_volume_reply import ( - DeletePersistentVolumeReply as DeletePersistentVolumeReply, -) -from koyeb.models.delete_snapshot_reply import ( - DeleteSnapshotReply as DeleteSnapshotReply, -) -from koyeb.models.delete_user_reply import DeleteUserReply as DeleteUserReply -from koyeb.models.deployment import Deployment as Deployment -from koyeb.models.deployment_database_info import ( - DeploymentDatabaseInfo as DeploymentDatabaseInfo, -) -from koyeb.models.deployment_definition import ( - DeploymentDefinition as DeploymentDefinition, -) -from koyeb.models.deployment_definition_type import ( - DeploymentDefinitionType as DeploymentDefinitionType, -) -from koyeb.models.deployment_env import DeploymentEnv as DeploymentEnv -from koyeb.models.deployment_event import DeploymentEvent as DeploymentEvent -from koyeb.models.deployment_health_check import ( - DeploymentHealthCheck as DeploymentHealthCheck, -) -from koyeb.models.deployment_instance_type import ( - DeploymentInstanceType as DeploymentInstanceType, -) -from koyeb.models.deployment_list_item import DeploymentListItem as DeploymentListItem -from koyeb.models.deployment_metadata import DeploymentMetadata as DeploymentMetadata -from koyeb.models.deployment_neon_postgres_database_info import ( - DeploymentNeonPostgresDatabaseInfo as DeploymentNeonPostgresDatabaseInfo, -) -from koyeb.models.deployment_neon_postgres_database_info_role import ( - DeploymentNeonPostgresDatabaseInfoRole as DeploymentNeonPostgresDatabaseInfoRole, -) -from koyeb.models.deployment_port import DeploymentPort as DeploymentPort -from koyeb.models.deployment_provisioning_info import ( - DeploymentProvisioningInfo as DeploymentProvisioningInfo, -) -from koyeb.models.deployment_provisioning_info_stage import ( - DeploymentProvisioningInfoStage as DeploymentProvisioningInfoStage, -) -from koyeb.models.deployment_provisioning_info_stage_build_attempt import ( - DeploymentProvisioningInfoStageBuildAttempt as DeploymentProvisioningInfoStageBuildAttempt, -) -from koyeb.models.deployment_provisioning_info_stage_build_attempt_build_step import ( - DeploymentProvisioningInfoStageBuildAttemptBuildStep as DeploymentProvisioningInfoStageBuildAttemptBuildStep, -) -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus as DeploymentProvisioningInfoStageStatus, -) -from koyeb.models.deployment_proxy_port import ( - DeploymentProxyPort as DeploymentProxyPort, -) -from koyeb.models.deployment_proxy_port_metadata import ( - DeploymentProxyPortMetadata as DeploymentProxyPortMetadata, -) -from koyeb.models.deployment_role import DeploymentRole as DeploymentRole -from koyeb.models.deployment_route import DeploymentRoute as DeploymentRoute -from koyeb.models.deployment_scaling import DeploymentScaling as DeploymentScaling -from koyeb.models.deployment_scaling_target import ( - DeploymentScalingTarget as DeploymentScalingTarget, -) -from koyeb.models.deployment_scaling_target_average_cpu import ( - DeploymentScalingTargetAverageCPU as DeploymentScalingTargetAverageCPU, -) -from koyeb.models.deployment_scaling_target_average_mem import ( - DeploymentScalingTargetAverageMem as DeploymentScalingTargetAverageMem, -) -from koyeb.models.deployment_scaling_target_concurrent_requests import ( - DeploymentScalingTargetConcurrentRequests as DeploymentScalingTargetConcurrentRequests, -) -from koyeb.models.deployment_scaling_target_requests_per_second import ( - DeploymentScalingTargetRequestsPerSecond as DeploymentScalingTargetRequestsPerSecond, -) -from koyeb.models.deployment_scaling_target_requests_response_time import ( - DeploymentScalingTargetRequestsResponseTime as DeploymentScalingTargetRequestsResponseTime, -) -from koyeb.models.deployment_scaling_target_sleep_idle_delay import ( - DeploymentScalingTargetSleepIdleDelay as DeploymentScalingTargetSleepIdleDelay, -) -from koyeb.models.deployment_status import DeploymentStatus as DeploymentStatus -from koyeb.models.deployment_strategy import DeploymentStrategy as DeploymentStrategy -from koyeb.models.deployment_strategy_type import ( - DeploymentStrategyType as DeploymentStrategyType, -) -from koyeb.models.deployment_volume import DeploymentVolume as DeploymentVolume -from koyeb.models.desired_deployment import DesiredDeployment as DesiredDeployment -from koyeb.models.desired_deployment_group import ( - DesiredDeploymentGroup as DesiredDeploymentGroup, -) -from koyeb.models.digital_ocean_registry_configuration import ( - DigitalOceanRegistryConfiguration as DigitalOceanRegistryConfiguration, -) -from koyeb.models.discourse_auth_reply import DiscourseAuthReply as DiscourseAuthReply -from koyeb.models.discourse_auth_request import ( - DiscourseAuthRequest as DiscourseAuthRequest, -) -from koyeb.models.docker_builder import DockerBuilder as DockerBuilder -from koyeb.models.docker_hub_registry_configuration import ( - DockerHubRegistryConfiguration as DockerHubRegistryConfiguration, -) -from koyeb.models.docker_source import DockerSource as DockerSource -from koyeb.models.domain import Domain as Domain -from koyeb.models.domain_load_balancer_koyeb import ( - DomainLoadBalancerKoyeb as DomainLoadBalancerKoyeb, -) -from koyeb.models.domain_load_balancer_quotas import ( - DomainLoadBalancerQuotas as DomainLoadBalancerQuotas, -) -from koyeb.models.domain_status import DomainStatus as DomainStatus -from koyeb.models.domain_type import DomainType as DomainType -from koyeb.models.domains_summary import DomainsSummary as DomainsSummary -from koyeb.models.env import Env as Env -from koyeb.models.error import Error as Error -from koyeb.models.error_field import ErrorField as ErrorField -from koyeb.models.error_with_fields import ErrorWithFields as ErrorWithFields -from koyeb.models.exec_command_io import ExecCommandIO as ExecCommandIO -from koyeb.models.exec_command_reply import ExecCommandReply as ExecCommandReply -from koyeb.models.exec_command_request_body import ( - ExecCommandRequestBody as ExecCommandRequestBody, -) -from koyeb.models.exec_command_request_id_type import ( - ExecCommandRequestIdType as ExecCommandRequestIdType, -) -from koyeb.models.exec_command_request_terminal_size import ( - ExecCommandRequestTerminalSize as ExecCommandRequestTerminalSize, -) -from koyeb.models.gcp_container_registry_configuration import ( - GCPContainerRegistryConfiguration as GCPContainerRegistryConfiguration, -) -from koyeb.models.get_app_reply import GetAppReply as GetAppReply -from koyeb.models.get_budget_reply import GetBudgetReply as GetBudgetReply -from koyeb.models.get_catalog_instance_reply import ( - GetCatalogInstanceReply as GetCatalogInstanceReply, -) -from koyeb.models.get_credential_reply import GetCredentialReply as GetCredentialReply -from koyeb.models.get_deployment_reply import GetDeploymentReply as GetDeploymentReply -from koyeb.models.get_deployment_scaling_reply import ( - GetDeploymentScalingReply as GetDeploymentScalingReply, -) -from koyeb.models.get_deployment_scaling_reply_item import ( - GetDeploymentScalingReplyItem as GetDeploymentScalingReplyItem, -) -from koyeb.models.get_domain_reply import GetDomainReply as GetDomainReply -from koyeb.models.get_github_installation_reply import ( - GetGithubInstallationReply as GetGithubInstallationReply, -) -from koyeb.models.get_idenfy_token_reply import ( - GetIdenfyTokenReply as GetIdenfyTokenReply, -) -from koyeb.models.get_instance_reply import GetInstanceReply as GetInstanceReply -from koyeb.models.get_intercom_profile_reply import ( - GetIntercomProfileReply as GetIntercomProfileReply, -) -from koyeb.models.get_metrics_reply import GetMetricsReply as GetMetricsReply -from koyeb.models.get_metrics_reply_metric import ( - GetMetricsReplyMetric as GetMetricsReplyMetric, -) -from koyeb.models.get_o_auth_options_reply import ( - GetOAuthOptionsReply as GetOAuthOptionsReply, -) -from koyeb.models.get_organization_invitation_reply import ( - GetOrganizationInvitationReply as GetOrganizationInvitationReply, -) -from koyeb.models.get_organization_reply import ( - GetOrganizationReply as GetOrganizationReply, -) -from koyeb.models.get_organization_summary_reply import ( - GetOrganizationSummaryReply as GetOrganizationSummaryReply, -) -from koyeb.models.get_organization_usage_details_reply import ( - GetOrganizationUsageDetailsReply as GetOrganizationUsageDetailsReply, -) -from koyeb.models.get_organization_usage_reply import ( - GetOrganizationUsageReply as GetOrganizationUsageReply, -) -from koyeb.models.get_payment_method_reply import ( - GetPaymentMethodReply as GetPaymentMethodReply, -) -from koyeb.models.get_persistent_volume_reply import ( - GetPersistentVolumeReply as GetPersistentVolumeReply, -) -from koyeb.models.get_quotas_reply import GetQuotasReply as GetQuotasReply -from koyeb.models.get_region_reply import GetRegionReply as GetRegionReply -from koyeb.models.get_regional_deployment_reply import ( - GetRegionalDeploymentReply as GetRegionalDeploymentReply, -) -from koyeb.models.get_secret_reply import GetSecretReply as GetSecretReply -from koyeb.models.get_service_reply import GetServiceReply as GetServiceReply -from koyeb.models.get_snapshot_reply import GetSnapshotReply as GetSnapshotReply -from koyeb.models.get_subscription_reply import ( - GetSubscriptionReply as GetSubscriptionReply, -) -from koyeb.models.get_user_organization_invitation_reply import ( - GetUserOrganizationInvitationReply as GetUserOrganizationInvitationReply, -) -from koyeb.models.get_user_settings_reply import ( - GetUserSettingsReply as GetUserSettingsReply, -) -from koyeb.models.git_deployment_metadata import ( - GitDeploymentMetadata as GitDeploymentMetadata, -) -from koyeb.models.git_env_deployment_metadata import ( - GitEnvDeploymentMetadata as GitEnvDeploymentMetadata, -) -from koyeb.models.git_hub_registry_configuration import ( - GitHubRegistryConfiguration as GitHubRegistryConfiguration, -) -from koyeb.models.git_lab_registry_configuration import ( - GitLabRegistryConfiguration as GitLabRegistryConfiguration, -) -from koyeb.models.git_source import GitSource as GitSource -from koyeb.models.github_installation_reply import ( - GithubInstallationReply as GithubInstallationReply, -) -from koyeb.models.github_installation_request import ( - GithubInstallationRequest as GithubInstallationRequest, -) -from koyeb.models.google_protobuf_any import GoogleProtobufAny as GoogleProtobufAny -from koyeb.models.google_protobuf_null_value import ( - GoogleProtobufNullValue as GoogleProtobufNullValue, -) -from koyeb.models.google_rpc_status import GoogleRpcStatus as GoogleRpcStatus -from koyeb.models.http_header import HTTPHeader as HTTPHeader -from koyeb.models.http_health_check import HTTPHealthCheck as HTTPHealthCheck -from koyeb.models.has_unpaid_invoices_reply import ( - HasUnpaidInvoicesReply as HasUnpaidInvoicesReply, -) -from koyeb.models.instance import Instance as Instance -from koyeb.models.instance_availability import ( - InstanceAvailability as InstanceAvailability, -) -from koyeb.models.instance_event import InstanceEvent as InstanceEvent -from koyeb.models.instance_list_item import InstanceListItem as InstanceListItem -from koyeb.models.instance_status import InstanceStatus as InstanceStatus -from koyeb.models.instance_usage import InstanceUsage as InstanceUsage -from koyeb.models.instances_summary import InstancesSummary as InstancesSummary -from koyeb.models.invite_user_request import InviteUserRequest as InviteUserRequest -from koyeb.models.kgitproxy_branch import KgitproxyBranch as KgitproxyBranch -from koyeb.models.kgitproxy_git_hub_repository import ( - KgitproxyGitHubRepository as KgitproxyGitHubRepository, -) -from koyeb.models.kgitproxy_github_installation_status import ( - KgitproxyGithubInstallationStatus as KgitproxyGithubInstallationStatus, -) -from koyeb.models.kgitproxy_indexing_status import ( - KgitproxyIndexingStatus as KgitproxyIndexingStatus, -) -from koyeb.models.kgitproxy_list_branches_reply import ( - KgitproxyListBranchesReply as KgitproxyListBranchesReply, -) -from koyeb.models.kgitproxy_list_repositories_reply import ( - KgitproxyListRepositoriesReply as KgitproxyListRepositoriesReply, -) -from koyeb.models.kgitproxy_repository import KgitproxyRepository as KgitproxyRepository -from koyeb.models.kgitproxy_repository_provider import ( - KgitproxyRepositoryProvider as KgitproxyRepositoryProvider, -) -from koyeb.models.ksearch_app import KsearchApp as KsearchApp -from koyeb.models.ksearch_global_deployment import ( - KsearchGlobalDeployment as KsearchGlobalDeployment, -) -from koyeb.models.ksearch_instance import KsearchInstance as KsearchInstance -from koyeb.models.ksearch_organization import KsearchOrganization as KsearchOrganization -from koyeb.models.ksearch_regional_deployment import ( - KsearchRegionalDeployment as KsearchRegionalDeployment, -) -from koyeb.models.ksearch_search_reply import KsearchSearchReply as KsearchSearchReply -from koyeb.models.ksearch_service import KsearchService as KsearchService -from koyeb.models.ksearch_user import KsearchUser as KsearchUser -from koyeb.models.list_app_events_reply import ListAppEventsReply as ListAppEventsReply -from koyeb.models.list_apps_reply import ListAppsReply as ListAppsReply -from koyeb.models.list_catalog_instances_reply import ( - ListCatalogInstancesReply as ListCatalogInstancesReply, -) -from koyeb.models.list_credentials_reply import ( - ListCredentialsReply as ListCredentialsReply, -) -from koyeb.models.list_datacenters_reply import ( - ListDatacentersReply as ListDatacentersReply, -) -from koyeb.models.list_deployment_events_reply import ( - ListDeploymentEventsReply as ListDeploymentEventsReply, -) -from koyeb.models.list_deployments_reply import ( - ListDeploymentsReply as ListDeploymentsReply, -) -from koyeb.models.list_domains_reply import ListDomainsReply as ListDomainsReply -from koyeb.models.list_instance_events_reply import ( - ListInstanceEventsReply as ListInstanceEventsReply, -) -from koyeb.models.list_instances_reply import ListInstancesReply as ListInstancesReply -from koyeb.models.list_organization_invitations_reply import ( - ListOrganizationInvitationsReply as ListOrganizationInvitationsReply, -) -from koyeb.models.list_organization_members_reply import ( - ListOrganizationMembersReply as ListOrganizationMembersReply, -) -from koyeb.models.list_payment_methods_reply import ( - ListPaymentMethodsReply as ListPaymentMethodsReply, -) -from koyeb.models.list_persistent_volume_events_reply import ( - ListPersistentVolumeEventsReply as ListPersistentVolumeEventsReply, -) -from koyeb.models.list_persistent_volumes_reply import ( - ListPersistentVolumesReply as ListPersistentVolumesReply, -) -from koyeb.models.list_regional_deployment_events_reply import ( - ListRegionalDeploymentEventsReply as ListRegionalDeploymentEventsReply, -) -from koyeb.models.list_regional_deployments_reply import ( - ListRegionalDeploymentsReply as ListRegionalDeploymentsReply, -) -from koyeb.models.list_regions_reply import ListRegionsReply as ListRegionsReply -from koyeb.models.list_secrets_reply import ListSecretsReply as ListSecretsReply -from koyeb.models.list_service_events_reply import ( - ListServiceEventsReply as ListServiceEventsReply, -) -from koyeb.models.list_services_reply import ListServicesReply as ListServicesReply -from koyeb.models.list_snapshots_reply import ListSnapshotsReply as ListSnapshotsReply -from koyeb.models.list_usage_reply import ListUsageReply as ListUsageReply -from koyeb.models.list_user_organization_invitations_reply import ( - ListUserOrganizationInvitationsReply as ListUserOrganizationInvitationsReply, -) -from koyeb.models.list_user_organizations_reply import ( - ListUserOrganizationsReply as ListUserOrganizationsReply, -) -from koyeb.models.log_entry import LogEntry as LogEntry -from koyeb.models.login_method_reply import LoginMethodReply as LoginMethodReply -from koyeb.models.login_method_reply_method import ( - LoginMethodReplyMethod as LoginMethodReplyMethod, -) -from koyeb.models.login_reply import LoginReply as LoginReply -from koyeb.models.login_request import LoginRequest as LoginRequest -from koyeb.models.manage_reply import ManageReply as ManageReply -from koyeb.models.members_summary import MembersSummary as MembersSummary -from koyeb.models.metric_name import MetricName as MetricName -from koyeb.models.neon_postgres_database import ( - NeonPostgresDatabase as NeonPostgresDatabase, -) -from koyeb.models.neon_postgres_database_deployment_metadata import ( - NeonPostgresDatabaseDeploymentMetadata as NeonPostgresDatabaseDeploymentMetadata, -) -from koyeb.models.neon_postgres_database_neon_database import ( - NeonPostgresDatabaseNeonDatabase as NeonPostgresDatabaseNeonDatabase, -) -from koyeb.models.neon_postgres_database_neon_role import ( - NeonPostgresDatabaseNeonRole as NeonPostgresDatabaseNeonRole, -) -from koyeb.models.neon_postgres_summary import ( - NeonPostgresSummary as NeonPostgresSummary, -) -from koyeb.models.next_invoice_reply import NextInvoiceReply as NextInvoiceReply -from koyeb.models.next_invoice_reply_discount import ( - NextInvoiceReplyDiscount as NextInvoiceReplyDiscount, -) -from koyeb.models.next_invoice_reply_discount_type import ( - NextInvoiceReplyDiscountType as NextInvoiceReplyDiscountType, -) -from koyeb.models.next_invoice_reply_line import ( - NextInvoiceReplyLine as NextInvoiceReplyLine, -) -from koyeb.models.next_invoice_reply_line_period import ( - NextInvoiceReplyLinePeriod as NextInvoiceReplyLinePeriod, -) -from koyeb.models.next_invoice_reply_line_price import ( - NextInvoiceReplyLinePrice as NextInvoiceReplyLinePrice, -) -from koyeb.models.notification import Notification as Notification -from koyeb.models.notification_list import NotificationList as NotificationList -from koyeb.models.o_auth_callback_reply import OAuthCallbackReply as OAuthCallbackReply -from koyeb.models.o_auth_callback_request import ( - OAuthCallbackRequest as OAuthCallbackRequest, -) -from koyeb.models.o_auth_provider import OAuthProvider as OAuthProvider -from koyeb.models.object import Object as Object -from koyeb.models.organization import Organization as Organization -from koyeb.models.organization_deactivation_reason import ( - OrganizationDeactivationReason as OrganizationDeactivationReason, -) -from koyeb.models.organization_detailed_status import ( - OrganizationDetailedStatus as OrganizationDetailedStatus, -) -from koyeb.models.organization_invitation import ( - OrganizationInvitation as OrganizationInvitation, -) -from koyeb.models.organization_invitation_status import ( - OrganizationInvitationStatus as OrganizationInvitationStatus, -) -from koyeb.models.organization_member import OrganizationMember as OrganizationMember -from koyeb.models.organization_member_status import ( - OrganizationMemberStatus as OrganizationMemberStatus, -) -from koyeb.models.organization_status import OrganizationStatus as OrganizationStatus -from koyeb.models.organization_summary import OrganizationSummary as OrganizationSummary -from koyeb.models.payment_method import PaymentMethod as PaymentMethod -from koyeb.models.payment_method_status import ( - PaymentMethodStatus as PaymentMethodStatus, -) -from koyeb.models.period_usage import PeriodUsage as PeriodUsage -from koyeb.models.persistent_volume import PersistentVolume as PersistentVolume -from koyeb.models.persistent_volume_backing_store import ( - PersistentVolumeBackingStore as PersistentVolumeBackingStore, -) -from koyeb.models.persistent_volume_event import ( - PersistentVolumeEvent as PersistentVolumeEvent, -) -from koyeb.models.persistent_volume_quotas import ( - PersistentVolumeQuotas as PersistentVolumeQuotas, -) -from koyeb.models.persistent_volume_status import ( - PersistentVolumeStatus as PersistentVolumeStatus, -) -from koyeb.models.plan import Plan as Plan -from koyeb.models.port import Port as Port -from koyeb.models.private_registry_configuration import ( - PrivateRegistryConfiguration as PrivateRegistryConfiguration, -) -from koyeb.models.proxy_port_protocol import ProxyPortProtocol as ProxyPortProtocol -from koyeb.models.public_organization import PublicOrganization as PublicOrganization -from koyeb.models.public_user import PublicUser as PublicUser -from koyeb.models.query_logs_reply import QueryLogsReply as QueryLogsReply -from koyeb.models.query_logs_reply_pagination import ( - QueryLogsReplyPagination as QueryLogsReplyPagination, -) -from koyeb.models.quotas import Quotas as Quotas -from koyeb.models.reactivate_organization_reply import ( - ReactivateOrganizationReply as ReactivateOrganizationReply, -) -from koyeb.models.redeem_coupon_request import ( - RedeemCouponRequest as RedeemCouponRequest, -) -from koyeb.models.redeploy_reply import RedeployReply as RedeployReply -from koyeb.models.redeploy_request_info import ( - RedeployRequestInfo as RedeployRequestInfo, -) -from koyeb.models.region import Region as Region -from koyeb.models.region_availability import RegionAvailability as RegionAvailability -from koyeb.models.region_list_item import RegionListItem as RegionListItem -from koyeb.models.region_usage import RegionUsage as RegionUsage -from koyeb.models.regional_deployment import RegionalDeployment as RegionalDeployment -from koyeb.models.regional_deployment_definition import ( - RegionalDeploymentDefinition as RegionalDeploymentDefinition, -) -from koyeb.models.regional_deployment_definition_type import ( - RegionalDeploymentDefinitionType as RegionalDeploymentDefinitionType, -) -from koyeb.models.regional_deployment_event import ( - RegionalDeploymentEvent as RegionalDeploymentEvent, -) -from koyeb.models.regional_deployment_list_item import ( - RegionalDeploymentListItem as RegionalDeploymentListItem, -) -from koyeb.models.regional_deployment_role import ( - RegionalDeploymentRole as RegionalDeploymentRole, -) -from koyeb.models.regional_deployment_status import ( - RegionalDeploymentStatus as RegionalDeploymentStatus, -) -from koyeb.models.regional_deployment_volume import ( - RegionalDeploymentVolume as RegionalDeploymentVolume, -) -from koyeb.models.remove_organization_member_reply import ( - RemoveOrganizationMemberReply as RemoveOrganizationMemberReply, -) -from koyeb.models.resend_organization_invitation_reply import ( - ResendOrganizationInvitationReply as ResendOrganizationInvitationReply, -) -from koyeb.models.reset_password_request import ( - ResetPasswordRequest as ResetPasswordRequest, -) -from koyeb.models.reveal_secret_reply import RevealSecretReply as RevealSecretReply -from koyeb.models.review_organization_capacity_reply import ( - ReviewOrganizationCapacityReply as ReviewOrganizationCapacityReply, -) -from koyeb.models.review_organization_capacity_request import ( - ReviewOrganizationCapacityRequest as ReviewOrganizationCapacityRequest, -) -from koyeb.models.route import Route as Route -from koyeb.models.sample import Sample as Sample -from koyeb.models.scale_to_zero_quotas import ScaleToZeroQuotas as ScaleToZeroQuotas -from koyeb.models.scaling import Scaling as Scaling -from koyeb.models.secret import Secret as Secret -from koyeb.models.secret_type import SecretType as SecretType -from koyeb.models.secrets_summary import SecretsSummary as SecretsSummary -from koyeb.models.service import Service as Service -from koyeb.models.service_event import ServiceEvent as ServiceEvent -from koyeb.models.service_list_item import ServiceListItem as ServiceListItem -from koyeb.models.service_state import ServiceState as ServiceState -from koyeb.models.service_status import ServiceStatus as ServiceStatus -from koyeb.models.service_summary import ServiceSummary as ServiceSummary -from koyeb.models.service_type import ServiceType as ServiceType -from koyeb.models.service_usage import ServiceUsage as ServiceUsage -from koyeb.models.snapshot import Snapshot as Snapshot -from koyeb.models.snapshot_status import SnapshotStatus as SnapshotStatus -from koyeb.models.snapshot_type import SnapshotType as SnapshotType -from koyeb.models.stream_result_of_exec_command_reply import ( - StreamResultOfExecCommandReply as StreamResultOfExecCommandReply, -) -from koyeb.models.stream_result_of_log_entry import ( - StreamResultOfLogEntry as StreamResultOfLogEntry, -) -from koyeb.models.subscription import Subscription as Subscription -from koyeb.models.subscription_payment_failure import ( - SubscriptionPaymentFailure as SubscriptionPaymentFailure, -) -from koyeb.models.subscription_payment_failure_stripe_sdk import ( - SubscriptionPaymentFailureStripeSDK as SubscriptionPaymentFailureStripeSDK, -) -from koyeb.models.subscription_status import SubscriptionStatus as SubscriptionStatus -from koyeb.models.tcp_health_check import TCPHealthCheck as TCPHealthCheck -from koyeb.models.token import Token as Token -from koyeb.models.trigger_deployment_metadata import ( - TriggerDeploymentMetadata as TriggerDeploymentMetadata, -) -from koyeb.models.trigger_deployment_metadata_actor_type import ( - TriggerDeploymentMetadataActorType as TriggerDeploymentMetadataActorType, -) -from koyeb.models.trigger_deployment_metadata_trigger_type import ( - TriggerDeploymentMetadataTriggerType as TriggerDeploymentMetadataTriggerType, -) -from koyeb.models.trigger_git_deployment_metadata import ( - TriggerGitDeploymentMetadata as TriggerGitDeploymentMetadata, -) -from koyeb.models.trigger_git_deployment_metadata_provider import ( - TriggerGitDeploymentMetadataProvider as TriggerGitDeploymentMetadataProvider, -) -from koyeb.models.update_app import UpdateApp as UpdateApp -from koyeb.models.update_app_reply import UpdateAppReply as UpdateAppReply -from koyeb.models.update_budget_reply import UpdateBudgetReply as UpdateBudgetReply -from koyeb.models.update_budget_request import ( - UpdateBudgetRequest as UpdateBudgetRequest, -) -from koyeb.models.update_credential_reply import ( - UpdateCredentialReply as UpdateCredentialReply, -) -from koyeb.models.update_domain import UpdateDomain as UpdateDomain -from koyeb.models.update_domain_reply import UpdateDomainReply as UpdateDomainReply -from koyeb.models.update_organization_plan_reply import ( - UpdateOrganizationPlanReply as UpdateOrganizationPlanReply, -) -from koyeb.models.update_organization_plan_request import ( - UpdateOrganizationPlanRequest as UpdateOrganizationPlanRequest, -) -from koyeb.models.update_organization_reply import ( - UpdateOrganizationReply as UpdateOrganizationReply, -) -from koyeb.models.update_password_request import ( - UpdatePasswordRequest as UpdatePasswordRequest, -) -from koyeb.models.update_persistent_volume_reply import ( - UpdatePersistentVolumeReply as UpdatePersistentVolumeReply, -) -from koyeb.models.update_persistent_volume_request import ( - UpdatePersistentVolumeRequest as UpdatePersistentVolumeRequest, -) -from koyeb.models.update_secret_reply import UpdateSecretReply as UpdateSecretReply -from koyeb.models.update_service import UpdateService as UpdateService -from koyeb.models.update_service_reply import UpdateServiceReply as UpdateServiceReply -from koyeb.models.update_snapshot_reply import ( - UpdateSnapshotReply as UpdateSnapshotReply, -) -from koyeb.models.update_snapshot_request import ( - UpdateSnapshotRequest as UpdateSnapshotRequest, -) -from koyeb.models.update_user_request_user_update_body import ( - UpdateUserRequestUserUpdateBody as UpdateUserRequestUserUpdateBody, -) -from koyeb.models.update_user_settings_reply import ( - UpdateUserSettingsReply as UpdateUserSettingsReply, -) -from koyeb.models.update_user_settings_request import ( - UpdateUserSettingsRequest as UpdateUserSettingsRequest, -) -from koyeb.models.upsert_signup_qualification_reply import ( - UpsertSignupQualificationReply as UpsertSignupQualificationReply, -) -from koyeb.models.upsert_signup_qualification_request import ( - UpsertSignupQualificationRequest as UpsertSignupQualificationRequest, -) -from koyeb.models.usage import Usage as Usage -from koyeb.models.usage_details import UsageDetails as UsageDetails -from koyeb.models.user import User as User -from koyeb.models.user_flags import UserFlags as UserFlags -from koyeb.models.user_reply import UserReply as UserReply -from koyeb.models.user_role_role import UserRoleRole as UserRoleRole -from koyeb.models.user_settings import UserSettings as UserSettings -from koyeb.models.verify_docker_image_reply import ( - VerifyDockerImageReply as VerifyDockerImageReply, -) -from koyeb.models.verify_docker_image_reply_err_code import ( - VerifyDockerImageReplyErrCode as VerifyDockerImageReplyErrCode, -) diff --git a/koyeb/api/__init__.py b/koyeb/api/__init__.py index 817421ab..ae9fcc54 100644 --- a/koyeb/api/__init__.py +++ b/koyeb/api/__init__.py @@ -1,44 +1,850 @@ +# coding: utf-8 + # flake8: noqa -# import apis into api package -from koyeb.api.apps_api import AppsApi -from koyeb.api.archives_api import ArchivesApi -from koyeb.api.catalog_datacenters_api import CatalogDatacentersApi -from koyeb.api.catalog_instance_usage_api import CatalogInstanceUsageApi -from koyeb.api.catalog_instances_api import CatalogInstancesApi -from koyeb.api.catalog_regions_api import CatalogRegionsApi -from koyeb.api.compose_api import ComposeApi -from koyeb.api.coupons_api import CouponsApi -from koyeb.api.credentials_api import CredentialsApi -from koyeb.api.deployments_api import DeploymentsApi -from koyeb.api.docker_helper_api import DockerHelperApi -from koyeb.api.domains_api import DomainsApi -from koyeb.api.instances_api import InstancesApi -from koyeb.api.intercom_api import IntercomApi -from koyeb.api.logs_api import LogsApi -from koyeb.api.metrics_api import MetricsApi -from koyeb.api.organization_confirmations_api import OrganizationConfirmationsApi -from koyeb.api.organization_invitations_api import OrganizationInvitationsApi -from koyeb.api.organization_members_api import OrganizationMembersApi -from koyeb.api.organization_quotas_api import OrganizationQuotasApi -from koyeb.api.payment_methods_api import PaymentMethodsApi -from koyeb.api.persistent_volumes_api import PersistentVolumesApi -from koyeb.api.profile_api import ProfileApi -from koyeb.api.provisioning_api import ProvisioningApi -from koyeb.api.quotas_api import QuotasApi -from koyeb.api.regional_deployments_api import RegionalDeploymentsApi -from koyeb.api.repositories_api import RepositoriesApi -from koyeb.api.search_api import SearchApi -from koyeb.api.secrets_api import SecretsApi -from koyeb.api.services_api import ServicesApi -from koyeb.api.sessions_api import SessionsApi -from koyeb.api.snapshots_api import SnapshotsApi -from koyeb.api.subscriptions_api import SubscriptionsApi -from koyeb.api.summary_api import SummaryApi -from koyeb.api.usages_api import UsagesApi -from koyeb.api.users_api import UsersApi -from koyeb.api.activity_api import ActivityApi -from koyeb.api.billing_api import BillingApi -from koyeb.api.invite_api import InviteApi -from koyeb.api.organization_api import OrganizationApi -from koyeb.api.sso_api import SsoApi +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +__version__ = "1.0.0" + +# Define package exports +__all__ = [ + "AppsApi", + "ArchivesApi", + "CatalogDatacentersApi", + "CatalogInstanceUsageApi", + "CatalogInstancesApi", + "CatalogRegionsApi", + "ComposeApi", + "CouponsApi", + "CredentialsApi", + "DeploymentsApi", + "DockerHelperApi", + "DomainsApi", + "InstancesApi", + "IntercomApi", + "LogsApi", + "MetricsApi", + "OrganizationConfirmationsApi", + "OrganizationInvitationsApi", + "OrganizationMembersApi", + "OrganizationQuotasApi", + "PaymentMethodsApi", + "PersistentVolumesApi", + "ProfileApi", + "ProvisioningApi", + "QuotasApi", + "RegionalDeploymentsApi", + "RepositoriesApi", + "SearchApi", + "SecretsApi", + "ServicesApi", + "SessionsApi", + "SnapshotsApi", + "SubscriptionsApi", + "SummaryApi", + "UsagesApi", + "UsersApi", + "ActivityApi", + "BillingApi", + "InviteApi", + "OrganizationApi", + "SsoApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "AcceptOrganizationInvitationReply", + "Action", + "Activity", + "ActivityList", + "App", + "AppEvent", + "AppListItem", + "AppStatus", + "AppUsage", + "AppsSummary", + "Archive", + "ArchiveDeploymentMetadata", + "ArchiveSource", + "AutoRelease", + "AutoReleaseGroup", + "AutocompleteReply", + "AutocompleteRequest", + "AvailabilityLevel", + "AzureContainerRegistryConfiguration", + "Budget", + "BuildpackBuilder", + "CannyAuthReply", + "CatalogGPUDetails", + "CatalogInstance", + "CatalogInstanceListItem", + "CatalogUsage", + "ClearIdenfyVerificationResultRequest", + "ComposeReply", + "ConfigFile", + "ConfirmPaymentAuthorizationReply", + "CreateAccessTokenReply", + "CreateAccessTokenRequest", + "CreateAccountRequest", + "CreateApp", + "CreateAppReply", + "CreateArchive", + "CreateArchiveReply", + "CreateBudgetReply", + "CreateCompose", + "CreateCredential", + "CreateCredentialReply", + "CreateDomain", + "CreateDomainReply", + "CreateOrganizationInvitationReply", + "CreateOrganizationInvitationRequest", + "CreateOrganizationReply", + "CreateOrganizationRequest", + "CreatePaymentAuthorizationReply", + "CreatePersistentVolumeReply", + "CreatePersistentVolumeRequest", + "CreateSecret", + "CreateSecretReply", + "CreateService", + "CreateServiceReply", + "CreateSnapshotReply", + "CreateSnapshotRequest", + "CreateStageAttemptRequest", + "Credential", + "CredentialType", + "DatabaseDeploymentMetadata", + "DatabaseRolePassword", + "DatabaseSource", + "DatabaseUsage", + "DatabaseUsageDetails", + "DatacenterListItem", + "DeactivateOrganizationReply", + "DeactivateOrganizationRequest", + "DeclareStageProgressRequest", + "DeclareStepProgressRequest", + "DeclineOrganizationInvitationReply", + "DeleteOrganizationReply", + "DeletePersistentVolumeReply", + "DeleteSnapshotReply", + "DeleteUserReply", + "Deployment", + "DeploymentDatabaseInfo", + "DeploymentDefinition", + "DeploymentDefinitionType", + "DeploymentEnv", + "DeploymentEvent", + "DeploymentHealthCheck", + "DeploymentInstanceType", + "DeploymentListItem", + "DeploymentMetadata", + "DeploymentNeonPostgresDatabaseInfo", + "DeploymentNeonPostgresDatabaseInfoRole", + "DeploymentPort", + "DeploymentProvisioningInfo", + "DeploymentProvisioningInfoStage", + "DeploymentProvisioningInfoStageBuildAttempt", + "DeploymentProvisioningInfoStageBuildAttemptBuildStep", + "DeploymentProvisioningInfoStageStatus", + "DeploymentProxyPort", + "DeploymentProxyPortMetadata", + "DeploymentRole", + "DeploymentRoute", + "DeploymentScaling", + "DeploymentScalingTarget", + "DeploymentScalingTargetAverageCPU", + "DeploymentScalingTargetAverageMem", + "DeploymentScalingTargetConcurrentRequests", + "DeploymentScalingTargetRequestsPerSecond", + "DeploymentScalingTargetRequestsResponseTime", + "DeploymentScalingTargetSleepIdleDelay", + "DeploymentStatus", + "DeploymentStrategy", + "DeploymentStrategyType", + "DeploymentVolume", + "DesiredDeployment", + "DesiredDeploymentGroup", + "DigitalOceanRegistryConfiguration", + "DiscourseAuthReply", + "DiscourseAuthRequest", + "DockerBuilder", + "DockerHubRegistryConfiguration", + "DockerSource", + "Domain", + "DomainLoadBalancerKoyeb", + "DomainLoadBalancerQuotas", + "DomainStatus", + "DomainType", + "DomainsSummary", + "Env", + "Error", + "ErrorField", + "ErrorWithFields", + "ExecCommandIO", + "ExecCommandReply", + "ExecCommandRequestBody", + "ExecCommandRequestIdType", + "ExecCommandRequestTerminalSize", + "GCPContainerRegistryConfiguration", + "GetAppReply", + "GetBudgetReply", + "GetCatalogInstanceReply", + "GetCredentialReply", + "GetDeploymentReply", + "GetDeploymentScalingReply", + "GetDeploymentScalingReplyItem", + "GetDomainReply", + "GetGithubInstallationReply", + "GetIdenfyTokenReply", + "GetInstanceReply", + "GetIntercomProfileReply", + "GetMetricsReply", + "GetMetricsReplyMetric", + "GetOAuthOptionsReply", + "GetOrganizationInvitationReply", + "GetOrganizationReply", + "GetOrganizationSummaryReply", + "GetOrganizationUsageDetailsReply", + "GetOrganizationUsageReply", + "GetPaymentMethodReply", + "GetPersistentVolumeReply", + "GetQuotasReply", + "GetRegionReply", + "GetRegionalDeploymentReply", + "GetSecretReply", + "GetServiceReply", + "GetSnapshotReply", + "GetSubscriptionReply", + "GetUserOrganizationInvitationReply", + "GetUserSettingsReply", + "GitDeploymentMetadata", + "GitEnvDeploymentMetadata", + "GitHubRegistryConfiguration", + "GitLabRegistryConfiguration", + "GitSource", + "GithubInstallationReply", + "GithubInstallationRequest", + "GoogleProtobufAny", + "GoogleProtobufNullValue", + "GoogleRpcStatus", + "HTTPHeader", + "HTTPHealthCheck", + "HasUnpaidInvoicesReply", + "Instance", + "InstanceAvailability", + "InstanceEvent", + "InstanceListItem", + "InstanceStatus", + "InstanceUsage", + "InstancesSummary", + "InviteUserRequest", + "KgitproxyBranch", + "KgitproxyGitHubRepository", + "KgitproxyGithubInstallationStatus", + "KgitproxyIndexingStatus", + "KgitproxyListBranchesReply", + "KgitproxyListRepositoriesReply", + "KgitproxyRepository", + "KgitproxyRepositoryProvider", + "KsearchApp", + "KsearchGlobalDeployment", + "KsearchInstance", + "KsearchOrganization", + "KsearchRegionalDeployment", + "KsearchSearchReply", + "KsearchService", + "KsearchUser", + "ListAppEventsReply", + "ListAppsReply", + "ListCatalogInstancesReply", + "ListCredentialsReply", + "ListDatacentersReply", + "ListDeploymentEventsReply", + "ListDeploymentsReply", + "ListDomainsReply", + "ListInstanceEventsReply", + "ListInstancesReply", + "ListOrganizationInvitationsReply", + "ListOrganizationMembersReply", + "ListPaymentMethodsReply", + "ListPersistentVolumeEventsReply", + "ListPersistentVolumesReply", + "ListRegionalDeploymentEventsReply", + "ListRegionalDeploymentsReply", + "ListRegionsReply", + "ListSecretsReply", + "ListServiceEventsReply", + "ListServicesReply", + "ListSnapshotsReply", + "ListUsageReply", + "ListUserOrganizationInvitationsReply", + "ListUserOrganizationsReply", + "LogEntry", + "LoginMethodReply", + "LoginMethodReplyMethod", + "LoginReply", + "LoginRequest", + "ManageReply", + "MembersSummary", + "MetricName", + "NeonPostgresDatabase", + "NeonPostgresDatabaseDeploymentMetadata", + "NeonPostgresDatabaseNeonDatabase", + "NeonPostgresDatabaseNeonRole", + "NeonPostgresSummary", + "NextInvoiceReply", + "NextInvoiceReplyDiscount", + "NextInvoiceReplyDiscountType", + "NextInvoiceReplyLine", + "NextInvoiceReplyLinePeriod", + "NextInvoiceReplyLinePrice", + "Notification", + "NotificationList", + "OAuthCallbackReply", + "OAuthCallbackRequest", + "OAuthProvider", + "Object", + "Organization", + "OrganizationDeactivationReason", + "OrganizationDetailedStatus", + "OrganizationInvitation", + "OrganizationInvitationStatus", + "OrganizationMember", + "OrganizationMemberStatus", + "OrganizationStatus", + "OrganizationSummary", + "PaymentMethod", + "PaymentMethodStatus", + "PeriodUsage", + "PersistentVolume", + "PersistentVolumeBackingStore", + "PersistentVolumeEvent", + "PersistentVolumeQuotas", + "PersistentVolumeStatus", + "Plan", + "Port", + "PrivateRegistryConfiguration", + "ProxyPortProtocol", + "PublicOrganization", + "PublicUser", + "QueryLogsReply", + "QueryLogsReplyPagination", + "Quotas", + "ReactivateOrganizationReply", + "RedeemCouponRequest", + "RedeployReply", + "RedeployRequestInfo", + "Region", + "RegionAvailability", + "RegionListItem", + "RegionUsage", + "RegionalDeployment", + "RegionalDeploymentDefinition", + "RegionalDeploymentDefinitionType", + "RegionalDeploymentEvent", + "RegionalDeploymentListItem", + "RegionalDeploymentRole", + "RegionalDeploymentStatus", + "RegionalDeploymentVolume", + "RemoveOrganizationMemberReply", + "ResendOrganizationInvitationReply", + "ResetPasswordRequest", + "RevealSecretReply", + "ReviewOrganizationCapacityReply", + "ReviewOrganizationCapacityRequest", + "Route", + "Sample", + "ScaleToZeroQuotas", + "Scaling", + "Secret", + "SecretType", + "SecretsSummary", + "Service", + "ServiceEvent", + "ServiceListItem", + "ServiceState", + "ServiceStatus", + "ServiceSummary", + "ServiceType", + "ServiceUsage", + "Snapshot", + "SnapshotStatus", + "SnapshotType", + "StreamResultOfExecCommandReply", + "StreamResultOfLogEntry", + "Subscription", + "SubscriptionPaymentFailure", + "SubscriptionPaymentFailureStripeSDK", + "SubscriptionStatus", + "TCPHealthCheck", + "Token", + "TriggerDeploymentMetadata", + "TriggerDeploymentMetadataActorType", + "TriggerDeploymentMetadataTriggerType", + "TriggerGitDeploymentMetadata", + "TriggerGitDeploymentMetadataProvider", + "UpdateApp", + "UpdateAppReply", + "UpdateBudgetReply", + "UpdateBudgetRequest", + "UpdateCredentialReply", + "UpdateDomain", + "UpdateDomainReply", + "UpdateOrganizationPlanReply", + "UpdateOrganizationPlanRequest", + "UpdateOrganizationReply", + "UpdatePasswordRequest", + "UpdatePersistentVolumeReply", + "UpdatePersistentVolumeRequest", + "UpdateSecretReply", + "UpdateService", + "UpdateServiceReply", + "UpdateSnapshotReply", + "UpdateSnapshotRequest", + "UpdateUserRequestUserUpdateBody", + "UpdateUserSettingsReply", + "UpdateUserSettingsRequest", + "UpsertSignupQualificationReply", + "UpsertSignupQualificationRequest", + "Usage", + "UsageDetails", + "User", + "UserFlags", + "UserReply", + "UserRoleRole", + "UserSettings", + "VerifyDockerImageReply", + "VerifyDockerImageReplyErrCode", +] + +# import apis into sdk package +from koyeb.api.api.apps_api import AppsApi as AppsApi +from koyeb.api.api.archives_api import ArchivesApi as ArchivesApi +from koyeb.api.api.catalog_datacenters_api import CatalogDatacentersApi as CatalogDatacentersApi +from koyeb.api.api.catalog_instance_usage_api import CatalogInstanceUsageApi as CatalogInstanceUsageApi +from koyeb.api.api.catalog_instances_api import CatalogInstancesApi as CatalogInstancesApi +from koyeb.api.api.catalog_regions_api import CatalogRegionsApi as CatalogRegionsApi +from koyeb.api.api.compose_api import ComposeApi as ComposeApi +from koyeb.api.api.coupons_api import CouponsApi as CouponsApi +from koyeb.api.api.credentials_api import CredentialsApi as CredentialsApi +from koyeb.api.api.deployments_api import DeploymentsApi as DeploymentsApi +from koyeb.api.api.docker_helper_api import DockerHelperApi as DockerHelperApi +from koyeb.api.api.domains_api import DomainsApi as DomainsApi +from koyeb.api.api.instances_api import InstancesApi as InstancesApi +from koyeb.api.api.intercom_api import IntercomApi as IntercomApi +from koyeb.api.api.logs_api import LogsApi as LogsApi +from koyeb.api.api.metrics_api import MetricsApi as MetricsApi +from koyeb.api.api.organization_confirmations_api import OrganizationConfirmationsApi as OrganizationConfirmationsApi +from koyeb.api.api.organization_invitations_api import OrganizationInvitationsApi as OrganizationInvitationsApi +from koyeb.api.api.organization_members_api import OrganizationMembersApi as OrganizationMembersApi +from koyeb.api.api.organization_quotas_api import OrganizationQuotasApi as OrganizationQuotasApi +from koyeb.api.api.payment_methods_api import PaymentMethodsApi as PaymentMethodsApi +from koyeb.api.api.persistent_volumes_api import PersistentVolumesApi as PersistentVolumesApi +from koyeb.api.api.profile_api import ProfileApi as ProfileApi +from koyeb.api.api.provisioning_api import ProvisioningApi as ProvisioningApi +from koyeb.api.api.quotas_api import QuotasApi as QuotasApi +from koyeb.api.api.regional_deployments_api import RegionalDeploymentsApi as RegionalDeploymentsApi +from koyeb.api.api.repositories_api import RepositoriesApi as RepositoriesApi +from koyeb.api.api.search_api import SearchApi as SearchApi +from koyeb.api.api.secrets_api import SecretsApi as SecretsApi +from koyeb.api.api.services_api import ServicesApi as ServicesApi +from koyeb.api.api.sessions_api import SessionsApi as SessionsApi +from koyeb.api.api.snapshots_api import SnapshotsApi as SnapshotsApi +from koyeb.api.api.subscriptions_api import SubscriptionsApi as SubscriptionsApi +from koyeb.api.api.summary_api import SummaryApi as SummaryApi +from koyeb.api.api.usages_api import UsagesApi as UsagesApi +from koyeb.api.api.users_api import UsersApi as UsersApi +from koyeb.api.api.activity_api import ActivityApi as ActivityApi +from koyeb.api.api.billing_api import BillingApi as BillingApi +from koyeb.api.api.invite_api import InviteApi as InviteApi +from koyeb.api.api.organization_api import OrganizationApi as OrganizationApi +from koyeb.api.api.sso_api import SsoApi as SsoApi + +# import ApiClient +from koyeb.api.api_response import ApiResponse as ApiResponse +from koyeb.api.api_client import ApiClient as ApiClient +from koyeb.api.configuration import Configuration as Configuration +from koyeb.api.exceptions import OpenApiException as OpenApiException +from koyeb.api.exceptions import ApiTypeError as ApiTypeError +from koyeb.api.exceptions import ApiValueError as ApiValueError +from koyeb.api.exceptions import ApiKeyError as ApiKeyError +from koyeb.api.exceptions import ApiAttributeError as ApiAttributeError +from koyeb.api.exceptions import ApiException as ApiException + +# import models into sdk package +from koyeb.api.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply as AcceptOrganizationInvitationReply +from koyeb.api.models.action import Action as Action +from koyeb.api.models.activity import Activity as Activity +from koyeb.api.models.activity_list import ActivityList as ActivityList +from koyeb.api.models.app import App as App +from koyeb.api.models.app_event import AppEvent as AppEvent +from koyeb.api.models.app_list_item import AppListItem as AppListItem +from koyeb.api.models.app_status import AppStatus as AppStatus +from koyeb.api.models.app_usage import AppUsage as AppUsage +from koyeb.api.models.apps_summary import AppsSummary as AppsSummary +from koyeb.api.models.archive import Archive as Archive +from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata as ArchiveDeploymentMetadata +from koyeb.api.models.archive_source import ArchiveSource as ArchiveSource +from koyeb.api.models.auto_release import AutoRelease as AutoRelease +from koyeb.api.models.auto_release_group import AutoReleaseGroup as AutoReleaseGroup +from koyeb.api.models.autocomplete_reply import AutocompleteReply as AutocompleteReply +from koyeb.api.models.autocomplete_request import AutocompleteRequest as AutocompleteRequest +from koyeb.api.models.availability_level import AvailabilityLevel as AvailabilityLevel +from koyeb.api.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration as AzureContainerRegistryConfiguration +from koyeb.api.models.budget import Budget as Budget +from koyeb.api.models.buildpack_builder import BuildpackBuilder as BuildpackBuilder +from koyeb.api.models.canny_auth_reply import CannyAuthReply as CannyAuthReply +from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails as CatalogGPUDetails +from koyeb.api.models.catalog_instance import CatalogInstance as CatalogInstance +from koyeb.api.models.catalog_instance_list_item import CatalogInstanceListItem as CatalogInstanceListItem +from koyeb.api.models.catalog_usage import CatalogUsage as CatalogUsage +from koyeb.api.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest as ClearIdenfyVerificationResultRequest +from koyeb.api.models.compose_reply import ComposeReply as ComposeReply +from koyeb.api.models.config_file import ConfigFile as ConfigFile +from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply as ConfirmPaymentAuthorizationReply +from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply as CreateAccessTokenReply +from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest as CreateAccessTokenRequest +from koyeb.api.models.create_account_request import CreateAccountRequest as CreateAccountRequest +from koyeb.api.models.create_app import CreateApp as CreateApp +from koyeb.api.models.create_app_reply import CreateAppReply as CreateAppReply +from koyeb.api.models.create_archive import CreateArchive as CreateArchive +from koyeb.api.models.create_archive_reply import CreateArchiveReply as CreateArchiveReply +from koyeb.api.models.create_budget_reply import CreateBudgetReply as CreateBudgetReply +from koyeb.api.models.create_compose import CreateCompose as CreateCompose +from koyeb.api.models.create_credential import CreateCredential as CreateCredential +from koyeb.api.models.create_credential_reply import CreateCredentialReply as CreateCredentialReply +from koyeb.api.models.create_domain import CreateDomain as CreateDomain +from koyeb.api.models.create_domain_reply import CreateDomainReply as CreateDomainReply +from koyeb.api.models.create_organization_invitation_reply import CreateOrganizationInvitationReply as CreateOrganizationInvitationReply +from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest as CreateOrganizationInvitationRequest +from koyeb.api.models.create_organization_reply import CreateOrganizationReply as CreateOrganizationReply +from koyeb.api.models.create_organization_request import CreateOrganizationRequest as CreateOrganizationRequest +from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply as CreatePaymentAuthorizationReply +from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply as CreatePersistentVolumeReply +from koyeb.api.models.create_persistent_volume_request import CreatePersistentVolumeRequest as CreatePersistentVolumeRequest +from koyeb.api.models.create_secret import CreateSecret as CreateSecret +from koyeb.api.models.create_secret_reply import CreateSecretReply as CreateSecretReply +from koyeb.api.models.create_service import CreateService as CreateService +from koyeb.api.models.create_service_reply import CreateServiceReply as CreateServiceReply +from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply as CreateSnapshotReply +from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest as CreateSnapshotRequest +from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest as CreateStageAttemptRequest +from koyeb.api.models.credential import Credential as Credential +from koyeb.api.models.credential_type import CredentialType as CredentialType +from koyeb.api.models.database_deployment_metadata import DatabaseDeploymentMetadata as DatabaseDeploymentMetadata +from koyeb.api.models.database_role_password import DatabaseRolePassword as DatabaseRolePassword +from koyeb.api.models.database_source import DatabaseSource as DatabaseSource +from koyeb.api.models.database_usage import DatabaseUsage as DatabaseUsage +from koyeb.api.models.database_usage_details import DatabaseUsageDetails as DatabaseUsageDetails +from koyeb.api.models.datacenter_list_item import DatacenterListItem as DatacenterListItem +from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply as DeactivateOrganizationReply +from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest as DeactivateOrganizationRequest +from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest as DeclareStageProgressRequest +from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest as DeclareStepProgressRequest +from koyeb.api.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply as DeclineOrganizationInvitationReply +from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply as DeleteOrganizationReply +from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply as DeletePersistentVolumeReply +from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply as DeleteSnapshotReply +from koyeb.api.models.delete_user_reply import DeleteUserReply as DeleteUserReply +from koyeb.api.models.deployment import Deployment as Deployment +from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo as DeploymentDatabaseInfo +from koyeb.api.models.deployment_definition import DeploymentDefinition as DeploymentDefinition +from koyeb.api.models.deployment_definition_type import DeploymentDefinitionType as DeploymentDefinitionType +from koyeb.api.models.deployment_env import DeploymentEnv as DeploymentEnv +from koyeb.api.models.deployment_event import DeploymentEvent as DeploymentEvent +from koyeb.api.models.deployment_health_check import DeploymentHealthCheck as DeploymentHealthCheck +from koyeb.api.models.deployment_instance_type import DeploymentInstanceType as DeploymentInstanceType +from koyeb.api.models.deployment_list_item import DeploymentListItem as DeploymentListItem +from koyeb.api.models.deployment_metadata import DeploymentMetadata as DeploymentMetadata +from koyeb.api.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo as DeploymentNeonPostgresDatabaseInfo +from koyeb.api.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole as DeploymentNeonPostgresDatabaseInfoRole +from koyeb.api.models.deployment_port import DeploymentPort as DeploymentPort +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo as DeploymentProvisioningInfo +from koyeb.api.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage as DeploymentProvisioningInfoStage +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt as DeploymentProvisioningInfoStageBuildAttempt +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep as DeploymentProvisioningInfoStageBuildAttemptBuildStep +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus as DeploymentProvisioningInfoStageStatus +from koyeb.api.models.deployment_proxy_port import DeploymentProxyPort as DeploymentProxyPort +from koyeb.api.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata as DeploymentProxyPortMetadata +from koyeb.api.models.deployment_role import DeploymentRole as DeploymentRole +from koyeb.api.models.deployment_route import DeploymentRoute as DeploymentRoute +from koyeb.api.models.deployment_scaling import DeploymentScaling as DeploymentScaling +from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget as DeploymentScalingTarget +from koyeb.api.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU as DeploymentScalingTargetAverageCPU +from koyeb.api.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem as DeploymentScalingTargetAverageMem +from koyeb.api.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests as DeploymentScalingTargetConcurrentRequests +from koyeb.api.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond as DeploymentScalingTargetRequestsPerSecond +from koyeb.api.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime as DeploymentScalingTargetRequestsResponseTime +from koyeb.api.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay as DeploymentScalingTargetSleepIdleDelay +from koyeb.api.models.deployment_status import DeploymentStatus as DeploymentStatus +from koyeb.api.models.deployment_strategy import DeploymentStrategy as DeploymentStrategy +from koyeb.api.models.deployment_strategy_type import DeploymentStrategyType as DeploymentStrategyType +from koyeb.api.models.deployment_volume import DeploymentVolume as DeploymentVolume +from koyeb.api.models.desired_deployment import DesiredDeployment as DesiredDeployment +from koyeb.api.models.desired_deployment_group import DesiredDeploymentGroup as DesiredDeploymentGroup +from koyeb.api.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration as DigitalOceanRegistryConfiguration +from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply as DiscourseAuthReply +from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest as DiscourseAuthRequest +from koyeb.api.models.docker_builder import DockerBuilder as DockerBuilder +from koyeb.api.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration as DockerHubRegistryConfiguration +from koyeb.api.models.docker_source import DockerSource as DockerSource +from koyeb.api.models.domain import Domain as Domain +from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb as DomainLoadBalancerKoyeb +from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas as DomainLoadBalancerQuotas +from koyeb.api.models.domain_status import DomainStatus as DomainStatus +from koyeb.api.models.domain_type import DomainType as DomainType +from koyeb.api.models.domains_summary import DomainsSummary as DomainsSummary +from koyeb.api.models.env import Env as Env +from koyeb.api.models.error import Error as Error +from koyeb.api.models.error_field import ErrorField as ErrorField +from koyeb.api.models.error_with_fields import ErrorWithFields as ErrorWithFields +from koyeb.api.models.exec_command_io import ExecCommandIO as ExecCommandIO +from koyeb.api.models.exec_command_reply import ExecCommandReply as ExecCommandReply +from koyeb.api.models.exec_command_request_body import ExecCommandRequestBody as ExecCommandRequestBody +from koyeb.api.models.exec_command_request_id_type import ExecCommandRequestIdType as ExecCommandRequestIdType +from koyeb.api.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize as ExecCommandRequestTerminalSize +from koyeb.api.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration as GCPContainerRegistryConfiguration +from koyeb.api.models.get_app_reply import GetAppReply as GetAppReply +from koyeb.api.models.get_budget_reply import GetBudgetReply as GetBudgetReply +from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply as GetCatalogInstanceReply +from koyeb.api.models.get_credential_reply import GetCredentialReply as GetCredentialReply +from koyeb.api.models.get_deployment_reply import GetDeploymentReply as GetDeploymentReply +from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply as GetDeploymentScalingReply +from koyeb.api.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem as GetDeploymentScalingReplyItem +from koyeb.api.models.get_domain_reply import GetDomainReply as GetDomainReply +from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply as GetGithubInstallationReply +from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply as GetIdenfyTokenReply +from koyeb.api.models.get_instance_reply import GetInstanceReply as GetInstanceReply +from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply as GetIntercomProfileReply +from koyeb.api.models.get_metrics_reply import GetMetricsReply as GetMetricsReply +from koyeb.api.models.get_metrics_reply_metric import GetMetricsReplyMetric as GetMetricsReplyMetric +from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply as GetOAuthOptionsReply +from koyeb.api.models.get_organization_invitation_reply import GetOrganizationInvitationReply as GetOrganizationInvitationReply +from koyeb.api.models.get_organization_reply import GetOrganizationReply as GetOrganizationReply +from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply as GetOrganizationSummaryReply +from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply as GetOrganizationUsageDetailsReply +from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply as GetOrganizationUsageReply +from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply as GetPaymentMethodReply +from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply as GetPersistentVolumeReply +from koyeb.api.models.get_quotas_reply import GetQuotasReply as GetQuotasReply +from koyeb.api.models.get_region_reply import GetRegionReply as GetRegionReply +from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply as GetRegionalDeploymentReply +from koyeb.api.models.get_secret_reply import GetSecretReply as GetSecretReply +from koyeb.api.models.get_service_reply import GetServiceReply as GetServiceReply +from koyeb.api.models.get_snapshot_reply import GetSnapshotReply as GetSnapshotReply +from koyeb.api.models.get_subscription_reply import GetSubscriptionReply as GetSubscriptionReply +from koyeb.api.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply as GetUserOrganizationInvitationReply +from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply as GetUserSettingsReply +from koyeb.api.models.git_deployment_metadata import GitDeploymentMetadata as GitDeploymentMetadata +from koyeb.api.models.git_env_deployment_metadata import GitEnvDeploymentMetadata as GitEnvDeploymentMetadata +from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration as GitHubRegistryConfiguration +from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration as GitLabRegistryConfiguration +from koyeb.api.models.git_source import GitSource as GitSource +from koyeb.api.models.github_installation_reply import GithubInstallationReply as GithubInstallationReply +from koyeb.api.models.github_installation_request import GithubInstallationRequest as GithubInstallationRequest +from koyeb.api.models.google_protobuf_any import GoogleProtobufAny as GoogleProtobufAny +from koyeb.api.models.google_protobuf_null_value import GoogleProtobufNullValue as GoogleProtobufNullValue +from koyeb.api.models.google_rpc_status import GoogleRpcStatus as GoogleRpcStatus +from koyeb.api.models.http_header import HTTPHeader as HTTPHeader +from koyeb.api.models.http_health_check import HTTPHealthCheck as HTTPHealthCheck +from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply as HasUnpaidInvoicesReply +from koyeb.api.models.instance import Instance as Instance +from koyeb.api.models.instance_availability import InstanceAvailability as InstanceAvailability +from koyeb.api.models.instance_event import InstanceEvent as InstanceEvent +from koyeb.api.models.instance_list_item import InstanceListItem as InstanceListItem +from koyeb.api.models.instance_status import InstanceStatus as InstanceStatus +from koyeb.api.models.instance_usage import InstanceUsage as InstanceUsage +from koyeb.api.models.instances_summary import InstancesSummary as InstancesSummary +from koyeb.api.models.invite_user_request import InviteUserRequest as InviteUserRequest +from koyeb.api.models.kgitproxy_branch import KgitproxyBranch as KgitproxyBranch +from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository as KgitproxyGitHubRepository +from koyeb.api.models.kgitproxy_github_installation_status import KgitproxyGithubInstallationStatus as KgitproxyGithubInstallationStatus +from koyeb.api.models.kgitproxy_indexing_status import KgitproxyIndexingStatus as KgitproxyIndexingStatus +from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply as KgitproxyListBranchesReply +from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply as KgitproxyListRepositoriesReply +from koyeb.api.models.kgitproxy_repository import KgitproxyRepository as KgitproxyRepository +from koyeb.api.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider as KgitproxyRepositoryProvider +from koyeb.api.models.ksearch_app import KsearchApp as KsearchApp +from koyeb.api.models.ksearch_global_deployment import KsearchGlobalDeployment as KsearchGlobalDeployment +from koyeb.api.models.ksearch_instance import KsearchInstance as KsearchInstance +from koyeb.api.models.ksearch_organization import KsearchOrganization as KsearchOrganization +from koyeb.api.models.ksearch_regional_deployment import KsearchRegionalDeployment as KsearchRegionalDeployment +from koyeb.api.models.ksearch_search_reply import KsearchSearchReply as KsearchSearchReply +from koyeb.api.models.ksearch_service import KsearchService as KsearchService +from koyeb.api.models.ksearch_user import KsearchUser as KsearchUser +from koyeb.api.models.list_app_events_reply import ListAppEventsReply as ListAppEventsReply +from koyeb.api.models.list_apps_reply import ListAppsReply as ListAppsReply +from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply as ListCatalogInstancesReply +from koyeb.api.models.list_credentials_reply import ListCredentialsReply as ListCredentialsReply +from koyeb.api.models.list_datacenters_reply import ListDatacentersReply as ListDatacentersReply +from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply as ListDeploymentEventsReply +from koyeb.api.models.list_deployments_reply import ListDeploymentsReply as ListDeploymentsReply +from koyeb.api.models.list_domains_reply import ListDomainsReply as ListDomainsReply +from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply as ListInstanceEventsReply +from koyeb.api.models.list_instances_reply import ListInstancesReply as ListInstancesReply +from koyeb.api.models.list_organization_invitations_reply import ListOrganizationInvitationsReply as ListOrganizationInvitationsReply +from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply as ListOrganizationMembersReply +from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply as ListPaymentMethodsReply +from koyeb.api.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply as ListPersistentVolumeEventsReply +from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply as ListPersistentVolumesReply +from koyeb.api.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply as ListRegionalDeploymentEventsReply +from koyeb.api.models.list_regional_deployments_reply import ListRegionalDeploymentsReply as ListRegionalDeploymentsReply +from koyeb.api.models.list_regions_reply import ListRegionsReply as ListRegionsReply +from koyeb.api.models.list_secrets_reply import ListSecretsReply as ListSecretsReply +from koyeb.api.models.list_service_events_reply import ListServiceEventsReply as ListServiceEventsReply +from koyeb.api.models.list_services_reply import ListServicesReply as ListServicesReply +from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply as ListSnapshotsReply +from koyeb.api.models.list_usage_reply import ListUsageReply as ListUsageReply +from koyeb.api.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply as ListUserOrganizationInvitationsReply +from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply as ListUserOrganizationsReply +from koyeb.api.models.log_entry import LogEntry as LogEntry +from koyeb.api.models.login_method_reply import LoginMethodReply as LoginMethodReply +from koyeb.api.models.login_method_reply_method import LoginMethodReplyMethod as LoginMethodReplyMethod +from koyeb.api.models.login_reply import LoginReply as LoginReply +from koyeb.api.models.login_request import LoginRequest as LoginRequest +from koyeb.api.models.manage_reply import ManageReply as ManageReply +from koyeb.api.models.members_summary import MembersSummary as MembersSummary +from koyeb.api.models.metric_name import MetricName as MetricName +from koyeb.api.models.neon_postgres_database import NeonPostgresDatabase as NeonPostgresDatabase +from koyeb.api.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata as NeonPostgresDatabaseDeploymentMetadata +from koyeb.api.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase as NeonPostgresDatabaseNeonDatabase +from koyeb.api.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole as NeonPostgresDatabaseNeonRole +from koyeb.api.models.neon_postgres_summary import NeonPostgresSummary as NeonPostgresSummary +from koyeb.api.models.next_invoice_reply import NextInvoiceReply as NextInvoiceReply +from koyeb.api.models.next_invoice_reply_discount import NextInvoiceReplyDiscount as NextInvoiceReplyDiscount +from koyeb.api.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType as NextInvoiceReplyDiscountType +from koyeb.api.models.next_invoice_reply_line import NextInvoiceReplyLine as NextInvoiceReplyLine +from koyeb.api.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod as NextInvoiceReplyLinePeriod +from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice as NextInvoiceReplyLinePrice +from koyeb.api.models.notification import Notification as Notification +from koyeb.api.models.notification_list import NotificationList as NotificationList +from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply as OAuthCallbackReply +from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest as OAuthCallbackRequest +from koyeb.api.models.o_auth_provider import OAuthProvider as OAuthProvider +from koyeb.api.models.object import Object as Object +from koyeb.api.models.organization import Organization as Organization +from koyeb.api.models.organization_deactivation_reason import OrganizationDeactivationReason as OrganizationDeactivationReason +from koyeb.api.models.organization_detailed_status import OrganizationDetailedStatus as OrganizationDetailedStatus +from koyeb.api.models.organization_invitation import OrganizationInvitation as OrganizationInvitation +from koyeb.api.models.organization_invitation_status import OrganizationInvitationStatus as OrganizationInvitationStatus +from koyeb.api.models.organization_member import OrganizationMember as OrganizationMember +from koyeb.api.models.organization_member_status import OrganizationMemberStatus as OrganizationMemberStatus +from koyeb.api.models.organization_status import OrganizationStatus as OrganizationStatus +from koyeb.api.models.organization_summary import OrganizationSummary as OrganizationSummary +from koyeb.api.models.payment_method import PaymentMethod as PaymentMethod +from koyeb.api.models.payment_method_status import PaymentMethodStatus as PaymentMethodStatus +from koyeb.api.models.period_usage import PeriodUsage as PeriodUsage +from koyeb.api.models.persistent_volume import PersistentVolume as PersistentVolume +from koyeb.api.models.persistent_volume_backing_store import PersistentVolumeBackingStore as PersistentVolumeBackingStore +from koyeb.api.models.persistent_volume_event import PersistentVolumeEvent as PersistentVolumeEvent +from koyeb.api.models.persistent_volume_quotas import PersistentVolumeQuotas as PersistentVolumeQuotas +from koyeb.api.models.persistent_volume_status import PersistentVolumeStatus as PersistentVolumeStatus +from koyeb.api.models.plan import Plan as Plan +from koyeb.api.models.port import Port as Port +from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration as PrivateRegistryConfiguration +from koyeb.api.models.proxy_port_protocol import ProxyPortProtocol as ProxyPortProtocol +from koyeb.api.models.public_organization import PublicOrganization as PublicOrganization +from koyeb.api.models.public_user import PublicUser as PublicUser +from koyeb.api.models.query_logs_reply import QueryLogsReply as QueryLogsReply +from koyeb.api.models.query_logs_reply_pagination import QueryLogsReplyPagination as QueryLogsReplyPagination +from koyeb.api.models.quotas import Quotas as Quotas +from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply as ReactivateOrganizationReply +from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest as RedeemCouponRequest +from koyeb.api.models.redeploy_reply import RedeployReply as RedeployReply +from koyeb.api.models.redeploy_request_info import RedeployRequestInfo as RedeployRequestInfo +from koyeb.api.models.region import Region as Region +from koyeb.api.models.region_availability import RegionAvailability as RegionAvailability +from koyeb.api.models.region_list_item import RegionListItem as RegionListItem +from koyeb.api.models.region_usage import RegionUsage as RegionUsage +from koyeb.api.models.regional_deployment import RegionalDeployment as RegionalDeployment +from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition as RegionalDeploymentDefinition +from koyeb.api.models.regional_deployment_definition_type import RegionalDeploymentDefinitionType as RegionalDeploymentDefinitionType +from koyeb.api.models.regional_deployment_event import RegionalDeploymentEvent as RegionalDeploymentEvent +from koyeb.api.models.regional_deployment_list_item import RegionalDeploymentListItem as RegionalDeploymentListItem +from koyeb.api.models.regional_deployment_role import RegionalDeploymentRole as RegionalDeploymentRole +from koyeb.api.models.regional_deployment_status import RegionalDeploymentStatus as RegionalDeploymentStatus +from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume as RegionalDeploymentVolume +from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply as RemoveOrganizationMemberReply +from koyeb.api.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply as ResendOrganizationInvitationReply +from koyeb.api.models.reset_password_request import ResetPasswordRequest as ResetPasswordRequest +from koyeb.api.models.reveal_secret_reply import RevealSecretReply as RevealSecretReply +from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply as ReviewOrganizationCapacityReply +from koyeb.api.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest as ReviewOrganizationCapacityRequest +from koyeb.api.models.route import Route as Route +from koyeb.api.models.sample import Sample as Sample +from koyeb.api.models.scale_to_zero_quotas import ScaleToZeroQuotas as ScaleToZeroQuotas +from koyeb.api.models.scaling import Scaling as Scaling +from koyeb.api.models.secret import Secret as Secret +from koyeb.api.models.secret_type import SecretType as SecretType +from koyeb.api.models.secrets_summary import SecretsSummary as SecretsSummary +from koyeb.api.models.service import Service as Service +from koyeb.api.models.service_event import ServiceEvent as ServiceEvent +from koyeb.api.models.service_list_item import ServiceListItem as ServiceListItem +from koyeb.api.models.service_state import ServiceState as ServiceState +from koyeb.api.models.service_status import ServiceStatus as ServiceStatus +from koyeb.api.models.service_summary import ServiceSummary as ServiceSummary +from koyeb.api.models.service_type import ServiceType as ServiceType +from koyeb.api.models.service_usage import ServiceUsage as ServiceUsage +from koyeb.api.models.snapshot import Snapshot as Snapshot +from koyeb.api.models.snapshot_status import SnapshotStatus as SnapshotStatus +from koyeb.api.models.snapshot_type import SnapshotType as SnapshotType +from koyeb.api.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply as StreamResultOfExecCommandReply +from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry as StreamResultOfLogEntry +from koyeb.api.models.subscription import Subscription as Subscription +from koyeb.api.models.subscription_payment_failure import SubscriptionPaymentFailure as SubscriptionPaymentFailure +from koyeb.api.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK as SubscriptionPaymentFailureStripeSDK +from koyeb.api.models.subscription_status import SubscriptionStatus as SubscriptionStatus +from koyeb.api.models.tcp_health_check import TCPHealthCheck as TCPHealthCheck +from koyeb.api.models.token import Token as Token +from koyeb.api.models.trigger_deployment_metadata import TriggerDeploymentMetadata as TriggerDeploymentMetadata +from koyeb.api.models.trigger_deployment_metadata_actor_type import TriggerDeploymentMetadataActorType as TriggerDeploymentMetadataActorType +from koyeb.api.models.trigger_deployment_metadata_trigger_type import TriggerDeploymentMetadataTriggerType as TriggerDeploymentMetadataTriggerType +from koyeb.api.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata as TriggerGitDeploymentMetadata +from koyeb.api.models.trigger_git_deployment_metadata_provider import TriggerGitDeploymentMetadataProvider as TriggerGitDeploymentMetadataProvider +from koyeb.api.models.update_app import UpdateApp as UpdateApp +from koyeb.api.models.update_app_reply import UpdateAppReply as UpdateAppReply +from koyeb.api.models.update_budget_reply import UpdateBudgetReply as UpdateBudgetReply +from koyeb.api.models.update_budget_request import UpdateBudgetRequest as UpdateBudgetRequest +from koyeb.api.models.update_credential_reply import UpdateCredentialReply as UpdateCredentialReply +from koyeb.api.models.update_domain import UpdateDomain as UpdateDomain +from koyeb.api.models.update_domain_reply import UpdateDomainReply as UpdateDomainReply +from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply as UpdateOrganizationPlanReply +from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest as UpdateOrganizationPlanRequest +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply as UpdateOrganizationReply +from koyeb.api.models.update_password_request import UpdatePasswordRequest as UpdatePasswordRequest +from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply as UpdatePersistentVolumeReply +from koyeb.api.models.update_persistent_volume_request import UpdatePersistentVolumeRequest as UpdatePersistentVolumeRequest +from koyeb.api.models.update_secret_reply import UpdateSecretReply as UpdateSecretReply +from koyeb.api.models.update_service import UpdateService as UpdateService +from koyeb.api.models.update_service_reply import UpdateServiceReply as UpdateServiceReply +from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply as UpdateSnapshotReply +from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest as UpdateSnapshotRequest +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody as UpdateUserRequestUserUpdateBody +from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply as UpdateUserSettingsReply +from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest as UpdateUserSettingsRequest +from koyeb.api.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply as UpsertSignupQualificationReply +from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest as UpsertSignupQualificationRequest +from koyeb.api.models.usage import Usage as Usage +from koyeb.api.models.usage_details import UsageDetails as UsageDetails +from koyeb.api.models.user import User as User +from koyeb.api.models.user_flags import UserFlags as UserFlags +from koyeb.api.models.user_reply import UserReply as UserReply +from koyeb.api.models.user_role_role import UserRoleRole as UserRoleRole +from koyeb.api.models.user_settings import UserSettings as UserSettings +from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply as VerifyDockerImageReply +from koyeb.api.models.verify_docker_image_reply_err_code import VerifyDockerImageReplyErrCode as VerifyDockerImageReplyErrCode + diff --git a/koyeb/api/api/__init__.py b/koyeb/api/api/__init__.py new file mode 100644 index 00000000..9769dde9 --- /dev/null +++ b/koyeb/api/api/__init__.py @@ -0,0 +1,45 @@ +# flake8: noqa + +# import apis into api package +from koyeb.api.api.apps_api import AppsApi +from koyeb.api.api.archives_api import ArchivesApi +from koyeb.api.api.catalog_datacenters_api import CatalogDatacentersApi +from koyeb.api.api.catalog_instance_usage_api import CatalogInstanceUsageApi +from koyeb.api.api.catalog_instances_api import CatalogInstancesApi +from koyeb.api.api.catalog_regions_api import CatalogRegionsApi +from koyeb.api.api.compose_api import ComposeApi +from koyeb.api.api.coupons_api import CouponsApi +from koyeb.api.api.credentials_api import CredentialsApi +from koyeb.api.api.deployments_api import DeploymentsApi +from koyeb.api.api.docker_helper_api import DockerHelperApi +from koyeb.api.api.domains_api import DomainsApi +from koyeb.api.api.instances_api import InstancesApi +from koyeb.api.api.intercom_api import IntercomApi +from koyeb.api.api.logs_api import LogsApi +from koyeb.api.api.metrics_api import MetricsApi +from koyeb.api.api.organization_confirmations_api import OrganizationConfirmationsApi +from koyeb.api.api.organization_invitations_api import OrganizationInvitationsApi +from koyeb.api.api.organization_members_api import OrganizationMembersApi +from koyeb.api.api.organization_quotas_api import OrganizationQuotasApi +from koyeb.api.api.payment_methods_api import PaymentMethodsApi +from koyeb.api.api.persistent_volumes_api import PersistentVolumesApi +from koyeb.api.api.profile_api import ProfileApi +from koyeb.api.api.provisioning_api import ProvisioningApi +from koyeb.api.api.quotas_api import QuotasApi +from koyeb.api.api.regional_deployments_api import RegionalDeploymentsApi +from koyeb.api.api.repositories_api import RepositoriesApi +from koyeb.api.api.search_api import SearchApi +from koyeb.api.api.secrets_api import SecretsApi +from koyeb.api.api.services_api import ServicesApi +from koyeb.api.api.sessions_api import SessionsApi +from koyeb.api.api.snapshots_api import SnapshotsApi +from koyeb.api.api.subscriptions_api import SubscriptionsApi +from koyeb.api.api.summary_api import SummaryApi +from koyeb.api.api.usages_api import UsagesApi +from koyeb.api.api.users_api import UsersApi +from koyeb.api.api.activity_api import ActivityApi +from koyeb.api.api.billing_api import BillingApi +from koyeb.api.api.invite_api import InviteApi +from koyeb.api.api.organization_api import OrganizationApi +from koyeb.api.api.sso_api import SsoApi + diff --git a/koyeb/api/activity_api.py b/koyeb/api/api/activity_api.py similarity index 79% rename from koyeb/api/activity_api.py rename to koyeb/api/api/activity_api.py index 5ccc51c7..724191a3 100644 --- a/koyeb/api/activity_api.py +++ b/koyeb/api/api/activity_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,12 +19,12 @@ from pydantic import Field, StrictStr from typing import List, Optional from typing_extensions import Annotated -from koyeb.models.activity_list import ActivityList -from koyeb.models.notification_list import NotificationList +from koyeb.api.models.activity_list import ActivityList +from koyeb.api.models.notification_list import NotificationList -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class ActivityApi: @@ -39,6 +39,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_account_activities( self, @@ -48,8 +49,9 @@ def get_account_activities( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -83,7 +85,7 @@ def get_account_activities( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_account_activities_serialize( limit=limit, @@ -91,20 +93,21 @@ def get_account_activities( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ActivityList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ActivityList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -112,6 +115,7 @@ def get_account_activities( response_types_map=_response_types_map, ).data + @validate_call def get_account_activities_with_http_info( self, @@ -121,8 +125,9 @@ def get_account_activities_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -156,7 +161,7 @@ def get_account_activities_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_account_activities_serialize( limit=limit, @@ -164,20 +169,21 @@ def get_account_activities_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ActivityList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ActivityList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -185,6 +191,7 @@ def get_account_activities_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_account_activities_without_preload_content( self, @@ -194,8 +201,9 @@ def get_account_activities_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,7 +237,7 @@ def get_account_activities_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_account_activities_serialize( limit=limit, @@ -237,23 +245,25 @@ def get_account_activities_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ActivityList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ActivityList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_account_activities_serialize( self, limit, @@ -266,7 +276,8 @@ def _get_account_activities_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -280,27 +291,35 @@ def _get_account_activities_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/activities", + method='GET', + resource_path='/v1/account/activities', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -310,24 +329,25 @@ def _get_account_activities_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_activities( self, limit: Optional[StrictStr] = None, offset: Optional[StrictStr] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on object type"), - ] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on object type")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -363,7 +383,7 @@ def list_activities( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_activities_serialize( limit=limit, @@ -372,20 +392,21 @@ def list_activities( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ActivityList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ActivityList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -393,21 +414,20 @@ def list_activities( response_types_map=_response_types_map, ).data + @validate_call def list_activities_with_http_info( self, limit: Optional[StrictStr] = None, offset: Optional[StrictStr] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on object type"), - ] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on object type")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -443,7 +463,7 @@ def list_activities_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_activities_serialize( limit=limit, @@ -452,20 +472,21 @@ def list_activities_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ActivityList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ActivityList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -473,21 +494,20 @@ def list_activities_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_activities_without_preload_content( self, limit: Optional[StrictStr] = None, offset: Optional[StrictStr] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on object type"), - ] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on object type")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -523,7 +543,7 @@ def list_activities_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_activities_serialize( limit=limit, @@ -532,23 +552,25 @@ def list_activities_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ActivityList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ActivityList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_activities_serialize( self, limit, @@ -563,7 +585,7 @@ def _list_activities_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -578,31 +600,39 @@ def _list_activities_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/activities", + method='GET', + resource_path='/v1/activities', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -612,9 +642,12 @@ def _list_activities_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_notifications( self, @@ -628,8 +661,9 @@ def list_notifications( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -671,7 +705,7 @@ def list_notifications( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_notifications_serialize( limit=limit, @@ -683,20 +717,21 @@ def list_notifications( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "NotificationList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "NotificationList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -704,6 +739,7 @@ def list_notifications( response_types_map=_response_types_map, ).data + @validate_call def list_notifications_with_http_info( self, @@ -717,8 +753,9 @@ def list_notifications_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -760,7 +797,7 @@ def list_notifications_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_notifications_serialize( limit=limit, @@ -772,20 +809,21 @@ def list_notifications_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "NotificationList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "NotificationList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -793,6 +831,7 @@ def list_notifications_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_notifications_without_preload_content( self, @@ -806,8 +845,9 @@ def list_notifications_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -849,7 +889,7 @@ def list_notifications_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_notifications_serialize( limit=limit, @@ -861,23 +901,25 @@ def list_notifications_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "NotificationList", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "NotificationList", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_notifications_serialize( self, limit, @@ -894,7 +936,8 @@ def _list_notifications_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -908,43 +951,51 @@ def _list_notifications_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if mark_read is not None: - - _query_params.append(("mark_read", mark_read)) - + + _query_params.append(('mark_read', mark_read)) + if mark_seen is not None: - - _query_params.append(("mark_seen", mark_seen)) - + + _query_params.append(('mark_seen', mark_seen)) + if unread is not None: - - _query_params.append(("unread", unread)) - + + _query_params.append(('unread', unread)) + if unseen is not None: - - _query_params.append(("unseen", unseen)) - + + _query_params.append(('unseen', unseen)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/notifications", + method='GET', + resource_path='/v1/notifications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -954,5 +1005,7 @@ def _list_notifications_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/apps_api.py b/koyeb/api/api/apps_api.py similarity index 79% rename from koyeb/api/apps_api.py rename to koyeb/api/api/apps_api.py index 41088b1b..ff7d8f6d 100644 --- a/koyeb/api/apps_api.py +++ b/koyeb/api/api/apps_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,17 +19,17 @@ from pydantic import Field, StrictStr from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.create_app import CreateApp -from koyeb.models.create_app_reply import CreateAppReply -from koyeb.models.get_app_reply import GetAppReply -from koyeb.models.list_app_events_reply import ListAppEventsReply -from koyeb.models.list_apps_reply import ListAppsReply -from koyeb.models.update_app import UpdateApp -from koyeb.models.update_app_reply import UpdateAppReply +from koyeb.api.models.create_app import CreateApp +from koyeb.api.models.create_app_reply import CreateAppReply +from koyeb.api.models.get_app_reply import GetAppReply +from koyeb.api.models.list_app_events_reply import ListAppEventsReply +from koyeb.api.models.list_apps_reply import ListAppsReply +from koyeb.api.models.update_app import UpdateApp +from koyeb.api.models.update_app_reply import UpdateAppReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class AppsApi: @@ -44,6 +44,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_app( self, @@ -52,8 +53,9 @@ def create_app( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,27 +87,28 @@ def create_app( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_app_serialize( app=app, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,6 +116,7 @@ def create_app( response_types_map=_response_types_map, ).data + @validate_call def create_app_with_http_info( self, @@ -121,8 +125,9 @@ def create_app_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -154,27 +159,28 @@ def create_app_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_app_serialize( app=app, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -182,6 +188,7 @@ def create_app_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_app_without_preload_content( self, @@ -190,8 +197,9 @@ def create_app_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -223,30 +231,32 @@ def create_app_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_app_serialize( app=app, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_app_serialize( self, app, @@ -258,7 +268,8 @@ def _create_app_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,16 +288,24 @@ def _create_app_serialize( if app is not None: _body_params = app + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/apps", + method='POST', + resource_path='/v1/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -296,9 +315,12 @@ def _create_app_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_app( self, @@ -307,8 +329,9 @@ def delete_app( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -341,27 +364,28 @@ def delete_app( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -369,6 +393,7 @@ def delete_app( response_types_map=_response_types_map, ).data + @validate_call def delete_app_with_http_info( self, @@ -377,8 +402,9 @@ def delete_app_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -411,27 +437,28 @@ def delete_app_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -439,6 +466,7 @@ def delete_app_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_app_without_preload_content( self, @@ -447,8 +475,9 @@ def delete_app_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -481,30 +510,32 @@ def delete_app_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_app_serialize( self, id, @@ -516,7 +547,8 @@ def _delete_app_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -529,22 +561,30 @@ def _delete_app_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/apps/{id}", + method='DELETE', + resource_path='/v1/apps/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -554,9 +594,12 @@ def _delete_app_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_app( self, @@ -565,8 +608,9 @@ def get_app( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -598,27 +642,28 @@ def get_app( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -626,6 +671,7 @@ def get_app( response_types_map=_response_types_map, ).data + @validate_call def get_app_with_http_info( self, @@ -634,8 +680,9 @@ def get_app_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -667,27 +714,28 @@ def get_app_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -695,6 +743,7 @@ def get_app_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_app_without_preload_content( self, @@ -703,8 +752,9 @@ def get_app_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -736,30 +786,32 @@ def get_app_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_app_serialize( self, id, @@ -771,7 +823,8 @@ def _get_app_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -784,22 +837,30 @@ def _get_app_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/apps/{id}", + method='GET', + resource_path='/v1/apps/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -809,39 +870,27 @@ def _get_app_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_app_events( self, - app_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on app id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on app event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on app id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on app event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -881,7 +930,7 @@ def list_app_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_app_events_serialize( app_id=app_id, @@ -892,20 +941,21 @@ def list_app_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListAppEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListAppEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -913,36 +963,22 @@ def list_app_events( response_types_map=_response_types_map, ).data + @validate_call def list_app_events_with_http_info( self, - app_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on app id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on app event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on app id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on app event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -982,7 +1018,7 @@ def list_app_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_app_events_serialize( app_id=app_id, @@ -993,20 +1029,21 @@ def list_app_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListAppEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListAppEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1014,36 +1051,22 @@ def list_app_events_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_app_events_without_preload_content( self, - app_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on app id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on app event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on app id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on app event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1083,7 +1106,7 @@ def list_app_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_app_events_serialize( app_id=app_id, @@ -1094,23 +1117,25 @@ def list_app_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListAppEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListAppEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_app_events_serialize( self, app_id, @@ -1127,7 +1152,7 @@ def _list_app_events_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -1142,39 +1167,47 @@ def _list_app_events_serialize( # process the path parameters # process the query parameters if app_id is not None: - - _query_params.append(("app_id", app_id)) - + + _query_params.append(('app_id', app_id)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/app_events", + method='GET', + resource_path='/v1/app_events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1184,29 +1217,25 @@ def _list_app_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_apps( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1242,7 +1271,7 @@ def list_apps( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_apps_serialize( limit=limit, @@ -1251,20 +1280,21 @@ def list_apps( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListAppsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListAppsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1272,26 +1302,20 @@ def list_apps( response_types_map=_response_types_map, ).data + @validate_call def list_apps_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1327,7 +1351,7 @@ def list_apps_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_apps_serialize( limit=limit, @@ -1336,20 +1360,21 @@ def list_apps_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListAppsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListAppsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1357,26 +1382,20 @@ def list_apps_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_apps_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1412,7 +1431,7 @@ def list_apps_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_apps_serialize( limit=limit, @@ -1421,23 +1440,25 @@ def list_apps_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListAppsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListAppsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_apps_serialize( self, limit, @@ -1451,7 +1472,8 @@ def _list_apps_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1465,31 +1487,39 @@ def _list_apps_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/apps", + method='GET', + resource_path='/v1/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1499,9 +1529,12 @@ def _list_apps_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def pause_app( self, @@ -1510,8 +1543,9 @@ def pause_app( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1544,27 +1578,28 @@ def pause_app( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._pause_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1572,6 +1607,7 @@ def pause_app( response_types_map=_response_types_map, ).data + @validate_call def pause_app_with_http_info( self, @@ -1580,8 +1616,9 @@ def pause_app_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1614,27 +1651,28 @@ def pause_app_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._pause_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1642,6 +1680,7 @@ def pause_app_with_http_info( response_types_map=_response_types_map, ) + @validate_call def pause_app_without_preload_content( self, @@ -1650,8 +1689,9 @@ def pause_app_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1684,30 +1724,32 @@ def pause_app_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._pause_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _pause_app_serialize( self, id, @@ -1719,7 +1761,8 @@ def _pause_app_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1732,22 +1775,30 @@ def _pause_app_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/apps/{id}/pause", + method='POST', + resource_path='/v1/apps/{id}/pause', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1757,9 +1808,12 @@ def _pause_app_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def resume_app( self, @@ -1768,8 +1822,9 @@ def resume_app( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1802,27 +1857,28 @@ def resume_app( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resume_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1830,6 +1886,7 @@ def resume_app( response_types_map=_response_types_map, ).data + @validate_call def resume_app_with_http_info( self, @@ -1838,8 +1895,9 @@ def resume_app_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1872,27 +1930,28 @@ def resume_app_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resume_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1900,6 +1959,7 @@ def resume_app_with_http_info( response_types_map=_response_types_map, ) + @validate_call def resume_app_without_preload_content( self, @@ -1908,8 +1968,9 @@ def resume_app_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1942,30 +2003,32 @@ def resume_app_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resume_app_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _resume_app_serialize( self, id, @@ -1977,7 +2040,8 @@ def _resume_app_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1990,22 +2054,30 @@ def _resume_app_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/apps/{id}/resume", + method='POST', + resource_path='/v1/apps/{id}/resume', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2015,9 +2087,12 @@ def _resume_app_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_app( self, @@ -2028,8 +2103,9 @@ def update_app( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2065,7 +2141,7 @@ def update_app( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_app_serialize( id=id, @@ -2074,20 +2150,21 @@ def update_app( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2095,6 +2172,7 @@ def update_app( response_types_map=_response_types_map, ).data + @validate_call def update_app_with_http_info( self, @@ -2105,8 +2183,9 @@ def update_app_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2142,7 +2221,7 @@ def update_app_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_app_serialize( id=id, @@ -2151,20 +2230,21 @@ def update_app_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2172,6 +2252,7 @@ def update_app_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_app_without_preload_content( self, @@ -2182,8 +2263,9 @@ def update_app_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2219,7 +2301,7 @@ def update_app_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_app_serialize( id=id, @@ -2228,23 +2310,25 @@ def update_app_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_app_serialize( self, id, @@ -2258,7 +2342,8 @@ def _update_app_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2271,28 +2356,36 @@ def _update_app_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if app is not None: _body_params = app + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/apps/{id}", + method='PUT', + resource_path='/v1/apps/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2302,9 +2395,12 @@ def _update_app_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_app2( self, @@ -2315,8 +2411,9 @@ def update_app2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2352,7 +2449,7 @@ def update_app2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_app2_serialize( id=id, @@ -2361,20 +2458,21 @@ def update_app2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2382,6 +2480,7 @@ def update_app2( response_types_map=_response_types_map, ).data + @validate_call def update_app2_with_http_info( self, @@ -2392,8 +2491,9 @@ def update_app2_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2429,7 +2529,7 @@ def update_app2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_app2_serialize( id=id, @@ -2438,20 +2538,21 @@ def update_app2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2459,6 +2560,7 @@ def update_app2_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_app2_without_preload_content( self, @@ -2469,8 +2571,9 @@ def update_app2_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2506,7 +2609,7 @@ def update_app2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_app2_serialize( id=id, @@ -2515,23 +2618,25 @@ def update_app2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateAppReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateAppReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_app2_serialize( self, id, @@ -2545,7 +2650,8 @@ def _update_app2_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2558,28 +2664,36 @@ def _update_app2_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if app is not None: _body_params = app + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/apps/{id}", + method='PATCH', + resource_path='/v1/apps/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2589,5 +2703,7 @@ def _update_app2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/archives_api.py b/koyeb/api/api/archives_api.py similarity index 78% rename from koyeb/api/archives_api.py rename to koyeb/api/api/archives_api.py index 9b9d86cd..40107a65 100644 --- a/koyeb/api/archives_api.py +++ b/koyeb/api/api/archives_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -16,12 +16,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.models.create_archive import CreateArchive -from koyeb.models.create_archive_reply import CreateArchiveReply +from koyeb.api.models.create_archive import CreateArchive +from koyeb.api.models.create_archive_reply import CreateArchiveReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class ArchivesApi: @@ -36,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_archive( self, @@ -44,8 +45,9 @@ def create_archive( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -78,27 +80,28 @@ def create_archive( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_archive_serialize( archive=archive, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateArchiveReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateArchiveReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -106,6 +109,7 @@ def create_archive( response_types_map=_response_types_map, ).data + @validate_call def create_archive_with_http_info( self, @@ -114,8 +118,9 @@ def create_archive_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -148,27 +153,28 @@ def create_archive_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_archive_serialize( archive=archive, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateArchiveReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateArchiveReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -176,6 +182,7 @@ def create_archive_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_archive_without_preload_content( self, @@ -184,8 +191,9 @@ def create_archive_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -218,30 +226,32 @@ def create_archive_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_archive_serialize( archive=archive, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateArchiveReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateArchiveReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_archive_serialize( self, archive, @@ -253,7 +263,8 @@ def _create_archive_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -272,16 +283,24 @@ def _create_archive_serialize( if archive is not None: _body_params = archive + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/archives", + method='POST', + resource_path='/v1/archives', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -291,5 +310,7 @@ def _create_archive_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/billing_api.py b/koyeb/api/api/billing_api.py similarity index 80% rename from koyeb/api/billing_api.py rename to koyeb/api/api/billing_api.py index d5c40a12..e2edf9ce 100644 --- a/koyeb/api/billing_api.py +++ b/koyeb/api/api/billing_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -16,13 +16,13 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply -from koyeb.models.manage_reply import ManageReply -from koyeb.models.next_invoice_reply import NextInvoiceReply +from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply +from koyeb.api.models.manage_reply import ManageReply +from koyeb.api.models.next_invoice_reply import NextInvoiceReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class BillingApi: @@ -37,6 +37,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def has_unpaid_invoices( self, @@ -44,8 +45,9 @@ def has_unpaid_invoices( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -76,26 +78,27 @@ def has_unpaid_invoices( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._has_unpaid_invoices_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HasUnpaidInvoicesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "HasUnpaidInvoicesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -103,6 +106,7 @@ def has_unpaid_invoices( response_types_map=_response_types_map, ).data + @validate_call def has_unpaid_invoices_with_http_info( self, @@ -110,8 +114,9 @@ def has_unpaid_invoices_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -142,26 +147,27 @@ def has_unpaid_invoices_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._has_unpaid_invoices_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HasUnpaidInvoicesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "HasUnpaidInvoicesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -169,6 +175,7 @@ def has_unpaid_invoices_with_http_info( response_types_map=_response_types_map, ) + @validate_call def has_unpaid_invoices_without_preload_content( self, @@ -176,8 +183,9 @@ def has_unpaid_invoices_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -208,29 +216,31 @@ def has_unpaid_invoices_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._has_unpaid_invoices_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HasUnpaidInvoicesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "HasUnpaidInvoicesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _has_unpaid_invoices_serialize( self, _request_auth, @@ -241,7 +251,8 @@ def _has_unpaid_invoices_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -258,16 +269,24 @@ def _has_unpaid_invoices_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/billing/has_unpaid_invoices", + method='GET', + resource_path='/v1/billing/has_unpaid_invoices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -277,9 +296,12 @@ def _has_unpaid_invoices_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def manage( self, @@ -287,8 +309,9 @@ def manage( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -318,26 +341,27 @@ def manage( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._manage_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ManageReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ManageReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -345,6 +369,7 @@ def manage( response_types_map=_response_types_map, ).data + @validate_call def manage_with_http_info( self, @@ -352,8 +377,9 @@ def manage_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -383,26 +409,27 @@ def manage_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._manage_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ManageReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ManageReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -410,6 +437,7 @@ def manage_with_http_info( response_types_map=_response_types_map, ) + @validate_call def manage_without_preload_content( self, @@ -417,8 +445,9 @@ def manage_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -448,29 +477,31 @@ def manage_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._manage_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ManageReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ManageReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _manage_serialize( self, _request_auth, @@ -481,7 +512,8 @@ def _manage_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -498,16 +530,24 @@ def _manage_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/billing/manage", + method='GET', + resource_path='/v1/billing/manage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -517,9 +557,12 @@ def _manage_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def next_invoice( self, @@ -527,8 +570,9 @@ def next_invoice( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -559,26 +603,27 @@ def next_invoice( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._next_invoice_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "NextInvoiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "NextInvoiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -586,6 +631,7 @@ def next_invoice( response_types_map=_response_types_map, ).data + @validate_call def next_invoice_with_http_info( self, @@ -593,8 +639,9 @@ def next_invoice_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -625,26 +672,27 @@ def next_invoice_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._next_invoice_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "NextInvoiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "NextInvoiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -652,6 +700,7 @@ def next_invoice_with_http_info( response_types_map=_response_types_map, ) + @validate_call def next_invoice_without_preload_content( self, @@ -659,8 +708,9 @@ def next_invoice_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -691,29 +741,31 @@ def next_invoice_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._next_invoice_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "NextInvoiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "NextInvoiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _next_invoice_serialize( self, _request_auth, @@ -724,7 +776,8 @@ def _next_invoice_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -741,16 +794,24 @@ def _next_invoice_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/billing/next_invoice", + method='GET', + resource_path='/v1/billing/next_invoice', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -760,5 +821,7 @@ def _next_invoice_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/catalog_datacenters_api.py b/koyeb/api/api/catalog_datacenters_api.py similarity index 82% rename from koyeb/api/catalog_datacenters_api.py rename to koyeb/api/api/catalog_datacenters_api.py index 588d8345..aa47e8da 100644 --- a/koyeb/api/catalog_datacenters_api.py +++ b/koyeb/api/api/catalog_datacenters_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -16,11 +16,11 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.models.list_datacenters_reply import ListDatacentersReply +from koyeb.api.models.list_datacenters_reply import ListDatacentersReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class CatalogDatacentersApi: @@ -35,6 +35,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def list_datacenters( self, @@ -42,8 +43,9 @@ def list_datacenters( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -73,20 +75,21 @@ def list_datacenters( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_datacenters_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDatacentersReply", + '200': "ListDatacentersReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -94,6 +97,7 @@ def list_datacenters( response_types_map=_response_types_map, ).data + @validate_call def list_datacenters_with_http_info( self, @@ -101,8 +105,9 @@ def list_datacenters_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -132,20 +137,21 @@ def list_datacenters_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_datacenters_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDatacentersReply", + '200': "ListDatacentersReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -153,6 +159,7 @@ def list_datacenters_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_datacenters_without_preload_content( self, @@ -160,8 +167,9 @@ def list_datacenters_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -191,23 +199,25 @@ def list_datacenters_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_datacenters_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDatacentersReply", + '200': "ListDatacentersReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_datacenters_serialize( self, _request_auth, @@ -218,7 +228,8 @@ def _list_datacenters_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -235,16 +246,24 @@ def _list_datacenters_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/catalog/datacenters", + method='GET', + resource_path='/v1/catalog/datacenters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -254,5 +273,7 @@ def _list_datacenters_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/catalog_instance_usage_api.py b/koyeb/api/api/catalog_instance_usage_api.py similarity index 82% rename from koyeb/api/catalog_instance_usage_api.py rename to koyeb/api/api/catalog_instance_usage_api.py index a4ad6f3f..c340a44c 100644 --- a/koyeb/api/catalog_instance_usage_api.py +++ b/koyeb/api/api/catalog_instance_usage_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -18,11 +18,11 @@ from pydantic import StrictStr from typing import Optional -from koyeb.models.list_usage_reply import ListUsageReply +from koyeb.api.models.list_usage_reply import ListUsageReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class CatalogInstanceUsageApi: @@ -37,6 +37,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def list_usage( self, @@ -45,8 +46,9 @@ def list_usage( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -78,21 +80,22 @@ def list_usage( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_usage_serialize( region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUsageReply", + '200': "ListUsageReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -100,6 +103,7 @@ def list_usage( response_types_map=_response_types_map, ).data + @validate_call def list_usage_with_http_info( self, @@ -108,8 +112,9 @@ def list_usage_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -141,21 +146,22 @@ def list_usage_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_usage_serialize( region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUsageReply", + '200': "ListUsageReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -163,6 +169,7 @@ def list_usage_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_usage_without_preload_content( self, @@ -171,8 +178,9 @@ def list_usage_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -204,24 +212,26 @@ def list_usage_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_usage_serialize( region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUsageReply", + '200': "ListUsageReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_usage_serialize( self, region, @@ -233,7 +243,8 @@ def _list_usage_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -247,23 +258,31 @@ def _list_usage_serialize( # process the path parameters # process the query parameters if region is not None: - - _query_params.append(("region", region)) - + + _query_params.append(('region', region)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/catalog/usage", + method='GET', + resource_path='/v1/catalog/usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -273,5 +292,7 @@ def _list_usage_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/catalog_instances_api.py b/koyeb/api/api/catalog_instances_api.py similarity index 79% rename from koyeb/api/catalog_instances_api.py rename to koyeb/api/api/catalog_instances_api.py index 3bd39adc..910b9d6e 100644 --- a/koyeb/api/catalog_instances_api.py +++ b/koyeb/api/api/catalog_instances_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,12 +19,12 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from koyeb.models.get_catalog_instance_reply import GetCatalogInstanceReply -from koyeb.models.list_catalog_instances_reply import ListCatalogInstancesReply +from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply +from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class CatalogInstancesApi: @@ -39,6 +39,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_catalog_instance( self, @@ -47,8 +48,9 @@ def get_catalog_instance( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -80,21 +82,22 @@ def get_catalog_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_catalog_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCatalogInstanceReply", + '200': "GetCatalogInstanceReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -102,6 +105,7 @@ def get_catalog_instance( response_types_map=_response_types_map, ).data + @validate_call def get_catalog_instance_with_http_info( self, @@ -110,8 +114,9 @@ def get_catalog_instance_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -143,21 +148,22 @@ def get_catalog_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_catalog_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCatalogInstanceReply", + '200': "GetCatalogInstanceReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -165,6 +171,7 @@ def get_catalog_instance_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_catalog_instance_without_preload_content( self, @@ -173,8 +180,9 @@ def get_catalog_instance_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -206,24 +214,26 @@ def get_catalog_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_catalog_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCatalogInstanceReply", + '200': "GetCatalogInstanceReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_catalog_instance_serialize( self, id, @@ -235,7 +245,8 @@ def _get_catalog_instance_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -248,22 +259,30 @@ def _get_catalog_instance_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/catalog/instances/{id}", + method='GET', + resource_path='/v1/catalog/instances/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -273,29 +292,25 @@ def _get_catalog_instance_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_catalog_instances( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - id: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for instances") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for instances")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -331,7 +346,7 @@ def list_catalog_instances( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_catalog_instances_serialize( limit=limit, @@ -340,14 +355,15 @@ def list_catalog_instances( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCatalogInstancesReply", + '200': "ListCatalogInstancesReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -355,26 +371,20 @@ def list_catalog_instances( response_types_map=_response_types_map, ).data + @validate_call def list_catalog_instances_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - id: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for instances") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for instances")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -410,7 +420,7 @@ def list_catalog_instances_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_catalog_instances_serialize( limit=limit, @@ -419,14 +429,15 @@ def list_catalog_instances_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCatalogInstancesReply", + '200': "ListCatalogInstancesReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -434,26 +445,20 @@ def list_catalog_instances_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_catalog_instances_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - id: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for instances") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for instances")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -489,7 +494,7 @@ def list_catalog_instances_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_catalog_instances_serialize( limit=limit, @@ -498,17 +503,19 @@ def list_catalog_instances_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCatalogInstancesReply", + '200': "ListCatalogInstancesReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_catalog_instances_serialize( self, limit, @@ -522,7 +529,8 @@ def _list_catalog_instances_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -536,31 +544,39 @@ def _list_catalog_instances_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if id is not None: - - _query_params.append(("id", id)) - + + _query_params.append(('id', id)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/catalog/instances", + method='GET', + resource_path='/v1/catalog/instances', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -570,5 +586,7 @@ def _list_catalog_instances_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/catalog_regions_api.py b/koyeb/api/api/catalog_regions_api.py similarity index 79% rename from koyeb/api/catalog_regions_api.py rename to koyeb/api/api/catalog_regions_api.py index 03d86174..924c6164 100644 --- a/koyeb/api/catalog_regions_api.py +++ b/koyeb/api/api/catalog_regions_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,12 +19,12 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from koyeb.models.get_region_reply import GetRegionReply -from koyeb.models.list_regions_reply import ListRegionsReply +from koyeb.api.models.get_region_reply import GetRegionReply +from koyeb.api.models.list_regions_reply import ListRegionsReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class CatalogRegionsApi: @@ -39,6 +39,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_region( self, @@ -47,8 +48,9 @@ def get_region( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -80,21 +82,22 @@ def get_region( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_region_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetRegionReply", + '200': "GetRegionReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -102,6 +105,7 @@ def get_region( response_types_map=_response_types_map, ).data + @validate_call def get_region_with_http_info( self, @@ -110,8 +114,9 @@ def get_region_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -143,21 +148,22 @@ def get_region_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_region_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetRegionReply", + '200': "GetRegionReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -165,6 +171,7 @@ def get_region_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_region_without_preload_content( self, @@ -173,8 +180,9 @@ def get_region_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -206,24 +214,26 @@ def get_region_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_region_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetRegionReply", + '200': "GetRegionReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_region_serialize( self, id, @@ -235,7 +245,8 @@ def _get_region_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -248,22 +259,30 @@ def _get_region_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/catalog/regions/{id}", + method='GET', + resource_path='/v1/catalog/regions/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -273,29 +292,25 @@ def _get_region_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_regions( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - id: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for regions") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for regions")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -331,7 +346,7 @@ def list_regions( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regions_serialize( limit=limit, @@ -340,14 +355,15 @@ def list_regions( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionsReply", + '200': "ListRegionsReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -355,26 +371,20 @@ def list_regions( response_types_map=_response_types_map, ).data + @validate_call def list_regions_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - id: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for regions") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for regions")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -410,7 +420,7 @@ def list_regions_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regions_serialize( limit=limit, @@ -419,14 +429,15 @@ def list_regions_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionsReply", + '200': "ListRegionsReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -434,26 +445,20 @@ def list_regions_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_regions_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - id: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for regions") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for regions")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -489,7 +494,7 @@ def list_regions_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regions_serialize( limit=limit, @@ -498,17 +503,19 @@ def list_regions_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionsReply", + '200': "ListRegionsReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_regions_serialize( self, limit, @@ -522,7 +529,8 @@ def _list_regions_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -536,31 +544,39 @@ def _list_regions_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if id is not None: - - _query_params.append(("id", id)) - + + _query_params.append(('id', id)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/catalog/regions", + method='GET', + resource_path='/v1/catalog/regions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -570,5 +586,7 @@ def _list_regions_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/compose_api.py b/koyeb/api/api/compose_api.py similarity index 78% rename from koyeb/api/compose_api.py rename to koyeb/api/api/compose_api.py index e16849ff..2bf3aec2 100644 --- a/koyeb/api/compose_api.py +++ b/koyeb/api/api/compose_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -16,12 +16,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.models.compose_reply import ComposeReply -from koyeb.models.create_compose import CreateCompose +from koyeb.api.models.compose_reply import ComposeReply +from koyeb.api.models.create_compose import CreateCompose -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class ComposeApi: @@ -36,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def compose( self, @@ -44,8 +45,9 @@ def compose( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -77,27 +79,28 @@ def compose( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._compose_serialize( compose=compose, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ComposeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ComposeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -105,6 +108,7 @@ def compose( response_types_map=_response_types_map, ).data + @validate_call def compose_with_http_info( self, @@ -113,8 +117,9 @@ def compose_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -146,27 +151,28 @@ def compose_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._compose_serialize( compose=compose, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ComposeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ComposeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -174,6 +180,7 @@ def compose_with_http_info( response_types_map=_response_types_map, ) + @validate_call def compose_without_preload_content( self, @@ -182,8 +189,9 @@ def compose_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -215,30 +223,32 @@ def compose_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._compose_serialize( compose=compose, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ComposeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ComposeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _compose_serialize( self, compose, @@ -250,7 +260,8 @@ def _compose_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -269,16 +280,24 @@ def _compose_serialize( if compose is not None: _body_params = compose + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/compose", + method='POST', + resource_path='/v1/compose', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -288,5 +307,7 @@ def _compose_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/coupons_api.py b/koyeb/api/api/coupons_api.py similarity index 79% rename from koyeb/api/coupons_api.py rename to koyeb/api/api/coupons_api.py index 836a25f6..a2a9e48e 100644 --- a/koyeb/api/coupons_api.py +++ b/koyeb/api/api/coupons_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,11 +17,11 @@ from typing_extensions import Annotated from typing import Any, Dict -from koyeb.models.redeem_coupon_request import RedeemCouponRequest +from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class CouponsApi: @@ -36,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def redeem_coupon( self, @@ -44,8 +45,9 @@ def redeem_coupon( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -78,27 +80,28 @@ def redeem_coupon( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._redeem_coupon_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -106,6 +109,7 @@ def redeem_coupon( response_types_map=_response_types_map, ).data + @validate_call def redeem_coupon_with_http_info( self, @@ -114,8 +118,9 @@ def redeem_coupon_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -148,27 +153,28 @@ def redeem_coupon_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._redeem_coupon_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -176,6 +182,7 @@ def redeem_coupon_with_http_info( response_types_map=_response_types_map, ) + @validate_call def redeem_coupon_without_preload_content( self, @@ -184,8 +191,9 @@ def redeem_coupon_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -218,30 +226,32 @@ def redeem_coupon_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._redeem_coupon_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _redeem_coupon_serialize( self, body, @@ -253,7 +263,8 @@ def _redeem_coupon_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -272,16 +283,24 @@ def _redeem_coupon_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/coupons", + method='POST', + resource_path='/v1/coupons', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -291,5 +310,7 @@ def _redeem_coupon_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/credentials_api.py b/koyeb/api/api/credentials_api.py similarity index 78% rename from koyeb/api/credentials_api.py rename to koyeb/api/api/credentials_api.py index 583ff23d..c85df276 100644 --- a/koyeb/api/credentials_api.py +++ b/koyeb/api/api/credentials_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,16 +19,16 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, Optional from typing_extensions import Annotated -from koyeb.models.create_credential import CreateCredential -from koyeb.models.create_credential_reply import CreateCredentialReply -from koyeb.models.credential import Credential -from koyeb.models.get_credential_reply import GetCredentialReply -from koyeb.models.list_credentials_reply import ListCredentialsReply -from koyeb.models.update_credential_reply import UpdateCredentialReply +from koyeb.api.models.create_credential import CreateCredential +from koyeb.api.models.create_credential_reply import CreateCredentialReply +from koyeb.api.models.credential import Credential +from koyeb.api.models.get_credential_reply import GetCredentialReply +from koyeb.api.models.list_credentials_reply import ListCredentialsReply +from koyeb.api.models.update_credential_reply import UpdateCredentialReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class CredentialsApi: @@ -43,6 +43,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_credential( self, @@ -51,8 +52,9 @@ def create_credential( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -84,27 +86,28 @@ def create_credential( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_credential_serialize( credential=credential, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -112,6 +115,7 @@ def create_credential( response_types_map=_response_types_map, ).data + @validate_call def create_credential_with_http_info( self, @@ -120,8 +124,9 @@ def create_credential_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -153,27 +158,28 @@ def create_credential_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_credential_serialize( credential=credential, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -181,6 +187,7 @@ def create_credential_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_credential_without_preload_content( self, @@ -189,8 +196,9 @@ def create_credential_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -222,30 +230,32 @@ def create_credential_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_credential_serialize( credential=credential, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_credential_serialize( self, credential, @@ -257,7 +267,8 @@ def _create_credential_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -276,16 +287,24 @@ def _create_credential_serialize( if credential is not None: _body_params = credential + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/credentials", + method='POST', + resource_path='/v1/credentials', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -295,9 +314,12 @@ def _create_credential_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_credential( self, @@ -306,8 +328,9 @@ def delete_credential( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -339,27 +362,28 @@ def delete_credential( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_credential_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -367,6 +391,7 @@ def delete_credential( response_types_map=_response_types_map, ).data + @validate_call def delete_credential_with_http_info( self, @@ -375,8 +400,9 @@ def delete_credential_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -408,27 +434,28 @@ def delete_credential_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_credential_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -436,6 +463,7 @@ def delete_credential_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_credential_without_preload_content( self, @@ -444,8 +472,9 @@ def delete_credential_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -477,30 +506,32 @@ def delete_credential_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_credential_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_credential_serialize( self, id, @@ -512,7 +543,8 @@ def _delete_credential_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -525,22 +557,30 @@ def _delete_credential_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/credentials/{id}", + method='DELETE', + resource_path='/v1/credentials/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -550,9 +590,12 @@ def _delete_credential_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_credential( self, @@ -561,8 +604,9 @@ def get_credential( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -594,27 +638,28 @@ def get_credential( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_credential_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -622,6 +667,7 @@ def get_credential( response_types_map=_response_types_map, ).data + @validate_call def get_credential_with_http_info( self, @@ -630,8 +676,9 @@ def get_credential_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -663,27 +710,28 @@ def get_credential_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_credential_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -691,6 +739,7 @@ def get_credential_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_credential_without_preload_content( self, @@ -699,8 +748,9 @@ def get_credential_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -732,30 +782,32 @@ def get_credential_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_credential_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_credential_serialize( self, id, @@ -767,7 +819,8 @@ def _get_credential_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -780,22 +833,30 @@ def _get_credential_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/credentials/{id}", + method='GET', + resource_path='/v1/credentials/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -805,39 +866,28 @@ def _get_credential_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_credentials( self, - type: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for type") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter for an organization"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter for an user") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, + type: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for type")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -879,7 +929,7 @@ def list_credentials( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_credentials_serialize( type=type, @@ -891,20 +941,21 @@ def list_credentials( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCredentialsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListCredentialsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -912,36 +963,23 @@ def list_credentials( response_types_map=_response_types_map, ).data + @validate_call def list_credentials_with_http_info( self, - type: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for type") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter for an organization"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter for an user") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, + type: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for type")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -983,7 +1021,7 @@ def list_credentials_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_credentials_serialize( type=type, @@ -995,20 +1033,21 @@ def list_credentials_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCredentialsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListCredentialsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1016,36 +1055,23 @@ def list_credentials_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_credentials_without_preload_content( self, - type: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for type") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter for an organization"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter for an user") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, + type: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for type")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1087,7 +1113,7 @@ def list_credentials_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_credentials_serialize( type=type, @@ -1099,23 +1125,25 @@ def list_credentials_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCredentialsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListCredentialsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_credentials_serialize( self, type, @@ -1132,7 +1160,8 @@ def _list_credentials_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1146,43 +1175,51 @@ def _list_credentials_serialize( # process the path parameters # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + if organization_id is not None: - - _query_params.append(("organization_id", organization_id)) - + + _query_params.append(('organization_id', organization_id)) + if user_id is not None: - - _query_params.append(("user_id", user_id)) - + + _query_params.append(('user_id', user_id)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/credentials", + method='GET', + resource_path='/v1/credentials', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1192,9 +1229,12 @@ def _list_credentials_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_credential( self, @@ -1205,8 +1245,9 @@ def update_credential( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1242,7 +1283,7 @@ def update_credential( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_credential_serialize( id=id, @@ -1251,20 +1292,21 @@ def update_credential( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1272,6 +1314,7 @@ def update_credential( response_types_map=_response_types_map, ).data + @validate_call def update_credential_with_http_info( self, @@ -1282,8 +1325,9 @@ def update_credential_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1319,7 +1363,7 @@ def update_credential_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_credential_serialize( id=id, @@ -1328,20 +1372,21 @@ def update_credential_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1349,6 +1394,7 @@ def update_credential_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_credential_without_preload_content( self, @@ -1359,8 +1405,9 @@ def update_credential_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1396,7 +1443,7 @@ def update_credential_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_credential_serialize( id=id, @@ -1405,23 +1452,25 @@ def update_credential_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_credential_serialize( self, id, @@ -1435,7 +1484,8 @@ def _update_credential_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1448,28 +1498,36 @@ def _update_credential_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if credential is not None: _body_params = credential + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/credentials/{id}", + method='PUT', + resource_path='/v1/credentials/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1479,9 +1537,12 @@ def _update_credential_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_credential2( self, @@ -1492,8 +1553,9 @@ def update_credential2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1529,7 +1591,7 @@ def update_credential2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_credential2_serialize( id=id, @@ -1538,20 +1600,21 @@ def update_credential2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1559,6 +1622,7 @@ def update_credential2( response_types_map=_response_types_map, ).data + @validate_call def update_credential2_with_http_info( self, @@ -1569,8 +1633,9 @@ def update_credential2_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1606,7 +1671,7 @@ def update_credential2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_credential2_serialize( id=id, @@ -1615,20 +1680,21 @@ def update_credential2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1636,6 +1702,7 @@ def update_credential2_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_credential2_without_preload_content( self, @@ -1646,8 +1713,9 @@ def update_credential2_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1683,7 +1751,7 @@ def update_credential2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_credential2_serialize( id=id, @@ -1692,23 +1760,25 @@ def update_credential2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateCredentialReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateCredentialReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_credential2_serialize( self, id, @@ -1722,7 +1792,8 @@ def _update_credential2_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1735,28 +1806,36 @@ def _update_credential2_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if credential is not None: _body_params = credential + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/credentials/{id}", + method='PATCH', + resource_path='/v1/credentials/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1766,5 +1845,7 @@ def _update_credential2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/deployments_api.py b/koyeb/api/api/deployments_api.py similarity index 74% rename from koyeb/api/deployments_api.py rename to koyeb/api/api/deployments_api.py index ae841e55..fe21409b 100644 --- a/koyeb/api/deployments_api.py +++ b/koyeb/api/api/deployments_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,14 +19,14 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.get_deployment_reply import GetDeploymentReply -from koyeb.models.get_deployment_scaling_reply import GetDeploymentScalingReply -from koyeb.models.list_deployment_events_reply import ListDeploymentEventsReply -from koyeb.models.list_deployments_reply import ListDeploymentsReply +from koyeb.api.models.get_deployment_reply import GetDeploymentReply +from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply +from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply +from koyeb.api.models.list_deployments_reply import ListDeploymentsReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class DeploymentsApi: @@ -41,18 +41,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def cancel_deployment( self, - id: Annotated[ - StrictStr, Field(description="The id of the deployment to cancel.") - ], + id: Annotated[StrictStr, Field(description="The id of the deployment to cancel.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,27 +85,28 @@ def cancel_deployment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cancel_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,18 +114,18 @@ def cancel_deployment( response_types_map=_response_types_map, ).data + @validate_call def cancel_deployment_with_http_info( self, - id: Annotated[ - StrictStr, Field(description="The id of the deployment to cancel.") - ], + id: Annotated[StrictStr, Field(description="The id of the deployment to cancel.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -157,27 +158,28 @@ def cancel_deployment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cancel_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -185,18 +187,18 @@ def cancel_deployment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def cancel_deployment_without_preload_content( self, - id: Annotated[ - StrictStr, Field(description="The id of the deployment to cancel.") - ], + id: Annotated[StrictStr, Field(description="The id of the deployment to cancel.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,30 +231,32 @@ def cancel_deployment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cancel_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _cancel_deployment_serialize( self, id, @@ -264,7 +268,8 @@ def _cancel_deployment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,22 +282,30 @@ def _cancel_deployment_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/deployments/{id}/cancel", + method='POST', + resource_path='/v1/deployments/{id}/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -302,9 +315,12 @@ def _cancel_deployment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_deployment( self, @@ -313,8 +329,9 @@ def get_deployment( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -346,27 +363,28 @@ def get_deployment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDeploymentReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDeploymentReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -374,6 +392,7 @@ def get_deployment( response_types_map=_response_types_map, ).data + @validate_call def get_deployment_with_http_info( self, @@ -382,8 +401,9 @@ def get_deployment_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -415,27 +435,28 @@ def get_deployment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDeploymentReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDeploymentReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -443,6 +464,7 @@ def get_deployment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_deployment_without_preload_content( self, @@ -451,8 +473,9 @@ def get_deployment_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -484,30 +507,32 @@ def get_deployment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDeploymentReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDeploymentReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_deployment_serialize( self, id, @@ -519,7 +544,8 @@ def _get_deployment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -532,22 +558,30 @@ def _get_deployment_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/deployments/{id}", + method='GET', + resource_path='/v1/deployments/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -557,25 +591,25 @@ def _get_deployment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_deployment_scaling( self, id: StrictStr, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on region") - ] = None, - replica_index: Annotated[ - Optional[StrictInt], Field(description="(Optional) Filter on replica_index") - ] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on region")] = None, + replica_index: Annotated[Optional[StrictInt], Field(description="(Optional) Filter on replica_index")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -611,7 +645,7 @@ def get_deployment_scaling( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_scaling_serialize( id=id, @@ -620,20 +654,21 @@ def get_deployment_scaling( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDeploymentScalingReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDeploymentScalingReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -641,22 +676,20 @@ def get_deployment_scaling( response_types_map=_response_types_map, ).data + @validate_call def get_deployment_scaling_with_http_info( self, id: StrictStr, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on region") - ] = None, - replica_index: Annotated[ - Optional[StrictInt], Field(description="(Optional) Filter on replica_index") - ] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on region")] = None, + replica_index: Annotated[Optional[StrictInt], Field(description="(Optional) Filter on replica_index")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -692,7 +725,7 @@ def get_deployment_scaling_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_scaling_serialize( id=id, @@ -701,20 +734,21 @@ def get_deployment_scaling_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDeploymentScalingReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDeploymentScalingReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -722,22 +756,20 @@ def get_deployment_scaling_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_deployment_scaling_without_preload_content( self, id: StrictStr, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on region") - ] = None, - replica_index: Annotated[ - Optional[StrictInt], Field(description="(Optional) Filter on replica_index") - ] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on region")] = None, + replica_index: Annotated[Optional[StrictInt], Field(description="(Optional) Filter on replica_index")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -773,7 +805,7 @@ def get_deployment_scaling_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_scaling_serialize( id=id, @@ -782,23 +814,25 @@ def get_deployment_scaling_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDeploymentScalingReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDeploymentScalingReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_deployment_scaling_serialize( self, id, @@ -812,7 +846,8 @@ def _get_deployment_scaling_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -825,30 +860,38 @@ def _get_deployment_scaling_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if region is not None: - - _query_params.append(("region", region)) - + + _query_params.append(('region', region)) + if replica_index is not None: - - _query_params.append(("replica_index", replica_index)) - + + _query_params.append(('replica_index', replica_index)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/deployment/{id}/scaling", + method='GET', + resource_path='/v1/deployment/{id}/scaling', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -858,39 +901,27 @@ def _get_deployment_scaling_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_deployment_events( self, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on deployment event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on deployment event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -930,7 +961,7 @@ def list_deployment_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployment_events_serialize( deployment_id=deployment_id, @@ -941,20 +972,21 @@ def list_deployment_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeploymentEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDeploymentEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -962,36 +994,22 @@ def list_deployment_events( response_types_map=_response_types_map, ).data + @validate_call def list_deployment_events_with_http_info( self, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on deployment event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on deployment event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1031,7 +1049,7 @@ def list_deployment_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployment_events_serialize( deployment_id=deployment_id, @@ -1042,20 +1060,21 @@ def list_deployment_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeploymentEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDeploymentEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1063,36 +1082,22 @@ def list_deployment_events_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_deployment_events_without_preload_content( self, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on deployment event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on deployment event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1132,7 +1137,7 @@ def list_deployment_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployment_events_serialize( deployment_id=deployment_id, @@ -1143,23 +1148,25 @@ def list_deployment_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeploymentEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDeploymentEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_deployment_events_serialize( self, deployment_id, @@ -1176,7 +1183,7 @@ def _list_deployment_events_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -1191,39 +1198,47 @@ def _list_deployment_events_serialize( # process the path parameters # process the query parameters if deployment_id is not None: - - _query_params.append(("deployment_id", deployment_id)) - + + _query_params.append(('deployment_id', deployment_id)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/deployment_events", + method='GET', + resource_path='/v1/deployment_events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1233,37 +1248,27 @@ def _list_deployment_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_deployments( self, - app_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on application id"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on statuses"), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1303,7 +1308,7 @@ def list_deployments( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployments_serialize( app_id=app_id, @@ -1314,20 +1319,21 @@ def list_deployments( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeploymentsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDeploymentsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1335,34 +1341,22 @@ def list_deployments( response_types_map=_response_types_map, ).data + @validate_call def list_deployments_with_http_info( self, - app_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on application id"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on statuses"), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1402,7 +1396,7 @@ def list_deployments_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployments_serialize( app_id=app_id, @@ -1413,20 +1407,21 @@ def list_deployments_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeploymentsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDeploymentsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1434,34 +1429,22 @@ def list_deployments_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_deployments_without_preload_content( self, - app_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on application id"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on statuses"), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1501,7 +1484,7 @@ def list_deployments_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployments_serialize( app_id=app_id, @@ -1512,23 +1495,25 @@ def list_deployments_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeploymentsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDeploymentsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_deployments_serialize( self, app_id, @@ -1545,7 +1530,7 @@ def _list_deployments_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -1560,39 +1545,47 @@ def _list_deployments_serialize( # process the path parameters # process the query parameters if app_id is not None: - - _query_params.append(("app_id", app_id)) - + + _query_params.append(('app_id', app_id)) + if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/deployments", + method='GET', + resource_path='/v1/deployments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1602,5 +1595,7 @@ def _list_deployments_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/docker_helper_api.py b/koyeb/api/api/docker_helper_api.py similarity index 74% rename from koyeb/api/docker_helper_api.py rename to koyeb/api/api/docker_helper_api.py index 069ff2f7..82c8d987 100644 --- a/koyeb/api/docker_helper_api.py +++ b/koyeb/api/api/docker_helper_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,11 +19,11 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from koyeb.models.verify_docker_image_reply import VerifyDockerImageReply +from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class DockerHelperApi: @@ -38,24 +38,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def verify_docker_image( self, - image: Annotated[ - Optional[StrictStr], Field(description="The full image uri to be verified") - ] = None, - secret_id: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) the id of the secret to use to authenticate to the registry" - ), - ] = None, + image: Annotated[Optional[StrictStr], Field(description="The full image uri to be verified")] = None, + secret_id: Annotated[Optional[StrictStr], Field(description="(Optional) the id of the secret to use to authenticate to the registry")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -90,7 +85,7 @@ def verify_docker_image( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_docker_image_serialize( image=image, @@ -98,20 +93,21 @@ def verify_docker_image( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "VerifyDockerImageReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "VerifyDockerImageReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -119,24 +115,19 @@ def verify_docker_image( response_types_map=_response_types_map, ).data + @validate_call def verify_docker_image_with_http_info( self, - image: Annotated[ - Optional[StrictStr], Field(description="The full image uri to be verified") - ] = None, - secret_id: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) the id of the secret to use to authenticate to the registry" - ), - ] = None, + image: Annotated[Optional[StrictStr], Field(description="The full image uri to be verified")] = None, + secret_id: Annotated[Optional[StrictStr], Field(description="(Optional) the id of the secret to use to authenticate to the registry")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -171,7 +162,7 @@ def verify_docker_image_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_docker_image_serialize( image=image, @@ -179,20 +170,21 @@ def verify_docker_image_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "VerifyDockerImageReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "VerifyDockerImageReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -200,24 +192,19 @@ def verify_docker_image_with_http_info( response_types_map=_response_types_map, ) + @validate_call def verify_docker_image_without_preload_content( self, - image: Annotated[ - Optional[StrictStr], Field(description="The full image uri to be verified") - ] = None, - secret_id: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) the id of the secret to use to authenticate to the registry" - ), - ] = None, + image: Annotated[Optional[StrictStr], Field(description="The full image uri to be verified")] = None, + secret_id: Annotated[Optional[StrictStr], Field(description="(Optional) the id of the secret to use to authenticate to the registry")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -252,7 +239,7 @@ def verify_docker_image_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_docker_image_serialize( image=image, @@ -260,23 +247,25 @@ def verify_docker_image_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "VerifyDockerImageReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "VerifyDockerImageReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _verify_docker_image_serialize( self, image, @@ -289,7 +278,8 @@ def _verify_docker_image_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -303,27 +293,35 @@ def _verify_docker_image_serialize( # process the path parameters # process the query parameters if image is not None: - - _query_params.append(("image", image)) - + + _query_params.append(('image', image)) + if secret_id is not None: - - _query_params.append(("secret_id", secret_id)) - + + _query_params.append(('secret_id', secret_id)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/docker-helper/verify", + method='GET', + resource_path='/v1/docker-helper/verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -333,5 +331,7 @@ def _verify_docker_image_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/domains_api.py b/koyeb/api/api/domains_api.py similarity index 77% rename from koyeb/api/domains_api.py rename to koyeb/api/api/domains_api.py index 61e0372c..d68d4bfe 100644 --- a/koyeb/api/domains_api.py +++ b/koyeb/api/api/domains_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,16 +19,16 @@ from pydantic import Field, StrictBool, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.create_domain import CreateDomain -from koyeb.models.create_domain_reply import CreateDomainReply -from koyeb.models.get_domain_reply import GetDomainReply -from koyeb.models.list_domains_reply import ListDomainsReply -from koyeb.models.update_domain import UpdateDomain -from koyeb.models.update_domain_reply import UpdateDomainReply +from koyeb.api.models.create_domain import CreateDomain +from koyeb.api.models.create_domain_reply import CreateDomainReply +from koyeb.api.models.get_domain_reply import GetDomainReply +from koyeb.api.models.list_domains_reply import ListDomainsReply +from koyeb.api.models.update_domain import UpdateDomain +from koyeb.api.models.update_domain_reply import UpdateDomainReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class DomainsApi: @@ -43,6 +43,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_domain( self, @@ -51,8 +52,9 @@ def create_domain( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -84,27 +86,28 @@ def create_domain( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_domain_serialize( domain=domain, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -112,6 +115,7 @@ def create_domain( response_types_map=_response_types_map, ).data + @validate_call def create_domain_with_http_info( self, @@ -120,8 +124,9 @@ def create_domain_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -153,27 +158,28 @@ def create_domain_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_domain_serialize( domain=domain, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -181,6 +187,7 @@ def create_domain_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_domain_without_preload_content( self, @@ -189,8 +196,9 @@ def create_domain_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -222,30 +230,32 @@ def create_domain_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_domain_serialize( domain=domain, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_domain_serialize( self, domain, @@ -257,7 +267,8 @@ def _create_domain_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -276,16 +287,24 @@ def _create_domain_serialize( if domain is not None: _body_params = domain + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/domains", + method='POST', + resource_path='/v1/domains', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -295,9 +314,12 @@ def _create_domain_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_domain( self, @@ -306,8 +328,9 @@ def delete_domain( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -339,27 +362,28 @@ def delete_domain( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_domain_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -367,6 +391,7 @@ def delete_domain( response_types_map=_response_types_map, ).data + @validate_call def delete_domain_with_http_info( self, @@ -375,8 +400,9 @@ def delete_domain_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -408,27 +434,28 @@ def delete_domain_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_domain_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -436,6 +463,7 @@ def delete_domain_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_domain_without_preload_content( self, @@ -444,8 +472,9 @@ def delete_domain_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -477,30 +506,32 @@ def delete_domain_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_domain_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_domain_serialize( self, id, @@ -512,7 +543,8 @@ def _delete_domain_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -525,22 +557,30 @@ def _delete_domain_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/domains/{id}", + method='DELETE', + resource_path='/v1/domains/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -550,9 +590,12 @@ def _delete_domain_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_domain( self, @@ -561,8 +604,9 @@ def get_domain( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -594,27 +638,28 @@ def get_domain( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_domain_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -622,6 +667,7 @@ def get_domain( response_types_map=_response_types_map, ).data + @validate_call def get_domain_with_http_info( self, @@ -630,8 +676,9 @@ def get_domain_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -663,27 +710,28 @@ def get_domain_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_domain_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -691,6 +739,7 @@ def get_domain_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_domain_without_preload_content( self, @@ -699,8 +748,9 @@ def get_domain_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -732,30 +782,32 @@ def get_domain_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_domain_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_domain_serialize( self, id, @@ -767,7 +819,8 @@ def _get_domain_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -780,22 +833,30 @@ def _get_domain_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/domains/{id}", + method='GET', + resource_path='/v1/domains/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -805,42 +866,28 @@ def _get_domain_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_domains( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app" - ), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) A filter for statuses"), - ] = None, - app_ids: Annotated[ - Optional[List[StrictStr]], Field(description="(Optional) A filter for apps") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for statuses")] = None, + app_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for apps")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -882,7 +929,7 @@ def list_domains( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_domains_serialize( limit=limit, @@ -894,20 +941,21 @@ def list_domains( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDomainsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDomainsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -915,39 +963,23 @@ def list_domains( response_types_map=_response_types_map, ).data + @validate_call def list_domains_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app" - ), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) A filter for statuses"), - ] = None, - app_ids: Annotated[ - Optional[List[StrictStr]], Field(description="(Optional) A filter for apps") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for statuses")] = None, + app_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for apps")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -989,7 +1021,7 @@ def list_domains_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_domains_serialize( limit=limit, @@ -1001,20 +1033,21 @@ def list_domains_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDomainsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDomainsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1022,39 +1055,23 @@ def list_domains_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_domains_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app" - ), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) A filter for statuses"), - ] = None, - app_ids: Annotated[ - Optional[List[StrictStr]], Field(description="(Optional) A filter for apps") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for statuses")] = None, + app_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) A filter for apps")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1096,7 +1113,7 @@ def list_domains_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_domains_serialize( limit=limit, @@ -1108,23 +1125,25 @@ def list_domains_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDomainsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListDomainsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_domains_serialize( self, limit, @@ -1142,9 +1161,9 @@ def _list_domains_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", - "statuses": "multi", - "app_ids": "multi", + 'types': 'multi', + 'statuses': 'multi', + 'app_ids': 'multi', } _path_params: Dict[str, str] = {} @@ -1159,43 +1178,51 @@ def _list_domains_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + if app_ids is not None: - - _query_params.append(("app_ids", app_ids)) - + + _query_params.append(('app_ids', app_ids)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/domains", + method='GET', + resource_path='/v1/domains', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1205,9 +1232,12 @@ def _list_domains_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def refresh_domain_status( self, @@ -1216,8 +1246,9 @@ def refresh_domain_status( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1249,27 +1280,28 @@ def refresh_domain_status( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._refresh_domain_status_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1277,6 +1309,7 @@ def refresh_domain_status( response_types_map=_response_types_map, ).data + @validate_call def refresh_domain_status_with_http_info( self, @@ -1285,8 +1318,9 @@ def refresh_domain_status_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1318,27 +1352,28 @@ def refresh_domain_status_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._refresh_domain_status_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1346,6 +1381,7 @@ def refresh_domain_status_with_http_info( response_types_map=_response_types_map, ) + @validate_call def refresh_domain_status_without_preload_content( self, @@ -1354,8 +1390,9 @@ def refresh_domain_status_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1387,30 +1424,32 @@ def refresh_domain_status_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._refresh_domain_status_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _refresh_domain_status_serialize( self, id, @@ -1422,7 +1461,8 @@ def _refresh_domain_status_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1435,22 +1475,30 @@ def _refresh_domain_status_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/domains/{id}/refresh", + method='POST', + resource_path='/v1/domains/{id}/refresh', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1460,27 +1508,26 @@ def _refresh_domain_status_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_domain( self, id: StrictStr, domain: UpdateDomain, update_mask: Optional[StrictStr] = None, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the domain is available." - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the domain is available.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1518,7 +1565,7 @@ def update_domain( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_domain_serialize( id=id, @@ -1528,20 +1575,21 @@ def update_domain( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1549,24 +1597,21 @@ def update_domain( response_types_map=_response_types_map, ).data + @validate_call def update_domain_with_http_info( self, id: StrictStr, domain: UpdateDomain, update_mask: Optional[StrictStr] = None, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the domain is available." - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the domain is available.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1604,7 +1649,7 @@ def update_domain_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_domain_serialize( id=id, @@ -1614,20 +1659,21 @@ def update_domain_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1635,24 +1681,21 @@ def update_domain_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_domain_without_preload_content( self, id: StrictStr, domain: UpdateDomain, update_mask: Optional[StrictStr] = None, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the domain is available." - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the domain is available.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1690,7 +1733,7 @@ def update_domain_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_domain_serialize( id=id, @@ -1700,23 +1743,25 @@ def update_domain_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateDomainReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateDomainReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_domain_serialize( self, id, @@ -1731,7 +1776,8 @@ def _update_domain_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1744,32 +1790,40 @@ def _update_domain_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + if dry_run is not None: - - _query_params.append(("dry_run", dry_run)) - + + _query_params.append(('dry_run', dry_run)) + # process the header parameters # process the form parameters # process the body parameter if domain is not None: _body_params = domain + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/domains/{id}", + method='PATCH', + resource_path='/v1/domains/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1779,5 +1833,7 @@ def _update_domain_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/instances_api.py b/koyeb/api/api/instances_api.py similarity index 68% rename from koyeb/api/instances_api.py rename to koyeb/api/api/instances_api.py index 856386e1..abe0c65f 100644 --- a/koyeb/api/instances_api.py +++ b/koyeb/api/api/instances_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,26 +17,17 @@ from typing_extensions import Annotated from datetime import datetime -from pydantic import ( - Field, - StrictBool, - StrictBytes, - StrictInt, - StrictStr, - field_validator, -) +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated -from koyeb.models.get_instance_reply import GetInstanceReply -from koyeb.models.list_instance_events_reply import ListInstanceEventsReply -from koyeb.models.list_instances_reply import ListInstancesReply -from koyeb.models.stream_result_of_exec_command_reply import ( - StreamResultOfExecCommandReply, -) +from koyeb.api.models.get_instance_reply import GetInstanceReply +from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply +from koyeb.api.models.list_instances_reply import ListInstancesReply +from koyeb.api.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class InstancesApi: @@ -51,43 +42,25 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def exec_command( self, - id: Annotated[ - Optional[StrictStr], Field(description="ID of the resource to exec on.") - ] = None, - body_command: Annotated[ - Optional[List[StrictStr]], - Field(description="Command to exec. Mandatory in the first frame sent"), - ] = None, + id: Annotated[Optional[StrictStr], Field(description="ID of the resource to exec on.")] = None, + body_command: Annotated[Optional[List[StrictStr]], Field(description="Command to exec. Mandatory in the first frame sent")] = None, body_tty_size_height: Optional[StrictInt] = None, body_tty_size_width: Optional[StrictInt] = None, - body_stdin_data: Annotated[ - Optional[Union[StrictBytes, StrictStr]], - Field(description="Data is base64 encoded"), - ] = None, - body_stdin_close: Annotated[ - Optional[StrictBool], Field(description="Indicate last data frame") - ] = None, - body_disable_tty: Annotated[ - Optional[StrictBool], - Field( - description="Disable TTY. It's enough to specify it in the first frame" - ), - ] = None, - id_type: Annotated[ - Optional[StrictStr], - Field( - description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id." - ), - ] = None, + body_stdin_data: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Data is base64 encoded")] = None, + body_stdin_close: Annotated[Optional[StrictBool], Field(description="Indicate last data frame")] = None, + body_disable_tty: Annotated[Optional[StrictBool], Field(description="Disable TTY. It's enough to specify it in the first frame")] = None, + id_type: Annotated[Optional[StrictStr], Field(description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -134,7 +107,7 @@ def exec_command( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._exec_command_serialize( id=id, @@ -148,20 +121,21 @@ def exec_command( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "StreamResultOfExecCommandReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "StreamResultOfExecCommandReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -169,43 +143,25 @@ def exec_command( response_types_map=_response_types_map, ).data + @validate_call def exec_command_with_http_info( self, - id: Annotated[ - Optional[StrictStr], Field(description="ID of the resource to exec on.") - ] = None, - body_command: Annotated[ - Optional[List[StrictStr]], - Field(description="Command to exec. Mandatory in the first frame sent"), - ] = None, + id: Annotated[Optional[StrictStr], Field(description="ID of the resource to exec on.")] = None, + body_command: Annotated[Optional[List[StrictStr]], Field(description="Command to exec. Mandatory in the first frame sent")] = None, body_tty_size_height: Optional[StrictInt] = None, body_tty_size_width: Optional[StrictInt] = None, - body_stdin_data: Annotated[ - Optional[Union[StrictBytes, StrictStr]], - Field(description="Data is base64 encoded"), - ] = None, - body_stdin_close: Annotated[ - Optional[StrictBool], Field(description="Indicate last data frame") - ] = None, - body_disable_tty: Annotated[ - Optional[StrictBool], - Field( - description="Disable TTY. It's enough to specify it in the first frame" - ), - ] = None, - id_type: Annotated[ - Optional[StrictStr], - Field( - description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id." - ), - ] = None, + body_stdin_data: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Data is base64 encoded")] = None, + body_stdin_close: Annotated[Optional[StrictBool], Field(description="Indicate last data frame")] = None, + body_disable_tty: Annotated[Optional[StrictBool], Field(description="Disable TTY. It's enough to specify it in the first frame")] = None, + id_type: Annotated[Optional[StrictStr], Field(description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -252,7 +208,7 @@ def exec_command_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._exec_command_serialize( id=id, @@ -266,20 +222,21 @@ def exec_command_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "StreamResultOfExecCommandReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "StreamResultOfExecCommandReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -287,43 +244,25 @@ def exec_command_with_http_info( response_types_map=_response_types_map, ) + @validate_call def exec_command_without_preload_content( self, - id: Annotated[ - Optional[StrictStr], Field(description="ID of the resource to exec on.") - ] = None, - body_command: Annotated[ - Optional[List[StrictStr]], - Field(description="Command to exec. Mandatory in the first frame sent"), - ] = None, + id: Annotated[Optional[StrictStr], Field(description="ID of the resource to exec on.")] = None, + body_command: Annotated[Optional[List[StrictStr]], Field(description="Command to exec. Mandatory in the first frame sent")] = None, body_tty_size_height: Optional[StrictInt] = None, body_tty_size_width: Optional[StrictInt] = None, - body_stdin_data: Annotated[ - Optional[Union[StrictBytes, StrictStr]], - Field(description="Data is base64 encoded"), - ] = None, - body_stdin_close: Annotated[ - Optional[StrictBool], Field(description="Indicate last data frame") - ] = None, - body_disable_tty: Annotated[ - Optional[StrictBool], - Field( - description="Disable TTY. It's enough to specify it in the first frame" - ), - ] = None, - id_type: Annotated[ - Optional[StrictStr], - Field( - description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id." - ), - ] = None, + body_stdin_data: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Data is base64 encoded")] = None, + body_stdin_close: Annotated[Optional[StrictBool], Field(description="Indicate last data frame")] = None, + body_disable_tty: Annotated[Optional[StrictBool], Field(description="Disable TTY. It's enough to specify it in the first frame")] = None, + id_type: Annotated[Optional[StrictStr], Field(description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -370,7 +309,7 @@ def exec_command_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._exec_command_serialize( id=id, @@ -384,23 +323,25 @@ def exec_command_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "StreamResultOfExecCommandReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "StreamResultOfExecCommandReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _exec_command_serialize( self, id, @@ -420,7 +361,7 @@ def _exec_command_serialize( _host = None _collection_formats: Dict[str, str] = { - "body.command": "multi", + 'body.command': 'multi', } _path_params: Dict[str, str] = {} @@ -435,51 +376,59 @@ def _exec_command_serialize( # process the path parameters # process the query parameters if id is not None: - - _query_params.append(("id", id)) - + + _query_params.append(('id', id)) + if body_command is not None: - - _query_params.append(("body.command", body_command)) - + + _query_params.append(('body.command', body_command)) + if body_tty_size_height is not None: - - _query_params.append(("body.tty_size.height", body_tty_size_height)) - + + _query_params.append(('body.tty_size.height', body_tty_size_height)) + if body_tty_size_width is not None: - - _query_params.append(("body.tty_size.width", body_tty_size_width)) - + + _query_params.append(('body.tty_size.width', body_tty_size_width)) + if body_stdin_data is not None: - - _query_params.append(("body.stdin.data", body_stdin_data)) - + + _query_params.append(('body.stdin.data', body_stdin_data)) + if body_stdin_close is not None: - - _query_params.append(("body.stdin.close", body_stdin_close)) - + + _query_params.append(('body.stdin.close', body_stdin_close)) + if body_disable_tty is not None: - - _query_params.append(("body.disableTty", body_disable_tty)) - + + _query_params.append(('body.disableTty', body_disable_tty)) + if id_type is not None: - - _query_params.append(("id_type", id_type)) - + + _query_params.append(('id_type', id_type)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/streams/instances/exec", + method='GET', + resource_path='/v1/streams/instances/exec', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -489,9 +438,12 @@ def _exec_command_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_instance( self, @@ -500,8 +452,9 @@ def get_instance( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -533,27 +486,28 @@ def get_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetInstanceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetInstanceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -561,6 +515,7 @@ def get_instance( response_types_map=_response_types_map, ).data + @validate_call def get_instance_with_http_info( self, @@ -569,8 +524,9 @@ def get_instance_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -602,27 +558,28 @@ def get_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetInstanceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetInstanceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -630,6 +587,7 @@ def get_instance_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_instance_without_preload_content( self, @@ -638,8 +596,9 @@ def get_instance_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -671,30 +630,32 @@ def get_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetInstanceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetInstanceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_instance_serialize( self, id, @@ -706,7 +667,8 @@ def _get_instance_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -719,22 +681,30 @@ def _get_instance_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/instances/{id}", + method='GET', + resource_path='/v1/instances/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -744,40 +714,27 @@ def _get_instance_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_instance_events( self, - instance_ids: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on list of instance id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on instance event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on list of instance id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -817,7 +774,7 @@ def list_instance_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instance_events_serialize( instance_ids=instance_ids, @@ -828,20 +785,21 @@ def list_instance_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstanceEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListInstanceEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -849,37 +807,22 @@ def list_instance_events( response_types_map=_response_types_map, ).data + @validate_call def list_instance_events_with_http_info( self, - instance_ids: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on list of instance id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on instance event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on list of instance id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -919,7 +862,7 @@ def list_instance_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instance_events_serialize( instance_ids=instance_ids, @@ -930,20 +873,21 @@ def list_instance_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstanceEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListInstanceEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -951,37 +895,22 @@ def list_instance_events_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_instance_events_without_preload_content( self, - instance_ids: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on list of instance id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on instance event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on list of instance id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1021,7 +950,7 @@ def list_instance_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instance_events_serialize( instance_ids=instance_ids, @@ -1032,23 +961,25 @@ def list_instance_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstanceEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListInstanceEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_instance_events_serialize( self, instance_ids, @@ -1065,8 +996,8 @@ def _list_instance_events_serialize( _host = None _collection_formats: Dict[str, str] = { - "instance_ids": "multi", - "types": "multi", + 'instance_ids': 'multi', + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -1081,39 +1012,47 @@ def _list_instance_events_serialize( # process the path parameters # process the query parameters if instance_ids is not None: - - _query_params.append(("instance_ids", instance_ids)) - + + _query_params.append(('instance_ids', instance_ids)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/instance_events", + method='GET', + resource_path='/v1/instance_events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1123,68 +1062,34 @@ def _list_instance_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_instances( self, - app_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on application id"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - regional_deployment_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on regional deployment id"), - ] = None, - allocation_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on allocation id") - ] = None, - replica_index: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on replica index") - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on instance statuses"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - starting_time: Annotated[ - Optional[datetime], - Field( - description="(Optional) The starting time of the period of running instance" - ), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field( - description="(Optional) The ending time of the period of running instance" - ), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, + allocation_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on allocation id")] = None, + replica_index: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on replica index")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance statuses")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + starting_time: Annotated[Optional[datetime], Field(description="(Optional) The starting time of the period of running instance")] = None, + ending_time: Annotated[Optional[datetime], Field(description="(Optional) The ending time of the period of running instance")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1238,7 +1143,7 @@ def list_instances( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instances_serialize( app_id=app_id, @@ -1256,20 +1161,21 @@ def list_instances( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstancesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListInstancesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1277,65 +1183,29 @@ def list_instances( response_types_map=_response_types_map, ).data + @validate_call def list_instances_with_http_info( self, - app_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on application id"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - regional_deployment_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on regional deployment id"), - ] = None, - allocation_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on allocation id") - ] = None, - replica_index: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on replica index") - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on instance statuses"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - starting_time: Annotated[ - Optional[datetime], - Field( - description="(Optional) The starting time of the period of running instance" - ), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field( - description="(Optional) The ending time of the period of running instance" - ), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, + allocation_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on allocation id")] = None, + replica_index: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on replica index")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance statuses")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + starting_time: Annotated[Optional[datetime], Field(description="(Optional) The starting time of the period of running instance")] = None, + ending_time: Annotated[Optional[datetime], Field(description="(Optional) The ending time of the period of running instance")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1389,7 +1259,7 @@ def list_instances_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instances_serialize( app_id=app_id, @@ -1407,20 +1277,21 @@ def list_instances_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstancesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListInstancesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1428,65 +1299,29 @@ def list_instances_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_instances_without_preload_content( self, - app_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on application id"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - regional_deployment_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on regional deployment id"), - ] = None, - allocation_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on allocation id") - ] = None, - replica_index: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on replica index") - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on instance statuses"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - starting_time: Annotated[ - Optional[datetime], - Field( - description="(Optional) The starting time of the period of running instance" - ), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field( - description="(Optional) The ending time of the period of running instance" - ), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, + allocation_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on allocation id")] = None, + replica_index: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on replica index")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance statuses")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + starting_time: Annotated[Optional[datetime], Field(description="(Optional) The starting time of the period of running instance")] = None, + ending_time: Annotated[Optional[datetime], Field(description="(Optional) The ending time of the period of running instance")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1540,7 +1375,7 @@ def list_instances_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instances_serialize( app_id=app_id, @@ -1558,23 +1393,25 @@ def list_instances_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstancesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListInstancesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_instances_serialize( self, app_id, @@ -1598,7 +1435,7 @@ def _list_instances_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -1613,85 +1450,93 @@ def _list_instances_serialize( # process the path parameters # process the query parameters if app_id is not None: - - _query_params.append(("app_id", app_id)) - + + _query_params.append(('app_id', app_id)) + if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if deployment_id is not None: - - _query_params.append(("deployment_id", deployment_id)) - + + _query_params.append(('deployment_id', deployment_id)) + if regional_deployment_id is not None: - - _query_params.append(("regional_deployment_id", regional_deployment_id)) - + + _query_params.append(('regional_deployment_id', regional_deployment_id)) + if allocation_id is not None: - - _query_params.append(("allocation_id", allocation_id)) - + + _query_params.append(('allocation_id', allocation_id)) + if replica_index is not None: - - _query_params.append(("replica_index", replica_index)) - + + _query_params.append(('replica_index', replica_index)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + if starting_time is not None: if isinstance(starting_time, datetime): _query_params.append( ( - "starting_time", + 'starting_time', starting_time.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("starting_time", starting_time)) - + _query_params.append(('starting_time', starting_time)) + if ending_time is not None: if isinstance(ending_time, datetime): _query_params.append( ( - "ending_time", + 'ending_time', ending_time.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("ending_time", ending_time)) - + _query_params.append(('ending_time', ending_time)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/instances", + method='GET', + resource_path='/v1/instances', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1701,5 +1546,7 @@ def _list_instances_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/intercom_api.py b/koyeb/api/api/intercom_api.py similarity index 77% rename from koyeb/api/intercom_api.py rename to koyeb/api/api/intercom_api.py index 4a0bb48b..0c590c51 100644 --- a/koyeb/api/intercom_api.py +++ b/koyeb/api/api/intercom_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -16,11 +16,11 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.models.get_intercom_profile_reply import GetIntercomProfileReply +from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class IntercomApi: @@ -35,6 +35,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_intercom_profile( self, @@ -42,8 +43,9 @@ def get_intercom_profile( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -73,26 +75,27 @@ def get_intercom_profile( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_intercom_profile_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIntercomProfileReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetIntercomProfileReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -100,6 +103,7 @@ def get_intercom_profile( response_types_map=_response_types_map, ).data + @validate_call def get_intercom_profile_with_http_info( self, @@ -107,8 +111,9 @@ def get_intercom_profile_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -138,26 +143,27 @@ def get_intercom_profile_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_intercom_profile_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIntercomProfileReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetIntercomProfileReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -165,6 +171,7 @@ def get_intercom_profile_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_intercom_profile_without_preload_content( self, @@ -172,8 +179,9 @@ def get_intercom_profile_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -203,29 +211,31 @@ def get_intercom_profile_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_intercom_profile_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIntercomProfileReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetIntercomProfileReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_intercom_profile_serialize( self, _request_auth, @@ -236,7 +246,8 @@ def _get_intercom_profile_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -253,16 +264,24 @@ def _get_intercom_profile_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/intercom/profile", + method='GET', + resource_path='/v1/intercom/profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -272,5 +291,7 @@ def _get_intercom_profile_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/invite_api.py b/koyeb/api/api/invite_api.py similarity index 79% rename from koyeb/api/invite_api.py rename to koyeb/api/api/invite_api.py index 68ccff71..f655f89a 100644 --- a/koyeb/api/invite_api.py +++ b/koyeb/api/api/invite_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,11 +17,11 @@ from typing_extensions import Annotated from typing import Any, Dict -from koyeb.models.invite_user_request import InviteUserRequest +from koyeb.api.models.invite_user_request import InviteUserRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class InviteApi: @@ -36,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_invite( self, @@ -44,8 +45,9 @@ def create_invite( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -77,27 +79,28 @@ def create_invite( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_invite_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -105,6 +108,7 @@ def create_invite( response_types_map=_response_types_map, ).data + @validate_call def create_invite_with_http_info( self, @@ -113,8 +117,9 @@ def create_invite_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -146,27 +151,28 @@ def create_invite_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_invite_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -174,6 +180,7 @@ def create_invite_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_invite_without_preload_content( self, @@ -182,8 +189,9 @@ def create_invite_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -215,30 +223,32 @@ def create_invite_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_invite_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_invite_serialize( self, body, @@ -250,7 +260,8 @@ def _create_invite_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -269,16 +280,24 @@ def _create_invite_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/invite", + method='POST', + resource_path='/v1/account/invite', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -288,5 +307,7 @@ def _create_invite_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/logs_api.py b/koyeb/api/api/logs_api.py similarity index 73% rename from koyeb/api/logs_api.py rename to koyeb/api/api/logs_api.py index dfe76b3b..df6433b0 100644 --- a/koyeb/api/logs_api.py +++ b/koyeb/api/api/logs_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,12 +20,12 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from koyeb.models.query_logs_reply import QueryLogsReply -from koyeb.models.stream_result_of_log_entry import StreamResultOfLogEntry +from koyeb.api.models.query_logs_reply import QueryLogsReply +from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class LogsApi: @@ -40,6 +40,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def query_logs( self, @@ -50,44 +51,19 @@ def query_logs( instance_id: Optional[StrictStr] = None, stream: Optional[StrictStr] = None, regional_deployment_id: Optional[StrictStr] = None, - start: Annotated[ - Optional[datetime], - Field( - description="(Optional) Must always be before `end`. Defaults to 15 minutes ago." - ), - ] = None, - end: Annotated[ - Optional[datetime], - Field( - description="(Optional) Must always be after `start`. Defaults to now." - ), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field(description="(Optional) `asc` or `desc`. Defaults to `desc`."), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Defaults to 100. Maximum of 1000."), - ] = None, - regex: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Apply a regex to filter logs. Can't be used with `text`." - ), - ] = None, - text: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Looks for this string in logs. Can't be used with `regex`." - ), - ] = None, + start: Annotated[Optional[datetime], Field(description="(Optional) Must always be before `end`. Defaults to 15 minutes ago.")] = None, + end: Annotated[Optional[datetime], Field(description="(Optional) Must always be after `start`. Defaults to now.")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) `asc` or `desc`. Defaults to `desc`.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) Defaults to 100. Maximum of 1000.")] = None, + regex: Annotated[Optional[StrictStr], Field(description="(Optional) Apply a regex to filter logs. Can't be used with `text`.")] = None, + text: Annotated[Optional[StrictStr], Field(description="(Optional) Looks for this string in logs. Can't be used with `regex`.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -143,7 +119,7 @@ def query_logs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._query_logs_serialize( type=type, @@ -162,20 +138,21 @@ def query_logs( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "QueryLogsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "QueryLogsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -183,6 +160,7 @@ def query_logs( response_types_map=_response_types_map, ).data + @validate_call def query_logs_with_http_info( self, @@ -193,44 +171,19 @@ def query_logs_with_http_info( instance_id: Optional[StrictStr] = None, stream: Optional[StrictStr] = None, regional_deployment_id: Optional[StrictStr] = None, - start: Annotated[ - Optional[datetime], - Field( - description="(Optional) Must always be before `end`. Defaults to 15 minutes ago." - ), - ] = None, - end: Annotated[ - Optional[datetime], - Field( - description="(Optional) Must always be after `start`. Defaults to now." - ), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field(description="(Optional) `asc` or `desc`. Defaults to `desc`."), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Defaults to 100. Maximum of 1000."), - ] = None, - regex: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Apply a regex to filter logs. Can't be used with `text`." - ), - ] = None, - text: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Looks for this string in logs. Can't be used with `regex`." - ), - ] = None, + start: Annotated[Optional[datetime], Field(description="(Optional) Must always be before `end`. Defaults to 15 minutes ago.")] = None, + end: Annotated[Optional[datetime], Field(description="(Optional) Must always be after `start`. Defaults to now.")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) `asc` or `desc`. Defaults to `desc`.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) Defaults to 100. Maximum of 1000.")] = None, + regex: Annotated[Optional[StrictStr], Field(description="(Optional) Apply a regex to filter logs. Can't be used with `text`.")] = None, + text: Annotated[Optional[StrictStr], Field(description="(Optional) Looks for this string in logs. Can't be used with `regex`.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -286,7 +239,7 @@ def query_logs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._query_logs_serialize( type=type, @@ -305,20 +258,21 @@ def query_logs_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "QueryLogsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "QueryLogsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -326,6 +280,7 @@ def query_logs_with_http_info( response_types_map=_response_types_map, ) + @validate_call def query_logs_without_preload_content( self, @@ -336,44 +291,19 @@ def query_logs_without_preload_content( instance_id: Optional[StrictStr] = None, stream: Optional[StrictStr] = None, regional_deployment_id: Optional[StrictStr] = None, - start: Annotated[ - Optional[datetime], - Field( - description="(Optional) Must always be before `end`. Defaults to 15 minutes ago." - ), - ] = None, - end: Annotated[ - Optional[datetime], - Field( - description="(Optional) Must always be after `start`. Defaults to now." - ), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field(description="(Optional) `asc` or `desc`. Defaults to `desc`."), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Defaults to 100. Maximum of 1000."), - ] = None, - regex: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Apply a regex to filter logs. Can't be used with `text`." - ), - ] = None, - text: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Looks for this string in logs. Can't be used with `regex`." - ), - ] = None, + start: Annotated[Optional[datetime], Field(description="(Optional) Must always be before `end`. Defaults to 15 minutes ago.")] = None, + end: Annotated[Optional[datetime], Field(description="(Optional) Must always be after `start`. Defaults to now.")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) `asc` or `desc`. Defaults to `desc`.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) Defaults to 100. Maximum of 1000.")] = None, + regex: Annotated[Optional[StrictStr], Field(description="(Optional) Apply a regex to filter logs. Can't be used with `text`.")] = None, + text: Annotated[Optional[StrictStr], Field(description="(Optional) Looks for this string in logs. Can't be used with `regex`.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -429,7 +359,7 @@ def query_logs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._query_logs_serialize( type=type, @@ -448,23 +378,25 @@ def query_logs_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "QueryLogsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "QueryLogsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _query_logs_serialize( self, type, @@ -488,7 +420,8 @@ def _query_logs_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -502,82 +435,97 @@ def _query_logs_serialize( # process the path parameters # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if app_id is not None: - - _query_params.append(("app_id", app_id)) - + + _query_params.append(('app_id', app_id)) + if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if deployment_id is not None: - - _query_params.append(("deployment_id", deployment_id)) - + + _query_params.append(('deployment_id', deployment_id)) + if instance_id is not None: - - _query_params.append(("instance_id", instance_id)) - + + _query_params.append(('instance_id', instance_id)) + if stream is not None: - - _query_params.append(("stream", stream)) - + + _query_params.append(('stream', stream)) + if regional_deployment_id is not None: - - _query_params.append(("regional_deployment_id", regional_deployment_id)) - + + _query_params.append(('regional_deployment_id', regional_deployment_id)) + if start is not None: if isinstance(start, datetime): _query_params.append( ( - "start", - start.strftime(self.api_client.configuration.datetime_format), + 'start', + start.strftime( + self.api_client.configuration.datetime_format + ) ) ) else: - _query_params.append(("start", start)) - + _query_params.append(('start', start)) + if end is not None: if isinstance(end, datetime): _query_params.append( - ("end", end.strftime(self.api_client.configuration.datetime_format)) + ( + 'end', + end.strftime( + self.api_client.configuration.datetime_format + ) + ) ) else: - _query_params.append(("end", end)) - + _query_params.append(('end', end)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if regex is not None: - - _query_params.append(("regex", regex)) - + + _query_params.append(('regex', regex)) + if text is not None: - - _query_params.append(("text", text)) - + + _query_params.append(('text', text)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/streams/logs/query", + method='GET', + resource_path='/v1/streams/logs/query', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -587,9 +535,12 @@ def _query_logs_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def tail_logs( self, @@ -602,24 +553,15 @@ def tail_logs( stream: Optional[StrictStr] = None, start: Optional[datetime] = None, limit: Optional[StrictStr] = None, - regex: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Apply a regex to filter logs. Can't be used with `text`." - ), - ] = None, - text: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Looks for this string in logs. Can't be used with `regex`." - ), - ] = None, + regex: Annotated[Optional[StrictStr], Field(description="(Optional) Apply a regex to filter logs. Can't be used with `text`.")] = None, + text: Annotated[Optional[StrictStr], Field(description="(Optional) Looks for this string in logs. Can't be used with `regex`.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -671,7 +613,7 @@ def tail_logs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._tail_logs_serialize( type=type, @@ -688,20 +630,21 @@ def tail_logs( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "StreamResultOfLogEntry", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "StreamResultOfLogEntry", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -709,6 +652,7 @@ def tail_logs( response_types_map=_response_types_map, ).data + @validate_call def tail_logs_with_http_info( self, @@ -721,24 +665,15 @@ def tail_logs_with_http_info( stream: Optional[StrictStr] = None, start: Optional[datetime] = None, limit: Optional[StrictStr] = None, - regex: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Apply a regex to filter logs. Can't be used with `text`." - ), - ] = None, - text: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Looks for this string in logs. Can't be used with `regex`." - ), - ] = None, + regex: Annotated[Optional[StrictStr], Field(description="(Optional) Apply a regex to filter logs. Can't be used with `text`.")] = None, + text: Annotated[Optional[StrictStr], Field(description="(Optional) Looks for this string in logs. Can't be used with `regex`.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -790,7 +725,7 @@ def tail_logs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._tail_logs_serialize( type=type, @@ -807,20 +742,21 @@ def tail_logs_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "StreamResultOfLogEntry", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "StreamResultOfLogEntry", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -828,6 +764,7 @@ def tail_logs_with_http_info( response_types_map=_response_types_map, ) + @validate_call def tail_logs_without_preload_content( self, @@ -840,24 +777,15 @@ def tail_logs_without_preload_content( stream: Optional[StrictStr] = None, start: Optional[datetime] = None, limit: Optional[StrictStr] = None, - regex: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Apply a regex to filter logs. Can't be used with `text`." - ), - ] = None, - text: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Looks for this string in logs. Can't be used with `regex`." - ), - ] = None, + regex: Annotated[Optional[StrictStr], Field(description="(Optional) Apply a regex to filter logs. Can't be used with `text`.")] = None, + text: Annotated[Optional[StrictStr], Field(description="(Optional) Looks for this string in logs. Can't be used with `regex`.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -909,7 +837,7 @@ def tail_logs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._tail_logs_serialize( type=type, @@ -926,23 +854,25 @@ def tail_logs_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "StreamResultOfLogEntry", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "StreamResultOfLogEntry", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _tail_logs_serialize( self, type, @@ -964,7 +894,8 @@ def _tail_logs_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -978,70 +909,80 @@ def _tail_logs_serialize( # process the path parameters # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if app_id is not None: - - _query_params.append(("app_id", app_id)) - + + _query_params.append(('app_id', app_id)) + if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if deployment_id is not None: - - _query_params.append(("deployment_id", deployment_id)) - + + _query_params.append(('deployment_id', deployment_id)) + if regional_deployment_id is not None: - - _query_params.append(("regional_deployment_id", regional_deployment_id)) - + + _query_params.append(('regional_deployment_id', regional_deployment_id)) + if instance_id is not None: - - _query_params.append(("instance_id", instance_id)) - + + _query_params.append(('instance_id', instance_id)) + if stream is not None: - - _query_params.append(("stream", stream)) - + + _query_params.append(('stream', stream)) + if start is not None: if isinstance(start, datetime): _query_params.append( ( - "start", - start.strftime(self.api_client.configuration.datetime_format), + 'start', + start.strftime( + self.api_client.configuration.datetime_format + ) ) ) else: - _query_params.append(("start", start)) - + _query_params.append(('start', start)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if regex is not None: - - _query_params.append(("regex", regex)) - + + _query_params.append(('regex', regex)) + if text is not None: - - _query_params.append(("text", text)) - + + _query_params.append(('text', text)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/streams/logs/tail", + method='GET', + resource_path='/v1/streams/logs/tail', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1051,5 +992,7 @@ def _tail_logs_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/metrics_api.py b/koyeb/api/api/metrics_api.py similarity index 66% rename from koyeb/api/metrics_api.py rename to koyeb/api/api/metrics_api.py index e1e1bb23..b005347e 100644 --- a/koyeb/api/metrics_api.py +++ b/koyeb/api/api/metrics_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,11 +20,11 @@ from pydantic import Field, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from koyeb.models.get_metrics_reply import GetMetricsReply +from koyeb.api.models.get_metrics_reply import GetMetricsReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class MetricsApi: @@ -39,41 +39,23 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_metrics( self, - service_id: Annotated[ - Optional[StrictStr], - Field( - description="ID of the service to query instances metrics for. Ignored if instance_id is set." - ), - ] = None, - instance_id: Annotated[ - Optional[StrictStr], - Field(description="ID of the instance to query metrics for."), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="Metric to query.") - ] = None, - start: Annotated[ - Optional[datetime], - Field(description="(Optional) Defaults to an hour prior to end."), - ] = None, - end: Annotated[ - Optional[datetime], Field(description="(Optional) Defaults to now.") - ] = None, - step: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m." - ), - ] = None, + service_id: Annotated[Optional[StrictStr], Field(description="ID of the service to query instances metrics for. Ignored if instance_id is set.")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="ID of the instance to query metrics for.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Metric to query.")] = None, + start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to an hour prior to end.")] = None, + end: Annotated[Optional[datetime], Field(description="(Optional) Defaults to now.")] = None, + step: Annotated[Optional[StrictStr], Field(description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -115,7 +97,7 @@ def get_metrics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_metrics_serialize( service_id=service_id, @@ -127,20 +109,21 @@ def get_metrics( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetMetricsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetMetricsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -148,41 +131,23 @@ def get_metrics( response_types_map=_response_types_map, ).data + @validate_call def get_metrics_with_http_info( self, - service_id: Annotated[ - Optional[StrictStr], - Field( - description="ID of the service to query instances metrics for. Ignored if instance_id is set." - ), - ] = None, - instance_id: Annotated[ - Optional[StrictStr], - Field(description="ID of the instance to query metrics for."), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="Metric to query.") - ] = None, - start: Annotated[ - Optional[datetime], - Field(description="(Optional) Defaults to an hour prior to end."), - ] = None, - end: Annotated[ - Optional[datetime], Field(description="(Optional) Defaults to now.") - ] = None, - step: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m." - ), - ] = None, + service_id: Annotated[Optional[StrictStr], Field(description="ID of the service to query instances metrics for. Ignored if instance_id is set.")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="ID of the instance to query metrics for.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Metric to query.")] = None, + start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to an hour prior to end.")] = None, + end: Annotated[Optional[datetime], Field(description="(Optional) Defaults to now.")] = None, + step: Annotated[Optional[StrictStr], Field(description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -224,7 +189,7 @@ def get_metrics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_metrics_serialize( service_id=service_id, @@ -236,20 +201,21 @@ def get_metrics_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetMetricsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetMetricsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -257,41 +223,23 @@ def get_metrics_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_metrics_without_preload_content( self, - service_id: Annotated[ - Optional[StrictStr], - Field( - description="ID of the service to query instances metrics for. Ignored if instance_id is set." - ), - ] = None, - instance_id: Annotated[ - Optional[StrictStr], - Field(description="ID of the instance to query metrics for."), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="Metric to query.") - ] = None, - start: Annotated[ - Optional[datetime], - Field(description="(Optional) Defaults to an hour prior to end."), - ] = None, - end: Annotated[ - Optional[datetime], Field(description="(Optional) Defaults to now.") - ] = None, - step: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m." - ), - ] = None, + service_id: Annotated[Optional[StrictStr], Field(description="ID of the service to query instances metrics for. Ignored if instance_id is set.")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="ID of the instance to query metrics for.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Metric to query.")] = None, + start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to an hour prior to end.")] = None, + end: Annotated[Optional[datetime], Field(description="(Optional) Defaults to now.")] = None, + step: Annotated[Optional[StrictStr], Field(description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -333,7 +281,7 @@ def get_metrics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_metrics_serialize( service_id=service_id, @@ -345,23 +293,25 @@ def get_metrics_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetMetricsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetMetricsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_metrics_serialize( self, service_id, @@ -378,7 +328,8 @@ def _get_metrics_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -392,54 +343,69 @@ def _get_metrics_serialize( # process the path parameters # process the query parameters if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if instance_id is not None: - - _query_params.append(("instance_id", instance_id)) - + + _query_params.append(('instance_id', instance_id)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + if start is not None: if isinstance(start, datetime): _query_params.append( ( - "start", - start.strftime(self.api_client.configuration.datetime_format), + 'start', + start.strftime( + self.api_client.configuration.datetime_format + ) ) ) else: - _query_params.append(("start", start)) - + _query_params.append(('start', start)) + if end is not None: if isinstance(end, datetime): _query_params.append( - ("end", end.strftime(self.api_client.configuration.datetime_format)) + ( + 'end', + end.strftime( + self.api_client.configuration.datetime_format + ) + ) ) else: - _query_params.append(("end", end)) - + _query_params.append(('end', end)) + if step is not None: - - _query_params.append(("step", step)) - + + _query_params.append(('step', step)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/streams/metrics", + method='GET', + resource_path='/v1/streams/metrics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -449,5 +415,7 @@ def _get_metrics_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/organization_api.py b/koyeb/api/api/organization_api.py similarity index 80% rename from koyeb/api/organization_api.py rename to koyeb/api/api/organization_api.py index 160fa474..79884e2f 100644 --- a/koyeb/api/organization_api.py +++ b/koyeb/api/api/organization_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,37 +19,33 @@ from pydantic import Field, StrictStr from typing import Any, Dict, Optional from typing_extensions import Annotated -from koyeb.models.create_access_token_reply import CreateAccessTokenReply -from koyeb.models.create_access_token_request import CreateAccessTokenRequest -from koyeb.models.create_budget_reply import CreateBudgetReply -from koyeb.models.create_organization_reply import CreateOrganizationReply -from koyeb.models.create_organization_request import CreateOrganizationRequest -from koyeb.models.deactivate_organization_reply import DeactivateOrganizationReply -from koyeb.models.deactivate_organization_request import DeactivateOrganizationRequest -from koyeb.models.delete_organization_reply import DeleteOrganizationReply -from koyeb.models.get_budget_reply import GetBudgetReply -from koyeb.models.get_github_installation_reply import GetGithubInstallationReply -from koyeb.models.get_organization_reply import GetOrganizationReply -from koyeb.models.github_installation_reply import GithubInstallationReply -from koyeb.models.github_installation_request import GithubInstallationRequest -from koyeb.models.login_reply import LoginReply -from koyeb.models.organization import Organization -from koyeb.models.reactivate_organization_reply import ReactivateOrganizationReply -from koyeb.models.update_budget_reply import UpdateBudgetReply -from koyeb.models.update_budget_request import UpdateBudgetRequest -from koyeb.models.update_organization_plan_reply import UpdateOrganizationPlanReply -from koyeb.models.update_organization_plan_request import UpdateOrganizationPlanRequest -from koyeb.models.update_organization_reply import UpdateOrganizationReply -from koyeb.models.upsert_signup_qualification_reply import ( - UpsertSignupQualificationReply, -) -from koyeb.models.upsert_signup_qualification_request import ( - UpsertSignupQualificationRequest, -) - -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply +from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest +from koyeb.api.models.create_budget_reply import CreateBudgetReply +from koyeb.api.models.create_organization_reply import CreateOrganizationReply +from koyeb.api.models.create_organization_request import CreateOrganizationRequest +from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply +from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest +from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply +from koyeb.api.models.get_budget_reply import GetBudgetReply +from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply +from koyeb.api.models.get_organization_reply import GetOrganizationReply +from koyeb.api.models.github_installation_reply import GithubInstallationReply +from koyeb.api.models.github_installation_request import GithubInstallationRequest +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.models.organization import Organization +from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply +from koyeb.api.models.update_budget_reply import UpdateBudgetReply +from koyeb.api.models.update_budget_request import UpdateBudgetRequest +from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply +from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply +from koyeb.api.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply +from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest + +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class OrganizationApi: @@ -64,19 +60,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_access_token( self, - id: Annotated[ - StrictStr, Field(description="Organization id for ephemeral credential") - ], + id: Annotated[StrictStr, Field(description="Organization id for ephemeral credential")], body: CreateAccessTokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -111,7 +107,7 @@ def create_access_token( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_access_token_serialize( id=id, @@ -119,20 +115,21 @@ def create_access_token( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateAccessTokenReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateAccessTokenReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -140,19 +137,19 @@ def create_access_token( response_types_map=_response_types_map, ).data + @validate_call def create_access_token_with_http_info( self, - id: Annotated[ - StrictStr, Field(description="Organization id for ephemeral credential") - ], + id: Annotated[StrictStr, Field(description="Organization id for ephemeral credential")], body: CreateAccessTokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -187,7 +184,7 @@ def create_access_token_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_access_token_serialize( id=id, @@ -195,20 +192,21 @@ def create_access_token_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateAccessTokenReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateAccessTokenReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -216,19 +214,19 @@ def create_access_token_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_access_token_without_preload_content( self, - id: Annotated[ - StrictStr, Field(description="Organization id for ephemeral credential") - ], + id: Annotated[StrictStr, Field(description="Organization id for ephemeral credential")], body: CreateAccessTokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -263,7 +261,7 @@ def create_access_token_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_access_token_serialize( id=id, @@ -271,23 +269,25 @@ def create_access_token_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateAccessTokenReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateAccessTokenReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_access_token_serialize( self, id, @@ -300,7 +300,8 @@ def _create_access_token_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -313,7 +314,7 @@ def _create_access_token_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -321,16 +322,24 @@ def _create_access_token_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{id}/access_token", + method='POST', + resource_path='/v1/organizations/{id}/access_token', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -340,9 +349,12 @@ def _create_access_token_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def create_budget( self, @@ -352,8 +364,9 @@ def create_budget( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -387,7 +400,7 @@ def create_budget( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_budget_serialize( organization_id=organization_id, @@ -395,20 +408,21 @@ def create_budget( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -416,6 +430,7 @@ def create_budget( response_types_map=_response_types_map, ).data + @validate_call def create_budget_with_http_info( self, @@ -425,8 +440,9 @@ def create_budget_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -460,7 +476,7 @@ def create_budget_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_budget_serialize( organization_id=organization_id, @@ -468,20 +484,21 @@ def create_budget_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -489,6 +506,7 @@ def create_budget_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_budget_without_preload_content( self, @@ -498,8 +516,9 @@ def create_budget_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -533,7 +552,7 @@ def create_budget_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_budget_serialize( organization_id=organization_id, @@ -541,23 +560,25 @@ def create_budget_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_budget_serialize( self, organization_id, @@ -570,7 +591,8 @@ def _create_budget_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -583,7 +605,7 @@ def _create_budget_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters @@ -591,16 +613,24 @@ def _create_budget_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{organization_id}/budget", + method='POST', + resource_path='/v1/organizations/{organization_id}/budget', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -610,9 +640,12 @@ def _create_budget_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def create_organization( self, @@ -621,8 +654,9 @@ def create_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -654,27 +688,28 @@ def create_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_organization_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -682,6 +717,7 @@ def create_organization( response_types_map=_response_types_map, ).data + @validate_call def create_organization_with_http_info( self, @@ -690,8 +726,9 @@ def create_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -723,27 +760,28 @@ def create_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_organization_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -751,6 +789,7 @@ def create_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_organization_without_preload_content( self, @@ -759,8 +798,9 @@ def create_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -792,30 +832,32 @@ def create_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_organization_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_organization_serialize( self, body, @@ -827,7 +869,8 @@ def _create_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -846,16 +889,24 @@ def _create_organization_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations", + method='POST', + resource_path='/v1/organizations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -865,9 +916,12 @@ def _create_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def deactivate_organization( self, @@ -877,8 +931,9 @@ def deactivate_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -912,7 +967,7 @@ def deactivate_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._deactivate_organization_serialize( id=id, @@ -920,20 +975,21 @@ def deactivate_organization( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeactivateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeactivateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -941,6 +997,7 @@ def deactivate_organization( response_types_map=_response_types_map, ).data + @validate_call def deactivate_organization_with_http_info( self, @@ -950,8 +1007,9 @@ def deactivate_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -985,7 +1043,7 @@ def deactivate_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._deactivate_organization_serialize( id=id, @@ -993,20 +1051,21 @@ def deactivate_organization_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeactivateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeactivateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1014,6 +1073,7 @@ def deactivate_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def deactivate_organization_without_preload_content( self, @@ -1023,8 +1083,9 @@ def deactivate_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1058,7 +1119,7 @@ def deactivate_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._deactivate_organization_serialize( id=id, @@ -1066,23 +1127,25 @@ def deactivate_organization_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeactivateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeactivateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _deactivate_organization_serialize( self, id, @@ -1095,7 +1158,8 @@ def _deactivate_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1108,7 +1172,7 @@ def _deactivate_organization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -1116,16 +1180,24 @@ def _deactivate_organization_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{id}/deactivate", + method='POST', + resource_path='/v1/organizations/{id}/deactivate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1135,9 +1207,12 @@ def _deactivate_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_budget( self, @@ -1146,8 +1221,9 @@ def delete_budget( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1179,27 +1255,28 @@ def delete_budget( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_budget_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1207,6 +1284,7 @@ def delete_budget( response_types_map=_response_types_map, ).data + @validate_call def delete_budget_with_http_info( self, @@ -1215,8 +1293,9 @@ def delete_budget_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1248,27 +1327,28 @@ def delete_budget_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_budget_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1276,6 +1356,7 @@ def delete_budget_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_budget_without_preload_content( self, @@ -1284,8 +1365,9 @@ def delete_budget_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1317,30 +1399,32 @@ def delete_budget_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_budget_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_budget_serialize( self, organization_id, @@ -1352,7 +1436,8 @@ def _delete_budget_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1365,22 +1450,30 @@ def _delete_budget_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/organizations/{organization_id}/budget", + method='DELETE', + resource_path='/v1/organizations/{organization_id}/budget', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1390,9 +1483,12 @@ def _delete_budget_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_organization( self, @@ -1401,8 +1497,9 @@ def delete_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1434,27 +1531,28 @@ def delete_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_organization_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeleteOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1462,6 +1560,7 @@ def delete_organization( response_types_map=_response_types_map, ).data + @validate_call def delete_organization_with_http_info( self, @@ -1470,8 +1569,9 @@ def delete_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1503,27 +1603,28 @@ def delete_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_organization_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeleteOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1531,6 +1632,7 @@ def delete_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_organization_without_preload_content( self, @@ -1539,8 +1641,9 @@ def delete_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1572,30 +1675,32 @@ def delete_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_organization_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeleteOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_organization_serialize( self, id, @@ -1607,7 +1712,8 @@ def _delete_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1620,22 +1726,30 @@ def _delete_organization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/organizations/{id}", + method='DELETE', + resource_path='/v1/organizations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1645,9 +1759,12 @@ def _delete_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_budget( self, @@ -1656,8 +1773,9 @@ def get_budget( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1689,27 +1807,28 @@ def get_budget( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_budget_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1717,6 +1836,7 @@ def get_budget( response_types_map=_response_types_map, ).data + @validate_call def get_budget_with_http_info( self, @@ -1725,8 +1845,9 @@ def get_budget_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1758,27 +1879,28 @@ def get_budget_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_budget_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1786,6 +1908,7 @@ def get_budget_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_budget_without_preload_content( self, @@ -1794,8 +1917,9 @@ def get_budget_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1827,30 +1951,32 @@ def get_budget_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_budget_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_budget_serialize( self, organization_id, @@ -1862,7 +1988,8 @@ def _get_budget_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1875,22 +2002,30 @@ def _get_budget_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organizations/{organization_id}/budget", + method='GET', + resource_path='/v1/organizations/{organization_id}/budget', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1900,9 +2035,12 @@ def _get_budget_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_github_installation( self, @@ -1910,8 +2048,9 @@ def get_github_installation( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1941,26 +2080,27 @@ def get_github_installation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_github_installation_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetGithubInstallationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetGithubInstallationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1968,6 +2108,7 @@ def get_github_installation( response_types_map=_response_types_map, ).data + @validate_call def get_github_installation_with_http_info( self, @@ -1975,8 +2116,9 @@ def get_github_installation_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2006,26 +2148,27 @@ def get_github_installation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_github_installation_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetGithubInstallationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetGithubInstallationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2033,6 +2176,7 @@ def get_github_installation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_github_installation_without_preload_content( self, @@ -2040,8 +2184,9 @@ def get_github_installation_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2071,29 +2216,31 @@ def get_github_installation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_github_installation_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetGithubInstallationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetGithubInstallationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_github_installation_serialize( self, _request_auth, @@ -2104,7 +2251,8 @@ def _get_github_installation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2121,16 +2269,24 @@ def _get_github_installation_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/github/installation", + method='GET', + resource_path='/v1/github/installation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2140,9 +2296,12 @@ def _get_github_installation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_organization( self, @@ -2151,8 +2310,9 @@ def get_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2184,27 +2344,28 @@ def get_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2212,6 +2373,7 @@ def get_organization( response_types_map=_response_types_map, ).data + @validate_call def get_organization_with_http_info( self, @@ -2220,8 +2382,9 @@ def get_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2253,27 +2416,28 @@ def get_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2281,6 +2445,7 @@ def get_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_organization_without_preload_content( self, @@ -2289,8 +2454,9 @@ def get_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2322,30 +2488,32 @@ def get_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_organization_serialize( self, id, @@ -2357,7 +2525,8 @@ def _get_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2370,22 +2539,30 @@ def _get_organization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organizations/{id}", + method='GET', + resource_path='/v1/organizations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2395,9 +2572,12 @@ def _get_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def github_installation( self, @@ -2406,8 +2586,9 @@ def github_installation( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2439,27 +2620,28 @@ def github_installation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._github_installation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GithubInstallationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GithubInstallationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2467,6 +2649,7 @@ def github_installation( response_types_map=_response_types_map, ).data + @validate_call def github_installation_with_http_info( self, @@ -2475,8 +2658,9 @@ def github_installation_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2508,27 +2692,28 @@ def github_installation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._github_installation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GithubInstallationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GithubInstallationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2536,6 +2721,7 @@ def github_installation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def github_installation_without_preload_content( self, @@ -2544,8 +2730,9 @@ def github_installation_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2577,30 +2764,32 @@ def github_installation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._github_installation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GithubInstallationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GithubInstallationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _github_installation_serialize( self, body, @@ -2612,7 +2801,8 @@ def _github_installation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2631,16 +2821,24 @@ def _github_installation_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/github/installation", + method='POST', + resource_path='/v1/github/installation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2650,9 +2848,12 @@ def _github_installation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def reactivate_organization( self, @@ -2662,8 +2863,9 @@ def reactivate_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2697,7 +2899,7 @@ def reactivate_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reactivate_organization_serialize( id=id, @@ -2705,20 +2907,21 @@ def reactivate_organization( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ReactivateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ReactivateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2726,6 +2929,7 @@ def reactivate_organization( response_types_map=_response_types_map, ).data + @validate_call def reactivate_organization_with_http_info( self, @@ -2735,8 +2939,9 @@ def reactivate_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2770,7 +2975,7 @@ def reactivate_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reactivate_organization_serialize( id=id, @@ -2778,20 +2983,21 @@ def reactivate_organization_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ReactivateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ReactivateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2799,6 +3005,7 @@ def reactivate_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def reactivate_organization_without_preload_content( self, @@ -2808,8 +3015,9 @@ def reactivate_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2843,7 +3051,7 @@ def reactivate_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reactivate_organization_serialize( id=id, @@ -2851,23 +3059,25 @@ def reactivate_organization_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ReactivateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ReactivateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _reactivate_organization_serialize( self, id, @@ -2880,7 +3090,8 @@ def _reactivate_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2893,7 +3104,7 @@ def _reactivate_organization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -2901,16 +3112,24 @@ def _reactivate_organization_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{id}/reactivate", + method='POST', + resource_path='/v1/organizations/{id}/reactivate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2920,23 +3139,25 @@ def _reactivate_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def switch_organization( self, id: StrictStr, body: Dict[str, Any], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2972,7 +3193,7 @@ def switch_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._switch_organization_serialize( id=id, @@ -2981,20 +3202,21 @@ def switch_organization( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3002,20 +3224,20 @@ def switch_organization( response_types_map=_response_types_map, ).data + @validate_call def switch_organization_with_http_info( self, id: StrictStr, body: Dict[str, Any], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3051,7 +3273,7 @@ def switch_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._switch_organization_serialize( id=id, @@ -3060,20 +3282,21 @@ def switch_organization_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3081,20 +3304,20 @@ def switch_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def switch_organization_without_preload_content( self, id: StrictStr, body: Dict[str, Any], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3130,7 +3353,7 @@ def switch_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._switch_organization_serialize( id=id, @@ -3139,23 +3362,25 @@ def switch_organization_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _switch_organization_serialize( self, id, @@ -3169,7 +3394,8 @@ def _switch_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3182,26 +3408,34 @@ def _switch_organization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{id}/switch", + method='POST', + resource_path='/v1/organizations/{id}/switch', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3211,22 +3445,24 @@ def _switch_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def unscope_organization_token( self, body: Dict[str, Any], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3261,7 +3497,7 @@ def unscope_organization_token( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._unscope_organization_token_serialize( body=body, @@ -3269,20 +3505,21 @@ def unscope_organization_token( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3290,19 +3527,19 @@ def unscope_organization_token( response_types_map=_response_types_map, ).data + @validate_call def unscope_organization_token_with_http_info( self, body: Dict[str, Any], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3337,7 +3574,7 @@ def unscope_organization_token_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._unscope_organization_token_serialize( body=body, @@ -3345,20 +3582,21 @@ def unscope_organization_token_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3366,19 +3604,19 @@ def unscope_organization_token_with_http_info( response_types_map=_response_types_map, ) + @validate_call def unscope_organization_token_without_preload_content( self, body: Dict[str, Any], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3413,7 +3651,7 @@ def unscope_organization_token_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._unscope_organization_token_serialize( body=body, @@ -3421,23 +3659,25 @@ def unscope_organization_token_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _unscope_organization_token_serialize( self, body, @@ -3450,7 +3690,8 @@ def _unscope_organization_token_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3465,22 +3706,30 @@ def _unscope_organization_token_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/unscope_organization_token", + method='POST', + resource_path='/v1/unscope_organization_token', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3490,9 +3739,12 @@ def _unscope_organization_token_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_budget( self, @@ -3502,8 +3754,9 @@ def update_budget( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3537,7 +3790,7 @@ def update_budget( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_budget_serialize( organization_id=organization_id, @@ -3545,20 +3798,21 @@ def update_budget( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3566,6 +3820,7 @@ def update_budget( response_types_map=_response_types_map, ).data + @validate_call def update_budget_with_http_info( self, @@ -3575,8 +3830,9 @@ def update_budget_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3610,7 +3866,7 @@ def update_budget_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_budget_serialize( organization_id=organization_id, @@ -3618,20 +3874,21 @@ def update_budget_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3639,6 +3896,7 @@ def update_budget_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_budget_without_preload_content( self, @@ -3648,8 +3906,9 @@ def update_budget_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3683,7 +3942,7 @@ def update_budget_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_budget_serialize( organization_id=organization_id, @@ -3691,23 +3950,25 @@ def update_budget_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateBudgetReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateBudgetReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_budget_serialize( self, organization_id, @@ -3720,7 +3981,8 @@ def _update_budget_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3733,7 +3995,7 @@ def _update_budget_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters @@ -3741,16 +4003,24 @@ def _update_budget_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/organizations/{organization_id}/budget", + method='PUT', + resource_path='/v1/organizations/{organization_id}/budget', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3760,9 +4030,12 @@ def _update_budget_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_organization( self, @@ -3773,8 +4046,9 @@ def update_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3810,7 +4084,7 @@ def update_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization_serialize( id=id, @@ -3819,20 +4093,21 @@ def update_organization( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3840,6 +4115,7 @@ def update_organization( response_types_map=_response_types_map, ).data + @validate_call def update_organization_with_http_info( self, @@ -3850,8 +4126,9 @@ def update_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3887,7 +4164,7 @@ def update_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization_serialize( id=id, @@ -3896,20 +4173,21 @@ def update_organization_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3917,6 +4195,7 @@ def update_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_organization_without_preload_content( self, @@ -3927,8 +4206,9 @@ def update_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3964,7 +4244,7 @@ def update_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization_serialize( id=id, @@ -3973,23 +4253,25 @@ def update_organization_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_organization_serialize( self, id, @@ -4003,7 +4285,8 @@ def _update_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4016,28 +4299,36 @@ def _update_organization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if organization is not None: _body_params = organization + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/organizations/{id}", + method='PUT', + resource_path='/v1/organizations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4047,9 +4338,12 @@ def _update_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_organization2( self, @@ -4060,8 +4354,9 @@ def update_organization2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4097,7 +4392,7 @@ def update_organization2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization2_serialize( id=id, @@ -4106,20 +4401,21 @@ def update_organization2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4127,6 +4423,7 @@ def update_organization2( response_types_map=_response_types_map, ).data + @validate_call def update_organization2_with_http_info( self, @@ -4137,8 +4434,9 @@ def update_organization2_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4174,7 +4472,7 @@ def update_organization2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization2_serialize( id=id, @@ -4183,20 +4481,21 @@ def update_organization2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4204,6 +4503,7 @@ def update_organization2_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_organization2_without_preload_content( self, @@ -4214,8 +4514,9 @@ def update_organization2_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4251,7 +4552,7 @@ def update_organization2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization2_serialize( id=id, @@ -4260,23 +4561,25 @@ def update_organization2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_organization2_serialize( self, id, @@ -4290,7 +4593,8 @@ def _update_organization2_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4303,28 +4607,36 @@ def _update_organization2_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if organization is not None: _body_params = organization + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/organizations/{id}", + method='PATCH', + resource_path='/v1/organizations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4334,9 +4646,12 @@ def _update_organization2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_organization_plan( self, @@ -4346,8 +4661,9 @@ def update_organization_plan( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4381,7 +4697,7 @@ def update_organization_plan( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization_plan_serialize( id=id, @@ -4389,20 +4705,21 @@ def update_organization_plan( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationPlanReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationPlanReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4410,6 +4727,7 @@ def update_organization_plan( response_types_map=_response_types_map, ).data + @validate_call def update_organization_plan_with_http_info( self, @@ -4419,8 +4737,9 @@ def update_organization_plan_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4454,7 +4773,7 @@ def update_organization_plan_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization_plan_serialize( id=id, @@ -4462,20 +4781,21 @@ def update_organization_plan_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationPlanReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationPlanReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4483,6 +4803,7 @@ def update_organization_plan_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_organization_plan_without_preload_content( self, @@ -4492,8 +4813,9 @@ def update_organization_plan_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4527,7 +4849,7 @@ def update_organization_plan_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_organization_plan_serialize( id=id, @@ -4535,23 +4857,25 @@ def update_organization_plan_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateOrganizationPlanReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateOrganizationPlanReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_organization_plan_serialize( self, id, @@ -4564,7 +4888,8 @@ def _update_organization_plan_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4577,7 +4902,7 @@ def _update_organization_plan_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -4585,16 +4910,24 @@ def _update_organization_plan_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{id}/plan", + method='POST', + resource_path='/v1/organizations/{id}/plan', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4604,9 +4937,12 @@ def _update_organization_plan_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def upsert_signup_qualification( self, @@ -4616,8 +4952,9 @@ def upsert_signup_qualification( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4651,7 +4988,7 @@ def upsert_signup_qualification( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upsert_signup_qualification_serialize( id=id, @@ -4659,20 +4996,21 @@ def upsert_signup_qualification( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpsertSignupQualificationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpsertSignupQualificationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4680,6 +5018,7 @@ def upsert_signup_qualification( response_types_map=_response_types_map, ).data + @validate_call def upsert_signup_qualification_with_http_info( self, @@ -4689,8 +5028,9 @@ def upsert_signup_qualification_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4724,7 +5064,7 @@ def upsert_signup_qualification_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upsert_signup_qualification_serialize( id=id, @@ -4732,20 +5072,21 @@ def upsert_signup_qualification_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpsertSignupQualificationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpsertSignupQualificationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4753,6 +5094,7 @@ def upsert_signup_qualification_with_http_info( response_types_map=_response_types_map, ) + @validate_call def upsert_signup_qualification_without_preload_content( self, @@ -4762,8 +5104,9 @@ def upsert_signup_qualification_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4797,7 +5140,7 @@ def upsert_signup_qualification_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upsert_signup_qualification_serialize( id=id, @@ -4805,23 +5148,25 @@ def upsert_signup_qualification_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpsertSignupQualificationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpsertSignupQualificationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _upsert_signup_qualification_serialize( self, id, @@ -4834,7 +5179,8 @@ def _upsert_signup_qualification_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4847,7 +5193,7 @@ def _upsert_signup_qualification_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -4855,16 +5201,24 @@ def _upsert_signup_qualification_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organizations/{id}/signup_qualification", + method='POST', + resource_path='/v1/organizations/{id}/signup_qualification', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4874,5 +5228,7 @@ def _upsert_signup_qualification_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/organization_confirmations_api.py b/koyeb/api/api/organization_confirmations_api.py similarity index 79% rename from koyeb/api/organization_confirmations_api.py rename to koyeb/api/api/organization_confirmations_api.py index 613857dd..ab149b20 100644 --- a/koyeb/api/organization_confirmations_api.py +++ b/koyeb/api/api/organization_confirmations_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,9 +19,9 @@ from pydantic import StrictStr from typing import Any, Dict -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class OrganizationConfirmationsApi: @@ -36,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def confirm_organization_action( self, @@ -44,8 +45,9 @@ def confirm_organization_action( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -77,27 +79,28 @@ def confirm_organization_action( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._confirm_organization_action_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -105,6 +108,7 @@ def confirm_organization_action( response_types_map=_response_types_map, ).data + @validate_call def confirm_organization_action_with_http_info( self, @@ -113,8 +117,9 @@ def confirm_organization_action_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -146,27 +151,28 @@ def confirm_organization_action_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._confirm_organization_action_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -174,6 +180,7 @@ def confirm_organization_action_with_http_info( response_types_map=_response_types_map, ) + @validate_call def confirm_organization_action_without_preload_content( self, @@ -182,8 +189,9 @@ def confirm_organization_action_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -215,30 +223,32 @@ def confirm_organization_action_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._confirm_organization_action_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _confirm_organization_action_serialize( self, id, @@ -250,7 +260,8 @@ def _confirm_organization_action_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -263,22 +274,30 @@ def _confirm_organization_action_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organization_confirmations/{id}", + method='POST', + resource_path='/v1/organization_confirmations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -288,5 +307,7 @@ def _confirm_organization_action_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/organization_invitations_api.py b/koyeb/api/api/organization_invitations_api.py similarity index 77% rename from koyeb/api/organization_invitations_api.py rename to koyeb/api/api/organization_invitations_api.py index 9069b726..5735781d 100644 --- a/koyeb/api/organization_invitations_api.py +++ b/koyeb/api/api/organization_invitations_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,25 +19,15 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.create_organization_invitation_reply import ( - CreateOrganizationInvitationReply, -) -from koyeb.models.create_organization_invitation_request import ( - CreateOrganizationInvitationRequest, -) -from koyeb.models.get_organization_invitation_reply import ( - GetOrganizationInvitationReply, -) -from koyeb.models.list_organization_invitations_reply import ( - ListOrganizationInvitationsReply, -) -from koyeb.models.resend_organization_invitation_reply import ( - ResendOrganizationInvitationReply, -) - -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.models.create_organization_invitation_reply import CreateOrganizationInvitationReply +from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest +from koyeb.api.models.get_organization_invitation_reply import GetOrganizationInvitationReply +from koyeb.api.models.list_organization_invitations_reply import ListOrganizationInvitationsReply +from koyeb.api.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply + +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class OrganizationInvitationsApi: @@ -52,6 +42,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_organization_invitation( self, @@ -60,8 +51,9 @@ def create_organization_invitation( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -93,27 +85,28 @@ def create_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_organization_invitation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -121,6 +114,7 @@ def create_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def create_organization_invitation_with_http_info( self, @@ -129,8 +123,9 @@ def create_organization_invitation_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,27 +157,28 @@ def create_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_organization_invitation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -190,6 +186,7 @@ def create_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_organization_invitation_without_preload_content( self, @@ -198,8 +195,9 @@ def create_organization_invitation_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -231,30 +229,32 @@ def create_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_organization_invitation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_organization_invitation_serialize( self, body, @@ -266,7 +266,8 @@ def _create_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -285,16 +286,24 @@ def _create_organization_invitation_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organization_invitations", + method='POST', + resource_path='/v1/organization_invitations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -304,22 +313,23 @@ def _create_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_organization_invitation( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to delete"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to delete")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -351,27 +361,28 @@ def delete_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -379,19 +390,18 @@ def delete_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def delete_organization_invitation_with_http_info( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to delete"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to delete")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -423,27 +433,28 @@ def delete_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -451,19 +462,18 @@ def delete_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_organization_invitation_without_preload_content( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to delete"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to delete")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -495,30 +505,32 @@ def delete_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_organization_invitation_serialize( self, id, @@ -530,7 +542,8 @@ def _delete_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -543,22 +556,30 @@ def _delete_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/organization_invitations/{id}", + method='DELETE', + resource_path='/v1/organization_invitations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -568,9 +589,12 @@ def _delete_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_organization_invitation( self, @@ -579,8 +603,9 @@ def get_organization_invitation( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -612,27 +637,28 @@ def get_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -640,6 +666,7 @@ def get_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def get_organization_invitation_with_http_info( self, @@ -648,8 +675,9 @@ def get_organization_invitation_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -681,27 +709,28 @@ def get_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -709,6 +738,7 @@ def get_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_organization_invitation_without_preload_content( self, @@ -717,8 +747,9 @@ def get_organization_invitation_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -750,30 +781,32 @@ def get_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_organization_invitation_serialize( self, id, @@ -785,7 +818,8 @@ def _get_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -798,22 +832,30 @@ def _get_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organization_invitations/{id}", + method='GET', + resource_path='/v1/organization_invitations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -823,36 +865,26 @@ def _get_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_organization_invitations( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on organization invitation statuses"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id" - ), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -890,7 +922,7 @@ def list_organization_invitations( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_invitations_serialize( limit=limit, @@ -900,20 +932,21 @@ def list_organization_invitations( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListOrganizationInvitationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListOrganizationInvitationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -921,33 +954,21 @@ def list_organization_invitations( response_types_map=_response_types_map, ).data + @validate_call def list_organization_invitations_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on organization invitation statuses"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id" - ), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -985,7 +1006,7 @@ def list_organization_invitations_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_invitations_serialize( limit=limit, @@ -995,20 +1016,21 @@ def list_organization_invitations_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListOrganizationInvitationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListOrganizationInvitationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1016,33 +1038,21 @@ def list_organization_invitations_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_organization_invitations_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on organization invitation statuses"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id" - ), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1080,7 +1090,7 @@ def list_organization_invitations_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_invitations_serialize( limit=limit, @@ -1090,23 +1100,25 @@ def list_organization_invitations_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListOrganizationInvitationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListOrganizationInvitationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_organization_invitations_serialize( self, limit, @@ -1122,7 +1134,7 @@ def _list_organization_invitations_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -1137,35 +1149,43 @@ def _list_organization_invitations_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + if user_id is not None: - - _query_params.append(("user_id", user_id)) - + + _query_params.append(('user_id', user_id)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organization_invitations", + method='GET', + resource_path='/v1/organization_invitations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1175,23 +1195,24 @@ def _list_organization_invitations_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def resend_organization_invitation( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to resend"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to resend")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1225,7 +1246,7 @@ def resend_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_organization_invitation_serialize( id=id, @@ -1233,20 +1254,21 @@ def resend_organization_invitation( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ResendOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ResendOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1254,20 +1276,19 @@ def resend_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def resend_organization_invitation_with_http_info( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to resend"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to resend")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1301,7 +1322,7 @@ def resend_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_organization_invitation_serialize( id=id, @@ -1309,20 +1330,21 @@ def resend_organization_invitation_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ResendOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ResendOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1330,20 +1352,19 @@ def resend_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def resend_organization_invitation_without_preload_content( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to resend"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to resend")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1377,7 +1398,7 @@ def resend_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_organization_invitation_serialize( id=id, @@ -1385,23 +1406,25 @@ def resend_organization_invitation_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ResendOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ResendOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _resend_organization_invitation_serialize( self, id, @@ -1414,7 +1437,8 @@ def _resend_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1427,7 +1451,7 @@ def _resend_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -1435,16 +1459,24 @@ def _resend_organization_invitation_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/organization_invitations/{id}/resend", + method='POST', + resource_path='/v1/organization_invitations/{id}/resend', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1454,5 +1486,7 @@ def _resend_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/organization_members_api.py b/koyeb/api/api/organization_members_api.py similarity index 74% rename from koyeb/api/organization_members_api.py rename to koyeb/api/api/organization_members_api.py index 1ab52319..bcd68a7c 100644 --- a/koyeb/api/organization_members_api.py +++ b/koyeb/api/api/organization_members_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,12 +19,12 @@ from pydantic import Field, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from koyeb.models.list_organization_members_reply import ListOrganizationMembersReply -from koyeb.models.remove_organization_member_reply import RemoveOrganizationMemberReply +from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply +from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class OrganizationMembersApi: @@ -39,34 +39,22 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def list_organization_members( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter for an organization"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter for an user") - ] = None, - organization_statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter for organization statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, + organization_statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter for organization statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -106,7 +94,7 @@ def list_organization_members( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_members_serialize( limit=limit, @@ -117,20 +105,21 @@ def list_organization_members( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListOrganizationMembersReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListOrganizationMembersReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -138,34 +127,22 @@ def list_organization_members( response_types_map=_response_types_map, ).data + @validate_call def list_organization_members_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter for an organization"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter for an user") - ] = None, - organization_statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter for organization statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, + organization_statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter for organization statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -205,7 +182,7 @@ def list_organization_members_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_members_serialize( limit=limit, @@ -216,20 +193,21 @@ def list_organization_members_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListOrganizationMembersReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListOrganizationMembersReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -237,34 +215,22 @@ def list_organization_members_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_organization_members_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter for an organization"), - ] = None, - user_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter for an user") - ] = None, - organization_statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter for organization statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, + organization_statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter for organization statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -304,7 +270,7 @@ def list_organization_members_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_members_serialize( limit=limit, @@ -315,23 +281,25 @@ def list_organization_members_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListOrganizationMembersReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListOrganizationMembersReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_organization_members_serialize( self, limit, @@ -348,7 +316,7 @@ def _list_organization_members_serialize( _host = None _collection_formats: Dict[str, str] = { - "organization_statuses": "multi", + 'organization_statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -363,39 +331,47 @@ def _list_organization_members_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if organization_id is not None: - - _query_params.append(("organization_id", organization_id)) - + + _query_params.append(('organization_id', organization_id)) + if user_id is not None: - - _query_params.append(("user_id", user_id)) - + + _query_params.append(('user_id', user_id)) + if organization_statuses is not None: - - _query_params.append(("organization_statuses", organization_statuses)) - + + _query_params.append(('organization_statuses', organization_statuses)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organization_members", + method='GET', + resource_path='/v1/organization_members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -405,9 +381,12 @@ def _list_organization_members_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def remove_organization_member( self, @@ -416,8 +395,9 @@ def remove_organization_member( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -449,27 +429,28 @@ def remove_organization_member( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._remove_organization_member_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RemoveOrganizationMemberReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RemoveOrganizationMemberReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -477,6 +458,7 @@ def remove_organization_member( response_types_map=_response_types_map, ).data + @validate_call def remove_organization_member_with_http_info( self, @@ -485,8 +467,9 @@ def remove_organization_member_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -518,27 +501,28 @@ def remove_organization_member_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._remove_organization_member_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RemoveOrganizationMemberReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RemoveOrganizationMemberReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -546,6 +530,7 @@ def remove_organization_member_with_http_info( response_types_map=_response_types_map, ) + @validate_call def remove_organization_member_without_preload_content( self, @@ -554,8 +539,9 @@ def remove_organization_member_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -587,30 +573,32 @@ def remove_organization_member_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._remove_organization_member_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RemoveOrganizationMemberReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RemoveOrganizationMemberReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _remove_organization_member_serialize( self, id, @@ -622,7 +610,8 @@ def _remove_organization_member_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -635,22 +624,30 @@ def _remove_organization_member_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/organization_members/{id}", + method='DELETE', + resource_path='/v1/organization_members/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -660,5 +657,7 @@ def _remove_organization_member_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/organization_quotas_api.py b/koyeb/api/api/organization_quotas_api.py similarity index 78% rename from koyeb/api/organization_quotas_api.py rename to koyeb/api/api/organization_quotas_api.py index 8a67fcb2..50ec5173 100644 --- a/koyeb/api/organization_quotas_api.py +++ b/koyeb/api/api/organization_quotas_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,11 +17,11 @@ from typing_extensions import Annotated from pydantic import StrictStr -from koyeb.models.get_quotas_reply import GetQuotasReply +from koyeb.api.models.get_quotas_reply import GetQuotasReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class OrganizationQuotasApi: @@ -36,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_quotas( self, @@ -44,8 +45,9 @@ def get_quotas( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -77,27 +79,28 @@ def get_quotas( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_quotas_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetQuotasReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetQuotasReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -105,6 +108,7 @@ def get_quotas( response_types_map=_response_types_map, ).data + @validate_call def get_quotas_with_http_info( self, @@ -113,8 +117,9 @@ def get_quotas_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -146,27 +151,28 @@ def get_quotas_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_quotas_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetQuotasReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetQuotasReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -174,6 +180,7 @@ def get_quotas_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_quotas_without_preload_content( self, @@ -182,8 +189,9 @@ def get_quotas_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -215,30 +223,32 @@ def get_quotas_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_quotas_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetQuotasReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetQuotasReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_quotas_serialize( self, organization_id, @@ -250,7 +260,8 @@ def _get_quotas_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -263,22 +274,30 @@ def _get_quotas_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organizations/{organization_id}/quotas", + method='GET', + resource_path='/v1/organizations/{organization_id}/quotas', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -288,5 +307,7 @@ def _get_quotas_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/payment_methods_api.py b/koyeb/api/api/payment_methods_api.py similarity index 79% rename from koyeb/api/payment_methods_api.py rename to koyeb/api/api/payment_methods_api.py index b44f39fa..81b544f0 100644 --- a/koyeb/api/payment_methods_api.py +++ b/koyeb/api/api/payment_methods_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,18 +19,14 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.confirm_payment_authorization_reply import ( - ConfirmPaymentAuthorizationReply, -) -from koyeb.models.create_payment_authorization_reply import ( - CreatePaymentAuthorizationReply, -) -from koyeb.models.get_payment_method_reply import GetPaymentMethodReply -from koyeb.models.list_payment_methods_reply import ListPaymentMethodsReply +from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply +from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply +from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply +from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class PaymentMethodsApi: @@ -45,6 +41,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def confirm_payment_authorization( self, @@ -54,8 +51,9 @@ def confirm_payment_authorization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -89,7 +87,7 @@ def confirm_payment_authorization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._confirm_payment_authorization_serialize( id=id, @@ -97,20 +95,21 @@ def confirm_payment_authorization( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ConfirmPaymentAuthorizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ConfirmPaymentAuthorizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,6 +117,7 @@ def confirm_payment_authorization( response_types_map=_response_types_map, ).data + @validate_call def confirm_payment_authorization_with_http_info( self, @@ -127,8 +127,9 @@ def confirm_payment_authorization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,7 +163,7 @@ def confirm_payment_authorization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._confirm_payment_authorization_serialize( id=id, @@ -170,20 +171,21 @@ def confirm_payment_authorization_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ConfirmPaymentAuthorizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ConfirmPaymentAuthorizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -191,6 +193,7 @@ def confirm_payment_authorization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def confirm_payment_authorization_without_preload_content( self, @@ -200,8 +203,9 @@ def confirm_payment_authorization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -235,7 +239,7 @@ def confirm_payment_authorization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._confirm_payment_authorization_serialize( id=id, @@ -243,23 +247,25 @@ def confirm_payment_authorization_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ConfirmPaymentAuthorizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ConfirmPaymentAuthorizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _confirm_payment_authorization_serialize( self, id, @@ -272,7 +278,8 @@ def _confirm_payment_authorization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -285,7 +292,7 @@ def _confirm_payment_authorization_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -293,16 +300,24 @@ def _confirm_payment_authorization_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/payment_methods/{id}/confirm", + method='POST', + resource_path='/v1/payment_methods/{id}/confirm', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -312,9 +327,12 @@ def _confirm_payment_authorization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def create_payment_authorization( self, @@ -323,8 +341,9 @@ def create_payment_authorization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -356,27 +375,28 @@ def create_payment_authorization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_authorization_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAuthorizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreatePaymentAuthorizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -384,6 +404,7 @@ def create_payment_authorization( response_types_map=_response_types_map, ).data + @validate_call def create_payment_authorization_with_http_info( self, @@ -392,8 +413,9 @@ def create_payment_authorization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -425,27 +447,28 @@ def create_payment_authorization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_authorization_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAuthorizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreatePaymentAuthorizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -453,6 +476,7 @@ def create_payment_authorization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_payment_authorization_without_preload_content( self, @@ -461,8 +485,9 @@ def create_payment_authorization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -494,30 +519,32 @@ def create_payment_authorization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_authorization_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAuthorizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreatePaymentAuthorizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_payment_authorization_serialize( self, body, @@ -529,7 +556,8 @@ def _create_payment_authorization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -548,16 +576,24 @@ def _create_payment_authorization_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/payment_methods", + method='POST', + resource_path='/v1/payment_methods', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -567,9 +603,12 @@ def _create_payment_authorization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_payment_method( self, @@ -578,8 +617,9 @@ def delete_payment_method( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -611,27 +651,28 @@ def delete_payment_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_method_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -639,6 +680,7 @@ def delete_payment_method( response_types_map=_response_types_map, ).data + @validate_call def delete_payment_method_with_http_info( self, @@ -647,8 +689,9 @@ def delete_payment_method_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -680,27 +723,28 @@ def delete_payment_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_method_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -708,6 +752,7 @@ def delete_payment_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_payment_method_without_preload_content( self, @@ -716,8 +761,9 @@ def delete_payment_method_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -749,30 +795,32 @@ def delete_payment_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_method_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_payment_method_serialize( self, id, @@ -784,7 +832,8 @@ def _delete_payment_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -797,22 +846,30 @@ def _delete_payment_method_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/payment_methods/{id}", + method='DELETE', + resource_path='/v1/payment_methods/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -822,9 +879,12 @@ def _delete_payment_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_payment_method( self, @@ -833,8 +893,9 @@ def get_payment_method( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -866,27 +927,28 @@ def get_payment_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_method_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetPaymentMethodReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -894,6 +956,7 @@ def get_payment_method( response_types_map=_response_types_map, ).data + @validate_call def get_payment_method_with_http_info( self, @@ -902,8 +965,9 @@ def get_payment_method_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -935,27 +999,28 @@ def get_payment_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_method_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetPaymentMethodReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -963,6 +1028,7 @@ def get_payment_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_payment_method_without_preload_content( self, @@ -971,8 +1037,9 @@ def get_payment_method_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1004,30 +1071,32 @@ def get_payment_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_method_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetPaymentMethodReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_payment_method_serialize( self, id, @@ -1039,7 +1108,8 @@ def _get_payment_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1052,22 +1122,30 @@ def _get_payment_method_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/payment_methods/{id}", + method='GET', + resource_path='/v1/payment_methods/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1077,30 +1155,25 @@ def _get_payment_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_payment_methods( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on payment method statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on payment method statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1136,7 +1209,7 @@ def list_payment_methods( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_methods_serialize( limit=limit, @@ -1145,20 +1218,21 @@ def list_payment_methods( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentMethodsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPaymentMethodsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1166,27 +1240,20 @@ def list_payment_methods( response_types_map=_response_types_map, ).data + @validate_call def list_payment_methods_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on payment method statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on payment method statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1222,7 +1289,7 @@ def list_payment_methods_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_methods_serialize( limit=limit, @@ -1231,20 +1298,21 @@ def list_payment_methods_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentMethodsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPaymentMethodsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1252,27 +1320,20 @@ def list_payment_methods_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_payment_methods_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on payment method statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on payment method statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1308,7 +1369,7 @@ def list_payment_methods_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_methods_serialize( limit=limit, @@ -1317,23 +1378,25 @@ def list_payment_methods_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentMethodsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPaymentMethodsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_payment_methods_serialize( self, limit, @@ -1348,7 +1411,7 @@ def _list_payment_methods_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -1363,31 +1426,39 @@ def _list_payment_methods_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/payment_methods", + method='GET', + resource_path='/v1/payment_methods', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1397,5 +1468,7 @@ def _list_payment_methods_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/persistent_volumes_api.py b/koyeb/api/api/persistent_volumes_api.py similarity index 76% rename from koyeb/api/persistent_volumes_api.py rename to koyeb/api/api/persistent_volumes_api.py index 7f6a9bcd..0ad610fe 100644 --- a/koyeb/api/persistent_volumes_api.py +++ b/koyeb/api/api/persistent_volumes_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,20 +19,18 @@ from pydantic import Field, StrictStr from typing import List, Optional from typing_extensions import Annotated -from koyeb.models.create_persistent_volume_reply import CreatePersistentVolumeReply -from koyeb.models.create_persistent_volume_request import CreatePersistentVolumeRequest -from koyeb.models.delete_persistent_volume_reply import DeletePersistentVolumeReply -from koyeb.models.get_persistent_volume_reply import GetPersistentVolumeReply -from koyeb.models.list_persistent_volume_events_reply import ( - ListPersistentVolumeEventsReply, -) -from koyeb.models.list_persistent_volumes_reply import ListPersistentVolumesReply -from koyeb.models.update_persistent_volume_reply import UpdatePersistentVolumeReply -from koyeb.models.update_persistent_volume_request import UpdatePersistentVolumeRequest - -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply +from koyeb.api.models.create_persistent_volume_request import CreatePersistentVolumeRequest +from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply +from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply +from koyeb.api.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply +from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply +from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply +from koyeb.api.models.update_persistent_volume_request import UpdatePersistentVolumeRequest + +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class PersistentVolumesApi: @@ -47,6 +45,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_persistent_volume( self, @@ -55,8 +54,9 @@ def create_persistent_volume( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -88,27 +88,28 @@ def create_persistent_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_persistent_volume_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreatePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -116,6 +117,7 @@ def create_persistent_volume( response_types_map=_response_types_map, ).data + @validate_call def create_persistent_volume_with_http_info( self, @@ -124,8 +126,9 @@ def create_persistent_volume_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -157,27 +160,28 @@ def create_persistent_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_persistent_volume_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreatePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -185,6 +189,7 @@ def create_persistent_volume_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_persistent_volume_without_preload_content( self, @@ -193,8 +198,9 @@ def create_persistent_volume_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -226,30 +232,32 @@ def create_persistent_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_persistent_volume_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreatePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_persistent_volume_serialize( self, body, @@ -261,7 +269,8 @@ def _create_persistent_volume_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -280,16 +289,24 @@ def _create_persistent_volume_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/volumes", + method='POST', + resource_path='/v1/volumes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -299,9 +316,12 @@ def _create_persistent_volume_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_persistent_volume( self, @@ -310,8 +330,9 @@ def delete_persistent_volume( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -343,27 +364,28 @@ def delete_persistent_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_persistent_volume_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeletePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeletePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -371,6 +393,7 @@ def delete_persistent_volume( response_types_map=_response_types_map, ).data + @validate_call def delete_persistent_volume_with_http_info( self, @@ -379,8 +402,9 @@ def delete_persistent_volume_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -412,27 +436,28 @@ def delete_persistent_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_persistent_volume_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeletePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeletePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -440,6 +465,7 @@ def delete_persistent_volume_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_persistent_volume_without_preload_content( self, @@ -448,8 +474,9 @@ def delete_persistent_volume_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -481,30 +508,32 @@ def delete_persistent_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_persistent_volume_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeletePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeletePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_persistent_volume_serialize( self, id, @@ -516,7 +545,8 @@ def _delete_persistent_volume_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -529,22 +559,30 @@ def _delete_persistent_volume_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/volumes/{id}", + method='DELETE', + resource_path='/v1/volumes/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -554,9 +592,12 @@ def _delete_persistent_volume_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_persistent_volume( self, @@ -565,8 +606,9 @@ def get_persistent_volume( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -598,27 +640,28 @@ def get_persistent_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_persistent_volume_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetPersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -626,6 +669,7 @@ def get_persistent_volume( response_types_map=_response_types_map, ).data + @validate_call def get_persistent_volume_with_http_info( self, @@ -634,8 +678,9 @@ def get_persistent_volume_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -667,27 +712,28 @@ def get_persistent_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_persistent_volume_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetPersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -695,6 +741,7 @@ def get_persistent_volume_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_persistent_volume_without_preload_content( self, @@ -703,8 +750,9 @@ def get_persistent_volume_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -736,30 +784,32 @@ def get_persistent_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_persistent_volume_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetPersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_persistent_volume_serialize( self, id, @@ -771,7 +821,8 @@ def _get_persistent_volume_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -784,22 +835,30 @@ def _get_persistent_volume_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/volumes/{id}", + method='GET', + resource_path='/v1/volumes/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -809,40 +868,27 @@ def _get_persistent_volume_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_persistent_volume_events( self, - persistent_volume_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on persistent volume id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on persistent volume event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + persistent_volume_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on persistent volume id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on persistent volume event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -882,7 +928,7 @@ def list_persistent_volume_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_persistent_volume_events_serialize( persistent_volume_id=persistent_volume_id, @@ -893,20 +939,21 @@ def list_persistent_volume_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPersistentVolumeEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPersistentVolumeEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -914,37 +961,22 @@ def list_persistent_volume_events( response_types_map=_response_types_map, ).data + @validate_call def list_persistent_volume_events_with_http_info( self, - persistent_volume_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on persistent volume id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on persistent volume event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + persistent_volume_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on persistent volume id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on persistent volume event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -984,7 +1016,7 @@ def list_persistent_volume_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_persistent_volume_events_serialize( persistent_volume_id=persistent_volume_id, @@ -995,20 +1027,21 @@ def list_persistent_volume_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPersistentVolumeEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPersistentVolumeEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1016,37 +1049,22 @@ def list_persistent_volume_events_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_persistent_volume_events_without_preload_content( self, - persistent_volume_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on persistent volume id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on persistent volume event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + persistent_volume_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on persistent volume id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on persistent volume event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1086,7 +1104,7 @@ def list_persistent_volume_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_persistent_volume_events_serialize( persistent_volume_id=persistent_volume_id, @@ -1097,23 +1115,25 @@ def list_persistent_volume_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPersistentVolumeEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPersistentVolumeEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_persistent_volume_events_serialize( self, persistent_volume_id, @@ -1130,7 +1150,7 @@ def _list_persistent_volume_events_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -1145,39 +1165,47 @@ def _list_persistent_volume_events_serialize( # process the path parameters # process the query parameters if persistent_volume_id is not None: - - _query_params.append(("persistent_volume_id", persistent_volume_id)) - + + _query_params.append(('persistent_volume_id', persistent_volume_id)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/volume_events", + method='GET', + resource_path='/v1/volume_events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1187,36 +1215,27 @@ def _list_persistent_volume_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_persistent_volumes( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) A filter for the service id"), - ] = None, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the region") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the service id")] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the region")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1256,7 +1275,7 @@ def list_persistent_volumes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_persistent_volumes_serialize( limit=limit, @@ -1267,20 +1286,21 @@ def list_persistent_volumes( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPersistentVolumesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPersistentVolumesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1288,33 +1308,22 @@ def list_persistent_volumes( response_types_map=_response_types_map, ).data + @validate_call def list_persistent_volumes_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) A filter for the service id"), - ] = None, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the region") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the service id")] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the region")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1354,7 +1363,7 @@ def list_persistent_volumes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_persistent_volumes_serialize( limit=limit, @@ -1365,20 +1374,21 @@ def list_persistent_volumes_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPersistentVolumesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPersistentVolumesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1386,33 +1396,22 @@ def list_persistent_volumes_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_persistent_volumes_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - service_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) A filter for the service id"), - ] = None, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the region") - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the name") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the service id")] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the region")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1452,7 +1451,7 @@ def list_persistent_volumes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_persistent_volumes_serialize( limit=limit, @@ -1463,23 +1462,25 @@ def list_persistent_volumes_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPersistentVolumesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListPersistentVolumesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_persistent_volumes_serialize( self, limit, @@ -1495,7 +1496,8 @@ def _list_persistent_volumes_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1509,39 +1511,47 @@ def _list_persistent_volumes_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if region is not None: - - _query_params.append(("region", region)) - + + _query_params.append(('region', region)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/volumes", + method='GET', + resource_path='/v1/volumes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1551,9 +1561,12 @@ def _list_persistent_volumes_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_persistent_volume( self, @@ -1563,8 +1576,9 @@ def update_persistent_volume( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1598,7 +1612,7 @@ def update_persistent_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_persistent_volume_serialize( id=id, @@ -1606,20 +1620,21 @@ def update_persistent_volume( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdatePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdatePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1627,6 +1642,7 @@ def update_persistent_volume( response_types_map=_response_types_map, ).data + @validate_call def update_persistent_volume_with_http_info( self, @@ -1636,8 +1652,9 @@ def update_persistent_volume_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1671,7 +1688,7 @@ def update_persistent_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_persistent_volume_serialize( id=id, @@ -1679,20 +1696,21 @@ def update_persistent_volume_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdatePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdatePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1700,6 +1718,7 @@ def update_persistent_volume_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_persistent_volume_without_preload_content( self, @@ -1709,8 +1728,9 @@ def update_persistent_volume_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1744,7 +1764,7 @@ def update_persistent_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_persistent_volume_serialize( id=id, @@ -1752,23 +1772,25 @@ def update_persistent_volume_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdatePersistentVolumeReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdatePersistentVolumeReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_persistent_volume_serialize( self, id, @@ -1781,7 +1803,8 @@ def _update_persistent_volume_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1794,7 +1817,7 @@ def _update_persistent_volume_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -1802,16 +1825,24 @@ def _update_persistent_volume_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/volumes/{id}", + method='POST', + resource_path='/v1/volumes/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1821,5 +1852,7 @@ def _update_persistent_volume_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/profile_api.py b/koyeb/api/api/profile_api.py similarity index 72% rename from koyeb/api/profile_api.py rename to koyeb/api/api/profile_api.py index ff0ad07c..348af53c 100644 --- a/koyeb/api/profile_api.py +++ b/koyeb/api/api/profile_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,43 +19,31 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.accept_organization_invitation_reply import ( - AcceptOrganizationInvitationReply, -) -from koyeb.models.clear_idenfy_verification_result_request import ( - ClearIdenfyVerificationResultRequest, -) -from koyeb.models.create_account_request import CreateAccountRequest -from koyeb.models.decline_organization_invitation_reply import ( - DeclineOrganizationInvitationReply, -) -from koyeb.models.get_idenfy_token_reply import GetIdenfyTokenReply -from koyeb.models.get_o_auth_options_reply import GetOAuthOptionsReply -from koyeb.models.get_organization_reply import GetOrganizationReply -from koyeb.models.get_user_organization_invitation_reply import ( - GetUserOrganizationInvitationReply, -) -from koyeb.models.get_user_settings_reply import GetUserSettingsReply -from koyeb.models.list_user_organization_invitations_reply import ( - ListUserOrganizationInvitationsReply, -) -from koyeb.models.list_user_organizations_reply import ListUserOrganizationsReply -from koyeb.models.login_method_reply import LoginMethodReply -from koyeb.models.login_reply import LoginReply -from koyeb.models.o_auth_callback_reply import OAuthCallbackReply -from koyeb.models.o_auth_callback_request import OAuthCallbackRequest -from koyeb.models.reset_password_request import ResetPasswordRequest -from koyeb.models.update_password_request import UpdatePasswordRequest -from koyeb.models.update_user_request_user_update_body import ( - UpdateUserRequestUserUpdateBody, -) -from koyeb.models.update_user_settings_reply import UpdateUserSettingsReply -from koyeb.models.update_user_settings_request import UpdateUserSettingsRequest -from koyeb.models.user_reply import UserReply - -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply +from koyeb.api.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest +from koyeb.api.models.create_account_request import CreateAccountRequest +from koyeb.api.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply +from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply +from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply +from koyeb.api.models.get_organization_reply import GetOrganizationReply +from koyeb.api.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply +from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply +from koyeb.api.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply +from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply +from koyeb.api.models.login_method_reply import LoginMethodReply +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply +from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest +from koyeb.api.models.reset_password_request import ResetPasswordRequest +from koyeb.api.models.update_password_request import UpdatePasswordRequest +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply +from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest +from koyeb.api.models.user_reply import UserReply + +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class ProfileApi: @@ -70,20 +58,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def accept_organization_invitation( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to accept"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to accept")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -117,7 +104,7 @@ def accept_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._accept_organization_invitation_serialize( id=id, @@ -125,20 +112,21 @@ def accept_organization_invitation( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AcceptOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "AcceptOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -146,20 +134,19 @@ def accept_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def accept_organization_invitation_with_http_info( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to accept"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to accept")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -193,7 +180,7 @@ def accept_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._accept_organization_invitation_serialize( id=id, @@ -201,20 +188,21 @@ def accept_organization_invitation_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AcceptOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "AcceptOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -222,20 +210,19 @@ def accept_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def accept_organization_invitation_without_preload_content( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to accept"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to accept")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -269,7 +256,7 @@ def accept_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._accept_organization_invitation_serialize( id=id, @@ -277,23 +264,25 @@ def accept_organization_invitation_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AcceptOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "AcceptOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _accept_organization_invitation_serialize( self, id, @@ -306,7 +295,8 @@ def _accept_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -319,7 +309,7 @@ def _accept_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -327,16 +317,24 @@ def _accept_organization_invitation_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/organization_invitations/{id}/accept", + method='POST', + resource_path='/v1/account/organization_invitations/{id}/accept', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -346,9 +344,12 @@ def _accept_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def clear_idenfy_verification_result( self, @@ -357,8 +358,9 @@ def clear_idenfy_verification_result( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -390,27 +392,28 @@ def clear_idenfy_verification_result( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._clear_idenfy_verification_result_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -418,6 +421,7 @@ def clear_idenfy_verification_result( response_types_map=_response_types_map, ).data + @validate_call def clear_idenfy_verification_result_with_http_info( self, @@ -426,8 +430,9 @@ def clear_idenfy_verification_result_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -459,27 +464,28 @@ def clear_idenfy_verification_result_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._clear_idenfy_verification_result_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -487,6 +493,7 @@ def clear_idenfy_verification_result_with_http_info( response_types_map=_response_types_map, ) + @validate_call def clear_idenfy_verification_result_without_preload_content( self, @@ -495,8 +502,9 @@ def clear_idenfy_verification_result_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -528,30 +536,32 @@ def clear_idenfy_verification_result_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._clear_idenfy_verification_result_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _clear_idenfy_verification_result_serialize( self, body, @@ -563,7 +573,8 @@ def _clear_idenfy_verification_result_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -582,16 +593,24 @@ def _clear_idenfy_verification_result_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/idenfy", + method='POST', + resource_path='/v1/account/idenfy', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -601,23 +620,24 @@ def _clear_idenfy_verification_result_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def decline_organization_invitation( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to decline"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to decline")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -651,7 +671,7 @@ def decline_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._decline_organization_invitation_serialize( id=id, @@ -659,20 +679,21 @@ def decline_organization_invitation( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeclineOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeclineOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -680,20 +701,19 @@ def decline_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def decline_organization_invitation_with_http_info( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to decline"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to decline")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -727,7 +747,7 @@ def decline_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._decline_organization_invitation_serialize( id=id, @@ -735,20 +755,21 @@ def decline_organization_invitation_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeclineOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeclineOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -756,20 +777,19 @@ def decline_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def decline_organization_invitation_without_preload_content( self, - id: Annotated[ - StrictStr, - Field(description="The id of the organization invitation to decline"), - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to decline")], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -803,7 +823,7 @@ def decline_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._decline_organization_invitation_serialize( id=id, @@ -811,23 +831,25 @@ def decline_organization_invitation_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeclineOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeclineOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _decline_organization_invitation_serialize( self, id, @@ -840,7 +862,8 @@ def _decline_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -853,7 +876,7 @@ def _decline_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -861,16 +884,24 @@ def _decline_organization_invitation_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/organization_invitations/{id}/decline", + method='POST', + resource_path='/v1/account/organization_invitations/{id}/decline', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -880,9 +911,12 @@ def _decline_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_current_organization( self, @@ -890,8 +924,9 @@ def get_current_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -921,26 +956,27 @@ def get_current_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_organization_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -948,6 +984,7 @@ def get_current_organization( response_types_map=_response_types_map, ).data + @validate_call def get_current_organization_with_http_info( self, @@ -955,8 +992,9 @@ def get_current_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -986,26 +1024,27 @@ def get_current_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_organization_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1013,6 +1052,7 @@ def get_current_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_current_organization_without_preload_content( self, @@ -1020,8 +1060,9 @@ def get_current_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1051,29 +1092,31 @@ def get_current_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_organization_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_current_organization_serialize( self, _request_auth, @@ -1084,7 +1127,8 @@ def _get_current_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1101,16 +1145,24 @@ def _get_current_organization_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/organization", + method='GET', + resource_path='/v1/account/organization', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1120,9 +1172,12 @@ def _get_current_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_current_user( self, @@ -1130,8 +1185,9 @@ def get_current_user( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1161,26 +1217,27 @@ def get_current_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_user_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1188,6 +1245,7 @@ def get_current_user( response_types_map=_response_types_map, ).data + @validate_call def get_current_user_with_http_info( self, @@ -1195,8 +1253,9 @@ def get_current_user_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1226,26 +1285,27 @@ def get_current_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_user_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1253,6 +1313,7 @@ def get_current_user_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_current_user_without_preload_content( self, @@ -1260,8 +1321,9 @@ def get_current_user_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1291,29 +1353,31 @@ def get_current_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_user_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_current_user_serialize( self, _request_auth, @@ -1324,7 +1388,8 @@ def _get_current_user_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1341,16 +1406,24 @@ def _get_current_user_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/profile", + method='GET', + resource_path='/v1/account/profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1360,9 +1433,12 @@ def _get_current_user_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_idenfy_token( self, @@ -1370,8 +1446,9 @@ def get_idenfy_token( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1401,26 +1478,27 @@ def get_idenfy_token( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_idenfy_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIdenfyTokenReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetIdenfyTokenReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1428,6 +1506,7 @@ def get_idenfy_token( response_types_map=_response_types_map, ).data + @validate_call def get_idenfy_token_with_http_info( self, @@ -1435,8 +1514,9 @@ def get_idenfy_token_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1466,26 +1546,27 @@ def get_idenfy_token_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_idenfy_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIdenfyTokenReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetIdenfyTokenReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1493,6 +1574,7 @@ def get_idenfy_token_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_idenfy_token_without_preload_content( self, @@ -1500,8 +1582,9 @@ def get_idenfy_token_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1531,29 +1614,31 @@ def get_idenfy_token_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_idenfy_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIdenfyTokenReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetIdenfyTokenReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_idenfy_token_serialize( self, _request_auth, @@ -1564,7 +1649,8 @@ def _get_idenfy_token_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1581,16 +1667,24 @@ def _get_idenfy_token_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/idenfy", + method='GET', + resource_path='/v1/account/idenfy', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1600,28 +1694,24 @@ def _get_idenfy_token_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_o_auth_options( self, - action: Annotated[ - Optional[StrictStr], - Field(description="Which authentication flow is being initiated"), - ] = None, - metadata: Annotated[ - Optional[StrictStr], - Field( - description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" - ), - ] = None, + action: Annotated[Optional[StrictStr], Field(description="Which authentication flow is being initiated")] = None, + metadata: Annotated[Optional[StrictStr], Field(description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1655,7 +1745,7 @@ def get_o_auth_options( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_o_auth_options_serialize( action=action, @@ -1663,20 +1753,21 @@ def get_o_auth_options( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOAuthOptionsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOAuthOptionsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1684,25 +1775,19 @@ def get_o_auth_options( response_types_map=_response_types_map, ).data + @validate_call def get_o_auth_options_with_http_info( self, - action: Annotated[ - Optional[StrictStr], - Field(description="Which authentication flow is being initiated"), - ] = None, - metadata: Annotated[ - Optional[StrictStr], - Field( - description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" - ), - ] = None, + action: Annotated[Optional[StrictStr], Field(description="Which authentication flow is being initiated")] = None, + metadata: Annotated[Optional[StrictStr], Field(description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1736,7 +1821,7 @@ def get_o_auth_options_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_o_auth_options_serialize( action=action, @@ -1744,20 +1829,21 @@ def get_o_auth_options_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOAuthOptionsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOAuthOptionsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1765,25 +1851,19 @@ def get_o_auth_options_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_o_auth_options_without_preload_content( self, - action: Annotated[ - Optional[StrictStr], - Field(description="Which authentication flow is being initiated"), - ] = None, - metadata: Annotated[ - Optional[StrictStr], - Field( - description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" - ), - ] = None, + action: Annotated[Optional[StrictStr], Field(description="Which authentication flow is being initiated")] = None, + metadata: Annotated[Optional[StrictStr], Field(description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1817,7 +1897,7 @@ def get_o_auth_options_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_o_auth_options_serialize( action=action, @@ -1825,23 +1905,25 @@ def get_o_auth_options_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOAuthOptionsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOAuthOptionsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_o_auth_options_serialize( self, action, @@ -1854,7 +1936,8 @@ def _get_o_auth_options_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1868,27 +1951,35 @@ def _get_o_auth_options_serialize( # process the path parameters # process the query parameters if action is not None: - - _query_params.append(("action", action)) - + + _query_params.append(('action', action)) + if metadata is not None: - - _query_params.append(("metadata", metadata)) - + + _query_params.append(('metadata', metadata)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/oauth", + method='GET', + resource_path='/v1/account/oauth', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1898,21 +1989,23 @@ def _get_o_auth_options_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_user_organization_invitation( self, - id: Annotated[ - StrictStr, Field(description="The id of the organization invitation to get") - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to get")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1944,27 +2037,28 @@ def get_user_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetUserOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1972,18 +2066,18 @@ def get_user_organization_invitation( response_types_map=_response_types_map, ).data + @validate_call def get_user_organization_invitation_with_http_info( self, - id: Annotated[ - StrictStr, Field(description="The id of the organization invitation to get") - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to get")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2015,27 +2109,28 @@ def get_user_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetUserOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2043,18 +2138,18 @@ def get_user_organization_invitation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_user_organization_invitation_without_preload_content( self, - id: Annotated[ - StrictStr, Field(description="The id of the organization invitation to get") - ], + id: Annotated[StrictStr, Field(description="The id of the organization invitation to get")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2086,30 +2181,32 @@ def get_user_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserOrganizationInvitationReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetUserOrganizationInvitationReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_user_organization_invitation_serialize( self, id, @@ -2121,7 +2218,8 @@ def _get_user_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2134,22 +2232,30 @@ def _get_user_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/organization_invitations/{id}", + method='GET', + resource_path='/v1/account/organization_invitations/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2159,9 +2265,12 @@ def _get_user_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_user_settings( self, @@ -2169,8 +2278,9 @@ def get_user_settings( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2200,26 +2310,27 @@ def get_user_settings( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_settings_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserSettingsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetUserSettingsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2227,6 +2338,7 @@ def get_user_settings( response_types_map=_response_types_map, ).data + @validate_call def get_user_settings_with_http_info( self, @@ -2234,8 +2346,9 @@ def get_user_settings_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2265,26 +2378,27 @@ def get_user_settings_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_settings_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserSettingsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetUserSettingsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2292,6 +2406,7 @@ def get_user_settings_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_user_settings_without_preload_content( self, @@ -2299,8 +2414,9 @@ def get_user_settings_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2330,29 +2446,31 @@ def get_user_settings_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_settings_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserSettingsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetUserSettingsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_user_settings_serialize( self, _request_auth, @@ -2363,7 +2481,8 @@ def _get_user_settings_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2380,16 +2499,24 @@ def _get_user_settings_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/settings", + method='GET', + resource_path='/v1/account/settings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2399,30 +2526,25 @@ def _get_user_settings_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_user_organization_invitations( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on organization invitation statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2458,7 +2580,7 @@ def list_user_organization_invitations( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organization_invitations_serialize( limit=limit, @@ -2467,20 +2589,21 @@ def list_user_organization_invitations( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserOrganizationInvitationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListUserOrganizationInvitationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2488,27 +2611,20 @@ def list_user_organization_invitations( response_types_map=_response_types_map, ).data + @validate_call def list_user_organization_invitations_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on organization invitation statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2544,7 +2660,7 @@ def list_user_organization_invitations_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organization_invitations_serialize( limit=limit, @@ -2553,20 +2669,21 @@ def list_user_organization_invitations_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserOrganizationInvitationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListUserOrganizationInvitationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2574,27 +2691,20 @@ def list_user_organization_invitations_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_user_organization_invitations_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on organization invitation statuses"), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2630,7 +2740,7 @@ def list_user_organization_invitations_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organization_invitations_serialize( limit=limit, @@ -2639,23 +2749,25 @@ def list_user_organization_invitations_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserOrganizationInvitationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListUserOrganizationInvitationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_user_organization_invitations_serialize( self, limit, @@ -2670,7 +2782,7 @@ def _list_user_organization_invitations_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -2685,31 +2797,39 @@ def _list_user_organization_invitations_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/organization_invitations", + method='GET', + resource_path='/v1/account/organization_invitations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2719,43 +2839,27 @@ def _list_user_organization_invitations_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_user_organizations( self, - limit: Annotated[ - Optional[StrictStr], Field(description="(Optional) Define pagination limit") - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Define pagination offset"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - search: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Fuzzy case-insensitive search based on organization name or organization id" - ), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) Only return organizations which status match one in the list" - ), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination limit")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination offset")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + search: Annotated[Optional[StrictStr], Field(description="(Optional) Fuzzy case-insensitive search based on organization name or organization id")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Only return organizations which status match one in the list")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2796,7 +2900,7 @@ def list_user_organizations( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organizations_serialize( limit=limit, @@ -2807,20 +2911,21 @@ def list_user_organizations( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserOrganizationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListUserOrganizationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2828,40 +2933,22 @@ def list_user_organizations( response_types_map=_response_types_map, ).data + @validate_call def list_user_organizations_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], Field(description="(Optional) Define pagination limit") - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Define pagination offset"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - search: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Fuzzy case-insensitive search based on organization name or organization id" - ), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) Only return organizations which status match one in the list" - ), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination limit")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination offset")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + search: Annotated[Optional[StrictStr], Field(description="(Optional) Fuzzy case-insensitive search based on organization name or organization id")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Only return organizations which status match one in the list")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2902,7 +2989,7 @@ def list_user_organizations_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organizations_serialize( limit=limit, @@ -2913,20 +3000,21 @@ def list_user_organizations_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserOrganizationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListUserOrganizationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2934,40 +3022,22 @@ def list_user_organizations_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_user_organizations_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], Field(description="(Optional) Define pagination limit") - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Define pagination offset"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - search: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Fuzzy case-insensitive search based on organization name or organization id" - ), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) Only return organizations which status match one in the list" - ), - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination limit")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination offset")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + search: Annotated[Optional[StrictStr], Field(description="(Optional) Fuzzy case-insensitive search based on organization name or organization id")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Only return organizations which status match one in the list")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3008,7 +3078,7 @@ def list_user_organizations_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organizations_serialize( limit=limit, @@ -3019,23 +3089,25 @@ def list_user_organizations_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserOrganizationsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListUserOrganizationsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_user_organizations_serialize( self, limit, @@ -3052,7 +3124,7 @@ def _list_user_organizations_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -3067,39 +3139,47 @@ def _list_user_organizations_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + if search is not None: - - _query_params.append(("search", search)) - + + _query_params.append(('search', search)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/organizations", + method='GET', + resource_path='/v1/account/organizations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3109,9 +3189,12 @@ def _list_user_organizations_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def login_method( self, @@ -3120,8 +3203,9 @@ def login_method( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3153,27 +3237,28 @@ def login_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_method_serialize( email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginMethodReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginMethodReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3181,6 +3266,7 @@ def login_method( response_types_map=_response_types_map, ).data + @validate_call def login_method_with_http_info( self, @@ -3189,8 +3275,9 @@ def login_method_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3222,27 +3309,28 @@ def login_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_method_serialize( email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginMethodReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginMethodReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3250,6 +3338,7 @@ def login_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def login_method_without_preload_content( self, @@ -3258,8 +3347,9 @@ def login_method_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3291,30 +3381,32 @@ def login_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_method_serialize( email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginMethodReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginMethodReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _login_method_serialize( self, email, @@ -3326,7 +3418,8 @@ def _login_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3340,23 +3433,31 @@ def _login_method_serialize( # process the path parameters # process the query parameters if email is not None: - - _query_params.append(("email", email)) - + + _query_params.append(('email', email)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/account/login_method", + method='GET', + resource_path='/v1/account/login_method', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3366,22 +3467,24 @@ def _login_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def o_auth_callback( self, body: OAuthCallbackRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3415,7 +3518,7 @@ def o_auth_callback( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._o_auth_callback_serialize( body=body, @@ -3423,20 +3526,21 @@ def o_auth_callback( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "OAuthCallbackReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "OAuthCallbackReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3444,19 +3548,19 @@ def o_auth_callback( response_types_map=_response_types_map, ).data + @validate_call def o_auth_callback_with_http_info( self, body: OAuthCallbackRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3490,7 +3594,7 @@ def o_auth_callback_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._o_auth_callback_serialize( body=body, @@ -3498,20 +3602,21 @@ def o_auth_callback_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "OAuthCallbackReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "OAuthCallbackReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3519,19 +3624,19 @@ def o_auth_callback_with_http_info( response_types_map=_response_types_map, ) + @validate_call def o_auth_callback_without_preload_content( self, body: OAuthCallbackRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3565,7 +3670,7 @@ def o_auth_callback_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._o_auth_callback_serialize( body=body, @@ -3573,23 +3678,25 @@ def o_auth_callback_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "OAuthCallbackReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "OAuthCallbackReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _o_auth_callback_serialize( self, body, @@ -3602,7 +3709,8 @@ def _o_auth_callback_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3617,22 +3725,30 @@ def _o_auth_callback_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/oauth", + method='POST', + resource_path='/v1/account/oauth', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3642,9 +3758,12 @@ def _o_auth_callback_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def resend_email_validation( self, @@ -3653,8 +3772,9 @@ def resend_email_validation( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3686,27 +3806,28 @@ def resend_email_validation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_email_validation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3714,6 +3835,7 @@ def resend_email_validation( response_types_map=_response_types_map, ).data + @validate_call def resend_email_validation_with_http_info( self, @@ -3722,8 +3844,9 @@ def resend_email_validation_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3755,27 +3878,28 @@ def resend_email_validation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_email_validation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3783,6 +3907,7 @@ def resend_email_validation_with_http_info( response_types_map=_response_types_map, ) + @validate_call def resend_email_validation_without_preload_content( self, @@ -3791,8 +3916,9 @@ def resend_email_validation_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3824,30 +3950,32 @@ def resend_email_validation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_email_validation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _resend_email_validation_serialize( self, body, @@ -3859,7 +3987,8 @@ def _resend_email_validation_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3878,16 +4007,24 @@ def _resend_email_validation_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/resend_validation", + method='POST', + resource_path='/v1/account/resend_validation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3897,9 +4034,12 @@ def _resend_email_validation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def reset_password( self, @@ -3908,8 +4048,9 @@ def reset_password( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3941,27 +4082,28 @@ def reset_password( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reset_password_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3969,6 +4111,7 @@ def reset_password( response_types_map=_response_types_map, ).data + @validate_call def reset_password_with_http_info( self, @@ -3977,8 +4120,9 @@ def reset_password_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4010,27 +4154,28 @@ def reset_password_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reset_password_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4038,6 +4183,7 @@ def reset_password_with_http_info( response_types_map=_response_types_map, ) + @validate_call def reset_password_without_preload_content( self, @@ -4046,8 +4192,9 @@ def reset_password_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4079,30 +4226,32 @@ def reset_password_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reset_password_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _reset_password_serialize( self, body, @@ -4114,7 +4263,8 @@ def _reset_password_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4133,16 +4283,24 @@ def _reset_password_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/reset_password", + method='POST', + resource_path='/v1/account/reset_password', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4152,22 +4310,24 @@ def _reset_password_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def signup( self, body: Annotated[CreateAccountRequest, Field(description="Create new account")], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4201,7 +4361,7 @@ def signup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._signup_serialize( body=body, @@ -4209,20 +4369,21 @@ def signup( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4230,19 +4391,19 @@ def signup( response_types_map=_response_types_map, ).data + @validate_call def signup_with_http_info( self, body: Annotated[CreateAccountRequest, Field(description="Create new account")], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4276,7 +4437,7 @@ def signup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._signup_serialize( body=body, @@ -4284,20 +4445,21 @@ def signup_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4305,19 +4467,19 @@ def signup_with_http_info( response_types_map=_response_types_map, ) + @validate_call def signup_without_preload_content( self, body: Annotated[CreateAccountRequest, Field(description="Create new account")], - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4351,7 +4513,7 @@ def signup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._signup_serialize( body=body, @@ -4359,23 +4521,25 @@ def signup_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _signup_serialize( self, body, @@ -4388,7 +4552,8 @@ def _signup_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4403,22 +4568,30 @@ def _signup_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/signup", + method='POST', + resource_path='/v1/account/signup', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4428,22 +4601,24 @@ def _signup_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_password( self, body: UpdatePasswordRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4477,7 +4652,7 @@ def update_password( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_password_serialize( body=body, @@ -4485,20 +4660,21 @@ def update_password( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4506,19 +4682,19 @@ def update_password( response_types_map=_response_types_map, ).data + @validate_call def update_password_with_http_info( self, body: UpdatePasswordRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4552,7 +4728,7 @@ def update_password_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_password_serialize( body=body, @@ -4560,20 +4736,21 @@ def update_password_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4581,19 +4758,19 @@ def update_password_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_password_without_preload_content( self, body: UpdatePasswordRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4627,7 +4804,7 @@ def update_password_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_password_serialize( body=body, @@ -4635,23 +4812,25 @@ def update_password_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_password_serialize( self, body, @@ -4664,7 +4843,8 @@ def _update_password_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4679,22 +4859,30 @@ def _update_password_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/update_password", + method='POST', + resource_path='/v1/account/update_password', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4704,9 +4892,12 @@ def _update_password_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_user( self, @@ -4716,8 +4907,9 @@ def update_user( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4751,7 +4943,7 @@ def update_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_serialize( user=user, @@ -4759,20 +4951,21 @@ def update_user( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4780,6 +4973,7 @@ def update_user( response_types_map=_response_types_map, ).data + @validate_call def update_user_with_http_info( self, @@ -4789,8 +4983,9 @@ def update_user_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4824,7 +5019,7 @@ def update_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_serialize( user=user, @@ -4832,20 +5027,21 @@ def update_user_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4853,6 +5049,7 @@ def update_user_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_user_without_preload_content( self, @@ -4862,8 +5059,9 @@ def update_user_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4897,7 +5095,7 @@ def update_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_serialize( user=user, @@ -4905,23 +5103,25 @@ def update_user_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_user_serialize( self, user, @@ -4934,7 +5134,8 @@ def _update_user_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4948,25 +5149,33 @@ def _update_user_serialize( # process the path parameters # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if user is not None: _body_params = user + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/account/profile", + method='PUT', + resource_path='/v1/account/profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4976,9 +5185,12 @@ def _update_user_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_user2( self, @@ -4988,8 +5200,9 @@ def update_user2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5023,7 +5236,7 @@ def update_user2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user2_serialize( user=user, @@ -5031,20 +5244,21 @@ def update_user2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5052,6 +5266,7 @@ def update_user2( response_types_map=_response_types_map, ).data + @validate_call def update_user2_with_http_info( self, @@ -5061,8 +5276,9 @@ def update_user2_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5096,7 +5312,7 @@ def update_user2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user2_serialize( user=user, @@ -5104,20 +5320,21 @@ def update_user2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5125,6 +5342,7 @@ def update_user2_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_user2_without_preload_content( self, @@ -5134,8 +5352,9 @@ def update_user2_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5169,7 +5388,7 @@ def update_user2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user2_serialize( user=user, @@ -5177,23 +5396,25 @@ def update_user2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_user2_serialize( self, user, @@ -5206,7 +5427,8 @@ def _update_user2_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5220,25 +5442,33 @@ def _update_user2_serialize( # process the path parameters # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if user is not None: _body_params = user + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/account/profile", + method='PATCH', + resource_path='/v1/account/profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5248,9 +5478,12 @@ def _update_user2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_user_settings( self, @@ -5259,8 +5492,9 @@ def update_user_settings( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5292,27 +5526,28 @@ def update_user_settings( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_settings_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateUserSettingsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateUserSettingsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5320,6 +5555,7 @@ def update_user_settings( response_types_map=_response_types_map, ).data + @validate_call def update_user_settings_with_http_info( self, @@ -5328,8 +5564,9 @@ def update_user_settings_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5361,27 +5598,28 @@ def update_user_settings_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_settings_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateUserSettingsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateUserSettingsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5389,6 +5627,7 @@ def update_user_settings_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_user_settings_without_preload_content( self, @@ -5397,8 +5636,9 @@ def update_user_settings_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5430,30 +5670,32 @@ def update_user_settings_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_settings_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateUserSettingsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateUserSettingsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_user_settings_serialize( self, body, @@ -5465,7 +5707,8 @@ def _update_user_settings_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5484,16 +5727,317 @@ def _update_user_settings_serialize( if body is not None: _body_params = body + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Bearer' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/v1/account/settings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_user_v2( + self, + user: UpdateUserRequestUserUpdateBody, + update_mask: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UserReply: + """Update User V2 + + + :param user: (required) + :type user: UpdateUserRequestUserUpdateBody + :param update_mask: + :type update_mask: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_v2_serialize( + user=user, + update_mask=update_mask, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_user_v2_with_http_info( + self, + user: UpdateUserRequestUserUpdateBody, + update_mask: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UserReply]: + """Update User V2 + + + :param user: (required) + :type user: UpdateUserRequestUserUpdateBody + :param update_mask: + :type update_mask: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_v2_serialize( + user=user, + update_mask=update_mask, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_user_v2_without_preload_content( + self, + user: UpdateUserRequestUserUpdateBody, + update_mask: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update User V2 + + + :param user: (required) + :type user: UpdateUserRequestUserUpdateBody + :param update_mask: + :type update_mask: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_v2_serialize( + user=user, + update_mask=update_mask, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_user_v2_serialize( + self, + user, + update_mask, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_mask is not None: + + _query_params.append(('update_mask', update_mask)) + + # process the header parameters + # process the form parameters + # process the body parameter + if user is not None: + _body_params = user + + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/account/settings", + method='PUT', + resource_path='/v2/account/profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5503,22 +6047,317 @@ def _update_user_settings_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_user_v22( + self, + user: UpdateUserRequestUserUpdateBody, + update_mask: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UserReply: + """Update User V2 + + + :param user: (required) + :type user: UpdateUserRequestUserUpdateBody + :param update_mask: + :type update_mask: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_v22_serialize( + user=user, + update_mask=update_mask, _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index ) + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_user_v22_with_http_info( + self, + user: UpdateUserRequestUserUpdateBody, + update_mask: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UserReply]: + """Update User V2 + + + :param user: (required) + :type user: UpdateUserRequestUserUpdateBody + :param update_mask: + :type update_mask: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_v22_serialize( + user=user, + update_mask=update_mask, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_user_v22_without_preload_content( + self, + user: UpdateUserRequestUserUpdateBody, + update_mask: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update User V2 + + + :param user: (required) + :type user: UpdateUserRequestUserUpdateBody + :param update_mask: + :type update_mask: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_v22_serialize( + user=user, + update_mask=update_mask, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_user_v22_serialize( + self, + user, + update_mask, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_mask is not None: + + _query_params.append(('update_mask', update_mask)) + + # process the header parameters + # process the form parameters + # process the body parameter + if user is not None: + _body_params = user + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Bearer' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/v2/account/profile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def validate( self, id: StrictStr, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5552,7 +6391,7 @@ def validate( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._validate_serialize( id=id, @@ -5560,20 +6399,21 @@ def validate( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5581,19 +6421,19 @@ def validate( response_types_map=_response_types_map, ).data + @validate_call def validate_with_http_info( self, id: StrictStr, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5627,7 +6467,7 @@ def validate_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._validate_serialize( id=id, @@ -5635,20 +6475,21 @@ def validate_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5656,19 +6497,19 @@ def validate_with_http_info( response_types_map=_response_types_map, ) + @validate_call def validate_without_preload_content( self, id: StrictStr, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5702,7 +6543,7 @@ def validate_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._validate_serialize( id=id, @@ -5710,23 +6551,25 @@ def validate_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _validate_serialize( self, id, @@ -5739,7 +6582,8 @@ def _validate_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5752,24 +6596,32 @@ def _validate_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/validate/{id}", + method='POST', + resource_path='/v1/account/validate/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5779,5 +6631,7 @@ def _validate_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/provisioning_api.py b/koyeb/api/api/provisioning_api.py similarity index 81% rename from koyeb/api/provisioning_api.py rename to koyeb/api/api/provisioning_api.py index 6dc803ff..e1e8e15a 100644 --- a/koyeb/api/provisioning_api.py +++ b/koyeb/api/api/provisioning_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -18,13 +18,13 @@ from pydantic import StrictStr from typing import Any, Dict -from koyeb.models.create_stage_attempt_request import CreateStageAttemptRequest -from koyeb.models.declare_stage_progress_request import DeclareStageProgressRequest -from koyeb.models.declare_step_progress_request import DeclareStepProgressRequest +from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest +from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest +from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class ProvisioningApi: @@ -39,6 +39,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_stage_attempt( self, @@ -50,8 +51,9 @@ def create_stage_attempt( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -89,7 +91,7 @@ def create_stage_attempt( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_stage_attempt_serialize( deployment_id=deployment_id, @@ -99,20 +101,21 @@ def create_stage_attempt( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -120,6 +123,7 @@ def create_stage_attempt( response_types_map=_response_types_map, ).data + @validate_call def create_stage_attempt_with_http_info( self, @@ -131,8 +135,9 @@ def create_stage_attempt_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -170,7 +175,7 @@ def create_stage_attempt_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_stage_attempt_serialize( deployment_id=deployment_id, @@ -180,20 +185,21 @@ def create_stage_attempt_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -201,6 +207,7 @@ def create_stage_attempt_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_stage_attempt_without_preload_content( self, @@ -212,8 +219,9 @@ def create_stage_attempt_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -251,7 +259,7 @@ def create_stage_attempt_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_stage_attempt_serialize( deployment_id=deployment_id, @@ -261,23 +269,25 @@ def create_stage_attempt_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_stage_attempt_serialize( self, deployment_id, @@ -292,7 +302,8 @@ def _create_stage_attempt_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -305,11 +316,11 @@ def _create_stage_attempt_serialize( # process the path parameters if deployment_id is not None: - _path_params["deployment_id"] = deployment_id + _path_params['deployment_id'] = deployment_id if stage is not None: - _path_params["stage"] = stage + _path_params['stage'] = stage if attempt is not None: - _path_params["attempt"] = attempt + _path_params['attempt'] = attempt # process the query parameters # process the header parameters # process the form parameters @@ -317,16 +328,24 @@ def _create_stage_attempt_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/provisioning/{deployment_id}/status/{stage}/{attempt}", + method='POST', + resource_path='/v1/provisioning/{deployment_id}/status/{stage}/{attempt}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -336,9 +355,12 @@ def _create_stage_attempt_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def declare_stage_progress( self, @@ -350,8 +372,9 @@ def declare_stage_progress( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -389,7 +412,7 @@ def declare_stage_progress( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._declare_stage_progress_serialize( deployment_id=deployment_id, @@ -399,20 +422,21 @@ def declare_stage_progress( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -420,6 +444,7 @@ def declare_stage_progress( response_types_map=_response_types_map, ).data + @validate_call def declare_stage_progress_with_http_info( self, @@ -431,8 +456,9 @@ def declare_stage_progress_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -470,7 +496,7 @@ def declare_stage_progress_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._declare_stage_progress_serialize( deployment_id=deployment_id, @@ -480,20 +506,21 @@ def declare_stage_progress_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -501,6 +528,7 @@ def declare_stage_progress_with_http_info( response_types_map=_response_types_map, ) + @validate_call def declare_stage_progress_without_preload_content( self, @@ -512,8 +540,9 @@ def declare_stage_progress_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -551,7 +580,7 @@ def declare_stage_progress_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._declare_stage_progress_serialize( deployment_id=deployment_id, @@ -561,23 +590,25 @@ def declare_stage_progress_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _declare_stage_progress_serialize( self, deployment_id, @@ -592,7 +623,8 @@ def _declare_stage_progress_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -605,11 +637,11 @@ def _declare_stage_progress_serialize( # process the path parameters if deployment_id is not None: - _path_params["deployment_id"] = deployment_id + _path_params['deployment_id'] = deployment_id if stage is not None: - _path_params["stage"] = stage + _path_params['stage'] = stage if attempt is not None: - _path_params["attempt"] = attempt + _path_params['attempt'] = attempt # process the query parameters # process the header parameters # process the form parameters @@ -617,16 +649,24 @@ def _declare_stage_progress_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/provisioning/{deployment_id}/status/{stage}/{attempt}", + method='PATCH', + resource_path='/v1/provisioning/{deployment_id}/status/{stage}/{attempt}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -636,9 +676,12 @@ def _declare_stage_progress_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def declare_step_progress( self, @@ -651,8 +694,9 @@ def declare_step_progress( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -692,7 +736,7 @@ def declare_step_progress( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._declare_step_progress_serialize( deployment_id=deployment_id, @@ -703,20 +747,21 @@ def declare_step_progress( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -724,6 +769,7 @@ def declare_step_progress( response_types_map=_response_types_map, ).data + @validate_call def declare_step_progress_with_http_info( self, @@ -736,8 +782,9 @@ def declare_step_progress_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -777,7 +824,7 @@ def declare_step_progress_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._declare_step_progress_serialize( deployment_id=deployment_id, @@ -788,20 +835,21 @@ def declare_step_progress_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -809,6 +857,7 @@ def declare_step_progress_with_http_info( response_types_map=_response_types_map, ) + @validate_call def declare_step_progress_without_preload_content( self, @@ -821,8 +870,9 @@ def declare_step_progress_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -862,7 +912,7 @@ def declare_step_progress_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._declare_step_progress_serialize( deployment_id=deployment_id, @@ -873,23 +923,25 @@ def declare_step_progress_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _declare_step_progress_serialize( self, deployment_id, @@ -905,7 +957,8 @@ def _declare_step_progress_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -918,13 +971,13 @@ def _declare_step_progress_serialize( # process the path parameters if deployment_id is not None: - _path_params["deployment_id"] = deployment_id + _path_params['deployment_id'] = deployment_id if stage is not None: - _path_params["stage"] = stage + _path_params['stage'] = stage if attempt is not None: - _path_params["attempt"] = attempt + _path_params['attempt'] = attempt if step is not None: - _path_params["step"] = step + _path_params['step'] = step # process the query parameters # process the header parameters # process the form parameters @@ -932,16 +985,24 @@ def _declare_step_progress_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step}", + method='PATCH', + resource_path='/v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -951,5 +1012,7 @@ def _declare_step_progress_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/quotas_api.py b/koyeb/api/api/quotas_api.py similarity index 78% rename from koyeb/api/quotas_api.py rename to koyeb/api/api/quotas_api.py index 2a102a76..1be7a985 100644 --- a/koyeb/api/quotas_api.py +++ b/koyeb/api/api/quotas_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -16,16 +16,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.models.review_organization_capacity_reply import ( - ReviewOrganizationCapacityReply, -) -from koyeb.models.review_organization_capacity_request import ( - ReviewOrganizationCapacityRequest, -) +from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply +from koyeb.api.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class QuotasApi: @@ -40,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def review_organization_capacity( self, @@ -48,8 +45,9 @@ def review_organization_capacity( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -81,27 +79,28 @@ def review_organization_capacity( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._review_organization_capacity_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ReviewOrganizationCapacityReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ReviewOrganizationCapacityReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -109,6 +108,7 @@ def review_organization_capacity( response_types_map=_response_types_map, ).data + @validate_call def review_organization_capacity_with_http_info( self, @@ -117,8 +117,9 @@ def review_organization_capacity_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -150,27 +151,28 @@ def review_organization_capacity_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._review_organization_capacity_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ReviewOrganizationCapacityReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ReviewOrganizationCapacityReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -178,6 +180,7 @@ def review_organization_capacity_with_http_info( response_types_map=_response_types_map, ) + @validate_call def review_organization_capacity_without_preload_content( self, @@ -186,8 +189,9 @@ def review_organization_capacity_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -219,30 +223,32 @@ def review_organization_capacity_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._review_organization_capacity_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ReviewOrganizationCapacityReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ReviewOrganizationCapacityReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _review_organization_capacity_serialize( self, body, @@ -254,7 +260,8 @@ def _review_organization_capacity_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -273,16 +280,24 @@ def _review_organization_capacity_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/quotas/capacity", + method='POST', + resource_path='/v1/quotas/capacity', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -292,5 +307,7 @@ def _review_organization_capacity_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/regional_deployments_api.py b/koyeb/api/api/regional_deployments_api.py similarity index 73% rename from koyeb/api/regional_deployments_api.py rename to koyeb/api/api/regional_deployments_api.py index 6ef01023..a5db06e2 100644 --- a/koyeb/api/regional_deployments_api.py +++ b/koyeb/api/api/regional_deployments_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,15 +19,13 @@ from pydantic import Field, StrictStr from typing import List, Optional from typing_extensions import Annotated -from koyeb.models.get_regional_deployment_reply import GetRegionalDeploymentReply -from koyeb.models.list_regional_deployment_events_reply import ( - ListRegionalDeploymentEventsReply, -) -from koyeb.models.list_regional_deployments_reply import ListRegionalDeploymentsReply +from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply +from koyeb.api.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply +from koyeb.api.models.list_regional_deployments_reply import ListRegionalDeploymentsReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class RegionalDeploymentsApi: @@ -42,18 +40,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_regional_deployment( self, - id: Annotated[ - StrictStr, Field(description="The id of the regional deployment") - ], + id: Annotated[StrictStr, Field(description="The id of the regional deployment")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -86,27 +84,28 @@ def get_regional_deployment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_regional_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetRegionalDeploymentReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetRegionalDeploymentReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -114,18 +113,18 @@ def get_regional_deployment( response_types_map=_response_types_map, ).data + @validate_call def get_regional_deployment_with_http_info( self, - id: Annotated[ - StrictStr, Field(description="The id of the regional deployment") - ], + id: Annotated[StrictStr, Field(description="The id of the regional deployment")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -158,27 +157,28 @@ def get_regional_deployment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_regional_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetRegionalDeploymentReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetRegionalDeploymentReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -186,18 +186,18 @@ def get_regional_deployment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_regional_deployment_without_preload_content( self, - id: Annotated[ - StrictStr, Field(description="The id of the regional deployment") - ], + id: Annotated[StrictStr, Field(description="The id of the regional deployment")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -230,30 +230,32 @@ def get_regional_deployment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_regional_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetRegionalDeploymentReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetRegionalDeploymentReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_regional_deployment_serialize( self, id, @@ -265,7 +267,8 @@ def _get_regional_deployment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -278,22 +281,30 @@ def _get_regional_deployment_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/regional_deployments/{id}", + method='GET', + resource_path='/v1/regional_deployments/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -303,40 +314,27 @@ def _get_regional_deployment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_regional_deployment_events( self, - regional_deployment_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on regional deployment id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on regional deployment event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on regional deployment event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -376,7 +374,7 @@ def list_regional_deployment_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployment_events_serialize( regional_deployment_id=regional_deployment_id, @@ -387,20 +385,21 @@ def list_regional_deployment_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionalDeploymentEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListRegionalDeploymentEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -408,37 +407,22 @@ def list_regional_deployment_events( response_types_map=_response_types_map, ).data + @validate_call def list_regional_deployment_events_with_http_info( self, - regional_deployment_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on regional deployment id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on regional deployment event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on regional deployment event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -478,7 +462,7 @@ def list_regional_deployment_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployment_events_serialize( regional_deployment_id=regional_deployment_id, @@ -489,20 +473,21 @@ def list_regional_deployment_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionalDeploymentEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListRegionalDeploymentEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -510,37 +495,22 @@ def list_regional_deployment_events_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_regional_deployment_events_without_preload_content( self, - regional_deployment_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on regional deployment id"), - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on regional deployment event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on regional deployment event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -580,7 +550,7 @@ def list_regional_deployment_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployment_events_serialize( regional_deployment_id=regional_deployment_id, @@ -591,23 +561,25 @@ def list_regional_deployment_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionalDeploymentEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListRegionalDeploymentEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_regional_deployment_events_serialize( self, regional_deployment_id, @@ -624,7 +596,7 @@ def _list_regional_deployment_events_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -639,39 +611,47 @@ def _list_regional_deployment_events_serialize( # process the path parameters # process the query parameters if regional_deployment_id is not None: - - _query_params.append(("regional_deployment_id", regional_deployment_id)) - + + _query_params.append(('regional_deployment_id', regional_deployment_id)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/regional_deployment_events", + method='GET', + resource_path='/v1/regional_deployment_events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -681,29 +661,25 @@ def _list_regional_deployment_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_regional_deployments( self, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -740,7 +716,7 @@ def list_regional_deployments( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployments_serialize( deployment_id=deployment_id, @@ -749,20 +725,21 @@ def list_regional_deployments( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionalDeploymentsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListRegionalDeploymentsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -770,26 +747,20 @@ def list_regional_deployments( response_types_map=_response_types_map, ).data + @validate_call def list_regional_deployments_with_http_info( self, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -826,7 +797,7 @@ def list_regional_deployments_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployments_serialize( deployment_id=deployment_id, @@ -835,20 +806,21 @@ def list_regional_deployments_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionalDeploymentsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListRegionalDeploymentsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -856,26 +828,20 @@ def list_regional_deployments_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_regional_deployments_without_preload_content( self, - deployment_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on deployment id") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, + deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -912,7 +878,7 @@ def list_regional_deployments_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployments_serialize( deployment_id=deployment_id, @@ -921,23 +887,25 @@ def list_regional_deployments_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRegionalDeploymentsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListRegionalDeploymentsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_regional_deployments_serialize( self, deployment_id, @@ -951,7 +919,8 @@ def _list_regional_deployments_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -965,31 +934,39 @@ def _list_regional_deployments_serialize( # process the path parameters # process the query parameters if deployment_id is not None: - - _query_params.append(("deployment_id", deployment_id)) - + + _query_params.append(('deployment_id', deployment_id)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/regional_deployments", + method='GET', + resource_path='/v1/regional_deployments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -999,5 +976,7 @@ def _list_regional_deployments_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/repositories_api.py b/koyeb/api/api/repositories_api.py similarity index 72% rename from koyeb/api/repositories_api.py rename to koyeb/api/api/repositories_api.py index 692c4aa5..5468c01d 100644 --- a/koyeb/api/repositories_api.py +++ b/koyeb/api/api/repositories_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,14 +19,12 @@ from pydantic import Field, StrictStr from typing import Any, Dict, Optional from typing_extensions import Annotated -from koyeb.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply -from koyeb.models.kgitproxy_list_repositories_reply import ( - KgitproxyListRepositoriesReply, -) +from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply +from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class RepositoriesApi: @@ -41,33 +39,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def list_branches( self, - repository_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on one repository."), - ] = None, - name: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter." - ), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return."), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return."), - ] = None, + repository_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on one repository.")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -105,7 +91,7 @@ def list_branches( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_branches_serialize( repository_id=repository_id, @@ -115,20 +101,21 @@ def list_branches( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KgitproxyListBranchesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KgitproxyListBranchesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -136,33 +123,21 @@ def list_branches( response_types_map=_response_types_map, ).data + @validate_call def list_branches_with_http_info( self, - repository_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on one repository."), - ] = None, - name: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter." - ), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return."), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return."), - ] = None, + repository_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on one repository.")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -200,7 +175,7 @@ def list_branches_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_branches_serialize( repository_id=repository_id, @@ -210,20 +185,21 @@ def list_branches_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KgitproxyListBranchesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KgitproxyListBranchesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -231,33 +207,21 @@ def list_branches_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_branches_without_preload_content( self, - repository_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter on one repository."), - ] = None, - name: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter." - ), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return."), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return."), - ] = None, + repository_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on one repository.")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -295,7 +259,7 @@ def list_branches_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_branches_serialize( repository_id=repository_id, @@ -305,23 +269,25 @@ def list_branches_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KgitproxyListBranchesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KgitproxyListBranchesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_branches_serialize( self, repository_id, @@ -336,7 +302,8 @@ def _list_branches_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -350,35 +317,43 @@ def _list_branches_serialize( # process the path parameters # process the query parameters if repository_id is not None: - - _query_params.append(("repository_id", repository_id)) - + + _query_params.append(('repository_id', repository_id)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/git/branches", + method='GET', + resource_path='/v1/git/branches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -388,38 +363,26 @@ def _list_branches_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_repositories( self, - name: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on repository name using a fuzzy search." - ), - ] = None, - name_search_op: Annotated[ - Optional[StrictStr], - Field( - description='(Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default.' - ), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return."), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return."), - ] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on repository name using a fuzzy search.")] = None, + name_search_op: Annotated[Optional[StrictStr], Field(description="(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -457,7 +420,7 @@ def list_repositories( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_repositories_serialize( name=name, @@ -467,20 +430,21 @@ def list_repositories( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KgitproxyListRepositoriesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KgitproxyListRepositoriesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -488,35 +452,21 @@ def list_repositories( response_types_map=_response_types_map, ).data + @validate_call def list_repositories_with_http_info( self, - name: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on repository name using a fuzzy search." - ), - ] = None, - name_search_op: Annotated[ - Optional[StrictStr], - Field( - description='(Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default.' - ), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return."), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return."), - ] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on repository name using a fuzzy search.")] = None, + name_search_op: Annotated[Optional[StrictStr], Field(description="(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -554,7 +504,7 @@ def list_repositories_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_repositories_serialize( name=name, @@ -564,20 +514,21 @@ def list_repositories_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KgitproxyListRepositoriesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KgitproxyListRepositoriesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -585,35 +536,21 @@ def list_repositories_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_repositories_without_preload_content( self, - name: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Filter on repository name using a fuzzy search." - ), - ] = None, - name_search_op: Annotated[ - Optional[StrictStr], - Field( - description='(Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default.' - ), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return."), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return."), - ] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on repository name using a fuzzy search.")] = None, + name_search_op: Annotated[Optional[StrictStr], Field(description="(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -651,7 +588,7 @@ def list_repositories_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_repositories_serialize( name=name, @@ -661,23 +598,25 @@ def list_repositories_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KgitproxyListRepositoriesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KgitproxyListRepositoriesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_repositories_serialize( self, name, @@ -692,7 +631,8 @@ def _list_repositories_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -706,35 +646,43 @@ def _list_repositories_serialize( # process the path parameters # process the query parameters if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + if name_search_op is not None: - - _query_params.append(("name_search_op", name_search_op)) - + + _query_params.append(('name_search_op', name_search_op)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/git/repositories", + method='GET', + resource_path='/v1/git/repositories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -744,9 +692,12 @@ def _list_repositories_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def resync_organization( self, @@ -755,8 +706,9 @@ def resync_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -788,27 +740,28 @@ def resync_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resync_organization_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -816,6 +769,7 @@ def resync_organization( response_types_map=_response_types_map, ).data + @validate_call def resync_organization_with_http_info( self, @@ -824,8 +778,9 @@ def resync_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -857,27 +812,28 @@ def resync_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resync_organization_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -885,6 +841,7 @@ def resync_organization_with_http_info( response_types_map=_response_types_map, ) + @validate_call def resync_organization_without_preload_content( self, @@ -893,8 +850,9 @@ def resync_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -926,30 +884,32 @@ def resync_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resync_organization_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _resync_organization_serialize( self, organization_id, @@ -961,7 +921,8 @@ def _resync_organization_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -974,22 +935,30 @@ def _resync_organization_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/git/sync/organization/{organization_id}", + method='POST', + resource_path='/v1/git/sync/organization/{organization_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -999,5 +968,7 @@ def _resync_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/search_api.py b/koyeb/api/api/search_api.py similarity index 76% rename from koyeb/api/search_api.py rename to koyeb/api/api/search_api.py index dda3d3aa..71ee94d2 100644 --- a/koyeb/api/search_api.py +++ b/koyeb/api/api/search_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,11 +19,11 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from koyeb.models.ksearch_search_reply import KsearchSearchReply +from koyeb.api.models.ksearch_search_reply import KsearchSearchReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SearchApi: @@ -38,18 +38,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def search( self, - query: Annotated[ - Optional[StrictStr], Field(description="(Optional) Search query") - ] = None, + query: Annotated[Optional[StrictStr], Field(description="(Optional) Search query")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -81,27 +81,28 @@ def search( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._search_serialize( query=query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KsearchSearchReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KsearchSearchReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -109,18 +110,18 @@ def search( response_types_map=_response_types_map, ).data + @validate_call def search_with_http_info( self, - query: Annotated[ - Optional[StrictStr], Field(description="(Optional) Search query") - ] = None, + query: Annotated[Optional[StrictStr], Field(description="(Optional) Search query")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -152,27 +153,28 @@ def search_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._search_serialize( query=query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KsearchSearchReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KsearchSearchReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -180,18 +182,18 @@ def search_with_http_info( response_types_map=_response_types_map, ) + @validate_call def search_without_preload_content( self, - query: Annotated[ - Optional[StrictStr], Field(description="(Optional) Search query") - ] = None, + query: Annotated[Optional[StrictStr], Field(description="(Optional) Search query")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -223,30 +225,32 @@ def search_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._search_serialize( query=query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "KsearchSearchReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "KsearchSearchReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _search_serialize( self, query, @@ -258,7 +262,8 @@ def _search_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -272,23 +277,31 @@ def _search_serialize( # process the path parameters # process the query parameters if query is not None: - - _query_params.append(("query", query)) - + + _query_params.append(('query', query)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/search", + method='GET', + resource_path='/v1/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -298,5 +311,7 @@ def _search_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/secrets_api.py b/koyeb/api/api/secrets_api.py similarity index 80% rename from koyeb/api/secrets_api.py rename to koyeb/api/api/secrets_api.py index 054fd0e8..4dc73484 100644 --- a/koyeb/api/secrets_api.py +++ b/koyeb/api/api/secrets_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,17 +19,17 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.create_secret import CreateSecret -from koyeb.models.create_secret_reply import CreateSecretReply -from koyeb.models.get_secret_reply import GetSecretReply -from koyeb.models.list_secrets_reply import ListSecretsReply -from koyeb.models.reveal_secret_reply import RevealSecretReply -from koyeb.models.secret import Secret -from koyeb.models.update_secret_reply import UpdateSecretReply +from koyeb.api.models.create_secret import CreateSecret +from koyeb.api.models.create_secret_reply import CreateSecretReply +from koyeb.api.models.get_secret_reply import GetSecretReply +from koyeb.api.models.list_secrets_reply import ListSecretsReply +from koyeb.api.models.reveal_secret_reply import RevealSecretReply +from koyeb.api.models.secret import Secret +from koyeb.api.models.update_secret_reply import UpdateSecretReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SecretsApi: @@ -44,6 +44,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_secret( self, @@ -52,8 +53,9 @@ def create_secret( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,27 +87,28 @@ def create_secret( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_secret_serialize( secret=secret, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,6 +116,7 @@ def create_secret( response_types_map=_response_types_map, ).data + @validate_call def create_secret_with_http_info( self, @@ -121,8 +125,9 @@ def create_secret_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -154,27 +159,28 @@ def create_secret_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_secret_serialize( secret=secret, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -182,6 +188,7 @@ def create_secret_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_secret_without_preload_content( self, @@ -190,8 +197,9 @@ def create_secret_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -223,30 +231,32 @@ def create_secret_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_secret_serialize( secret=secret, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_secret_serialize( self, secret, @@ -258,7 +268,8 @@ def _create_secret_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,16 +288,24 @@ def _create_secret_serialize( if secret is not None: _body_params = secret + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/secrets", + method='POST', + resource_path='/v1/secrets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -296,9 +315,12 @@ def _create_secret_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_secret( self, @@ -307,8 +329,9 @@ def delete_secret( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -340,27 +363,28 @@ def delete_secret( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_secret_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -368,6 +392,7 @@ def delete_secret( response_types_map=_response_types_map, ).data + @validate_call def delete_secret_with_http_info( self, @@ -376,8 +401,9 @@ def delete_secret_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -409,27 +435,28 @@ def delete_secret_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_secret_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -437,6 +464,7 @@ def delete_secret_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_secret_without_preload_content( self, @@ -445,8 +473,9 @@ def delete_secret_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -478,30 +507,32 @@ def delete_secret_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_secret_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_secret_serialize( self, id, @@ -513,7 +544,8 @@ def _delete_secret_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -526,22 +558,30 @@ def _delete_secret_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/secrets/{id}", + method='DELETE', + resource_path='/v1/secrets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -551,9 +591,12 @@ def _delete_secret_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_secret( self, @@ -562,8 +605,9 @@ def get_secret( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -595,27 +639,28 @@ def get_secret( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_secret_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -623,6 +668,7 @@ def get_secret( response_types_map=_response_types_map, ).data + @validate_call def get_secret_with_http_info( self, @@ -631,8 +677,9 @@ def get_secret_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -664,27 +711,28 @@ def get_secret_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_secret_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -692,6 +740,7 @@ def get_secret_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_secret_without_preload_content( self, @@ -700,8 +749,9 @@ def get_secret_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -733,30 +783,32 @@ def get_secret_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_secret_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_secret_serialize( self, id, @@ -768,7 +820,8 @@ def _get_secret_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -781,22 +834,30 @@ def _get_secret_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/secrets/{id}", + method='GET', + resource_path='/v1/secrets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -806,24 +867,26 @@ def _get_secret_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_secrets( self, name: Optional[StrictStr] = None, limit: Optional[StrictStr] = None, offset: Optional[StrictStr] = None, - types: Annotated[ - Optional[List[StrictStr]], Field(description="Filter by secret types") - ] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="Filter by secret types")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -861,7 +924,7 @@ def list_secrets( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_secrets_serialize( name=name, @@ -871,20 +934,21 @@ def list_secrets( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSecretsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListSecretsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -892,21 +956,21 @@ def list_secrets( response_types_map=_response_types_map, ).data + @validate_call def list_secrets_with_http_info( self, name: Optional[StrictStr] = None, limit: Optional[StrictStr] = None, offset: Optional[StrictStr] = None, - types: Annotated[ - Optional[List[StrictStr]], Field(description="Filter by secret types") - ] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="Filter by secret types")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -944,7 +1008,7 @@ def list_secrets_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_secrets_serialize( name=name, @@ -954,20 +1018,21 @@ def list_secrets_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSecretsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListSecretsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -975,21 +1040,21 @@ def list_secrets_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_secrets_without_preload_content( self, name: Optional[StrictStr] = None, limit: Optional[StrictStr] = None, offset: Optional[StrictStr] = None, - types: Annotated[ - Optional[List[StrictStr]], Field(description="Filter by secret types") - ] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="Filter by secret types")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1027,7 +1092,7 @@ def list_secrets_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_secrets_serialize( name=name, @@ -1037,23 +1102,25 @@ def list_secrets_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSecretsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListSecretsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_secrets_serialize( self, name, @@ -1069,7 +1136,7 @@ def _list_secrets_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -1084,35 +1151,43 @@ def _list_secrets_serialize( # process the path parameters # process the query parameters if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/secrets", + method='GET', + resource_path='/v1/secrets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1122,9 +1197,12 @@ def _list_secrets_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def reveal_secret( self, @@ -1134,8 +1212,9 @@ def reveal_secret( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1169,7 +1248,7 @@ def reveal_secret( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reveal_secret_serialize( id=id, @@ -1177,20 +1256,21 @@ def reveal_secret( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RevealSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RevealSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1198,6 +1278,7 @@ def reveal_secret( response_types_map=_response_types_map, ).data + @validate_call def reveal_secret_with_http_info( self, @@ -1207,8 +1288,9 @@ def reveal_secret_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1242,7 +1324,7 @@ def reveal_secret_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reveal_secret_serialize( id=id, @@ -1250,20 +1332,21 @@ def reveal_secret_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RevealSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RevealSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1271,6 +1354,7 @@ def reveal_secret_with_http_info( response_types_map=_response_types_map, ) + @validate_call def reveal_secret_without_preload_content( self, @@ -1280,8 +1364,9 @@ def reveal_secret_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1315,7 +1400,7 @@ def reveal_secret_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reveal_secret_serialize( id=id, @@ -1323,23 +1408,25 @@ def reveal_secret_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RevealSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RevealSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _reveal_secret_serialize( self, id, @@ -1352,7 +1439,8 @@ def _reveal_secret_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1365,7 +1453,7 @@ def _reveal_secret_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -1373,16 +1461,24 @@ def _reveal_secret_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/secrets/{id}/reveal", + method='POST', + resource_path='/v1/secrets/{id}/reveal', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1392,9 +1488,12 @@ def _reveal_secret_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_secret( self, @@ -1405,8 +1504,9 @@ def update_secret( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1442,7 +1542,7 @@ def update_secret( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_secret_serialize( id=id, @@ -1451,20 +1551,21 @@ def update_secret( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1472,6 +1573,7 @@ def update_secret( response_types_map=_response_types_map, ).data + @validate_call def update_secret_with_http_info( self, @@ -1482,8 +1584,9 @@ def update_secret_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1519,7 +1622,7 @@ def update_secret_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_secret_serialize( id=id, @@ -1528,20 +1631,21 @@ def update_secret_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1549,6 +1653,7 @@ def update_secret_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_secret_without_preload_content( self, @@ -1559,8 +1664,9 @@ def update_secret_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1596,7 +1702,7 @@ def update_secret_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_secret_serialize( id=id, @@ -1605,23 +1711,25 @@ def update_secret_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_secret_serialize( self, id, @@ -1635,7 +1743,8 @@ def _update_secret_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1648,28 +1757,36 @@ def _update_secret_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if secret is not None: _body_params = secret + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/secrets/{id}", + method='PUT', + resource_path='/v1/secrets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1679,9 +1796,12 @@ def _update_secret_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_secret2( self, @@ -1692,8 +1812,9 @@ def update_secret2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1729,7 +1850,7 @@ def update_secret2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_secret2_serialize( id=id, @@ -1738,20 +1859,21 @@ def update_secret2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1759,6 +1881,7 @@ def update_secret2( response_types_map=_response_types_map, ).data + @validate_call def update_secret2_with_http_info( self, @@ -1769,8 +1892,9 @@ def update_secret2_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1806,7 +1930,7 @@ def update_secret2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_secret2_serialize( id=id, @@ -1815,20 +1939,21 @@ def update_secret2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1836,6 +1961,7 @@ def update_secret2_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_secret2_without_preload_content( self, @@ -1846,8 +1972,9 @@ def update_secret2_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1883,7 +2010,7 @@ def update_secret2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_secret2_serialize( id=id, @@ -1892,23 +2019,25 @@ def update_secret2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSecretReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSecretReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_secret2_serialize( self, id, @@ -1922,7 +2051,8 @@ def _update_secret2_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1935,28 +2065,36 @@ def _update_secret2_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if update_mask is not None: - - _query_params.append(("update_mask", update_mask)) - + + _query_params.append(('update_mask', update_mask)) + # process the header parameters # process the form parameters # process the body parameter if secret is not None: _body_params = secret + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/secrets/{id}", + method='PATCH', + resource_path='/v1/secrets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1966,5 +2104,7 @@ def _update_secret2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/services_api.py b/koyeb/api/api/services_api.py similarity index 77% rename from koyeb/api/services_api.py rename to koyeb/api/api/services_api.py index a5488dfb..0b3dff86 100644 --- a/koyeb/api/services_api.py +++ b/koyeb/api/api/services_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,21 +19,21 @@ from pydantic import Field, StrictBool, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.models.autocomplete_reply import AutocompleteReply -from koyeb.models.autocomplete_request import AutocompleteRequest -from koyeb.models.create_service import CreateService -from koyeb.models.create_service_reply import CreateServiceReply -from koyeb.models.get_service_reply import GetServiceReply -from koyeb.models.list_service_events_reply import ListServiceEventsReply -from koyeb.models.list_services_reply import ListServicesReply -from koyeb.models.redeploy_reply import RedeployReply -from koyeb.models.redeploy_request_info import RedeployRequestInfo -from koyeb.models.update_service import UpdateService -from koyeb.models.update_service_reply import UpdateServiceReply - -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.models.autocomplete_reply import AutocompleteReply +from koyeb.api.models.autocomplete_request import AutocompleteRequest +from koyeb.api.models.create_service import CreateService +from koyeb.api.models.create_service_reply import CreateServiceReply +from koyeb.api.models.get_service_reply import GetServiceReply +from koyeb.api.models.list_service_events_reply import ListServiceEventsReply +from koyeb.api.models.list_services_reply import ListServicesReply +from koyeb.api.models.redeploy_reply import RedeployReply +from koyeb.api.models.redeploy_request_info import RedeployRequestInfo +from koyeb.api.models.update_service import UpdateService +from koyeb.api.models.update_service_reply import UpdateServiceReply + +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class ServicesApi: @@ -48,6 +48,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def autocomplete( self, @@ -56,8 +57,9 @@ def autocomplete( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -90,27 +92,28 @@ def autocomplete( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._autocomplete_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AutocompleteReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "AutocompleteReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,6 +121,7 @@ def autocomplete( response_types_map=_response_types_map, ).data + @validate_call def autocomplete_with_http_info( self, @@ -126,8 +130,9 @@ def autocomplete_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -160,27 +165,28 @@ def autocomplete_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._autocomplete_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AutocompleteReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "AutocompleteReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -188,6 +194,7 @@ def autocomplete_with_http_info( response_types_map=_response_types_map, ) + @validate_call def autocomplete_without_preload_content( self, @@ -196,8 +203,9 @@ def autocomplete_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -230,30 +238,32 @@ def autocomplete_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._autocomplete_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AutocompleteReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "AutocompleteReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _autocomplete_serialize( self, body, @@ -265,7 +275,8 @@ def _autocomplete_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -284,16 +295,24 @@ def _autocomplete_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/services-autocomplete", + method='POST', + resource_path='/v1/services-autocomplete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -303,22 +322,24 @@ def _autocomplete_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def create_service( self, service: CreateService, - dry_run: Annotated[ - Optional[StrictBool], Field(description="If set only run validation") - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set only run validation")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -352,7 +373,7 @@ def create_service( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_service_serialize( service=service, @@ -360,20 +381,21 @@ def create_service( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -381,19 +403,19 @@ def create_service( response_types_map=_response_types_map, ).data + @validate_call def create_service_with_http_info( self, service: CreateService, - dry_run: Annotated[ - Optional[StrictBool], Field(description="If set only run validation") - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set only run validation")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -427,7 +449,7 @@ def create_service_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_service_serialize( service=service, @@ -435,20 +457,21 @@ def create_service_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -456,19 +479,19 @@ def create_service_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_service_without_preload_content( self, service: CreateService, - dry_run: Annotated[ - Optional[StrictBool], Field(description="If set only run validation") - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set only run validation")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -502,7 +525,7 @@ def create_service_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_service_serialize( service=service, @@ -510,23 +533,25 @@ def create_service_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_service_serialize( self, service, @@ -539,7 +564,8 @@ def _create_service_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -553,25 +579,33 @@ def _create_service_serialize( # process the path parameters # process the query parameters if dry_run is not None: - - _query_params.append(("dry_run", dry_run)) - + + _query_params.append(('dry_run', dry_run)) + # process the header parameters # process the form parameters # process the body parameter if service is not None: _body_params = service + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/services", + method='POST', + resource_path='/v1/services', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -581,9 +615,12 @@ def _create_service_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_service( self, @@ -592,8 +629,9 @@ def delete_service( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -626,27 +664,28 @@ def delete_service( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -654,6 +693,7 @@ def delete_service( response_types_map=_response_types_map, ).data + @validate_call def delete_service_with_http_info( self, @@ -662,8 +702,9 @@ def delete_service_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -696,27 +737,28 @@ def delete_service_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -724,6 +766,7 @@ def delete_service_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_service_without_preload_content( self, @@ -732,8 +775,9 @@ def delete_service_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -766,30 +810,32 @@ def delete_service_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_service_serialize( self, id, @@ -801,7 +847,8 @@ def _delete_service_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -814,22 +861,30 @@ def _delete_service_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/services/{id}", + method='DELETE', + resource_path='/v1/services/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -839,9 +894,12 @@ def _delete_service_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_service( self, @@ -850,8 +908,9 @@ def get_service( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -883,27 +942,28 @@ def get_service( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -911,6 +971,7 @@ def get_service( response_types_map=_response_types_map, ).data + @validate_call def get_service_with_http_info( self, @@ -919,8 +980,9 @@ def get_service_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -952,27 +1014,28 @@ def get_service_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -980,6 +1043,7 @@ def get_service_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_service_without_preload_content( self, @@ -988,8 +1052,9 @@ def get_service_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1021,30 +1086,32 @@ def get_service_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_service_serialize( self, id, @@ -1056,7 +1123,8 @@ def _get_service_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1069,22 +1137,30 @@ def _get_service_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/services/{id}", + method='GET', + resource_path='/v1/services/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1094,39 +1170,27 @@ def _get_service_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_service_events( self, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on service event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1166,7 +1230,7 @@ def list_service_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_service_events_serialize( service_id=service_id, @@ -1177,20 +1241,21 @@ def list_service_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListServiceEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListServiceEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1198,36 +1263,22 @@ def list_service_events( response_types_map=_response_types_map, ).data + @validate_call def list_service_events_with_http_info( self, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on service event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1267,7 +1318,7 @@ def list_service_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_service_events_serialize( service_id=service_id, @@ -1278,20 +1329,21 @@ def list_service_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListServiceEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListServiceEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1299,36 +1351,22 @@ def list_service_events_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_service_events_without_preload_content( self, - service_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) Filter on service id") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on service event types"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, + service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service event types")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1368,7 +1406,7 @@ def list_service_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_service_events_serialize( service_id=service_id, @@ -1379,23 +1417,25 @@ def list_service_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListServiceEventsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListServiceEventsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_service_events_serialize( self, service_id, @@ -1412,7 +1452,7 @@ def _list_service_events_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', } _path_params: Dict[str, str] = {} @@ -1427,39 +1467,47 @@ def _list_service_events_serialize( # process the path parameters # process the query parameters if service_id is not None: - - _query_params.append(("service_id", service_id)) - + + _query_params.append(('service_id', service_id)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/service_events", + method='GET', + resource_path='/v1/service_events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1469,36 +1517,28 @@ def _list_service_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_services( self, - app_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) The id of the app") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on service types"), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) The id of the app")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service types")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1518,6 +1558,8 @@ def list_services( :type name: str :param types: (Optional) Filter on service types :type types: List[str] + :param statuses: (Optional) Filter on service statuses + :type statuses: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1538,7 +1580,7 @@ def list_services( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_services_serialize( app_id=app_id, @@ -1546,23 +1588,25 @@ def list_services( offset=offset, name=name, types=types, + statuses=statuses, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListServicesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListServicesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1570,33 +1614,23 @@ def list_services( response_types_map=_response_types_map, ).data + @validate_call def list_services_with_http_info( self, - app_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) The id of the app") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on service types"), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) The id of the app")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service types")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1616,6 +1650,8 @@ def list_services_with_http_info( :type name: str :param types: (Optional) Filter on service types :type types: List[str] + :param statuses: (Optional) Filter on service statuses + :type statuses: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1636,7 +1672,7 @@ def list_services_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_services_serialize( app_id=app_id, @@ -1644,23 +1680,25 @@ def list_services_with_http_info( offset=offset, name=name, types=types, + statuses=statuses, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListServicesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListServicesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1668,33 +1706,23 @@ def list_services_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_services_without_preload_content( self, - app_id: Annotated[ - Optional[StrictStr], Field(description="(Optional) The id of the app") - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - name: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for name") - ] = None, - types: Annotated[ - Optional[List[StrictStr]], - Field(description="(Optional) Filter on service types"), - ] = None, + app_id: Annotated[Optional[StrictStr], Field(description="(Optional) The id of the app")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + name: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for name")] = None, + types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service types")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service statuses")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1714,6 +1742,8 @@ def list_services_without_preload_content( :type name: str :param types: (Optional) Filter on service types :type types: List[str] + :param statuses: (Optional) Filter on service statuses + :type statuses: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1734,7 +1764,7 @@ def list_services_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_services_serialize( app_id=app_id, @@ -1742,26 +1772,29 @@ def list_services_without_preload_content( offset=offset, name=name, types=types, + statuses=statuses, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListServicesReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListServicesReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_services_serialize( self, app_id, @@ -1769,6 +1802,7 @@ def _list_services_serialize( offset, name, types, + statuses, _request_auth, _content_type, _headers, @@ -1778,7 +1812,8 @@ def _list_services_serialize( _host = None _collection_formats: Dict[str, str] = { - "types": "multi", + 'types': 'multi', + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -1793,39 +1828,51 @@ def _list_services_serialize( # process the path parameters # process the query parameters if app_id is not None: - - _query_params.append(("app_id", app_id)) - + + _query_params.append(('app_id', app_id)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if name is not None: - - _query_params.append(("name", name)) - + + _query_params.append(('name', name)) + if types is not None: - - _query_params.append(("types", types)) - + + _query_params.append(('types', types)) + + if statuses is not None: + + _query_params.append(('statuses', statuses)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/services", + method='GET', + resource_path='/v1/services', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1835,9 +1882,12 @@ def _list_services_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def pause_service( self, @@ -1846,8 +1896,9 @@ def pause_service( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1880,27 +1931,28 @@ def pause_service( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._pause_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1908,6 +1960,7 @@ def pause_service( response_types_map=_response_types_map, ).data + @validate_call def pause_service_with_http_info( self, @@ -1916,8 +1969,9 @@ def pause_service_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1950,27 +2004,28 @@ def pause_service_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._pause_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1978,6 +2033,7 @@ def pause_service_with_http_info( response_types_map=_response_types_map, ) + @validate_call def pause_service_without_preload_content( self, @@ -1986,8 +2042,9 @@ def pause_service_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2020,30 +2077,32 @@ def pause_service_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._pause_service_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _pause_service_serialize( self, id, @@ -2055,7 +2114,8 @@ def _pause_service_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2068,22 +2128,30 @@ def _pause_service_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/services/{id}/pause", + method='POST', + resource_path='/v1/services/{id}/pause', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2093,9 +2161,12 @@ def _pause_service_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def re_deploy( self, @@ -2105,8 +2176,9 @@ def re_deploy( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2140,7 +2212,7 @@ def re_deploy( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._re_deploy_serialize( id=id, @@ -2148,20 +2220,21 @@ def re_deploy( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RedeployReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RedeployReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2169,6 +2242,7 @@ def re_deploy( response_types_map=_response_types_map, ).data + @validate_call def re_deploy_with_http_info( self, @@ -2178,8 +2252,9 @@ def re_deploy_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2213,7 +2288,7 @@ def re_deploy_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._re_deploy_serialize( id=id, @@ -2221,20 +2296,21 @@ def re_deploy_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RedeployReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RedeployReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2242,6 +2318,7 @@ def re_deploy_with_http_info( response_types_map=_response_types_map, ) + @validate_call def re_deploy_without_preload_content( self, @@ -2251,8 +2328,9 @@ def re_deploy_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2286,7 +2364,7 @@ def re_deploy_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._re_deploy_serialize( id=id, @@ -2294,23 +2372,25 @@ def re_deploy_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RedeployReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "RedeployReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _re_deploy_serialize( self, id, @@ -2323,7 +2403,8 @@ def _re_deploy_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2336,7 +2417,7 @@ def _re_deploy_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -2344,16 +2425,24 @@ def _re_deploy_serialize( if info is not None: _body_params = info + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/services/{id}/redeploy", + method='POST', + resource_path='/v1/services/{id}/redeploy', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2363,26 +2452,25 @@ def _re_deploy_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def resume_service( self, id: Annotated[StrictStr, Field(description="The id of the service to pause.")], - skip_build: Annotated[ - Optional[StrictBool], - Field( - description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened." - ), - ] = None, + skip_build: Annotated[Optional[StrictBool], Field(description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.")] = None, use_cache: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2419,7 +2507,7 @@ def resume_service( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resume_service_serialize( id=id, @@ -2428,20 +2516,21 @@ def resume_service( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2449,23 +2538,20 @@ def resume_service( response_types_map=_response_types_map, ).data + @validate_call def resume_service_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the service to pause.")], - skip_build: Annotated[ - Optional[StrictBool], - Field( - description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened." - ), - ] = None, + skip_build: Annotated[Optional[StrictBool], Field(description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.")] = None, use_cache: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2502,7 +2588,7 @@ def resume_service_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resume_service_serialize( id=id, @@ -2511,20 +2597,21 @@ def resume_service_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2532,23 +2619,20 @@ def resume_service_with_http_info( response_types_map=_response_types_map, ) + @validate_call def resume_service_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the service to pause.")], - skip_build: Annotated[ - Optional[StrictBool], - Field( - description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened." - ), - ] = None, + skip_build: Annotated[Optional[StrictBool], Field(description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.")] = None, use_cache: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2585,7 +2669,7 @@ def resume_service_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resume_service_serialize( id=id, @@ -2594,23 +2678,25 @@ def resume_service_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _resume_service_serialize( self, id, @@ -2624,7 +2710,8 @@ def _resume_service_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2637,30 +2724,38 @@ def _resume_service_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if skip_build is not None: - - _query_params.append(("skip_build", skip_build)) - + + _query_params.append(('skip_build', skip_build)) + if use_cache is not None: - - _query_params.append(("use_cache", use_cache)) - + + _query_params.append(('use_cache', use_cache)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/services/{id}/resume", + method='POST', + resource_path='/v1/services/{id}/resume', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2670,26 +2765,25 @@ def _resume_service_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_service( self, id: Annotated[StrictStr, Field(description="The id of the entity to update")], service: UpdateService, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the service exists" - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the service exists")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2725,7 +2819,7 @@ def update_service( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_service_serialize( id=id, @@ -2734,20 +2828,21 @@ def update_service( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2755,23 +2850,20 @@ def update_service( response_types_map=_response_types_map, ).data + @validate_call def update_service_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the entity to update")], service: UpdateService, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the service exists" - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the service exists")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2807,7 +2899,7 @@ def update_service_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_service_serialize( id=id, @@ -2816,20 +2908,21 @@ def update_service_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2837,23 +2930,20 @@ def update_service_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_service_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the entity to update")], service: UpdateService, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the service exists" - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the service exists")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2889,7 +2979,7 @@ def update_service_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_service_serialize( id=id, @@ -2898,23 +2988,25 @@ def update_service_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_service_serialize( self, id, @@ -2928,7 +3020,8 @@ def _update_service_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2941,28 +3034,36 @@ def _update_service_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if dry_run is not None: - - _query_params.append(("dry_run", dry_run)) - + + _query_params.append(('dry_run', dry_run)) + # process the header parameters # process the form parameters # process the body parameter if service is not None: _body_params = service + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/services/{id}", + method='PUT', + resource_path='/v1/services/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2972,26 +3073,25 @@ def _update_service_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_service2( self, id: Annotated[StrictStr, Field(description="The id of the entity to update")], service: UpdateService, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the service exists" - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the service exists")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3027,7 +3127,7 @@ def update_service2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_service2_serialize( id=id, @@ -3036,20 +3136,21 @@ def update_service2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3057,23 +3158,20 @@ def update_service2( response_types_map=_response_types_map, ).data + @validate_call def update_service2_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the entity to update")], service: UpdateService, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the service exists" - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the service exists")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3109,7 +3207,7 @@ def update_service2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_service2_serialize( id=id, @@ -3118,20 +3216,21 @@ def update_service2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3139,23 +3238,20 @@ def update_service2_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_service2_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the entity to update")], service: UpdateService, - dry_run: Annotated[ - Optional[StrictBool], - Field( - description="If set, run validation and check that the service exists" - ), - ] = None, + dry_run: Annotated[Optional[StrictBool], Field(description="If set, run validation and check that the service exists")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3191,7 +3287,7 @@ def update_service2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_service2_serialize( id=id, @@ -3200,23 +3296,25 @@ def update_service2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateServiceReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateServiceReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_service2_serialize( self, id, @@ -3230,7 +3328,8 @@ def _update_service2_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3243,28 +3342,36 @@ def _update_service2_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters if dry_run is not None: - - _query_params.append(("dry_run", dry_run)) - + + _query_params.append(('dry_run', dry_run)) + # process the header parameters # process the form parameters # process the body parameter if service is not None: _body_params = service + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/services/{id}", + method='PATCH', + resource_path='/v1/services/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3274,5 +3381,7 @@ def _update_service2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/sessions_api.py b/koyeb/api/api/sessions_api.py similarity index 80% rename from koyeb/api/sessions_api.py rename to koyeb/api/api/sessions_api.py index 782d2739..d07e8a36 100644 --- a/koyeb/api/sessions_api.py +++ b/koyeb/api/api/sessions_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,12 +19,12 @@ from pydantic import Field, StrictStr from typing import Any, Dict, Optional from typing_extensions import Annotated -from koyeb.models.login_reply import LoginReply -from koyeb.models.login_request import LoginRequest +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.models.login_request import LoginRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SessionsApi: @@ -39,19 +39,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def login( self, body: LoginRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,7 +85,7 @@ def login( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_serialize( body=body, @@ -93,20 +93,21 @@ def login( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -114,19 +115,19 @@ def login( response_types_map=_response_types_map, ).data + @validate_call def login_with_http_info( self, body: LoginRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -160,7 +161,7 @@ def login_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_serialize( body=body, @@ -168,20 +169,21 @@ def login_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -189,19 +191,19 @@ def login_with_http_info( response_types_map=_response_types_map, ) + @validate_call def login_without_preload_content( self, body: LoginRequest, - seon_fp: Annotated[ - Optional[StrictStr], Field(description="Seon Fingerprint") - ] = None, + seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -235,7 +237,7 @@ def login_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_serialize( body=body, @@ -243,23 +245,25 @@ def login_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _login_serialize( self, body, @@ -272,7 +276,8 @@ def _login_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -287,22 +292,30 @@ def _login_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params["seon-fp"] = seon_fp + _header_params['seon-fp'] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/login", + method='POST', + resource_path='/v1/account/login', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -312,9 +325,12 @@ def _login_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def logout( self, @@ -322,8 +338,9 @@ def logout( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -353,26 +370,27 @@ def logout( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._logout_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -380,6 +398,7 @@ def logout( response_types_map=_response_types_map, ).data + @validate_call def logout_with_http_info( self, @@ -387,8 +406,9 @@ def logout_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -418,26 +438,27 @@ def logout_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._logout_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -445,6 +466,7 @@ def logout_with_http_info( response_types_map=_response_types_map, ) + @validate_call def logout_without_preload_content( self, @@ -452,8 +474,9 @@ def logout_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -483,29 +506,31 @@ def logout_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._logout_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "object", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "object", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _logout_serialize( self, _request_auth, @@ -516,7 +541,8 @@ def _logout_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -533,16 +559,24 @@ def _logout_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/account/logout", + method='DELETE', + resource_path='/v1/account/logout', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -552,9 +586,12 @@ def _logout_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def new_session( self, @@ -562,8 +599,9 @@ def new_session( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -594,26 +632,27 @@ def new_session( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._new_session_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -621,6 +660,7 @@ def new_session( response_types_map=_response_types_map, ).data + @validate_call def new_session_with_http_info( self, @@ -628,8 +668,9 @@ def new_session_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -660,26 +701,27 @@ def new_session_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._new_session_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -687,6 +729,7 @@ def new_session_with_http_info( response_types_map=_response_types_map, ) + @validate_call def new_session_without_preload_content( self, @@ -694,8 +737,9 @@ def new_session_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -726,29 +770,31 @@ def new_session_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._new_session_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _new_session_serialize( self, _request_auth, @@ -759,7 +805,8 @@ def _new_session_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -776,16 +823,24 @@ def _new_session_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/account/session", + method='POST', + resource_path='/v1/account/session', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -795,9 +850,12 @@ def _new_session_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def refresh_token( self, @@ -805,8 +863,9 @@ def refresh_token( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -836,26 +895,27 @@ def refresh_token( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._refresh_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -863,6 +923,7 @@ def refresh_token( response_types_map=_response_types_map, ).data + @validate_call def refresh_token_with_http_info( self, @@ -870,8 +931,9 @@ def refresh_token_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -901,26 +963,27 @@ def refresh_token_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._refresh_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -928,6 +991,7 @@ def refresh_token_with_http_info( response_types_map=_response_types_map, ) + @validate_call def refresh_token_without_preload_content( self, @@ -935,8 +999,9 @@ def refresh_token_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -966,29 +1031,31 @@ def refresh_token_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._refresh_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "LoginReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "LoginReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _refresh_token_serialize( self, _request_auth, @@ -999,7 +1066,8 @@ def _refresh_token_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1016,16 +1084,24 @@ def _refresh_token_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/account/refresh", + method='PUT', + resource_path='/v1/account/refresh', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1035,5 +1111,7 @@ def _refresh_token_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/snapshots_api.py b/koyeb/api/api/snapshots_api.py similarity index 77% rename from koyeb/api/snapshots_api.py rename to koyeb/api/api/snapshots_api.py index c9cd7a0b..5a75470b 100644 --- a/koyeb/api/snapshots_api.py +++ b/koyeb/api/api/snapshots_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,17 +19,17 @@ from pydantic import Field, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from koyeb.models.create_snapshot_reply import CreateSnapshotReply -from koyeb.models.create_snapshot_request import CreateSnapshotRequest -from koyeb.models.delete_snapshot_reply import DeleteSnapshotReply -from koyeb.models.get_snapshot_reply import GetSnapshotReply -from koyeb.models.list_snapshots_reply import ListSnapshotsReply -from koyeb.models.update_snapshot_reply import UpdateSnapshotReply -from koyeb.models.update_snapshot_request import UpdateSnapshotRequest +from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply +from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest +from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply +from koyeb.api.models.get_snapshot_reply import GetSnapshotReply +from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply +from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply +from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SnapshotsApi: @@ -44,6 +44,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_snapshot( self, @@ -52,8 +53,9 @@ def create_snapshot( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,27 +87,28 @@ def create_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_snapshot_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,6 +116,7 @@ def create_snapshot( response_types_map=_response_types_map, ).data + @validate_call def create_snapshot_with_http_info( self, @@ -121,8 +125,9 @@ def create_snapshot_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -154,27 +159,28 @@ def create_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_snapshot_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -182,6 +188,7 @@ def create_snapshot_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_snapshot_without_preload_content( self, @@ -190,8 +197,9 @@ def create_snapshot_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -223,30 +231,32 @@ def create_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_snapshot_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CreateSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_snapshot_serialize( self, body, @@ -258,7 +268,8 @@ def _create_snapshot_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,16 +288,24 @@ def _create_snapshot_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/snapshots", + method='POST', + resource_path='/v1/snapshots', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -296,9 +315,12 @@ def _create_snapshot_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_snapshot( self, @@ -307,8 +329,9 @@ def delete_snapshot( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -340,27 +363,28 @@ def delete_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_snapshot_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeleteSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -368,6 +392,7 @@ def delete_snapshot( response_types_map=_response_types_map, ).data + @validate_call def delete_snapshot_with_http_info( self, @@ -376,8 +401,9 @@ def delete_snapshot_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -409,27 +435,28 @@ def delete_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_snapshot_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeleteSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -437,6 +464,7 @@ def delete_snapshot_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_snapshot_without_preload_content( self, @@ -445,8 +473,9 @@ def delete_snapshot_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -478,30 +507,32 @@ def delete_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_snapshot_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DeleteSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_snapshot_serialize( self, id, @@ -513,7 +544,8 @@ def _delete_snapshot_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -526,22 +558,30 @@ def _delete_snapshot_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/snapshots/{id}", + method='DELETE', + resource_path='/v1/snapshots/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -551,9 +591,12 @@ def _delete_snapshot_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_snapshot( self, @@ -562,8 +605,9 @@ def get_snapshot( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -595,27 +639,28 @@ def get_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_snapshot_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -623,6 +668,7 @@ def get_snapshot( response_types_map=_response_types_map, ).data + @validate_call def get_snapshot_with_http_info( self, @@ -631,8 +677,9 @@ def get_snapshot_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -664,27 +711,28 @@ def get_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_snapshot_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -692,6 +740,7 @@ def get_snapshot_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_snapshot_without_preload_content( self, @@ -700,8 +749,9 @@ def get_snapshot_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -733,30 +783,32 @@ def get_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_snapshot_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_snapshot_serialize( self, id, @@ -768,7 +820,8 @@ def _get_snapshot_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -781,22 +834,30 @@ def _get_snapshot_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/snapshots/{id}", + method='GET', + resource_path='/v1/snapshots/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -806,39 +867,27 @@ def _get_snapshot_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_snapshots( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter by organization_id"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) Filter by status - SNAPSHOT_STATUS_INVALID: zero value, invalid - SNAPSHOT_STATUS_CREATING: the snapshot is being created - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted - SNAPSHOT_STATUS_DELETED: the snapshot is deleted" - ), - ] = None, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the region") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter by organization_id")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter by status - SNAPSHOT_STATUS_INVALID: zero value, invalid - SNAPSHOT_STATUS_CREATING: the snapshot is being created - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted - SNAPSHOT_STATUS_DELETED: the snapshot is deleted")] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the region")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -878,7 +927,7 @@ def list_snapshots( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_snapshots_serialize( limit=limit, @@ -889,20 +938,21 @@ def list_snapshots( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSnapshotsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListSnapshotsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -910,36 +960,22 @@ def list_snapshots( response_types_map=_response_types_map, ).data + @validate_call def list_snapshots_with_http_info( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter by organization_id"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) Filter by status - SNAPSHOT_STATUS_INVALID: zero value, invalid - SNAPSHOT_STATUS_CREATING: the snapshot is being created - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted - SNAPSHOT_STATUS_DELETED: the snapshot is deleted" - ), - ] = None, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the region") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter by organization_id")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter by status - SNAPSHOT_STATUS_INVALID: zero value, invalid - SNAPSHOT_STATUS_CREATING: the snapshot is being created - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted - SNAPSHOT_STATUS_DELETED: the snapshot is deleted")] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the region")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -979,7 +1015,7 @@ def list_snapshots_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_snapshots_serialize( limit=limit, @@ -990,20 +1026,21 @@ def list_snapshots_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSnapshotsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListSnapshotsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1011,36 +1048,22 @@ def list_snapshots_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_snapshots_without_preload_content( self, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - organization_id: Annotated[ - Optional[StrictStr], - Field(description="(Optional) Filter by organization_id"), - ] = None, - statuses: Annotated[ - Optional[List[StrictStr]], - Field( - description="(Optional) Filter by status - SNAPSHOT_STATUS_INVALID: zero value, invalid - SNAPSHOT_STATUS_CREATING: the snapshot is being created - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted - SNAPSHOT_STATUS_DELETED: the snapshot is deleted" - ), - ] = None, - region: Annotated[ - Optional[StrictStr], Field(description="(Optional) A filter for the region") - ] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter by organization_id")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter by status - SNAPSHOT_STATUS_INVALID: zero value, invalid - SNAPSHOT_STATUS_CREATING: the snapshot is being created - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted - SNAPSHOT_STATUS_DELETED: the snapshot is deleted")] = None, + region: Annotated[Optional[StrictStr], Field(description="(Optional) A filter for the region")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1080,7 +1103,7 @@ def list_snapshots_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_snapshots_serialize( limit=limit, @@ -1091,23 +1114,25 @@ def list_snapshots_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSnapshotsReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "ListSnapshotsReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_snapshots_serialize( self, limit, @@ -1124,7 +1149,7 @@ def _list_snapshots_serialize( _host = None _collection_formats: Dict[str, str] = { - "statuses": "multi", + 'statuses': 'multi', } _path_params: Dict[str, str] = {} @@ -1139,39 +1164,47 @@ def _list_snapshots_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if organization_id is not None: - - _query_params.append(("organization_id", organization_id)) - + + _query_params.append(('organization_id', organization_id)) + if statuses is not None: - - _query_params.append(("statuses", statuses)) - + + _query_params.append(('statuses', statuses)) + if region is not None: - - _query_params.append(("region", region)) - + + _query_params.append(('region', region)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/snapshots", + method='GET', + resource_path='/v1/snapshots', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1181,9 +1214,12 @@ def _list_snapshots_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def update_snapshot( self, @@ -1193,8 +1229,9 @@ def update_snapshot( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1228,7 +1265,7 @@ def update_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_snapshot_serialize( id=id, @@ -1236,20 +1273,21 @@ def update_snapshot( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1257,6 +1295,7 @@ def update_snapshot( response_types_map=_response_types_map, ).data + @validate_call def update_snapshot_with_http_info( self, @@ -1266,8 +1305,9 @@ def update_snapshot_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1301,7 +1341,7 @@ def update_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_snapshot_serialize( id=id, @@ -1309,20 +1349,21 @@ def update_snapshot_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1330,6 +1371,7 @@ def update_snapshot_with_http_info( response_types_map=_response_types_map, ) + @validate_call def update_snapshot_without_preload_content( self, @@ -1339,8 +1381,9 @@ def update_snapshot_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1374,7 +1417,7 @@ def update_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_snapshot_serialize( id=id, @@ -1382,23 +1425,25 @@ def update_snapshot_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UpdateSnapshotReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "UpdateSnapshotReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _update_snapshot_serialize( self, id, @@ -1411,7 +1456,8 @@ def _update_snapshot_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1424,7 +1470,7 @@ def _update_snapshot_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -1432,16 +1478,24 @@ def _update_snapshot_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/snapshots/{id}", + method='POST', + resource_path='/v1/snapshots/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1451,5 +1505,7 @@ def _update_snapshot_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/sso_api.py b/koyeb/api/api/sso_api.py similarity index 79% rename from koyeb/api/sso_api.py rename to koyeb/api/api/sso_api.py index 872e9c81..f216a8b4 100644 --- a/koyeb/api/sso_api.py +++ b/koyeb/api/api/sso_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,13 +17,13 @@ from typing_extensions import Annotated from typing import Any, Dict -from koyeb.models.canny_auth_reply import CannyAuthReply -from koyeb.models.discourse_auth_reply import DiscourseAuthReply -from koyeb.models.discourse_auth_request import DiscourseAuthRequest +from koyeb.api.models.canny_auth_reply import CannyAuthReply +from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply +from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SsoApi: @@ -38,6 +38,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def canny_auth( self, @@ -46,8 +47,9 @@ def canny_auth( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -79,27 +81,28 @@ def canny_auth( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._canny_auth_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CannyAuthReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CannyAuthReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -107,6 +110,7 @@ def canny_auth( response_types_map=_response_types_map, ).data + @validate_call def canny_auth_with_http_info( self, @@ -115,8 +119,9 @@ def canny_auth_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -148,27 +153,28 @@ def canny_auth_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._canny_auth_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CannyAuthReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CannyAuthReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -176,6 +182,7 @@ def canny_auth_with_http_info( response_types_map=_response_types_map, ) + @validate_call def canny_auth_without_preload_content( self, @@ -184,8 +191,9 @@ def canny_auth_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -217,30 +225,32 @@ def canny_auth_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._canny_auth_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CannyAuthReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "CannyAuthReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _canny_auth_serialize( self, body, @@ -252,7 +262,8 @@ def _canny_auth_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -271,16 +282,24 @@ def _canny_auth_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/sso/canny", + method='POST', + resource_path='/v1/sso/canny', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -290,9 +309,12 @@ def _canny_auth_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def discourse_auth( self, @@ -301,8 +323,9 @@ def discourse_auth( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -334,27 +357,28 @@ def discourse_auth( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._discourse_auth_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DiscourseAuthReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DiscourseAuthReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -362,6 +386,7 @@ def discourse_auth( response_types_map=_response_types_map, ).data + @validate_call def discourse_auth_with_http_info( self, @@ -370,8 +395,9 @@ def discourse_auth_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -403,27 +429,28 @@ def discourse_auth_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._discourse_auth_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DiscourseAuthReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DiscourseAuthReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -431,6 +458,7 @@ def discourse_auth_with_http_info( response_types_map=_response_types_map, ) + @validate_call def discourse_auth_without_preload_content( self, @@ -439,8 +467,9 @@ def discourse_auth_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -472,30 +501,32 @@ def discourse_auth_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._discourse_auth_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "DiscourseAuthReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "DiscourseAuthReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _discourse_auth_serialize( self, body, @@ -507,7 +538,8 @@ def _discourse_auth_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -526,16 +558,24 @@ def _discourse_auth_serialize( if body is not None: _body_params = body + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/v1/sso/discourse", + method='POST', + resource_path='/v1/sso/discourse', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -545,5 +585,7 @@ def _discourse_auth_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/subscriptions_api.py b/koyeb/api/api/subscriptions_api.py similarity index 78% rename from koyeb/api/subscriptions_api.py rename to koyeb/api/api/subscriptions_api.py index 033a8b75..894959d3 100644 --- a/koyeb/api/subscriptions_api.py +++ b/koyeb/api/api/subscriptions_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -18,11 +18,11 @@ from pydantic import Field, StrictStr from typing_extensions import Annotated -from koyeb.models.get_subscription_reply import GetSubscriptionReply +from koyeb.api.models.get_subscription_reply import GetSubscriptionReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SubscriptionsApi: @@ -37,6 +37,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_subscription( self, @@ -45,8 +46,9 @@ def get_subscription( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -78,27 +80,28 @@ def get_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_subscription_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSubscriptionReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSubscriptionReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -106,6 +109,7 @@ def get_subscription( response_types_map=_response_types_map, ).data + @validate_call def get_subscription_with_http_info( self, @@ -114,8 +118,9 @@ def get_subscription_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -147,27 +152,28 @@ def get_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_subscription_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSubscriptionReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSubscriptionReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -175,6 +181,7 @@ def get_subscription_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_subscription_without_preload_content( self, @@ -183,8 +190,9 @@ def get_subscription_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -216,30 +224,32 @@ def get_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_subscription_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSubscriptionReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetSubscriptionReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_subscription_serialize( self, id, @@ -251,7 +261,8 @@ def _get_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -264,22 +275,30 @@ def _get_subscription_serialize( # process the path parameters if id is not None: - _path_params["id"] = id + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/subscriptions/{id}", + method='GET', + resource_path='/v1/subscriptions/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -289,5 +308,7 @@ def _get_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/summary_api.py b/koyeb/api/api/summary_api.py similarity index 78% rename from koyeb/api/summary_api.py rename to koyeb/api/api/summary_api.py index 49b51f05..daf7a7a6 100644 --- a/koyeb/api/summary_api.py +++ b/koyeb/api/api/summary_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -18,11 +18,11 @@ from pydantic import Field, StrictStr from typing_extensions import Annotated -from koyeb.models.get_organization_summary_reply import GetOrganizationSummaryReply +from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class SummaryApi: @@ -37,6 +37,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_organization_summary( self, @@ -45,8 +46,9 @@ def get_organization_summary( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -78,27 +80,28 @@ def get_organization_summary( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_summary_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationSummaryReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationSummaryReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -106,6 +109,7 @@ def get_organization_summary( response_types_map=_response_types_map, ).data + @validate_call def get_organization_summary_with_http_info( self, @@ -114,8 +118,9 @@ def get_organization_summary_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -147,27 +152,28 @@ def get_organization_summary_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_summary_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationSummaryReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationSummaryReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -175,6 +181,7 @@ def get_organization_summary_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_organization_summary_without_preload_content( self, @@ -183,8 +190,9 @@ def get_organization_summary_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -216,30 +224,32 @@ def get_organization_summary_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_summary_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationSummaryReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", + '200': "GetOrganizationSummaryReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_organization_summary_serialize( self, organization_id, @@ -251,7 +261,8 @@ def _get_organization_summary_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -264,22 +275,30 @@ def _get_organization_summary_serialize( # process the path parameters if organization_id is not None: - _path_params["organization_id"] = organization_id + _path_params['organization_id'] = organization_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/organizations/{organization_id}/summary", + method='GET', + resource_path='/v1/organizations/{organization_id}/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -289,5 +308,7 @@ def _get_organization_summary_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/usages_api.py b/koyeb/api/api/usages_api.py similarity index 73% rename from koyeb/api/usages_api.py rename to koyeb/api/api/usages_api.py index 6ef78091..c15b411b 100644 --- a/koyeb/api/usages_api.py +++ b/koyeb/api/api/usages_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,14 +20,12 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from koyeb.models.get_organization_usage_details_reply import ( - GetOrganizationUsageDetailsReply, -) -from koyeb.models.get_organization_usage_reply import GetOrganizationUsageReply +from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply +from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType class UsagesApi: @@ -42,23 +40,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_organization_usage( self, - starting_time: Annotated[ - Optional[datetime], - Field(description="The starting time of the period to get data from"), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field(description="The ending time of the period to get data from"), - ] = None, + starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, + ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -92,7 +86,7 @@ def get_organization_usage( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_serialize( starting_time=starting_time, @@ -100,14 +94,15 @@ def get_organization_usage( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationUsageReply", + '200': "GetOrganizationUsageReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -115,23 +110,19 @@ def get_organization_usage( response_types_map=_response_types_map, ).data + @validate_call def get_organization_usage_with_http_info( self, - starting_time: Annotated[ - Optional[datetime], - Field(description="The starting time of the period to get data from"), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field(description="The ending time of the period to get data from"), - ] = None, + starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, + ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -165,7 +156,7 @@ def get_organization_usage_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_serialize( starting_time=starting_time, @@ -173,14 +164,15 @@ def get_organization_usage_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationUsageReply", + '200': "GetOrganizationUsageReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -188,23 +180,19 @@ def get_organization_usage_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_organization_usage_without_preload_content( self, - starting_time: Annotated[ - Optional[datetime], - Field(description="The starting time of the period to get data from"), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field(description="The ending time of the period to get data from"), - ] = None, + starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, + ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -238,7 +226,7 @@ def get_organization_usage_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_serialize( starting_time=starting_time, @@ -246,17 +234,19 @@ def get_organization_usage_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationUsageReply", + '200': "GetOrganizationUsageReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_organization_usage_serialize( self, starting_time, @@ -269,7 +259,8 @@ def _get_organization_usage_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -286,42 +277,50 @@ def _get_organization_usage_serialize( if isinstance(starting_time, datetime): _query_params.append( ( - "starting_time", + 'starting_time', starting_time.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("starting_time", starting_time)) - + _query_params.append(('starting_time', starting_time)) + if ending_time is not None: if isinstance(ending_time, datetime): _query_params.append( ( - "ending_time", + 'ending_time', ending_time.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("ending_time", ending_time)) - + _query_params.append(('ending_time', ending_time)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/usages", + method='GET', + resource_path='/v1/usages', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -331,46 +330,28 @@ def _get_organization_usage_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_organization_usage_details( self, - starting_time: Annotated[ - Optional[datetime], - Field(description="The starting time of the period to get data from"), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field(description="The ending time of the period to get data from"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - accept: Annotated[ - Optional[StrictStr], - Field( - description="If defined with the value 'text/csv', a csv file is returned" - ), - ] = None, + starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, + ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + accept: Annotated[Optional[StrictStr], Field(description="If defined with the value 'text/csv', a csv file is returned")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -412,7 +393,7 @@ def get_organization_usage_details( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_details_serialize( starting_time=starting_time, @@ -424,14 +405,15 @@ def get_organization_usage_details( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationUsageDetailsReply", + '200': "GetOrganizationUsageDetailsReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -439,43 +421,23 @@ def get_organization_usage_details( response_types_map=_response_types_map, ).data + @validate_call def get_organization_usage_details_with_http_info( self, - starting_time: Annotated[ - Optional[datetime], - Field(description="The starting time of the period to get data from"), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field(description="The ending time of the period to get data from"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - accept: Annotated[ - Optional[StrictStr], - Field( - description="If defined with the value 'text/csv', a csv file is returned" - ), - ] = None, + starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, + ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + accept: Annotated[Optional[StrictStr], Field(description="If defined with the value 'text/csv', a csv file is returned")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -517,7 +479,7 @@ def get_organization_usage_details_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_details_serialize( starting_time=starting_time, @@ -529,14 +491,15 @@ def get_organization_usage_details_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationUsageDetailsReply", + '200': "GetOrganizationUsageDetailsReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -544,43 +507,23 @@ def get_organization_usage_details_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_organization_usage_details_without_preload_content( self, - starting_time: Annotated[ - Optional[datetime], - Field(description="The starting time of the period to get data from"), - ] = None, - ending_time: Annotated[ - Optional[datetime], - Field(description="The ending time of the period to get data from"), - ] = None, - limit: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The number of items to return"), - ] = None, - offset: Annotated[ - Optional[StrictStr], - Field(description="(Optional) The offset in the list of item to return"), - ] = None, - order: Annotated[ - Optional[StrictStr], - Field( - description="(Optional) Sorts the list in the ascending or the descending order" - ), - ] = None, - accept: Annotated[ - Optional[StrictStr], - Field( - description="If defined with the value 'text/csv', a csv file is returned" - ), - ] = None, + starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, + ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, + limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, + offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + accept: Annotated[Optional[StrictStr], Field(description="If defined with the value 'text/csv', a csv file is returned")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -622,7 +565,7 @@ def get_organization_usage_details_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_details_serialize( starting_time=starting_time, @@ -634,17 +577,19 @@ def get_organization_usage_details_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetOrganizationUsageDetailsReply", + '200': "GetOrganizationUsageDetailsReply", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_organization_usage_details_serialize( self, starting_time, @@ -661,7 +606,8 @@ def _get_organization_usage_details_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -678,56 +624,64 @@ def _get_organization_usage_details_serialize( if isinstance(starting_time, datetime): _query_params.append( ( - "starting_time", + 'starting_time', starting_time.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("starting_time", starting_time)) - + _query_params.append(('starting_time', starting_time)) + if ending_time is not None: if isinstance(ending_time, datetime): _query_params.append( ( - "ending_time", + 'ending_time', ending_time.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("ending_time", ending_time)) - + _query_params.append(('ending_time', ending_time)) + if limit is not None: - - _query_params.append(("limit", limit)) - + + _query_params.append(('limit', limit)) + if offset is not None: - - _query_params.append(("offset", offset)) - + + _query_params.append(('offset', offset)) + if order is not None: - - _query_params.append(("order", order)) - + + _query_params.append(('order', order)) + # process the header parameters if accept is not None: - _header_params["Accept"] = accept + _header_params['Accept'] = accept # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + # authentication setting - _auth_settings: List[str] = ["Bearer"] + _auth_settings: List[str] = [ + 'Bearer' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/v1/usages/details", + method='GET', + resource_path='/v1/usages/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -737,5 +691,7 @@ def _get_organization_usage_details_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/koyeb/api/api/users_api.py b/koyeb/api/api/users_api.py new file mode 100644 index 00000000..b82589df --- /dev/null +++ b/koyeb/api/api/users_api.py @@ -0,0 +1,590 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing_extensions import Annotated +from koyeb.api.models.delete_user_reply import DeleteUserReply + +from koyeb.api.api_client import ApiClient, RequestSerialized +from koyeb.api.api_response import ApiResponse +from koyeb.api.rest import RESTResponseType + + +class UsersApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_user( + self, + id: Annotated[StrictStr, Field(description="The id of the user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteUserReply: + """Delete user + + + :param id: The id of the user (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteUserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_user_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The id of the user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteUserReply]: + """Delete user + + + :param id: The id of the user (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteUserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_user_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The id of the user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete user + + + :param id: The id of the user (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteUserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Bearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1/users/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_user_v2( + self, + id: Annotated[StrictStr, Field(description="The id of the user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteUserReply: + """V2 Delete user + + + :param id: The id of the user (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_v2_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteUserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_user_v2_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The id of the user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteUserReply]: + """V2 Delete user + + + :param id: The id of the user (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_v2_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteUserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_user_v2_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The id of the user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """V2 Delete user + + + :param id: The id of the user (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_v2_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteUserReply", + '400': "ErrorWithFields", + '401': "Error", + '403': "Error", + '404': "Error", + '500': "Error", + '503': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_user_v2_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + '*/*' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Bearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v2/users/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/koyeb/api_client.py b/koyeb/api/api_client.py similarity index 75% rename from koyeb/api_client.py rename to koyeb/api/api_client.py index 1a8fecf1..2d0883c1 100644 --- a/koyeb/api_client.py +++ b/koyeb/api/api_client.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,28 +21,28 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr -from koyeb.configuration import Configuration -from koyeb.api_response import ApiResponse, T as ApiResponseT -import koyeb.models -from koyeb import rest -from koyeb.exceptions import ( +from koyeb.api.configuration import Configuration +from koyeb.api.api_response import ApiResponse, T as ApiResponseT +import koyeb.api.models +from koyeb.api import rest +from koyeb.api.exceptions import ( ApiValueError, ApiException, BadRequestException, UnauthorizedException, ForbiddenException, NotFoundException, - ServiceException, + ServiceException ) RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] - class ApiClient: """Generic API client for OpenAPI client library builds. @@ -61,20 +61,24 @@ class ApiClient: PRIMITIVE_TYPES = (float, bool, bytes, str, int) NATIVE_TYPES_MAPPING = { - "int": int, - "long": int, # TODO remove as only py3 is supported? - "float": float, - "str": str, - "bool": bool, - "date": datetime.date, - "datetime": datetime.datetime, - "decimal": decimal.Decimal, - "object": object, + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, + 'object': object, } _pool = None def __init__( - self, configuration=None, header_name=None, header_value=None, cookie=None + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None ) -> None: # use default configuration if none is provided if configuration is None: @@ -87,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.0.0/python" + self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -99,15 +103,16 @@ def __exit__(self, exc_type, exc_value, traceback): @property def user_agent(self): """User agent for this API client""" - return self.default_headers["User-Agent"] + return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - self.default_headers["User-Agent"] = value + self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value + _default = None @classmethod @@ -143,12 +148,12 @@ def param_serialize( header_params=None, body=None, post_params=None, - files=None, - auth_settings=None, + files=None, auth_settings=None, collection_formats=None, _host=None, - _request_auth=None, + _request_auth=None ) -> RequestSerialized: + """Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint. @@ -177,28 +182,35 @@ def param_serialize( header_params = header_params or {} header_params.update(self.default_headers) if self.cookie: - header_params["Cookie"] = self.cookie + header_params['Cookie'] = self.cookie if header_params: header_params = self.sanitize_for_serialization(header_params) header_params = dict( - self.parameters_to_tuples(header_params, collection_formats) + self.parameters_to_tuples(header_params,collection_formats) ) # path parameters if path_params: path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, collection_formats) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param) + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) ) # post parameters if post_params or files: post_params = post_params if post_params else [] post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, collection_formats) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) if files: post_params.extend(self.files_parameters(files)) @@ -210,7 +222,7 @@ def param_serialize( resource_path, method, body, - request_auth=_request_auth, + request_auth=_request_auth ) # body @@ -227,11 +239,15 @@ def param_serialize( # query parameters if query_params: query_params = self.sanitize_for_serialization(query_params) - url_query = self.parameters_to_url_query(query_params, collection_formats) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) url += "?" + url_query return method, url, header_params, body, post_params + def call_api( self, method, @@ -239,7 +255,7 @@ def call_api( header_params=None, body=None, post_params=None, - _request_timeout=None, + _request_timeout=None ) -> rest.RESTResponse: """Makes the HTTP request (synchronous) :param method: Method to call. @@ -256,12 +272,10 @@ def call_api( try: # perform request and return response response_data = self.rest_client.request( - method, - url, + method, url, headers=header_params, - body=body, - post_params=post_params, - _request_timeout=_request_timeout, + body=body, post_params=post_params, + _request_timeout=_request_timeout ) except ApiException as e: @@ -272,7 +286,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]] = None, + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -284,15 +298,9 @@ def response_deserialize( assert response_data.data is not None, msg response_type = response_types_map.get(str(response_data.status), None) - if ( - not response_type - and isinstance(response_data.status, int) - and 100 <= response_data.status <= 599 - ): + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: # if not found, look for '1XX', '2XX', etc. - response_type = response_types_map.get( - str(response_data.status)[0] + "XX", None - ) + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) # deserialize response data response_text = None @@ -304,14 +312,12 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader("content-type") + content_type = response_data.getheader('content-type') if content_type is not None: match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" response_text = response_data.data.decode(encoding) - return_data = self.deserialize( - response_text, response_type, content_type - ) + return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -321,10 +327,10 @@ def response_deserialize( ) return ApiResponse( - status_code=response_data.status, - data=return_data, - headers=response_data.getheaders(), - raw_data=response_data.data, + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data ) def sanitize_for_serialization(self, obj): @@ -351,10 +357,16 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() elif isinstance(obj, decimal.Decimal): @@ -368,7 +380,7 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): obj_dict = obj.to_dict() else: obj_dict = obj.__dict__ @@ -378,12 +390,11 @@ def sanitize_for_serialization(self, obj): return self.sanitize_for_serialization(obj_dict) return { - key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() } - def deserialize( - self, response_text: str, response_type: str, content_type: Optional[str] - ): + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. :param response: RESTResponse object to be deserialized. @@ -400,20 +411,17 @@ def deserialize( data = json.loads(response_text) except ValueError: data = response_text - elif re.match( - r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", - content_type, - re.IGNORECASE, - ): + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): data = response_text else: raise ApiException( - status=0, reason="Unsupported content type: {0}".format(content_type) + status=0, + reason="Unsupported content type: {0}".format(content_type) ) return self.__deserialize(data, response_type) @@ -430,33 +438,35 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith("List["): - m = re.match(r"List\[(.*)]", klass) + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) for sub_data in data] + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] - if klass.startswith("Dict["): - m = re.match(r"Dict\[([^,]*), (.*)]", klass) + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(koyeb.models, klass) + klass = getattr(koyeb.api.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) @@ -476,18 +486,19 @@ def parameters_to_tuples(self, params, collection_formats): for k, v in params.items() if isinstance(params, dict) else params: if k in collection_formats: collection_format = collection_formats[k] - if collection_format == "multi": + if collection_format == 'multi': new_params.extend((k, value) for value in v) else: - if collection_format == "ssv": - delimiter = " " - elif collection_format == "tsv": - delimiter = "\t" - elif collection_format == "pipes": - delimiter = "|" + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' else: # csv is the default - delimiter = "," - new_params.append((k, delimiter.join(str(value) for value in v))) + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) else: new_params.append((k, v)) return new_params @@ -512,17 +523,17 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] - if collection_format == "multi": + if collection_format == 'multi': new_params.extend((k, quote(str(value))) for value in v) else: - if collection_format == "ssv": - delimiter = " " - elif collection_format == "tsv": - delimiter = "\t" - elif collection_format == "pipes": - delimiter = "|" + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' else: # csv is the default - delimiter = "," + delimiter = ',' new_params.append( (k, delimiter.join(quote(str(value)) for value in v)) ) @@ -543,7 +554,7 @@ def files_parameters( params = [] for k, v in files.items(): if isinstance(v, str): - with open(v, "rb") as f: + with open(v, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read() elif isinstance(v, bytes): @@ -557,8 +568,13 @@ def files_parameters( continue else: raise ValueError("Unsupported file value") - mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" - params.append(tuple([k, tuple([filename, filedata, mimetype])])) + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) return params def select_header_accept(self, accepts: List[str]) -> Optional[str]: @@ -571,7 +587,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: return None for accept in accepts: - if re.search("json", accept, re.IGNORECASE): + if re.search('json', accept, re.IGNORECASE): return accept return accepts[0] @@ -586,7 +602,7 @@ def select_header_content_type(self, content_types): return None for content_type in content_types: - if re.search("json", content_type, re.IGNORECASE): + if re.search('json', content_type, re.IGNORECASE): return content_type return content_types[0] @@ -599,7 +615,7 @@ def update_params_for_auth( resource_path, method, body, - request_auth=None, + request_auth=None ) -> None: """Updates header and query params based on authentication setting. @@ -618,18 +634,34 @@ def update_params_for_auth( if request_auth: self._apply_auth_params( - headers, queries, resource_path, method, body, request_auth + headers, + queries, + resource_path, + method, + body, + request_auth ) else: for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: self._apply_auth_params( - headers, queries, resource_path, method, body, auth_setting + headers, + queries, + resource_path, + method, + body, + auth_setting ) def _apply_auth_params( - self, headers, queries, resource_path, method, body, auth_setting + self, + headers, + queries, + resource_path, + method, + body, + auth_setting ) -> None: """Updates the request parameters based on a single auth_setting @@ -641,15 +673,17 @@ def _apply_auth_params( The object type is the return value of sanitize_for_serialization(). :param auth_setting: auth settings for the endpoint """ - if auth_setting["in"] == "cookie": - headers["Cookie"] = auth_setting["value"] - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers[auth_setting["key"]] = auth_setting["value"] - elif auth_setting["in"] == "query": - queries.append((auth_setting["key"], auth_setting["value"])) + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) else: - raise ApiValueError("Authentication token must be in `query` or `header`") + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) def __deserialize_file(self, response): """Deserializes body to file @@ -669,7 +703,10 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) + m = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ) assert m is not None, "Unexpected 'content-disposition' header value" filename = m.group(1) path = os.path.join(os.path.dirname(path), filename) @@ -713,7 +750,8 @@ def __deserialize_date(self, string): return string except ValueError: raise rest.ApiException( - status=0, reason="Failed to parse `{0}` as date object".format(string) + status=0, + reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datetime(self, string): @@ -731,7 +769,10 @@ def __deserialize_datetime(self, string): except ValueError: raise rest.ApiException( status=0, - reason=("Failed to parse `{0}` as datetime object".format(string)), + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) ) def __deserialize_enum(self, data, klass): @@ -745,7 +786,11 @@ def __deserialize_enum(self, data, klass): return klass(data) except ValueError: raise rest.ApiException( - status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) ) def __deserialize_model(self, data, klass): diff --git a/koyeb/api_response.py b/koyeb/api/api_response.py similarity index 89% rename from koyeb/api_response.py rename to koyeb/api/api_response.py index 1ce13729..9bc7c11f 100644 --- a/koyeb/api_response.py +++ b/koyeb/api/api_response.py @@ -6,7 +6,6 @@ T = TypeVar("T") - class ApiResponse(BaseModel, Generic[T]): """ API response object @@ -17,4 +16,6 @@ class ApiResponse(BaseModel, Generic[T]): data: T = Field(description="Deserialized data given the data type") raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") - model_config = {"arbitrary_types_allowed": True} + model_config = { + "arbitrary_types_allowed": True + } diff --git a/koyeb/configuration.py b/koyeb/api/configuration.py similarity index 71% rename from koyeb/configuration.py rename to koyeb/api/configuration.py index aaf152a1..948add11 100644 --- a/koyeb/configuration.py +++ b/koyeb/api/configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -25,16 +25,9 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { - "multipleOf", - "maximum", - "exclusiveMaximum", - "minimum", - "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", - "maxItems", - "minItems", + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' } ServerVariablesT = Dict[str, str] @@ -141,80 +134,85 @@ class HostSetting(TypedDict): class Configuration: """This class contains various settings of the API client. - :param host: Base url. - :param ignore_operation_servers - Boolean to ignore operation servers for the API client. - Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication. - :param password: Password for HTTP basic authentication. - :param access_token: Access token. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum - values before. - :param ssl_ca_cert: str - the path to a file of concatenated CA certificates - in PEM format. - :param retries: Number of retries for API requests. - :param ca_cert_data: verify the peer using concatenated CA certificate data - in PEM (str) or DER (bytes) format. - - :Example: - - API Key Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - cookieAuth: # name for the security scheme - type: apiKey - in: cookie - name: JSESSIONID # cookie name - - You can programmatically set the cookie: - - conf = koyeb.Configuration( - api_key={'cookieAuth': 'abc123'} - api_key_prefix={'cookieAuth': 'JSESSIONID'} - ) - - The following cookie will be added to the HTTP request: - Cookie: JSESSIONID abc123 + :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. + :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + +conf = koyeb.api.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} +) + + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 """ _default: ClassVar[Optional[Self]] = None def __init__( self, - host: Optional[str] = None, - api_key: Optional[Dict[str, str]] = None, - api_key_prefix: Optional[Dict[str, str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - access_token: Optional[str] = None, - server_index: Optional[int] = None, - server_variables: Optional[ServerVariablesT] = None, - server_operation_index: Optional[Dict[int, int]] = None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]] = None, - ignore_operation_servers: bool = False, - ssl_ca_cert: Optional[str] = None, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, *, debug: Optional[bool] = None, ) -> None: - """Constructor""" + """Constructor + """ self._base_path = "https://app.koyeb.com" if host is None else host """Default Base url """ @@ -258,9 +256,9 @@ def __init__( self.logger = {} """Logging Settings """ - self.logger["package_logger"] = logging.getLogger("koyeb") + self.logger["package_logger"] = logging.getLogger("koyeb.api") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = "%(asctime)s %(levelname)s %(message)s" + self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format """ self.logger_stream_handler = None @@ -291,10 +289,10 @@ def __init__( """Set this to verify the peer using PEM (str) or DER (bytes) certificate data. """ - self.cert_file = None + self.cert_file = cert_file """client certificate file """ - self.key_file = None + self.key_file = key_file """client key file """ self.assert_hostname = None @@ -319,7 +317,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = "" + self.safe_chars_for_path_param = '' """Safe chars for path_param """ self.retries = retries @@ -340,12 +338,12 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ("logger", "logger_file_handler"): + if k not in ('logger', 'logger_file_handler'): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -477,9 +475,7 @@ def logger_format(self, value: str) -> None: self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix( - self, identifier: str, alias: Optional[str] = None - ) -> Optional[str]: + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -488,9 +484,7 @@ def get_api_key_with_prefix( """ if self.refresh_api_key_hook is not None: self.refresh_api_key_hook(self) - key = self.api_key.get( - identifier, self.api_key.get(alias) if alias is not None else None - ) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) if key: prefix = self.api_key_prefix.get(identifier) if prefix: @@ -511,23 +505,23 @@ def get_basic_auth_token(self) -> Optional[str]: password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers(basic_auth=username + ":" + password).get( - "authorization" - ) + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') - def auth_settings(self) -> AuthSettings: + def auth_settings(self)-> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ auth: AuthSettings = {} - if "Bearer" in self.api_key: - auth["Bearer"] = { - "type": "api_key", - "in": "header", - "key": "Authorization", - "value": self.get_api_key_with_prefix( - "Bearer", + if 'Bearer' in self.api_key: + auth['Bearer'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_api_key_with_prefix( + 'Bearer', ), } return auth @@ -537,15 +531,12 @@ def to_debug_report(self) -> str: :return: The report for debugging. """ - return ( - "Python SDK Debug Report:\n" - "OS: {env}\n" - "Python Version: {pyversion}\n" - "Version of the API: 1.0.0\n" - "SDK Package Version: 1.0.0".format( - env=sys.platform, pyversion=sys.version - ) - ) + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0.0\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings @@ -554,16 +545,16 @@ def get_host_settings(self) -> List[HostSetting]: """ return [ { - "url": "https://app.koyeb.com", - "description": "No description provided", + 'url': "https://app.koyeb.com", + 'description': "No description provided", } ] def get_host_from_settings( self, index: Optional[int], - variables: Optional[ServerVariablesT] = None, - servers: Optional[List[HostSetting]] = None, + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings @@ -582,22 +573,22 @@ def get_host_from_settings( except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers)) - ) + "Must be less than {1}".format(index, len(servers))) - url = server["url"] + url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server.get("variables", {}).items(): - used_value = variables.get(variable_name, variable["default_value"]) + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) - if "enum_values" in variable and used_value not in variable["enum_values"]: + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " "{1}. Must be {2}.".format( - variable_name, variables[variable_name], variable["enum_values"] - ) - ) + variable_name, variables[variable_name], + variable['enum_values'])) url = url.replace("{" + variable_name + "}", used_value) @@ -606,9 +597,7 @@ def get_host_from_settings( @property def host(self) -> str: """Return generated host.""" - return self.get_host_from_settings( - self.server_index, variables=self.server_variables - ) + return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter def host(self, value: str) -> None: diff --git a/koyeb/docs/AcceptOrganizationInvitationReply.md b/koyeb/api/docs/AcceptOrganizationInvitationReply.md similarity index 91% rename from koyeb/docs/AcceptOrganizationInvitationReply.md rename to koyeb/api/docs/AcceptOrganizationInvitationReply.md index 58335aa7..259429b9 100644 --- a/koyeb/docs/AcceptOrganizationInvitationReply.md +++ b/koyeb/api/docs/AcceptOrganizationInvitationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply +from koyeb.api.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Action.md b/koyeb/api/docs/Action.md similarity index 100% rename from koyeb/docs/Action.md rename to koyeb/api/docs/Action.md diff --git a/koyeb/docs/Activity.md b/koyeb/api/docs/Activity.md similarity index 95% rename from koyeb/docs/Activity.md rename to koyeb/api/docs/Activity.md index 323b6c7d..dd3a7cb9 100644 --- a/koyeb/docs/Activity.md +++ b/koyeb/api/docs/Activity.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.activity import Activity +from koyeb.api.models.activity import Activity # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ActivityApi.md b/koyeb/api/docs/ActivityApi.md similarity index 91% rename from koyeb/docs/ActivityApi.md rename to koyeb/api/docs/ActivityApi.md index 712ed04b..93fee0f2 100644 --- a/koyeb/docs/ActivityApi.md +++ b/koyeb/api/docs/ActivityApi.md @@ -1,4 +1,4 @@ -# koyeb.ActivityApi +# koyeb.api.ActivityApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ Method | HTTP request | Description * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.activity_list import ActivityList -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.activity_list import ActivityList +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ActivityApi(api_client) + api_instance = koyeb.api.ActivityApi(api_client) limit = 'limit_example' # str | (optional) offset = 'offset_example' # str | (optional) @@ -102,14 +102,14 @@ List Activities * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.activity_list import ActivityList -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.activity_list import ActivityList +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -125,9 +125,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ActivityApi(api_client) + api_instance = koyeb.api.ActivityApi(api_client) limit = 'limit_example' # str | (optional) offset = 'offset_example' # str | (optional) types = ['types_example'] # List[str] | (Optional) Filter on object type (optional) @@ -190,14 +190,14 @@ List Notifications * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.notification_list import NotificationList -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.notification_list import NotificationList +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -213,9 +213,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ActivityApi(api_client) + api_instance = koyeb.api.ActivityApi(api_client) limit = 'limit_example' # str | (optional) offset = 'offset_example' # str | (optional) mark_read = 'mark_read_example' # str | (optional) diff --git a/koyeb/docs/ActivityList.md b/koyeb/api/docs/ActivityList.md similarity index 94% rename from koyeb/docs/ActivityList.md rename to koyeb/api/docs/ActivityList.md index fee32dff..6bbb3976 100644 --- a/koyeb/docs/ActivityList.md +++ b/koyeb/api/docs/ActivityList.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.activity_list import ActivityList +from koyeb.api.models.activity_list import ActivityList # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/App.md b/koyeb/api/docs/App.md similarity index 97% rename from koyeb/docs/App.md rename to koyeb/api/docs/App.md index 095e8740..18e9c030 100644 --- a/koyeb/docs/App.md +++ b/koyeb/api/docs/App.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.app import App +from koyeb.api.models.app import App # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AppEvent.md b/koyeb/api/docs/AppEvent.md similarity index 95% rename from koyeb/docs/AppEvent.md rename to koyeb/api/docs/AppEvent.md index a8896ed9..18fa9c25 100644 --- a/koyeb/docs/AppEvent.md +++ b/koyeb/api/docs/AppEvent.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.app_event import AppEvent +from koyeb.api.models.app_event import AppEvent # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AppListItem.md b/koyeb/api/docs/AppListItem.md similarity index 95% rename from koyeb/docs/AppListItem.md rename to koyeb/api/docs/AppListItem.md index 3a6e6ff0..3b31a52b 100644 --- a/koyeb/docs/AppListItem.md +++ b/koyeb/api/docs/AppListItem.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.app_list_item import AppListItem +from koyeb.api.models.app_list_item import AppListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AppStatus.md b/koyeb/api/docs/AppStatus.md similarity index 100% rename from koyeb/docs/AppStatus.md rename to koyeb/api/docs/AppStatus.md diff --git a/koyeb/docs/AppUsage.md b/koyeb/api/docs/AppUsage.md similarity index 95% rename from koyeb/docs/AppUsage.md rename to koyeb/api/docs/AppUsage.md index 137ba804..e9e5d1cf 100644 --- a/koyeb/docs/AppUsage.md +++ b/koyeb/api/docs/AppUsage.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.app_usage import AppUsage +from koyeb.api.models.app_usage import AppUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AppsApi.md b/koyeb/api/docs/AppsApi.md similarity index 90% rename from koyeb/docs/AppsApi.md rename to koyeb/api/docs/AppsApi.md index e197b773..3ebe940d 100644 --- a/koyeb/docs/AppsApi.md +++ b/koyeb/api/docs/AppsApi.md @@ -1,4 +1,4 @@ -# koyeb.AppsApi +# koyeb.api.AppsApi All URIs are relative to *https://app.koyeb.com* @@ -25,15 +25,15 @@ Create App * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_app import CreateApp -from koyeb.models.create_app_reply import CreateAppReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_app import CreateApp +from koyeb.api.models.create_app_reply import CreateAppReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -49,10 +49,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) - app = koyeb.CreateApp() # CreateApp | + api_instance = koyeb.api.AppsApi(api_client) + app = koyeb.api.CreateApp() # CreateApp | try: # Create App @@ -112,13 +112,13 @@ App deletion is allowed for all status. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -134,9 +134,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) id = 'id_example' # str | The id of the App to delete try: @@ -195,14 +195,14 @@ Get App * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_app_reply import GetAppReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_app_reply import GetAppReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -218,9 +218,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) id = 'id_example' # str | The id of the App try: @@ -279,14 +279,14 @@ List App events * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_app_events_reply import ListAppEventsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_app_events_reply import ListAppEventsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -302,9 +302,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) app_id = 'app_id_example' # str | (Optional) Filter on app id (optional) types = ['types_example'] # List[str] | (Optional) Filter on app event types (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) @@ -371,14 +371,14 @@ List App * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_apps_reply import ListAppsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_apps_reply import ListAppsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -394,9 +394,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) name = 'name_example' # str | (Optional) A filter for name (optional) @@ -466,13 +466,13 @@ App pause action is allowed for the following status: * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -488,9 +488,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) id = 'id_example' # str | The id of the app to pause. try: @@ -552,13 +552,13 @@ App resume action is allowed for the following status: * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -574,9 +574,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) id = 'id_example' # str | The id of the app to resume. try: @@ -635,15 +635,15 @@ Update App * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_app import UpdateApp -from koyeb.models.update_app_reply import UpdateAppReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_app import UpdateApp +from koyeb.api.models.update_app_reply import UpdateAppReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -659,11 +659,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) id = 'id_example' # str | The id of the app to update. - app = koyeb.UpdateApp() # UpdateApp | + app = koyeb.api.UpdateApp() # UpdateApp | update_mask = 'update_mask_example' # str | (optional) try: @@ -724,15 +724,15 @@ Update App * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_app import UpdateApp -from koyeb.models.update_app_reply import UpdateAppReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_app import UpdateApp +from koyeb.api.models.update_app_reply import UpdateAppReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -748,11 +748,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) + api_instance = koyeb.api.AppsApi(api_client) id = 'id_example' # str | The id of the app to update. - app = koyeb.UpdateApp() # UpdateApp | + app = koyeb.api.UpdateApp() # UpdateApp | update_mask = 'update_mask_example' # str | (optional) try: diff --git a/koyeb/docs/AppsSummary.md b/koyeb/api/docs/AppsSummary.md similarity index 93% rename from koyeb/docs/AppsSummary.md rename to koyeb/api/docs/AppsSummary.md index 83c2e607..21bd63e2 100644 --- a/koyeb/docs/AppsSummary.md +++ b/koyeb/api/docs/AppsSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.apps_summary import AppsSummary +from koyeb.api.models.apps_summary import AppsSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Archive.md b/koyeb/api/docs/Archive.md similarity index 96% rename from koyeb/docs/Archive.md rename to koyeb/api/docs/Archive.md index 190205bd..8b162e71 100644 --- a/koyeb/docs/Archive.md +++ b/koyeb/api/docs/Archive.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.archive import Archive +from koyeb.api.models.archive import Archive # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ArchiveDeploymentMetadata.md b/koyeb/api/docs/ArchiveDeploymentMetadata.md similarity index 92% rename from koyeb/docs/ArchiveDeploymentMetadata.md rename to koyeb/api/docs/ArchiveDeploymentMetadata.md index fdc27aa3..b7a71841 100644 --- a/koyeb/docs/ArchiveDeploymentMetadata.md +++ b/koyeb/api/docs/ArchiveDeploymentMetadata.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.archive_deployment_metadata import ArchiveDeploymentMetadata +from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ArchiveSource.md b/koyeb/api/docs/ArchiveSource.md similarity index 94% rename from koyeb/docs/ArchiveSource.md rename to koyeb/api/docs/ArchiveSource.md index b1fadb37..7686fb08 100644 --- a/koyeb/docs/ArchiveSource.md +++ b/koyeb/api/docs/ArchiveSource.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.archive_source import ArchiveSource +from koyeb.api.models.archive_source import ArchiveSource # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ArchivesApi.md b/koyeb/api/docs/ArchivesApi.md similarity index 86% rename from koyeb/docs/ArchivesApi.md rename to koyeb/api/docs/ArchivesApi.md index ba4482b6..c03b9f93 100644 --- a/koyeb/docs/ArchivesApi.md +++ b/koyeb/api/docs/ArchivesApi.md @@ -1,4 +1,4 @@ -# koyeb.ArchivesApi +# koyeb.api.ArchivesApi All URIs are relative to *https://app.koyeb.com* @@ -19,15 +19,15 @@ Create a signed URL to upload an archive. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_archive import CreateArchive -from koyeb.models.create_archive_reply import CreateArchiveReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_archive import CreateArchive +from koyeb.api.models.create_archive_reply import CreateArchiveReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -43,10 +43,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ArchivesApi(api_client) - archive = koyeb.CreateArchive() # CreateArchive | + api_instance = koyeb.api.ArchivesApi(api_client) + archive = koyeb.api.CreateArchive() # CreateArchive | try: # Create Archive diff --git a/koyeb/docs/AutoRelease.md b/koyeb/api/docs/AutoRelease.md similarity index 93% rename from koyeb/docs/AutoRelease.md rename to koyeb/api/docs/AutoRelease.md index 9fc47f27..825f5b68 100644 --- a/koyeb/docs/AutoRelease.md +++ b/koyeb/api/docs/AutoRelease.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.auto_release import AutoRelease +from koyeb.api.models.auto_release import AutoRelease # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AutoReleaseGroup.md b/koyeb/api/docs/AutoReleaseGroup.md similarity index 93% rename from koyeb/docs/AutoReleaseGroup.md rename to koyeb/api/docs/AutoReleaseGroup.md index c5cc19bb..d63a333b 100644 --- a/koyeb/docs/AutoReleaseGroup.md +++ b/koyeb/api/docs/AutoReleaseGroup.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.auto_release_group import AutoReleaseGroup +from koyeb.api.models.auto_release_group import AutoReleaseGroup # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AutocompleteReply.md b/koyeb/api/docs/AutocompleteReply.md similarity index 93% rename from koyeb/docs/AutocompleteReply.md rename to koyeb/api/docs/AutocompleteReply.md index 78802d57..eaf54884 100644 --- a/koyeb/docs/AutocompleteReply.md +++ b/koyeb/api/docs/AutocompleteReply.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.autocomplete_reply import AutocompleteReply +from koyeb.api.models.autocomplete_reply import AutocompleteReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AutocompleteRequest.md b/koyeb/api/docs/AutocompleteRequest.md similarity index 92% rename from koyeb/docs/AutocompleteRequest.md rename to koyeb/api/docs/AutocompleteRequest.md index 847aeab3..b895cdd5 100644 --- a/koyeb/docs/AutocompleteRequest.md +++ b/koyeb/api/docs/AutocompleteRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.autocomplete_request import AutocompleteRequest +from koyeb.api.models.autocomplete_request import AutocompleteRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/AvailabilityLevel.md b/koyeb/api/docs/AvailabilityLevel.md similarity index 100% rename from koyeb/docs/AvailabilityLevel.md rename to koyeb/api/docs/AvailabilityLevel.md diff --git a/koyeb/docs/AzureContainerRegistryConfiguration.md b/koyeb/api/docs/AzureContainerRegistryConfiguration.md similarity index 91% rename from koyeb/docs/AzureContainerRegistryConfiguration.md rename to koyeb/api/docs/AzureContainerRegistryConfiguration.md index a38818e2..42c0aca6 100644 --- a/koyeb/docs/AzureContainerRegistryConfiguration.md +++ b/koyeb/api/docs/AzureContainerRegistryConfiguration.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration +from koyeb.api.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/BillingApi.md b/koyeb/api/docs/BillingApi.md similarity index 89% rename from koyeb/docs/BillingApi.md rename to koyeb/api/docs/BillingApi.md index 42696fe4..4d296c44 100644 --- a/koyeb/docs/BillingApi.md +++ b/koyeb/api/docs/BillingApi.md @@ -1,4 +1,4 @@ -# koyeb.BillingApi +# koyeb.api.BillingApi All URIs are relative to *https://app.koyeb.com* @@ -23,14 +23,14 @@ USE AT YOUR OWN RISK. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -46,9 +46,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.BillingApi(api_client) + api_instance = koyeb.api.BillingApi(api_client) try: # Experimental: Has unpaid invoices @@ -101,14 +101,14 @@ This endpoint does not need any parameter. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.manage_reply import ManageReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.manage_reply import ManageReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -124,9 +124,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.BillingApi(api_client) + api_instance = koyeb.api.BillingApi(api_client) try: api_response = api_instance.manage() @@ -184,14 +184,14 @@ USE AT YOUR OWN RISK. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.next_invoice_reply import NextInvoiceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.next_invoice_reply import NextInvoiceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -207,9 +207,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.BillingApi(api_client) + api_instance = koyeb.api.BillingApi(api_client) try: # Experimental: Fetch next invoice diff --git a/koyeb/docs/Budget.md b/koyeb/api/docs/Budget.md similarity index 94% rename from koyeb/docs/Budget.md rename to koyeb/api/docs/Budget.md index 257ea633..b58eb208 100644 --- a/koyeb/docs/Budget.md +++ b/koyeb/api/docs/Budget.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.budget import Budget +from koyeb.api.models.budget import Budget # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/BuildpackBuilder.md b/koyeb/api/docs/BuildpackBuilder.md similarity index 93% rename from koyeb/docs/BuildpackBuilder.md rename to koyeb/api/docs/BuildpackBuilder.md index 010f786b..17d4ef55 100644 --- a/koyeb/docs/BuildpackBuilder.md +++ b/koyeb/api/docs/BuildpackBuilder.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.buildpack_builder import BuildpackBuilder +from koyeb.api.models.buildpack_builder import BuildpackBuilder # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CannyAuthReply.md b/koyeb/api/docs/CannyAuthReply.md similarity index 93% rename from koyeb/docs/CannyAuthReply.md rename to koyeb/api/docs/CannyAuthReply.md index 38f89983..0cc0abc4 100644 --- a/koyeb/docs/CannyAuthReply.md +++ b/koyeb/api/docs/CannyAuthReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.canny_auth_reply import CannyAuthReply +from koyeb.api.models.canny_auth_reply import CannyAuthReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CatalogDatacentersApi.md b/koyeb/api/docs/CatalogDatacentersApi.md similarity index 86% rename from koyeb/docs/CatalogDatacentersApi.md rename to koyeb/api/docs/CatalogDatacentersApi.md index 888cab47..0b85431a 100644 --- a/koyeb/docs/CatalogDatacentersApi.md +++ b/koyeb/api/docs/CatalogDatacentersApi.md @@ -1,4 +1,4 @@ -# koyeb.CatalogDatacentersApi +# koyeb.api.CatalogDatacentersApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ List datacenters * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_datacenters_reply import ListDatacentersReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_datacenters_reply import ListDatacentersReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CatalogDatacentersApi(api_client) + api_instance = koyeb.api.CatalogDatacentersApi(api_client) try: # List datacenters diff --git a/koyeb/docs/CatalogGPUDetails.md b/koyeb/api/docs/CatalogGPUDetails.md similarity index 93% rename from koyeb/docs/CatalogGPUDetails.md rename to koyeb/api/docs/CatalogGPUDetails.md index 6963e352..b78763a9 100644 --- a/koyeb/docs/CatalogGPUDetails.md +++ b/koyeb/api/docs/CatalogGPUDetails.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.catalog_gpu_details import CatalogGPUDetails +from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CatalogInstance.md b/koyeb/api/docs/CatalogInstance.md similarity index 96% rename from koyeb/docs/CatalogInstance.md rename to koyeb/api/docs/CatalogInstance.md index e08de7b0..7fce72e8 100644 --- a/koyeb/docs/CatalogInstance.md +++ b/koyeb/api/docs/CatalogInstance.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.catalog_instance import CatalogInstance +from koyeb.api.models.catalog_instance import CatalogInstance # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CatalogInstanceListItem.md b/koyeb/api/docs/CatalogInstanceListItem.md similarity index 95% rename from koyeb/docs/CatalogInstanceListItem.md rename to koyeb/api/docs/CatalogInstanceListItem.md index 645c6ae1..d5dc411d 100644 --- a/koyeb/docs/CatalogInstanceListItem.md +++ b/koyeb/api/docs/CatalogInstanceListItem.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.catalog_instance_list_item import CatalogInstanceListItem +from koyeb.api.models.catalog_instance_list_item import CatalogInstanceListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CatalogInstanceUsageApi.md b/koyeb/api/docs/CatalogInstanceUsageApi.md similarity index 87% rename from koyeb/docs/CatalogInstanceUsageApi.md rename to koyeb/api/docs/CatalogInstanceUsageApi.md index 792e2b44..8b013b5d 100644 --- a/koyeb/docs/CatalogInstanceUsageApi.md +++ b/koyeb/api/docs/CatalogInstanceUsageApi.md @@ -1,4 +1,4 @@ -# koyeb.CatalogInstanceUsageApi +# koyeb.api.CatalogInstanceUsageApi All URIs are relative to *https://app.koyeb.com* @@ -15,14 +15,14 @@ Method | HTTP request | Description * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_usage_reply import ListUsageReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_usage_reply import ListUsageReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -38,9 +38,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CatalogInstanceUsageApi(api_client) + api_instance = koyeb.api.CatalogInstanceUsageApi(api_client) region = 'region_example' # str | (optional) try: diff --git a/koyeb/docs/CatalogInstancesApi.md b/koyeb/api/docs/CatalogInstancesApi.md similarity index 88% rename from koyeb/docs/CatalogInstancesApi.md rename to koyeb/api/docs/CatalogInstancesApi.md index cbd91511..f8252648 100644 --- a/koyeb/docs/CatalogInstancesApi.md +++ b/koyeb/api/docs/CatalogInstancesApi.md @@ -1,4 +1,4 @@ -# koyeb.CatalogInstancesApi +# koyeb.api.CatalogInstancesApi All URIs are relative to *https://app.koyeb.com* @@ -18,14 +18,14 @@ Get Instance * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_catalog_instance_reply import GetCatalogInstanceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,9 +41,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CatalogInstancesApi(api_client) + api_instance = koyeb.api.CatalogInstancesApi(api_client) id = 'id_example' # str | The name of the instance try: @@ -96,14 +96,14 @@ List Instances * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_catalog_instances_reply import ListCatalogInstancesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -119,9 +119,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CatalogInstancesApi(api_client) + api_instance = koyeb.api.CatalogInstancesApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) id = 'id_example' # str | (Optional) A filter for instances (optional) diff --git a/koyeb/docs/CatalogRegionsApi.md b/koyeb/api/docs/CatalogRegionsApi.md similarity index 89% rename from koyeb/docs/CatalogRegionsApi.md rename to koyeb/api/docs/CatalogRegionsApi.md index 06d0fac6..26f812f7 100644 --- a/koyeb/docs/CatalogRegionsApi.md +++ b/koyeb/api/docs/CatalogRegionsApi.md @@ -1,4 +1,4 @@ -# koyeb.CatalogRegionsApi +# koyeb.api.CatalogRegionsApi All URIs are relative to *https://app.koyeb.com* @@ -18,14 +18,14 @@ Get Region * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_region_reply import GetRegionReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_region_reply import GetRegionReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,9 +41,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CatalogRegionsApi(api_client) + api_instance = koyeb.api.CatalogRegionsApi(api_client) id = 'id_example' # str | The name of the region try: @@ -96,14 +96,14 @@ List Region * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_regions_reply import ListRegionsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_regions_reply import ListRegionsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -119,9 +119,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CatalogRegionsApi(api_client) + api_instance = koyeb.api.CatalogRegionsApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) id = 'id_example' # str | (Optional) A filter for regions (optional) diff --git a/koyeb/docs/CatalogUsage.md b/koyeb/api/docs/CatalogUsage.md similarity index 93% rename from koyeb/docs/CatalogUsage.md rename to koyeb/api/docs/CatalogUsage.md index 275d7796..df14ea29 100644 --- a/koyeb/docs/CatalogUsage.md +++ b/koyeb/api/docs/CatalogUsage.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.catalog_usage import CatalogUsage +from koyeb.api.models.catalog_usage import CatalogUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ClearIdenfyVerificationResultRequest.md b/koyeb/api/docs/ClearIdenfyVerificationResultRequest.md similarity index 91% rename from koyeb/docs/ClearIdenfyVerificationResultRequest.md rename to koyeb/api/docs/ClearIdenfyVerificationResultRequest.md index d7ef5528..a9800c36 100644 --- a/koyeb/docs/ClearIdenfyVerificationResultRequest.md +++ b/koyeb/api/docs/ClearIdenfyVerificationResultRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest +from koyeb.api.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ComposeApi.md b/koyeb/api/docs/ComposeApi.md similarity index 86% rename from koyeb/docs/ComposeApi.md rename to koyeb/api/docs/ComposeApi.md index 084876d0..e93dbffd 100644 --- a/koyeb/docs/ComposeApi.md +++ b/koyeb/api/docs/ComposeApi.md @@ -1,4 +1,4 @@ -# koyeb.ComposeApi +# koyeb.api.ComposeApi All URIs are relative to *https://app.koyeb.com* @@ -17,15 +17,15 @@ Create resources from compose. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.compose_reply import ComposeReply -from koyeb.models.create_compose import CreateCompose -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.compose_reply import ComposeReply +from koyeb.api.models.create_compose import CreateCompose +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,10 +41,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ComposeApi(api_client) - compose = koyeb.CreateCompose() # CreateCompose | + api_instance = koyeb.api.ComposeApi(api_client) + compose = koyeb.api.CreateCompose() # CreateCompose | try: # Create resources from compose. diff --git a/koyeb/docs/ComposeReply.md b/koyeb/api/docs/ComposeReply.md similarity index 93% rename from koyeb/docs/ComposeReply.md rename to koyeb/api/docs/ComposeReply.md index 9ec808cc..6292719c 100644 --- a/koyeb/docs/ComposeReply.md +++ b/koyeb/api/docs/ComposeReply.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.compose_reply import ComposeReply +from koyeb.api.models.compose_reply import ComposeReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ConfigFile.md b/koyeb/api/docs/ConfigFile.md similarity index 94% rename from koyeb/docs/ConfigFile.md rename to koyeb/api/docs/ConfigFile.md index f6d35cc9..184b5aa7 100644 --- a/koyeb/docs/ConfigFile.md +++ b/koyeb/api/docs/ConfigFile.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.config_file import ConfigFile +from koyeb.api.models.config_file import ConfigFile # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ConfirmPaymentAuthorizationReply.md b/koyeb/api/docs/ConfirmPaymentAuthorizationReply.md similarity index 91% rename from koyeb/docs/ConfirmPaymentAuthorizationReply.md rename to koyeb/api/docs/ConfirmPaymentAuthorizationReply.md index 7b2fe0a4..09a90a38 100644 --- a/koyeb/docs/ConfirmPaymentAuthorizationReply.md +++ b/koyeb/api/docs/ConfirmPaymentAuthorizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply +from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CouponsApi.md b/koyeb/api/docs/CouponsApi.md similarity index 87% rename from koyeb/docs/CouponsApi.md rename to koyeb/api/docs/CouponsApi.md index 001e1235..9a4de30c 100644 --- a/koyeb/docs/CouponsApi.md +++ b/koyeb/api/docs/CouponsApi.md @@ -1,4 +1,4 @@ -# koyeb.CouponsApi +# koyeb.api.CouponsApi All URIs are relative to *https://app.koyeb.com* @@ -19,14 +19,14 @@ This API allows to redeem a coupon. Pass the code you received in the body. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.redeem_coupon_request import RedeemCouponRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -42,10 +42,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CouponsApi(api_client) - body = koyeb.RedeemCouponRequest() # RedeemCouponRequest | + api_instance = koyeb.api.CouponsApi(api_client) + body = koyeb.api.RedeemCouponRequest() # RedeemCouponRequest | try: # Redeem Coupon diff --git a/koyeb/docs/CreateAccessTokenReply.md b/koyeb/api/docs/CreateAccessTokenReply.md similarity index 92% rename from koyeb/docs/CreateAccessTokenReply.md rename to koyeb/api/docs/CreateAccessTokenReply.md index 48c3cca2..6c582e59 100644 --- a/koyeb/docs/CreateAccessTokenReply.md +++ b/koyeb/api/docs/CreateAccessTokenReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_access_token_reply import CreateAccessTokenReply +from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateAccessTokenRequest.md b/koyeb/api/docs/CreateAccessTokenRequest.md similarity index 92% rename from koyeb/docs/CreateAccessTokenRequest.md rename to koyeb/api/docs/CreateAccessTokenRequest.md index deede70b..1b42628c 100644 --- a/koyeb/docs/CreateAccessTokenRequest.md +++ b/koyeb/api/docs/CreateAccessTokenRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_access_token_request import CreateAccessTokenRequest +from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateAccountRequest.md b/koyeb/api/docs/CreateAccountRequest.md similarity index 93% rename from koyeb/docs/CreateAccountRequest.md rename to koyeb/api/docs/CreateAccountRequest.md index 392c336e..ceca4593 100644 --- a/koyeb/docs/CreateAccountRequest.md +++ b/koyeb/api/docs/CreateAccountRequest.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_account_request import CreateAccountRequest +from koyeb.api.models.create_account_request import CreateAccountRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateApp.md b/koyeb/api/docs/CreateApp.md similarity index 93% rename from koyeb/docs/CreateApp.md rename to koyeb/api/docs/CreateApp.md index 9cb24afe..550756b2 100644 --- a/koyeb/docs/CreateApp.md +++ b/koyeb/api/docs/CreateApp.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_app import CreateApp +from koyeb.api.models.create_app import CreateApp # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateAppReply.md b/koyeb/api/docs/CreateAppReply.md similarity index 93% rename from koyeb/docs/CreateAppReply.md rename to koyeb/api/docs/CreateAppReply.md index 97ce31ce..ba3d7348 100644 --- a/koyeb/docs/CreateAppReply.md +++ b/koyeb/api/docs/CreateAppReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_app_reply import CreateAppReply +from koyeb.api.models.create_app_reply import CreateAppReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateArchive.md b/koyeb/api/docs/CreateArchive.md similarity index 93% rename from koyeb/docs/CreateArchive.md rename to koyeb/api/docs/CreateArchive.md index cf1051a4..a8aab2d1 100644 --- a/koyeb/docs/CreateArchive.md +++ b/koyeb/api/docs/CreateArchive.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_archive import CreateArchive +from koyeb.api.models.create_archive import CreateArchive # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateArchiveReply.md b/koyeb/api/docs/CreateArchiveReply.md similarity index 92% rename from koyeb/docs/CreateArchiveReply.md rename to koyeb/api/docs/CreateArchiveReply.md index 2c51e682..92e466c0 100644 --- a/koyeb/docs/CreateArchiveReply.md +++ b/koyeb/api/docs/CreateArchiveReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_archive_reply import CreateArchiveReply +from koyeb.api.models.create_archive_reply import CreateArchiveReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateBudgetReply.md b/koyeb/api/docs/CreateBudgetReply.md similarity index 92% rename from koyeb/docs/CreateBudgetReply.md rename to koyeb/api/docs/CreateBudgetReply.md index c2ca63eb..80fc8de4 100644 --- a/koyeb/docs/CreateBudgetReply.md +++ b/koyeb/api/docs/CreateBudgetReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_budget_reply import CreateBudgetReply +from koyeb.api.models.create_budget_reply import CreateBudgetReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateCompose.md b/koyeb/api/docs/CreateCompose.md similarity index 94% rename from koyeb/docs/CreateCompose.md rename to koyeb/api/docs/CreateCompose.md index 64671ff3..34c29524 100644 --- a/koyeb/docs/CreateCompose.md +++ b/koyeb/api/docs/CreateCompose.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_compose import CreateCompose +from koyeb.api.models.create_compose import CreateCompose # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateCredential.md b/koyeb/api/docs/CreateCredential.md similarity index 94% rename from koyeb/docs/CreateCredential.md rename to koyeb/api/docs/CreateCredential.md index 03223184..1124d83a 100644 --- a/koyeb/docs/CreateCredential.md +++ b/koyeb/api/docs/CreateCredential.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_credential import CreateCredential +from koyeb.api.models.create_credential import CreateCredential # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateCredentialReply.md b/koyeb/api/docs/CreateCredentialReply.md similarity index 92% rename from koyeb/docs/CreateCredentialReply.md rename to koyeb/api/docs/CreateCredentialReply.md index db6e6cf0..ca76943b 100644 --- a/koyeb/docs/CreateCredentialReply.md +++ b/koyeb/api/docs/CreateCredentialReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_credential_reply import CreateCredentialReply +from koyeb.api.models.create_credential_reply import CreateCredentialReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateDomain.md b/koyeb/api/docs/CreateDomain.md similarity index 95% rename from koyeb/docs/CreateDomain.md rename to koyeb/api/docs/CreateDomain.md index ad49bd16..d4ee6716 100644 --- a/koyeb/docs/CreateDomain.md +++ b/koyeb/api/docs/CreateDomain.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_domain import CreateDomain +from koyeb.api.models.create_domain import CreateDomain # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateDomainReply.md b/koyeb/api/docs/CreateDomainReply.md similarity index 92% rename from koyeb/docs/CreateDomainReply.md rename to koyeb/api/docs/CreateDomainReply.md index 80beca51..f149cd9d 100644 --- a/koyeb/docs/CreateDomainReply.md +++ b/koyeb/api/docs/CreateDomainReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_domain_reply import CreateDomainReply +from koyeb.api.models.create_domain_reply import CreateDomainReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateOrganizationInvitationReply.md b/koyeb/api/docs/CreateOrganizationInvitationReply.md similarity index 91% rename from koyeb/docs/CreateOrganizationInvitationReply.md rename to koyeb/api/docs/CreateOrganizationInvitationReply.md index bd32f567..dce90ed7 100644 --- a/koyeb/docs/CreateOrganizationInvitationReply.md +++ b/koyeb/api/docs/CreateOrganizationInvitationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_organization_invitation_reply import CreateOrganizationInvitationReply +from koyeb.api.models.create_organization_invitation_reply import CreateOrganizationInvitationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateOrganizationInvitationRequest.md b/koyeb/api/docs/CreateOrganizationInvitationRequest.md similarity index 91% rename from koyeb/docs/CreateOrganizationInvitationRequest.md rename to koyeb/api/docs/CreateOrganizationInvitationRequest.md index 9108e6cc..946d3804 100644 --- a/koyeb/docs/CreateOrganizationInvitationRequest.md +++ b/koyeb/api/docs/CreateOrganizationInvitationRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_organization_invitation_request import CreateOrganizationInvitationRequest +from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateOrganizationReply.md b/koyeb/api/docs/CreateOrganizationReply.md similarity index 92% rename from koyeb/docs/CreateOrganizationReply.md rename to koyeb/api/docs/CreateOrganizationReply.md index ea73d565..b570efff 100644 --- a/koyeb/docs/CreateOrganizationReply.md +++ b/koyeb/api/docs/CreateOrganizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_organization_reply import CreateOrganizationReply +from koyeb.api.models.create_organization_reply import CreateOrganizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateOrganizationRequest.md b/koyeb/api/docs/CreateOrganizationRequest.md similarity index 91% rename from koyeb/docs/CreateOrganizationRequest.md rename to koyeb/api/docs/CreateOrganizationRequest.md index e2b78a95..190351e3 100644 --- a/koyeb/docs/CreateOrganizationRequest.md +++ b/koyeb/api/docs/CreateOrganizationRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_organization_request import CreateOrganizationRequest +from koyeb.api.models.create_organization_request import CreateOrganizationRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreatePaymentAuthorizationReply.md b/koyeb/api/docs/CreatePaymentAuthorizationReply.md similarity index 91% rename from koyeb/docs/CreatePaymentAuthorizationReply.md rename to koyeb/api/docs/CreatePaymentAuthorizationReply.md index 2ab78563..ae8bdaaa 100644 --- a/koyeb/docs/CreatePaymentAuthorizationReply.md +++ b/koyeb/api/docs/CreatePaymentAuthorizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply +from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreatePersistentVolumeReply.md b/koyeb/api/docs/CreatePersistentVolumeReply.md similarity index 92% rename from koyeb/docs/CreatePersistentVolumeReply.md rename to koyeb/api/docs/CreatePersistentVolumeReply.md index 97dea7a2..e02014a5 100644 --- a/koyeb/docs/CreatePersistentVolumeReply.md +++ b/koyeb/api/docs/CreatePersistentVolumeReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_persistent_volume_reply import CreatePersistentVolumeReply +from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreatePersistentVolumeRequest.md b/koyeb/api/docs/CreatePersistentVolumeRequest.md similarity index 93% rename from koyeb/docs/CreatePersistentVolumeRequest.md rename to koyeb/api/docs/CreatePersistentVolumeRequest.md index 11ad8cb5..4a681a52 100644 --- a/koyeb/docs/CreatePersistentVolumeRequest.md +++ b/koyeb/api/docs/CreatePersistentVolumeRequest.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_persistent_volume_request import CreatePersistentVolumeRequest +from koyeb.api.models.create_persistent_volume_request import CreatePersistentVolumeRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateSecret.md b/koyeb/api/docs/CreateSecret.md similarity index 96% rename from koyeb/docs/CreateSecret.md rename to koyeb/api/docs/CreateSecret.md index 91f15752..dceb69b2 100644 --- a/koyeb/docs/CreateSecret.md +++ b/koyeb/api/docs/CreateSecret.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_secret import CreateSecret +from koyeb.api.models.create_secret import CreateSecret # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateSecretReply.md b/koyeb/api/docs/CreateSecretReply.md similarity index 92% rename from koyeb/docs/CreateSecretReply.md rename to koyeb/api/docs/CreateSecretReply.md index 65b8cd01..2f984158 100644 --- a/koyeb/docs/CreateSecretReply.md +++ b/koyeb/api/docs/CreateSecretReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_secret_reply import CreateSecretReply +from koyeb.api.models.create_secret_reply import CreateSecretReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateService.md b/koyeb/api/docs/CreateService.md similarity index 93% rename from koyeb/docs/CreateService.md rename to koyeb/api/docs/CreateService.md index f614a00f..5f34c5f3 100644 --- a/koyeb/docs/CreateService.md +++ b/koyeb/api/docs/CreateService.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_service import CreateService +from koyeb.api.models.create_service import CreateService # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateServiceReply.md b/koyeb/api/docs/CreateServiceReply.md similarity index 92% rename from koyeb/docs/CreateServiceReply.md rename to koyeb/api/docs/CreateServiceReply.md index a91c8673..6060100b 100644 --- a/koyeb/docs/CreateServiceReply.md +++ b/koyeb/api/docs/CreateServiceReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_service_reply import CreateServiceReply +from koyeb.api.models.create_service_reply import CreateServiceReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateSnapshotReply.md b/koyeb/api/docs/CreateSnapshotReply.md similarity index 92% rename from koyeb/docs/CreateSnapshotReply.md rename to koyeb/api/docs/CreateSnapshotReply.md index b5a94352..798f6481 100644 --- a/koyeb/docs/CreateSnapshotReply.md +++ b/koyeb/api/docs/CreateSnapshotReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_snapshot_reply import CreateSnapshotReply +from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateSnapshotRequest.md b/koyeb/api/docs/CreateSnapshotRequest.md similarity index 92% rename from koyeb/docs/CreateSnapshotRequest.md rename to koyeb/api/docs/CreateSnapshotRequest.md index 0d3b418e..473999ce 100644 --- a/koyeb/docs/CreateSnapshotRequest.md +++ b/koyeb/api/docs/CreateSnapshotRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_snapshot_request import CreateSnapshotRequest +from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CreateStageAttemptRequest.md b/koyeb/api/docs/CreateStageAttemptRequest.md similarity index 93% rename from koyeb/docs/CreateStageAttemptRequest.md rename to koyeb/api/docs/CreateStageAttemptRequest.md index cec7ce31..aab95efa 100644 --- a/koyeb/docs/CreateStageAttemptRequest.md +++ b/koyeb/api/docs/CreateStageAttemptRequest.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.create_stage_attempt_request import CreateStageAttemptRequest +from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Credential.md b/koyeb/api/docs/Credential.md similarity index 95% rename from koyeb/docs/Credential.md rename to koyeb/api/docs/Credential.md index 1e6af8f2..12f11b94 100644 --- a/koyeb/docs/Credential.md +++ b/koyeb/api/docs/Credential.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.credential import Credential +from koyeb.api.models.credential import Credential # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/CredentialType.md b/koyeb/api/docs/CredentialType.md similarity index 100% rename from koyeb/docs/CredentialType.md rename to koyeb/api/docs/CredentialType.md diff --git a/koyeb/docs/CredentialsApi.md b/koyeb/api/docs/CredentialsApi.md similarity index 89% rename from koyeb/docs/CredentialsApi.md rename to koyeb/api/docs/CredentialsApi.md index 759ed453..06bedb58 100644 --- a/koyeb/docs/CredentialsApi.md +++ b/koyeb/api/docs/CredentialsApi.md @@ -1,4 +1,4 @@ -# koyeb.CredentialsApi +# koyeb.api.CredentialsApi All URIs are relative to *https://app.koyeb.com* @@ -22,15 +22,15 @@ Create credential * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_credential import CreateCredential -from koyeb.models.create_credential_reply import CreateCredentialReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_credential import CreateCredential +from koyeb.api.models.create_credential_reply import CreateCredentialReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -46,10 +46,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CredentialsApi(api_client) - credential = koyeb.CreateCredential() # CreateCredential | + api_instance = koyeb.api.CredentialsApi(api_client) + credential = koyeb.api.CreateCredential() # CreateCredential | try: # Create credential @@ -107,13 +107,13 @@ Delete credential * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -129,9 +129,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CredentialsApi(api_client) + api_instance = koyeb.api.CredentialsApi(api_client) id = 'id_example' # str | try: @@ -190,14 +190,14 @@ Get credential * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_credential_reply import GetCredentialReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_credential_reply import GetCredentialReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -213,9 +213,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CredentialsApi(api_client) + api_instance = koyeb.api.CredentialsApi(api_client) id = 'id_example' # str | try: @@ -274,14 +274,14 @@ List credentials * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_credentials_reply import ListCredentialsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_credentials_reply import ListCredentialsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -297,9 +297,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CredentialsApi(api_client) + api_instance = koyeb.api.CredentialsApi(api_client) type = INVALID # str | (Optional) A filter for type (optional) (default to INVALID) name = 'name_example' # str | (Optional) A filter for name (optional) organization_id = 'organization_id_example' # str | (Optional) Filter for an organization (optional) @@ -368,15 +368,15 @@ Update credential * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.credential import Credential -from koyeb.models.update_credential_reply import UpdateCredentialReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.credential import Credential +from koyeb.api.models.update_credential_reply import UpdateCredentialReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -392,11 +392,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CredentialsApi(api_client) + api_instance = koyeb.api.CredentialsApi(api_client) id = 'id_example' # str | - credential = koyeb.Credential() # Credential | + credential = koyeb.api.Credential() # Credential | update_mask = 'update_mask_example' # str | (optional) try: @@ -457,15 +457,15 @@ Update credential * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.credential import Credential -from koyeb.models.update_credential_reply import UpdateCredentialReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.credential import Credential +from koyeb.api.models.update_credential_reply import UpdateCredentialReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -481,11 +481,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.CredentialsApi(api_client) + api_instance = koyeb.api.CredentialsApi(api_client) id = 'id_example' # str | - credential = koyeb.Credential() # Credential | + credential = koyeb.api.Credential() # Credential | update_mask = 'update_mask_example' # str | (optional) try: diff --git a/koyeb/docs/DatabaseDeploymentMetadata.md b/koyeb/api/docs/DatabaseDeploymentMetadata.md similarity index 92% rename from koyeb/docs/DatabaseDeploymentMetadata.md rename to koyeb/api/docs/DatabaseDeploymentMetadata.md index 1da88f3b..c4cc6111 100644 --- a/koyeb/docs/DatabaseDeploymentMetadata.md +++ b/koyeb/api/docs/DatabaseDeploymentMetadata.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.database_deployment_metadata import DatabaseDeploymentMetadata +from koyeb.api.models.database_deployment_metadata import DatabaseDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DatabaseRolePassword.md b/koyeb/api/docs/DatabaseRolePassword.md similarity index 92% rename from koyeb/docs/DatabaseRolePassword.md rename to koyeb/api/docs/DatabaseRolePassword.md index 7f365e82..185c72ab 100644 --- a/koyeb/docs/DatabaseRolePassword.md +++ b/koyeb/api/docs/DatabaseRolePassword.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.database_role_password import DatabaseRolePassword +from koyeb.api.models.database_role_password import DatabaseRolePassword # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DatabaseSource.md b/koyeb/api/docs/DatabaseSource.md similarity index 93% rename from koyeb/docs/DatabaseSource.md rename to koyeb/api/docs/DatabaseSource.md index bfc55acf..945575ee 100644 --- a/koyeb/docs/DatabaseSource.md +++ b/koyeb/api/docs/DatabaseSource.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.database_source import DatabaseSource +from koyeb.api.models.database_source import DatabaseSource # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DatabaseUsage.md b/koyeb/api/docs/DatabaseUsage.md similarity index 94% rename from koyeb/docs/DatabaseUsage.md rename to koyeb/api/docs/DatabaseUsage.md index 3079d186..f7041dca 100644 --- a/koyeb/docs/DatabaseUsage.md +++ b/koyeb/api/docs/DatabaseUsage.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.database_usage import DatabaseUsage +from koyeb.api.models.database_usage import DatabaseUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DatabaseUsageDetails.md b/koyeb/api/docs/DatabaseUsageDetails.md similarity index 94% rename from koyeb/docs/DatabaseUsageDetails.md rename to koyeb/api/docs/DatabaseUsageDetails.md index bc2d533f..05602a85 100644 --- a/koyeb/docs/DatabaseUsageDetails.md +++ b/koyeb/api/docs/DatabaseUsageDetails.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.database_usage_details import DatabaseUsageDetails +from koyeb.api.models.database_usage_details import DatabaseUsageDetails # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DatacenterListItem.md b/koyeb/api/docs/DatacenterListItem.md similarity index 94% rename from koyeb/docs/DatacenterListItem.md rename to koyeb/api/docs/DatacenterListItem.md index 85343d0b..b69d840c 100644 --- a/koyeb/docs/DatacenterListItem.md +++ b/koyeb/api/docs/DatacenterListItem.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.datacenter_list_item import DatacenterListItem +from koyeb.api.models.datacenter_list_item import DatacenterListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeactivateOrganizationReply.md b/koyeb/api/docs/DeactivateOrganizationReply.md similarity index 92% rename from koyeb/docs/DeactivateOrganizationReply.md rename to koyeb/api/docs/DeactivateOrganizationReply.md index cb7743c9..741e7fcf 100644 --- a/koyeb/docs/DeactivateOrganizationReply.md +++ b/koyeb/api/docs/DeactivateOrganizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deactivate_organization_reply import DeactivateOrganizationReply +from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeactivateOrganizationRequest.md b/koyeb/api/docs/DeactivateOrganizationRequest.md similarity index 92% rename from koyeb/docs/DeactivateOrganizationRequest.md rename to koyeb/api/docs/DeactivateOrganizationRequest.md index b8a75809..8e648b46 100644 --- a/koyeb/docs/DeactivateOrganizationRequest.md +++ b/koyeb/api/docs/DeactivateOrganizationRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deactivate_organization_request import DeactivateOrganizationRequest +from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeclareStageProgressRequest.md b/koyeb/api/docs/DeclareStageProgressRequest.md similarity index 94% rename from koyeb/docs/DeclareStageProgressRequest.md rename to koyeb/api/docs/DeclareStageProgressRequest.md index 4272dec8..0093ab6c 100644 --- a/koyeb/docs/DeclareStageProgressRequest.md +++ b/koyeb/api/docs/DeclareStageProgressRequest.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.declare_stage_progress_request import DeclareStageProgressRequest +from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeclareStepProgressRequest.md b/koyeb/api/docs/DeclareStepProgressRequest.md similarity index 93% rename from koyeb/docs/DeclareStepProgressRequest.md rename to koyeb/api/docs/DeclareStepProgressRequest.md index fc03045b..a73026bf 100644 --- a/koyeb/docs/DeclareStepProgressRequest.md +++ b/koyeb/api/docs/DeclareStepProgressRequest.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.declare_step_progress_request import DeclareStepProgressRequest +from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeclineOrganizationInvitationReply.md b/koyeb/api/docs/DeclineOrganizationInvitationReply.md similarity index 91% rename from koyeb/docs/DeclineOrganizationInvitationReply.md rename to koyeb/api/docs/DeclineOrganizationInvitationReply.md index bfba37bc..16b05290 100644 --- a/koyeb/docs/DeclineOrganizationInvitationReply.md +++ b/koyeb/api/docs/DeclineOrganizationInvitationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply +from koyeb.api.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeleteOrganizationReply.md b/koyeb/api/docs/DeleteOrganizationReply.md similarity index 92% rename from koyeb/docs/DeleteOrganizationReply.md rename to koyeb/api/docs/DeleteOrganizationReply.md index e6b164be..59eed93c 100644 --- a/koyeb/docs/DeleteOrganizationReply.md +++ b/koyeb/api/docs/DeleteOrganizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.delete_organization_reply import DeleteOrganizationReply +from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeletePersistentVolumeReply.md b/koyeb/api/docs/DeletePersistentVolumeReply.md similarity index 92% rename from koyeb/docs/DeletePersistentVolumeReply.md rename to koyeb/api/docs/DeletePersistentVolumeReply.md index c35af831..8ae0f4cc 100644 --- a/koyeb/docs/DeletePersistentVolumeReply.md +++ b/koyeb/api/docs/DeletePersistentVolumeReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.delete_persistent_volume_reply import DeletePersistentVolumeReply +from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeleteSnapshotReply.md b/koyeb/api/docs/DeleteSnapshotReply.md similarity index 92% rename from koyeb/docs/DeleteSnapshotReply.md rename to koyeb/api/docs/DeleteSnapshotReply.md index b739086c..8eefcb97 100644 --- a/koyeb/docs/DeleteSnapshotReply.md +++ b/koyeb/api/docs/DeleteSnapshotReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.delete_snapshot_reply import DeleteSnapshotReply +from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeleteUserReply.md b/koyeb/api/docs/DeleteUserReply.md similarity index 93% rename from koyeb/docs/DeleteUserReply.md rename to koyeb/api/docs/DeleteUserReply.md index fa9c7153..3a92f13e 100644 --- a/koyeb/docs/DeleteUserReply.md +++ b/koyeb/api/docs/DeleteUserReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.delete_user_reply import DeleteUserReply +from koyeb.api.models.delete_user_reply import DeleteUserReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Deployment.md b/koyeb/api/docs/Deployment.md similarity index 97% rename from koyeb/docs/Deployment.md rename to koyeb/api/docs/Deployment.md index 1712c445..65137e15 100644 --- a/koyeb/docs/Deployment.md +++ b/koyeb/api/docs/Deployment.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment import Deployment +from koyeb.api.models.deployment import Deployment # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentDatabaseInfo.md b/koyeb/api/docs/DeploymentDatabaseInfo.md similarity index 92% rename from koyeb/docs/DeploymentDatabaseInfo.md rename to koyeb/api/docs/DeploymentDatabaseInfo.md index 3506c283..0835e227 100644 --- a/koyeb/docs/DeploymentDatabaseInfo.md +++ b/koyeb/api/docs/DeploymentDatabaseInfo.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_database_info import DeploymentDatabaseInfo +from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentDefinition.md b/koyeb/api/docs/DeploymentDefinition.md similarity index 89% rename from koyeb/docs/DeploymentDefinition.md rename to koyeb/api/docs/DeploymentDefinition.md index e50a8638..4285f636 100644 --- a/koyeb/docs/DeploymentDefinition.md +++ b/koyeb/api/docs/DeploymentDefinition.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**type** | [**DeploymentDefinitionType**](DeploymentDefinitionType.md) | | [default to DeploymentDefinitionType.INVALID] +**type** | [**DeploymentDefinitionType**](DeploymentDefinitionType.md) | | [optional] [default to DeploymentDefinitionType.INVALID] **strategy** | [**DeploymentStrategy**](DeploymentStrategy.md) | | [optional] **routes** | [**List[DeploymentRoute]**](DeploymentRoute.md) | | [optional] **ports** | [**List[DeploymentPort]**](DeploymentPort.md) | | [optional] **proxy_ports** | [**List[DeploymentProxyPort]**](DeploymentProxyPort.md) | | [optional] **env** | [**List[DeploymentEnv]**](DeploymentEnv.md) | | [optional] -**regions** | **List[str]** | | -**scalings** | [**List[DeploymentScaling]**](DeploymentScaling.md) | | -**instance_types** | [**List[DeploymentInstanceType]**](DeploymentInstanceType.md) | | +**regions** | **List[str]** | | [optional] +**scalings** | [**List[DeploymentScaling]**](DeploymentScaling.md) | | [optional] +**instance_types** | [**List[DeploymentInstanceType]**](DeploymentInstanceType.md) | | [optional] **health_checks** | [**List[DeploymentHealthCheck]**](DeploymentHealthCheck.md) | | [optional] **volumes** | [**List[DeploymentVolume]**](DeploymentVolume.md) | | [optional] **config_files** | [**List[ConfigFile]**](ConfigFile.md) | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_definition import DeploymentDefinition # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentDefinitionType.md b/koyeb/api/docs/DeploymentDefinitionType.md similarity index 100% rename from koyeb/docs/DeploymentDefinitionType.md rename to koyeb/api/docs/DeploymentDefinitionType.md diff --git a/koyeb/docs/DeploymentEnv.md b/koyeb/api/docs/DeploymentEnv.md similarity index 94% rename from koyeb/docs/DeploymentEnv.md rename to koyeb/api/docs/DeploymentEnv.md index a8c3ad52..6bdf939e 100644 --- a/koyeb/docs/DeploymentEnv.md +++ b/koyeb/api/docs/DeploymentEnv.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_env import DeploymentEnv +from koyeb.api.models.deployment_env import DeploymentEnv # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentEvent.md b/koyeb/api/docs/DeploymentEvent.md similarity index 94% rename from koyeb/docs/DeploymentEvent.md rename to koyeb/api/docs/DeploymentEvent.md index b769ebd5..b5f58479 100644 --- a/koyeb/docs/DeploymentEvent.md +++ b/koyeb/api/docs/DeploymentEvent.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_event import DeploymentEvent +from koyeb.api.models.deployment_event import DeploymentEvent # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentHealthCheck.md b/koyeb/api/docs/DeploymentHealthCheck.md similarity index 94% rename from koyeb/docs/DeploymentHealthCheck.md rename to koyeb/api/docs/DeploymentHealthCheck.md index 9ee68b14..76fd7e36 100644 --- a/koyeb/docs/DeploymentHealthCheck.md +++ b/koyeb/api/docs/DeploymentHealthCheck.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_health_check import DeploymentHealthCheck +from koyeb.api.models.deployment_health_check import DeploymentHealthCheck # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentInstanceType.md b/koyeb/api/docs/DeploymentInstanceType.md similarity index 92% rename from koyeb/docs/DeploymentInstanceType.md rename to koyeb/api/docs/DeploymentInstanceType.md index af829d37..d38d2635 100644 --- a/koyeb/docs/DeploymentInstanceType.md +++ b/koyeb/api/docs/DeploymentInstanceType.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_instance_type import DeploymentInstanceType +from koyeb.api.models.deployment_instance_type import DeploymentInstanceType # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentListItem.md b/koyeb/api/docs/DeploymentListItem.md similarity index 96% rename from koyeb/docs/DeploymentListItem.md rename to koyeb/api/docs/DeploymentListItem.md index 53265e6e..bdd25f8b 100644 --- a/koyeb/docs/DeploymentListItem.md +++ b/koyeb/api/docs/DeploymentListItem.md @@ -29,7 +29,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_list_item import DeploymentListItem +from koyeb.api.models.deployment_list_item import DeploymentListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentMetadata.md b/koyeb/api/docs/DeploymentMetadata.md similarity index 95% rename from koyeb/docs/DeploymentMetadata.md rename to koyeb/api/docs/DeploymentMetadata.md index 9623c60a..74302a25 100644 --- a/koyeb/docs/DeploymentMetadata.md +++ b/koyeb/api/docs/DeploymentMetadata.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_metadata import DeploymentMetadata +from koyeb.api.models.deployment_metadata import DeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentNeonPostgresDatabaseInfo.md b/koyeb/api/docs/DeploymentNeonPostgresDatabaseInfo.md similarity index 94% rename from koyeb/docs/DeploymentNeonPostgresDatabaseInfo.md rename to koyeb/api/docs/DeploymentNeonPostgresDatabaseInfo.md index 9089e310..aeb0b7db 100644 --- a/koyeb/docs/DeploymentNeonPostgresDatabaseInfo.md +++ b/koyeb/api/docs/DeploymentNeonPostgresDatabaseInfo.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo +from koyeb.api.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentNeonPostgresDatabaseInfoRole.md b/koyeb/api/docs/DeploymentNeonPostgresDatabaseInfoRole.md similarity index 91% rename from koyeb/docs/DeploymentNeonPostgresDatabaseInfoRole.md rename to koyeb/api/docs/DeploymentNeonPostgresDatabaseInfoRole.md index f7e72f12..fabe51dc 100644 --- a/koyeb/docs/DeploymentNeonPostgresDatabaseInfoRole.md +++ b/koyeb/api/docs/DeploymentNeonPostgresDatabaseInfoRole.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole +from koyeb.api.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentPort.md b/koyeb/api/docs/DeploymentPort.md similarity index 93% rename from koyeb/docs/DeploymentPort.md rename to koyeb/api/docs/DeploymentPort.md index 1dc3b7b9..cca36442 100644 --- a/koyeb/docs/DeploymentPort.md +++ b/koyeb/api/docs/DeploymentPort.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_port import DeploymentPort +from koyeb.api.models.deployment_port import DeploymentPort # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentProvisioningInfo.md b/koyeb/api/docs/DeploymentProvisioningInfo.md similarity index 93% rename from koyeb/docs/DeploymentProvisioningInfo.md rename to koyeb/api/docs/DeploymentProvisioningInfo.md index 29b057b3..04a205e8 100644 --- a/koyeb/docs/DeploymentProvisioningInfo.md +++ b/koyeb/api/docs/DeploymentProvisioningInfo.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_provisioning_info import DeploymentProvisioningInfo +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentProvisioningInfoStage.md b/koyeb/api/docs/DeploymentProvisioningInfoStage.md similarity index 93% rename from koyeb/docs/DeploymentProvisioningInfoStage.md rename to koyeb/api/docs/DeploymentProvisioningInfoStage.md index faf8b88a..4540749a 100644 --- a/koyeb/docs/DeploymentProvisioningInfoStage.md +++ b/koyeb/api/docs/DeploymentProvisioningInfoStage.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage +from koyeb.api.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentProvisioningInfoStageBuildAttempt.md b/koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttempt.md similarity index 94% rename from koyeb/docs/DeploymentProvisioningInfoStageBuildAttempt.md rename to koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttempt.md index 284d60ee..ef56a517 100644 --- a/koyeb/docs/DeploymentProvisioningInfoStageBuildAttempt.md +++ b/koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttempt.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md b/koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md similarity index 91% rename from koyeb/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md rename to koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md index 6de9126e..0853886e 100644 --- a/koyeb/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md +++ b/koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentProvisioningInfoStageStatus.md b/koyeb/api/docs/DeploymentProvisioningInfoStageStatus.md similarity index 100% rename from koyeb/docs/DeploymentProvisioningInfoStageStatus.md rename to koyeb/api/docs/DeploymentProvisioningInfoStageStatus.md diff --git a/koyeb/docs/DeploymentProxyPort.md b/koyeb/api/docs/DeploymentProxyPort.md similarity index 93% rename from koyeb/docs/DeploymentProxyPort.md rename to koyeb/api/docs/DeploymentProxyPort.md index bbcbce87..0c882e98 100644 --- a/koyeb/docs/DeploymentProxyPort.md +++ b/koyeb/api/docs/DeploymentProxyPort.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_proxy_port import DeploymentProxyPort +from koyeb.api.models.deployment_proxy_port import DeploymentProxyPort # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentProxyPortMetadata.md b/koyeb/api/docs/DeploymentProxyPortMetadata.md similarity index 92% rename from koyeb/docs/DeploymentProxyPortMetadata.md rename to koyeb/api/docs/DeploymentProxyPortMetadata.md index a0d8a3ce..b6cce98d 100644 --- a/koyeb/docs/DeploymentProxyPortMetadata.md +++ b/koyeb/api/docs/DeploymentProxyPortMetadata.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata +from koyeb.api.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentRole.md b/koyeb/api/docs/DeploymentRole.md similarity index 100% rename from koyeb/docs/DeploymentRole.md rename to koyeb/api/docs/DeploymentRole.md diff --git a/koyeb/docs/DeploymentRoute.md b/koyeb/api/docs/DeploymentRoute.md similarity index 93% rename from koyeb/docs/DeploymentRoute.md rename to koyeb/api/docs/DeploymentRoute.md index c88dbb41..85b084ef 100644 --- a/koyeb/docs/DeploymentRoute.md +++ b/koyeb/api/docs/DeploymentRoute.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_route import DeploymentRoute +from koyeb.api.models.deployment_route import DeploymentRoute # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScaling.md b/koyeb/api/docs/DeploymentScaling.md similarity index 93% rename from koyeb/docs/DeploymentScaling.md rename to koyeb/api/docs/DeploymentScaling.md index 1b4ec4e1..765fcfce 100644 --- a/koyeb/docs/DeploymentScaling.md +++ b/koyeb/api/docs/DeploymentScaling.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling import DeploymentScaling +from koyeb.api.models.deployment_scaling import DeploymentScaling # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTarget.md b/koyeb/api/docs/DeploymentScalingTarget.md similarity index 95% rename from koyeb/docs/DeploymentScalingTarget.md rename to koyeb/api/docs/DeploymentScalingTarget.md index d5116e0a..5e2d8f7f 100644 --- a/koyeb/docs/DeploymentScalingTarget.md +++ b/koyeb/api/docs/DeploymentScalingTarget.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target import DeploymentScalingTarget +from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTargetAverageCPU.md b/koyeb/api/docs/DeploymentScalingTargetAverageCPU.md similarity index 91% rename from koyeb/docs/DeploymentScalingTargetAverageCPU.md rename to koyeb/api/docs/DeploymentScalingTargetAverageCPU.md index cfeb51fe..774210ea 100644 --- a/koyeb/docs/DeploymentScalingTargetAverageCPU.md +++ b/koyeb/api/docs/DeploymentScalingTargetAverageCPU.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU +from koyeb.api.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTargetAverageMem.md b/koyeb/api/docs/DeploymentScalingTargetAverageMem.md similarity index 91% rename from koyeb/docs/DeploymentScalingTargetAverageMem.md rename to koyeb/api/docs/DeploymentScalingTargetAverageMem.md index 00904d46..31d4616d 100644 --- a/koyeb/docs/DeploymentScalingTargetAverageMem.md +++ b/koyeb/api/docs/DeploymentScalingTargetAverageMem.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem +from koyeb.api.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTargetConcurrentRequests.md b/koyeb/api/docs/DeploymentScalingTargetConcurrentRequests.md similarity index 90% rename from koyeb/docs/DeploymentScalingTargetConcurrentRequests.md rename to koyeb/api/docs/DeploymentScalingTargetConcurrentRequests.md index 4454f084..4518fcb0 100644 --- a/koyeb/docs/DeploymentScalingTargetConcurrentRequests.md +++ b/koyeb/api/docs/DeploymentScalingTargetConcurrentRequests.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests +from koyeb.api.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTargetRequestsPerSecond.md b/koyeb/api/docs/DeploymentScalingTargetRequestsPerSecond.md similarity index 90% rename from koyeb/docs/DeploymentScalingTargetRequestsPerSecond.md rename to koyeb/api/docs/DeploymentScalingTargetRequestsPerSecond.md index 897d2194..36bc4666 100644 --- a/koyeb/docs/DeploymentScalingTargetRequestsPerSecond.md +++ b/koyeb/api/docs/DeploymentScalingTargetRequestsPerSecond.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond +from koyeb.api.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTargetRequestsResponseTime.md b/koyeb/api/docs/DeploymentScalingTargetRequestsResponseTime.md similarity index 91% rename from koyeb/docs/DeploymentScalingTargetRequestsResponseTime.md rename to koyeb/api/docs/DeploymentScalingTargetRequestsResponseTime.md index 353df101..91319ddf 100644 --- a/koyeb/docs/DeploymentScalingTargetRequestsResponseTime.md +++ b/koyeb/api/docs/DeploymentScalingTargetRequestsResponseTime.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime +from koyeb.api.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentScalingTargetSleepIdleDelay.md b/koyeb/api/docs/DeploymentScalingTargetSleepIdleDelay.md similarity index 93% rename from koyeb/docs/DeploymentScalingTargetSleepIdleDelay.md rename to koyeb/api/docs/DeploymentScalingTargetSleepIdleDelay.md index 9de987c3..c1e6f34f 100644 --- a/koyeb/docs/DeploymentScalingTargetSleepIdleDelay.md +++ b/koyeb/api/docs/DeploymentScalingTargetSleepIdleDelay.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay +from koyeb.api.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentStatus.md b/koyeb/api/docs/DeploymentStatus.md similarity index 100% rename from koyeb/docs/DeploymentStatus.md rename to koyeb/api/docs/DeploymentStatus.md diff --git a/koyeb/docs/DeploymentStrategy.md b/koyeb/api/docs/DeploymentStrategy.md similarity index 93% rename from koyeb/docs/DeploymentStrategy.md rename to koyeb/api/docs/DeploymentStrategy.md index 5bc83b4f..9b8896f9 100644 --- a/koyeb/docs/DeploymentStrategy.md +++ b/koyeb/api/docs/DeploymentStrategy.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_strategy import DeploymentStrategy +from koyeb.api.models.deployment_strategy import DeploymentStrategy # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentStrategyType.md b/koyeb/api/docs/DeploymentStrategyType.md similarity index 100% rename from koyeb/docs/DeploymentStrategyType.md rename to koyeb/api/docs/DeploymentStrategyType.md diff --git a/koyeb/docs/DeploymentVolume.md b/koyeb/api/docs/DeploymentVolume.md similarity index 93% rename from koyeb/docs/DeploymentVolume.md rename to koyeb/api/docs/DeploymentVolume.md index 608be9da..8e20e6e6 100644 --- a/koyeb/docs/DeploymentVolume.md +++ b/koyeb/api/docs/DeploymentVolume.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.deployment_volume import DeploymentVolume +from koyeb.api.models.deployment_volume import DeploymentVolume # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DeploymentsApi.md b/koyeb/api/docs/DeploymentsApi.md similarity index 91% rename from koyeb/docs/DeploymentsApi.md rename to koyeb/api/docs/DeploymentsApi.md index 2b4a705e..35f1bb37 100644 --- a/koyeb/docs/DeploymentsApi.md +++ b/koyeb/api/docs/DeploymentsApi.md @@ -1,4 +1,4 @@ -# koyeb.DeploymentsApi +# koyeb.api.DeploymentsApi All URIs are relative to *https://app.koyeb.com* @@ -26,13 +26,13 @@ Deployment cancellation is allowed for the following status: * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -48,9 +48,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DeploymentsApi(api_client) + api_instance = koyeb.api.DeploymentsApi(api_client) id = 'id_example' # str | The id of the deployment to cancel. try: @@ -109,14 +109,14 @@ Get Deployment * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_deployment_reply import GetDeploymentReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_deployment_reply import GetDeploymentReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -132,9 +132,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DeploymentsApi(api_client) + api_instance = koyeb.api.DeploymentsApi(api_client) id = 'id_example' # str | The id of the deployment try: @@ -193,14 +193,14 @@ Get Deployment Scaling * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_deployment_scaling_reply import GetDeploymentScalingReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -216,9 +216,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DeploymentsApi(api_client) + api_instance = koyeb.api.DeploymentsApi(api_client) id = 'id_example' # str | region = 'region_example' # str | (Optional) Filter on region (optional) replica_index = 56 # int | (Optional) Filter on replica_index (optional) @@ -281,14 +281,14 @@ List Deployment events * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_deployment_events_reply import ListDeploymentEventsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -304,9 +304,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DeploymentsApi(api_client) + api_instance = koyeb.api.DeploymentsApi(api_client) deployment_id = 'deployment_id_example' # str | (Optional) Filter on deployment id (optional) types = ['types_example'] # List[str] | (Optional) Filter on deployment event types (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) @@ -373,14 +373,14 @@ List Deployments * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_deployments_reply import ListDeploymentsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_deployments_reply import ListDeploymentsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -396,9 +396,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DeploymentsApi(api_client) + api_instance = koyeb.api.DeploymentsApi(api_client) app_id = 'app_id_example' # str | (Optional) Filter on application id (optional) service_id = 'service_id_example' # str | (Optional) Filter on service id (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) diff --git a/koyeb/docs/DesiredDeployment.md b/koyeb/api/docs/DesiredDeployment.md similarity index 93% rename from koyeb/docs/DesiredDeployment.md rename to koyeb/api/docs/DesiredDeployment.md index 958cc64d..07fa9758 100644 --- a/koyeb/docs/DesiredDeployment.md +++ b/koyeb/api/docs/DesiredDeployment.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.desired_deployment import DesiredDeployment +from koyeb.api.models.desired_deployment import DesiredDeployment # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DesiredDeploymentGroup.md b/koyeb/api/docs/DesiredDeploymentGroup.md similarity index 92% rename from koyeb/docs/DesiredDeploymentGroup.md rename to koyeb/api/docs/DesiredDeploymentGroup.md index 0cb030db..fef66a58 100644 --- a/koyeb/docs/DesiredDeploymentGroup.md +++ b/koyeb/api/docs/DesiredDeploymentGroup.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.desired_deployment_group import DesiredDeploymentGroup +from koyeb.api.models.desired_deployment_group import DesiredDeploymentGroup # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DigitalOceanRegistryConfiguration.md b/koyeb/api/docs/DigitalOceanRegistryConfiguration.md similarity index 91% rename from koyeb/docs/DigitalOceanRegistryConfiguration.md rename to koyeb/api/docs/DigitalOceanRegistryConfiguration.md index 06deb394..85b014fb 100644 --- a/koyeb/docs/DigitalOceanRegistryConfiguration.md +++ b/koyeb/api/docs/DigitalOceanRegistryConfiguration.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration +from koyeb.api.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DiscourseAuthReply.md b/koyeb/api/docs/DiscourseAuthReply.md similarity index 92% rename from koyeb/docs/DiscourseAuthReply.md rename to koyeb/api/docs/DiscourseAuthReply.md index 38a39912..e239969f 100644 --- a/koyeb/docs/DiscourseAuthReply.md +++ b/koyeb/api/docs/DiscourseAuthReply.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.discourse_auth_reply import DiscourseAuthReply +from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DiscourseAuthRequest.md b/koyeb/api/docs/DiscourseAuthRequest.md similarity index 92% rename from koyeb/docs/DiscourseAuthRequest.md rename to koyeb/api/docs/DiscourseAuthRequest.md index 061d2248..5e4b7354 100644 --- a/koyeb/docs/DiscourseAuthRequest.md +++ b/koyeb/api/docs/DiscourseAuthRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.discourse_auth_request import DiscourseAuthRequest +from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DockerBuilder.md b/koyeb/api/docs/DockerBuilder.md similarity index 94% rename from koyeb/docs/DockerBuilder.md rename to koyeb/api/docs/DockerBuilder.md index 3896781d..d70eaece 100644 --- a/koyeb/docs/DockerBuilder.md +++ b/koyeb/api/docs/DockerBuilder.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.docker_builder import DockerBuilder +from koyeb.api.models.docker_builder import DockerBuilder # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DockerHelperApi.md b/koyeb/api/docs/DockerHelperApi.md similarity index 90% rename from koyeb/docs/DockerHelperApi.md rename to koyeb/api/docs/DockerHelperApi.md index 905453a5..38fb22cf 100644 --- a/koyeb/docs/DockerHelperApi.md +++ b/koyeb/api/docs/DockerHelperApi.md @@ -1,4 +1,4 @@ -# koyeb.DockerHelperApi +# koyeb.api.DockerHelperApi All URIs are relative to *https://app.koyeb.com* @@ -19,14 +19,14 @@ Verify if a docker image is reachable * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.verify_docker_image_reply import VerifyDockerImageReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -42,9 +42,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DockerHelperApi(api_client) + api_instance = koyeb.api.DockerHelperApi(api_client) image = 'image_example' # str | The full image uri to be verified (optional) secret_id = 'secret_id_example' # str | (Optional) the id of the secret to use to authenticate to the registry (optional) diff --git a/koyeb/docs/DockerHubRegistryConfiguration.md b/koyeb/api/docs/DockerHubRegistryConfiguration.md similarity index 91% rename from koyeb/docs/DockerHubRegistryConfiguration.md rename to koyeb/api/docs/DockerHubRegistryConfiguration.md index 4d108502..c5b80f4b 100644 --- a/koyeb/docs/DockerHubRegistryConfiguration.md +++ b/koyeb/api/docs/DockerHubRegistryConfiguration.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration +from koyeb.api.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DockerSource.md b/koyeb/api/docs/DockerSource.md similarity index 94% rename from koyeb/docs/DockerSource.md rename to koyeb/api/docs/DockerSource.md index 6003b0bf..6d74b682 100644 --- a/koyeb/docs/DockerSource.md +++ b/koyeb/api/docs/DockerSource.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.docker_source import DockerSource +from koyeb.api.models.docker_source import DockerSource # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Domain.md b/koyeb/api/docs/Domain.md similarity index 97% rename from koyeb/docs/Domain.md rename to koyeb/api/docs/Domain.md index bc9b218f..ea07fdfa 100644 --- a/koyeb/docs/Domain.md +++ b/koyeb/api/docs/Domain.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.domain import Domain +from koyeb.api.models.domain import Domain # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DomainLoadBalancerKoyeb.md b/koyeb/api/docs/DomainLoadBalancerKoyeb.md similarity index 92% rename from koyeb/docs/DomainLoadBalancerKoyeb.md rename to koyeb/api/docs/DomainLoadBalancerKoyeb.md index d1d77d25..5a59b8e8 100644 --- a/koyeb/docs/DomainLoadBalancerKoyeb.md +++ b/koyeb/api/docs/DomainLoadBalancerKoyeb.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb +from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DomainLoadBalancerQuotas.md b/koyeb/api/docs/DomainLoadBalancerQuotas.md similarity index 92% rename from koyeb/docs/DomainLoadBalancerQuotas.md rename to koyeb/api/docs/DomainLoadBalancerQuotas.md index 83eca8d6..13d0807b 100644 --- a/koyeb/docs/DomainLoadBalancerQuotas.md +++ b/koyeb/api/docs/DomainLoadBalancerQuotas.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas +from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/DomainStatus.md b/koyeb/api/docs/DomainStatus.md similarity index 100% rename from koyeb/docs/DomainStatus.md rename to koyeb/api/docs/DomainStatus.md diff --git a/koyeb/docs/DomainType.md b/koyeb/api/docs/DomainType.md similarity index 100% rename from koyeb/docs/DomainType.md rename to koyeb/api/docs/DomainType.md diff --git a/koyeb/docs/DomainsApi.md b/koyeb/api/docs/DomainsApi.md similarity index 90% rename from koyeb/docs/DomainsApi.md rename to koyeb/api/docs/DomainsApi.md index 5b72b1e8..c499179e 100644 --- a/koyeb/docs/DomainsApi.md +++ b/koyeb/api/docs/DomainsApi.md @@ -1,4 +1,4 @@ -# koyeb.DomainsApi +# koyeb.api.DomainsApi All URIs are relative to *https://app.koyeb.com* @@ -22,15 +22,15 @@ Create Domain * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_domain import CreateDomain -from koyeb.models.create_domain_reply import CreateDomainReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_domain import CreateDomain +from koyeb.api.models.create_domain_reply import CreateDomainReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -46,10 +46,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DomainsApi(api_client) - domain = koyeb.CreateDomain() # CreateDomain | + api_instance = koyeb.api.DomainsApi(api_client) + domain = koyeb.api.CreateDomain() # CreateDomain | try: # Create Domain @@ -107,13 +107,13 @@ Delete Domain * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -129,9 +129,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DomainsApi(api_client) + api_instance = koyeb.api.DomainsApi(api_client) id = 'id_example' # str | try: @@ -190,14 +190,14 @@ Get Domain * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_domain_reply import GetDomainReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_domain_reply import GetDomainReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -213,9 +213,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DomainsApi(api_client) + api_instance = koyeb.api.DomainsApi(api_client) id = 'id_example' # str | try: @@ -274,14 +274,14 @@ List Domains * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_domains_reply import ListDomainsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_domains_reply import ListDomainsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -297,9 +297,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DomainsApi(api_client) + api_instance = koyeb.api.DomainsApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) types = ['types_example'] # List[str] | (Optional) A filter for types - AUTOASSIGNED: Domain like -.koyeb.app (optional) @@ -368,13 +368,13 @@ Refresh Domain Status * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -390,9 +390,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DomainsApi(api_client) + api_instance = koyeb.api.DomainsApi(api_client) id = 'id_example' # str | try: @@ -451,15 +451,15 @@ Update Domain * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_domain import UpdateDomain -from koyeb.models.update_domain_reply import UpdateDomainReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_domain import UpdateDomain +from koyeb.api.models.update_domain_reply import UpdateDomainReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -475,11 +475,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.DomainsApi(api_client) + api_instance = koyeb.api.DomainsApi(api_client) id = 'id_example' # str | - domain = koyeb.UpdateDomain() # UpdateDomain | + domain = koyeb.api.UpdateDomain() # UpdateDomain | update_mask = 'update_mask_example' # str | (optional) dry_run = True # bool | If set, run validation and check that the domain is available. (optional) diff --git a/koyeb/docs/DomainsSummary.md b/koyeb/api/docs/DomainsSummary.md similarity index 93% rename from koyeb/docs/DomainsSummary.md rename to koyeb/api/docs/DomainsSummary.md index 9131e2c4..121a2fa3 100644 --- a/koyeb/docs/DomainsSummary.md +++ b/koyeb/api/docs/DomainsSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.domains_summary import DomainsSummary +from koyeb.api.models.domains_summary import DomainsSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Env.md b/koyeb/api/docs/Env.md similarity index 95% rename from koyeb/docs/Env.md rename to koyeb/api/docs/Env.md index 2927a94e..42f937d7 100644 --- a/koyeb/docs/Env.md +++ b/koyeb/api/docs/Env.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.env import Env +from koyeb.api.models.env import Env # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Error.md b/koyeb/api/docs/Error.md similarity index 95% rename from koyeb/docs/Error.md rename to koyeb/api/docs/Error.md index 108b863b..306c049d 100644 --- a/koyeb/docs/Error.md +++ b/koyeb/api/docs/Error.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.error import Error +from koyeb.api.models.error import Error # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ErrorField.md b/koyeb/api/docs/ErrorField.md similarity index 94% rename from koyeb/docs/ErrorField.md rename to koyeb/api/docs/ErrorField.md index 31e92ae1..b33b4851 100644 --- a/koyeb/docs/ErrorField.md +++ b/koyeb/api/docs/ErrorField.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.error_field import ErrorField +from koyeb.api.models.error_field import ErrorField # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ErrorWithFields.md b/koyeb/api/docs/ErrorWithFields.md similarity index 93% rename from koyeb/docs/ErrorWithFields.md rename to koyeb/api/docs/ErrorWithFields.md index da38a4e2..f808a2bb 100644 --- a/koyeb/docs/ErrorWithFields.md +++ b/koyeb/api/docs/ErrorWithFields.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.error_with_fields import ErrorWithFields +from koyeb.api.models.error_with_fields import ErrorWithFields # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ExecCommandIO.md b/koyeb/api/docs/ExecCommandIO.md similarity index 93% rename from koyeb/docs/ExecCommandIO.md rename to koyeb/api/docs/ExecCommandIO.md index f15efb05..8396d646 100644 --- a/koyeb/docs/ExecCommandIO.md +++ b/koyeb/api/docs/ExecCommandIO.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.exec_command_io import ExecCommandIO +from koyeb.api.models.exec_command_io import ExecCommandIO # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ExecCommandReply.md b/koyeb/api/docs/ExecCommandReply.md similarity index 94% rename from koyeb/docs/ExecCommandReply.md rename to koyeb/api/docs/ExecCommandReply.md index e6bffd3d..af0e2ca6 100644 --- a/koyeb/docs/ExecCommandReply.md +++ b/koyeb/api/docs/ExecCommandReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.exec_command_reply import ExecCommandReply +from koyeb.api.models.exec_command_reply import ExecCommandReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ExecCommandRequestBody.md b/koyeb/api/docs/ExecCommandRequestBody.md similarity index 94% rename from koyeb/docs/ExecCommandRequestBody.md rename to koyeb/api/docs/ExecCommandRequestBody.md index 42741561..4b3bc9a9 100644 --- a/koyeb/docs/ExecCommandRequestBody.md +++ b/koyeb/api/docs/ExecCommandRequestBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.exec_command_request_body import ExecCommandRequestBody +from koyeb.api.models.exec_command_request_body import ExecCommandRequestBody # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ExecCommandRequestIdType.md b/koyeb/api/docs/ExecCommandRequestIdType.md similarity index 100% rename from koyeb/docs/ExecCommandRequestIdType.md rename to koyeb/api/docs/ExecCommandRequestIdType.md diff --git a/koyeb/docs/ExecCommandRequestTerminalSize.md b/koyeb/api/docs/ExecCommandRequestTerminalSize.md similarity index 91% rename from koyeb/docs/ExecCommandRequestTerminalSize.md rename to koyeb/api/docs/ExecCommandRequestTerminalSize.md index 906fec39..7e6f273c 100644 --- a/koyeb/docs/ExecCommandRequestTerminalSize.md +++ b/koyeb/api/docs/ExecCommandRequestTerminalSize.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize +from koyeb.api.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GCPContainerRegistryConfiguration.md b/koyeb/api/docs/GCPContainerRegistryConfiguration.md similarity index 91% rename from koyeb/docs/GCPContainerRegistryConfiguration.md rename to koyeb/api/docs/GCPContainerRegistryConfiguration.md index 5a28047a..438f558b 100644 --- a/koyeb/docs/GCPContainerRegistryConfiguration.md +++ b/koyeb/api/docs/GCPContainerRegistryConfiguration.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration +from koyeb.api.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetAppReply.md b/koyeb/api/docs/GetAppReply.md similarity index 93% rename from koyeb/docs/GetAppReply.md rename to koyeb/api/docs/GetAppReply.md index bc2637fc..cc248d05 100644 --- a/koyeb/docs/GetAppReply.md +++ b/koyeb/api/docs/GetAppReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_app_reply import GetAppReply +from koyeb.api.models.get_app_reply import GetAppReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetBudgetReply.md b/koyeb/api/docs/GetBudgetReply.md similarity index 93% rename from koyeb/docs/GetBudgetReply.md rename to koyeb/api/docs/GetBudgetReply.md index bb80e6e7..a3010b05 100644 --- a/koyeb/docs/GetBudgetReply.md +++ b/koyeb/api/docs/GetBudgetReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_budget_reply import GetBudgetReply +from koyeb.api.models.get_budget_reply import GetBudgetReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetCatalogInstanceReply.md b/koyeb/api/docs/GetCatalogInstanceReply.md similarity index 92% rename from koyeb/docs/GetCatalogInstanceReply.md rename to koyeb/api/docs/GetCatalogInstanceReply.md index 189f5afb..398fe8b6 100644 --- a/koyeb/docs/GetCatalogInstanceReply.md +++ b/koyeb/api/docs/GetCatalogInstanceReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_catalog_instance_reply import GetCatalogInstanceReply +from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetCredentialReply.md b/koyeb/api/docs/GetCredentialReply.md similarity index 92% rename from koyeb/docs/GetCredentialReply.md rename to koyeb/api/docs/GetCredentialReply.md index ce13d303..fe72a8e1 100644 --- a/koyeb/docs/GetCredentialReply.md +++ b/koyeb/api/docs/GetCredentialReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_credential_reply import GetCredentialReply +from koyeb.api.models.get_credential_reply import GetCredentialReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetDeploymentReply.md b/koyeb/api/docs/GetDeploymentReply.md similarity index 92% rename from koyeb/docs/GetDeploymentReply.md rename to koyeb/api/docs/GetDeploymentReply.md index 719dbc28..d09f7648 100644 --- a/koyeb/docs/GetDeploymentReply.md +++ b/koyeb/api/docs/GetDeploymentReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_deployment_reply import GetDeploymentReply +from koyeb.api.models.get_deployment_reply import GetDeploymentReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetDeploymentScalingReply.md b/koyeb/api/docs/GetDeploymentScalingReply.md similarity index 92% rename from koyeb/docs/GetDeploymentScalingReply.md rename to koyeb/api/docs/GetDeploymentScalingReply.md index 8a78e056..c7047b1e 100644 --- a/koyeb/docs/GetDeploymentScalingReply.md +++ b/koyeb/api/docs/GetDeploymentScalingReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_deployment_scaling_reply import GetDeploymentScalingReply +from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetDeploymentScalingReplyItem.md b/koyeb/api/docs/GetDeploymentScalingReplyItem.md similarity index 93% rename from koyeb/docs/GetDeploymentScalingReplyItem.md rename to koyeb/api/docs/GetDeploymentScalingReplyItem.md index cf61dc27..7803f4f1 100644 --- a/koyeb/docs/GetDeploymentScalingReplyItem.md +++ b/koyeb/api/docs/GetDeploymentScalingReplyItem.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem +from koyeb.api.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetDomainReply.md b/koyeb/api/docs/GetDomainReply.md similarity index 93% rename from koyeb/docs/GetDomainReply.md rename to koyeb/api/docs/GetDomainReply.md index 6d201ec4..a0b0c40a 100644 --- a/koyeb/docs/GetDomainReply.md +++ b/koyeb/api/docs/GetDomainReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_domain_reply import GetDomainReply +from koyeb.api.models.get_domain_reply import GetDomainReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetGithubInstallationReply.md b/koyeb/api/docs/GetGithubInstallationReply.md similarity index 94% rename from koyeb/docs/GetGithubInstallationReply.md rename to koyeb/api/docs/GetGithubInstallationReply.md index 8c760541..3260175a 100644 --- a/koyeb/docs/GetGithubInstallationReply.md +++ b/koyeb/api/docs/GetGithubInstallationReply.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_github_installation_reply import GetGithubInstallationReply +from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetIdenfyTokenReply.md b/koyeb/api/docs/GetIdenfyTokenReply.md similarity index 92% rename from koyeb/docs/GetIdenfyTokenReply.md rename to koyeb/api/docs/GetIdenfyTokenReply.md index f827cfac..9e0b3e31 100644 --- a/koyeb/docs/GetIdenfyTokenReply.md +++ b/koyeb/api/docs/GetIdenfyTokenReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_idenfy_token_reply import GetIdenfyTokenReply +from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetInstanceReply.md b/koyeb/api/docs/GetInstanceReply.md similarity index 93% rename from koyeb/docs/GetInstanceReply.md rename to koyeb/api/docs/GetInstanceReply.md index 27fe9928..c79a3553 100644 --- a/koyeb/docs/GetInstanceReply.md +++ b/koyeb/api/docs/GetInstanceReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_instance_reply import GetInstanceReply +from koyeb.api.models.get_instance_reply import GetInstanceReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetIntercomProfileReply.md b/koyeb/api/docs/GetIntercomProfileReply.md similarity index 92% rename from koyeb/docs/GetIntercomProfileReply.md rename to koyeb/api/docs/GetIntercomProfileReply.md index a8896b5a..7e7ab3ec 100644 --- a/koyeb/docs/GetIntercomProfileReply.md +++ b/koyeb/api/docs/GetIntercomProfileReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_intercom_profile_reply import GetIntercomProfileReply +from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetMetricsReply.md b/koyeb/api/docs/GetMetricsReply.md similarity index 93% rename from koyeb/docs/GetMetricsReply.md rename to koyeb/api/docs/GetMetricsReply.md index b686f398..6266786a 100644 --- a/koyeb/docs/GetMetricsReply.md +++ b/koyeb/api/docs/GetMetricsReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_metrics_reply import GetMetricsReply +from koyeb.api.models.get_metrics_reply import GetMetricsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetMetricsReplyMetric.md b/koyeb/api/docs/GetMetricsReplyMetric.md similarity index 92% rename from koyeb/docs/GetMetricsReplyMetric.md rename to koyeb/api/docs/GetMetricsReplyMetric.md index ec491f3f..fe5c00ef 100644 --- a/koyeb/docs/GetMetricsReplyMetric.md +++ b/koyeb/api/docs/GetMetricsReplyMetric.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_metrics_reply_metric import GetMetricsReplyMetric +from koyeb.api.models.get_metrics_reply_metric import GetMetricsReplyMetric # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetOAuthOptionsReply.md b/koyeb/api/docs/GetOAuthOptionsReply.md similarity index 93% rename from koyeb/docs/GetOAuthOptionsReply.md rename to koyeb/api/docs/GetOAuthOptionsReply.md index ccf417c5..a7ae7bb2 100644 --- a/koyeb/docs/GetOAuthOptionsReply.md +++ b/koyeb/api/docs/GetOAuthOptionsReply.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_o_auth_options_reply import GetOAuthOptionsReply +from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetOrganizationInvitationReply.md b/koyeb/api/docs/GetOrganizationInvitationReply.md similarity index 91% rename from koyeb/docs/GetOrganizationInvitationReply.md rename to koyeb/api/docs/GetOrganizationInvitationReply.md index 12ab2cd4..ca9667ec 100644 --- a/koyeb/docs/GetOrganizationInvitationReply.md +++ b/koyeb/api/docs/GetOrganizationInvitationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_organization_invitation_reply import GetOrganizationInvitationReply +from koyeb.api.models.get_organization_invitation_reply import GetOrganizationInvitationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetOrganizationReply.md b/koyeb/api/docs/GetOrganizationReply.md similarity index 92% rename from koyeb/docs/GetOrganizationReply.md rename to koyeb/api/docs/GetOrganizationReply.md index 5ab15420..040f62b4 100644 --- a/koyeb/docs/GetOrganizationReply.md +++ b/koyeb/api/docs/GetOrganizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_organization_reply import GetOrganizationReply +from koyeb.api.models.get_organization_reply import GetOrganizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetOrganizationSummaryReply.md b/koyeb/api/docs/GetOrganizationSummaryReply.md similarity index 92% rename from koyeb/docs/GetOrganizationSummaryReply.md rename to koyeb/api/docs/GetOrganizationSummaryReply.md index c6ecf637..88a6b506 100644 --- a/koyeb/docs/GetOrganizationSummaryReply.md +++ b/koyeb/api/docs/GetOrganizationSummaryReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_organization_summary_reply import GetOrganizationSummaryReply +from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetOrganizationUsageDetailsReply.md b/koyeb/api/docs/GetOrganizationUsageDetailsReply.md similarity index 93% rename from koyeb/docs/GetOrganizationUsageDetailsReply.md rename to koyeb/api/docs/GetOrganizationUsageDetailsReply.md index ca173d1a..3a268164 100644 --- a/koyeb/docs/GetOrganizationUsageDetailsReply.md +++ b/koyeb/api/docs/GetOrganizationUsageDetailsReply.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply +from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetOrganizationUsageReply.md b/koyeb/api/docs/GetOrganizationUsageReply.md similarity index 92% rename from koyeb/docs/GetOrganizationUsageReply.md rename to koyeb/api/docs/GetOrganizationUsageReply.md index ba6a71e8..ab610eb7 100644 --- a/koyeb/docs/GetOrganizationUsageReply.md +++ b/koyeb/api/docs/GetOrganizationUsageReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_organization_usage_reply import GetOrganizationUsageReply +from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetPaymentMethodReply.md b/koyeb/api/docs/GetPaymentMethodReply.md similarity index 92% rename from koyeb/docs/GetPaymentMethodReply.md rename to koyeb/api/docs/GetPaymentMethodReply.md index ad049987..a0aea1f3 100644 --- a/koyeb/docs/GetPaymentMethodReply.md +++ b/koyeb/api/docs/GetPaymentMethodReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_payment_method_reply import GetPaymentMethodReply +from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetPersistentVolumeReply.md b/koyeb/api/docs/GetPersistentVolumeReply.md similarity index 92% rename from koyeb/docs/GetPersistentVolumeReply.md rename to koyeb/api/docs/GetPersistentVolumeReply.md index aff85912..996975e2 100644 --- a/koyeb/docs/GetPersistentVolumeReply.md +++ b/koyeb/api/docs/GetPersistentVolumeReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_persistent_volume_reply import GetPersistentVolumeReply +from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetQuotasReply.md b/koyeb/api/docs/GetQuotasReply.md similarity index 93% rename from koyeb/docs/GetQuotasReply.md rename to koyeb/api/docs/GetQuotasReply.md index de47d5de..31bf5380 100644 --- a/koyeb/docs/GetQuotasReply.md +++ b/koyeb/api/docs/GetQuotasReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_quotas_reply import GetQuotasReply +from koyeb.api.models.get_quotas_reply import GetQuotasReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetRegionReply.md b/koyeb/api/docs/GetRegionReply.md similarity index 93% rename from koyeb/docs/GetRegionReply.md rename to koyeb/api/docs/GetRegionReply.md index 615df1b9..4721c051 100644 --- a/koyeb/docs/GetRegionReply.md +++ b/koyeb/api/docs/GetRegionReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_region_reply import GetRegionReply +from koyeb.api.models.get_region_reply import GetRegionReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetRegionalDeploymentReply.md b/koyeb/api/docs/GetRegionalDeploymentReply.md similarity index 92% rename from koyeb/docs/GetRegionalDeploymentReply.md rename to koyeb/api/docs/GetRegionalDeploymentReply.md index 10903028..89077e5a 100644 --- a/koyeb/docs/GetRegionalDeploymentReply.md +++ b/koyeb/api/docs/GetRegionalDeploymentReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_regional_deployment_reply import GetRegionalDeploymentReply +from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetSecretReply.md b/koyeb/api/docs/GetSecretReply.md similarity index 93% rename from koyeb/docs/GetSecretReply.md rename to koyeb/api/docs/GetSecretReply.md index 90da3f69..1b917108 100644 --- a/koyeb/docs/GetSecretReply.md +++ b/koyeb/api/docs/GetSecretReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_secret_reply import GetSecretReply +from koyeb.api.models.get_secret_reply import GetSecretReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetServiceReply.md b/koyeb/api/docs/GetServiceReply.md similarity index 93% rename from koyeb/docs/GetServiceReply.md rename to koyeb/api/docs/GetServiceReply.md index d523ad66..efd5fe73 100644 --- a/koyeb/docs/GetServiceReply.md +++ b/koyeb/api/docs/GetServiceReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_service_reply import GetServiceReply +from koyeb.api.models.get_service_reply import GetServiceReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetSnapshotReply.md b/koyeb/api/docs/GetSnapshotReply.md similarity index 93% rename from koyeb/docs/GetSnapshotReply.md rename to koyeb/api/docs/GetSnapshotReply.md index 56c5d771..74f7fc12 100644 --- a/koyeb/docs/GetSnapshotReply.md +++ b/koyeb/api/docs/GetSnapshotReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_snapshot_reply import GetSnapshotReply +from koyeb.api.models.get_snapshot_reply import GetSnapshotReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetSubscriptionReply.md b/koyeb/api/docs/GetSubscriptionReply.md similarity index 92% rename from koyeb/docs/GetSubscriptionReply.md rename to koyeb/api/docs/GetSubscriptionReply.md index 2d4e8a21..b088d8d3 100644 --- a/koyeb/docs/GetSubscriptionReply.md +++ b/koyeb/api/docs/GetSubscriptionReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_subscription_reply import GetSubscriptionReply +from koyeb.api.models.get_subscription_reply import GetSubscriptionReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetUserOrganizationInvitationReply.md b/koyeb/api/docs/GetUserOrganizationInvitationReply.md similarity index 91% rename from koyeb/docs/GetUserOrganizationInvitationReply.md rename to koyeb/api/docs/GetUserOrganizationInvitationReply.md index e13d9b35..408614b5 100644 --- a/koyeb/docs/GetUserOrganizationInvitationReply.md +++ b/koyeb/api/docs/GetUserOrganizationInvitationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply +from koyeb.api.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GetUserSettingsReply.md b/koyeb/api/docs/GetUserSettingsReply.md similarity index 92% rename from koyeb/docs/GetUserSettingsReply.md rename to koyeb/api/docs/GetUserSettingsReply.md index 2f3ecf29..2e7451a3 100644 --- a/koyeb/docs/GetUserSettingsReply.md +++ b/koyeb/api/docs/GetUserSettingsReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.get_user_settings_reply import GetUserSettingsReply +from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GitDeploymentMetadata.md b/koyeb/api/docs/GitDeploymentMetadata.md similarity index 93% rename from koyeb/docs/GitDeploymentMetadata.md rename to koyeb/api/docs/GitDeploymentMetadata.md index 08266e64..efa1a3d5 100644 --- a/koyeb/docs/GitDeploymentMetadata.md +++ b/koyeb/api/docs/GitDeploymentMetadata.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.git_deployment_metadata import GitDeploymentMetadata +from koyeb.api.models.git_deployment_metadata import GitDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GitEnvDeploymentMetadata.md b/koyeb/api/docs/GitEnvDeploymentMetadata.md similarity index 92% rename from koyeb/docs/GitEnvDeploymentMetadata.md rename to koyeb/api/docs/GitEnvDeploymentMetadata.md index ba4fc9ff..b4dcfd53 100644 --- a/koyeb/docs/GitEnvDeploymentMetadata.md +++ b/koyeb/api/docs/GitEnvDeploymentMetadata.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.git_env_deployment_metadata import GitEnvDeploymentMetadata +from koyeb.api.models.git_env_deployment_metadata import GitEnvDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GitHubRegistryConfiguration.md b/koyeb/api/docs/GitHubRegistryConfiguration.md similarity index 92% rename from koyeb/docs/GitHubRegistryConfiguration.md rename to koyeb/api/docs/GitHubRegistryConfiguration.md index 924f0945..762b1014 100644 --- a/koyeb/docs/GitHubRegistryConfiguration.md +++ b/koyeb/api/docs/GitHubRegistryConfiguration.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.git_hub_registry_configuration import GitHubRegistryConfiguration +from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GitLabRegistryConfiguration.md b/koyeb/api/docs/GitLabRegistryConfiguration.md similarity index 92% rename from koyeb/docs/GitLabRegistryConfiguration.md rename to koyeb/api/docs/GitLabRegistryConfiguration.md index 5ef986c5..95c28b62 100644 --- a/koyeb/docs/GitLabRegistryConfiguration.md +++ b/koyeb/api/docs/GitLabRegistryConfiguration.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.git_lab_registry_configuration import GitLabRegistryConfiguration +from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GitSource.md b/koyeb/api/docs/GitSource.md similarity index 96% rename from koyeb/docs/GitSource.md rename to koyeb/api/docs/GitSource.md index eebae8fb..851e5aee 100644 --- a/koyeb/docs/GitSource.md +++ b/koyeb/api/docs/GitSource.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.git_source import GitSource +from koyeb.api.models.git_source import GitSource # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GithubInstallationReply.md b/koyeb/api/docs/GithubInstallationReply.md similarity index 92% rename from koyeb/docs/GithubInstallationReply.md rename to koyeb/api/docs/GithubInstallationReply.md index ffb5ea50..2ab98b28 100644 --- a/koyeb/docs/GithubInstallationReply.md +++ b/koyeb/api/docs/GithubInstallationReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.github_installation_reply import GithubInstallationReply +from koyeb.api.models.github_installation_reply import GithubInstallationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GithubInstallationRequest.md b/koyeb/api/docs/GithubInstallationRequest.md similarity index 91% rename from koyeb/docs/GithubInstallationRequest.md rename to koyeb/api/docs/GithubInstallationRequest.md index ea79faea..e00571e1 100644 --- a/koyeb/docs/GithubInstallationRequest.md +++ b/koyeb/api/docs/GithubInstallationRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.github_installation_request import GithubInstallationRequest +from koyeb.api.models.github_installation_request import GithubInstallationRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GoogleProtobufAny.md b/koyeb/api/docs/GoogleProtobufAny.md similarity index 92% rename from koyeb/docs/GoogleProtobufAny.md rename to koyeb/api/docs/GoogleProtobufAny.md index 9a2ca86a..53549e7f 100644 --- a/koyeb/docs/GoogleProtobufAny.md +++ b/koyeb/api/docs/GoogleProtobufAny.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.google_protobuf_any import GoogleProtobufAny +from koyeb.api.models.google_protobuf_any import GoogleProtobufAny # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/GoogleProtobufNullValue.md b/koyeb/api/docs/GoogleProtobufNullValue.md similarity index 100% rename from koyeb/docs/GoogleProtobufNullValue.md rename to koyeb/api/docs/GoogleProtobufNullValue.md diff --git a/koyeb/docs/GoogleRpcStatus.md b/koyeb/api/docs/GoogleRpcStatus.md similarity index 93% rename from koyeb/docs/GoogleRpcStatus.md rename to koyeb/api/docs/GoogleRpcStatus.md index 9926bba3..8e78a8da 100644 --- a/koyeb/docs/GoogleRpcStatus.md +++ b/koyeb/api/docs/GoogleRpcStatus.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.google_rpc_status import GoogleRpcStatus +from koyeb.api.models.google_rpc_status import GoogleRpcStatus # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/HTTPHeader.md b/koyeb/api/docs/HTTPHeader.md similarity index 94% rename from koyeb/docs/HTTPHeader.md rename to koyeb/api/docs/HTTPHeader.md index 0947ede6..7e226b23 100644 --- a/koyeb/docs/HTTPHeader.md +++ b/koyeb/api/docs/HTTPHeader.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.http_header import HTTPHeader +from koyeb.api.models.http_header import HTTPHeader # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/HTTPHealthCheck.md b/koyeb/api/docs/HTTPHealthCheck.md similarity index 93% rename from koyeb/docs/HTTPHealthCheck.md rename to koyeb/api/docs/HTTPHealthCheck.md index 85bc5ebf..500e9ea8 100644 --- a/koyeb/docs/HTTPHealthCheck.md +++ b/koyeb/api/docs/HTTPHealthCheck.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.http_health_check import HTTPHealthCheck +from koyeb.api.models.http_health_check import HTTPHealthCheck # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/HasUnpaidInvoicesReply.md b/koyeb/api/docs/HasUnpaidInvoicesReply.md similarity index 92% rename from koyeb/docs/HasUnpaidInvoicesReply.md rename to koyeb/api/docs/HasUnpaidInvoicesReply.md index 594b7ba2..4320e9fa 100644 --- a/koyeb/docs/HasUnpaidInvoicesReply.md +++ b/koyeb/api/docs/HasUnpaidInvoicesReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply +from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Instance.md b/koyeb/api/docs/Instance.md similarity index 97% rename from koyeb/docs/Instance.md rename to koyeb/api/docs/Instance.md index 92ea349b..daa92800 100644 --- a/koyeb/docs/Instance.md +++ b/koyeb/api/docs/Instance.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.instance import Instance +from koyeb.api.models.instance import Instance # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/InstanceAvailability.md b/koyeb/api/docs/InstanceAvailability.md similarity index 93% rename from koyeb/docs/InstanceAvailability.md rename to koyeb/api/docs/InstanceAvailability.md index 5c08ba88..8dfba246 100644 --- a/koyeb/docs/InstanceAvailability.md +++ b/koyeb/api/docs/InstanceAvailability.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.instance_availability import InstanceAvailability +from koyeb.api.models.instance_availability import InstanceAvailability # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/InstanceEvent.md b/koyeb/api/docs/InstanceEvent.md similarity index 94% rename from koyeb/docs/InstanceEvent.md rename to koyeb/api/docs/InstanceEvent.md index afc736d2..579398df 100644 --- a/koyeb/docs/InstanceEvent.md +++ b/koyeb/api/docs/InstanceEvent.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.instance_event import InstanceEvent +from koyeb.api.models.instance_event import InstanceEvent # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/InstanceListItem.md b/koyeb/api/docs/InstanceListItem.md similarity index 96% rename from koyeb/docs/InstanceListItem.md rename to koyeb/api/docs/InstanceListItem.md index b101d316..92d2b12d 100644 --- a/koyeb/docs/InstanceListItem.md +++ b/koyeb/api/docs/InstanceListItem.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.instance_list_item import InstanceListItem +from koyeb.api.models.instance_list_item import InstanceListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/InstanceStatus.md b/koyeb/api/docs/InstanceStatus.md similarity index 100% rename from koyeb/docs/InstanceStatus.md rename to koyeb/api/docs/InstanceStatus.md diff --git a/koyeb/docs/InstanceUsage.md b/koyeb/api/docs/InstanceUsage.md similarity index 93% rename from koyeb/docs/InstanceUsage.md rename to koyeb/api/docs/InstanceUsage.md index b91435d2..44cb1dfd 100644 --- a/koyeb/docs/InstanceUsage.md +++ b/koyeb/api/docs/InstanceUsage.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.instance_usage import InstanceUsage +from koyeb.api.models.instance_usage import InstanceUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/InstancesApi.md b/koyeb/api/docs/InstancesApi.md similarity index 93% rename from koyeb/docs/InstancesApi.md rename to koyeb/api/docs/InstancesApi.md index ea9a5c03..2bc0db5d 100644 --- a/koyeb/docs/InstancesApi.md +++ b/koyeb/api/docs/InstancesApi.md @@ -1,4 +1,4 @@ -# koyeb.InstancesApi +# koyeb.api.InstancesApi All URIs are relative to *https://app.koyeb.com* @@ -22,14 +22,14 @@ This endpoint opens a websocket. Once open, all frames going through the websock * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -45,9 +45,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.InstancesApi(api_client) + api_instance = koyeb.api.InstancesApi(api_client) id = 'id_example' # str | ID of the resource to exec on. (optional) body_command = ['body_command_example'] # List[str] | Command to exec. Mandatory in the first frame sent (optional) body_tty_size_height = 56 # int | (optional) @@ -120,14 +120,14 @@ Get Instance * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_instance_reply import GetInstanceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_instance_reply import GetInstanceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -143,9 +143,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.InstancesApi(api_client) + api_instance = koyeb.api.InstancesApi(api_client) id = 'id_example' # str | The id of the instance try: @@ -204,14 +204,14 @@ List Instance events * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_instance_events_reply import ListInstanceEventsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -227,9 +227,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.InstancesApi(api_client) + api_instance = koyeb.api.InstancesApi(api_client) instance_ids = ['instance_ids_example'] # List[str] | (Optional) Filter on list of instance id (optional) types = ['types_example'] # List[str] | (Optional) Filter on instance event types (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) @@ -296,14 +296,14 @@ List Instances * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_instances_reply import ListInstancesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_instances_reply import ListInstancesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -319,9 +319,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.InstancesApi(api_client) + api_instance = koyeb.api.InstancesApi(api_client) app_id = 'app_id_example' # str | (Optional) Filter on application id (optional) service_id = 'service_id_example' # str | (Optional) Filter on service id (optional) deployment_id = 'deployment_id_example' # str | (Optional) Filter on deployment id (optional) diff --git a/koyeb/docs/InstancesSummary.md b/koyeb/api/docs/InstancesSummary.md similarity index 93% rename from koyeb/docs/InstancesSummary.md rename to koyeb/api/docs/InstancesSummary.md index aa625059..4c9b2c2d 100644 --- a/koyeb/docs/InstancesSummary.md +++ b/koyeb/api/docs/InstancesSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.instances_summary import InstancesSummary +from koyeb.api.models.instances_summary import InstancesSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/IntercomApi.md b/koyeb/api/docs/IntercomApi.md similarity index 88% rename from koyeb/docs/IntercomApi.md rename to koyeb/api/docs/IntercomApi.md index 0d9e5da4..7858f165 100644 --- a/koyeb/docs/IntercomApi.md +++ b/koyeb/api/docs/IntercomApi.md @@ -1,4 +1,4 @@ -# koyeb.IntercomApi +# koyeb.api.IntercomApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ Get intercom profile * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_intercom_profile_reply import GetIntercomProfileReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.IntercomApi(api_client) + api_instance = koyeb.api.IntercomApi(api_client) try: # Get intercom profile diff --git a/koyeb/docs/InviteApi.md b/koyeb/api/docs/InviteApi.md similarity index 87% rename from koyeb/docs/InviteApi.md rename to koyeb/api/docs/InviteApi.md index 60e5d03d..20edae52 100644 --- a/koyeb/docs/InviteApi.md +++ b/koyeb/api/docs/InviteApi.md @@ -1,4 +1,4 @@ -# koyeb.InviteApi +# koyeb.api.InviteApi All URIs are relative to *https://app.koyeb.com* @@ -15,14 +15,14 @@ Method | HTTP request | Description * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.invite_user_request import InviteUserRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.invite_user_request import InviteUserRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -38,10 +38,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.InviteApi(api_client) - body = koyeb.InviteUserRequest() # InviteUserRequest | + api_instance = koyeb.api.InviteApi(api_client) + body = koyeb.api.InviteUserRequest() # InviteUserRequest | try: api_response = api_instance.create_invite(body) diff --git a/koyeb/docs/InviteUserRequest.md b/koyeb/api/docs/InviteUserRequest.md similarity index 93% rename from koyeb/docs/InviteUserRequest.md rename to koyeb/api/docs/InviteUserRequest.md index 05758f0e..1f3364e6 100644 --- a/koyeb/docs/InviteUserRequest.md +++ b/koyeb/api/docs/InviteUserRequest.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.invite_user_request import InviteUserRequest +from koyeb.api.models.invite_user_request import InviteUserRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KgitproxyBranch.md b/koyeb/api/docs/KgitproxyBranch.md similarity index 95% rename from koyeb/docs/KgitproxyBranch.md rename to koyeb/api/docs/KgitproxyBranch.md index b29f76bb..d19a0222 100644 --- a/koyeb/docs/KgitproxyBranch.md +++ b/koyeb/api/docs/KgitproxyBranch.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.kgitproxy_branch import KgitproxyBranch +from koyeb.api.models.kgitproxy_branch import KgitproxyBranch # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KgitproxyGitHubRepository.md b/koyeb/api/docs/KgitproxyGitHubRepository.md similarity index 91% rename from koyeb/docs/KgitproxyGitHubRepository.md rename to koyeb/api/docs/KgitproxyGitHubRepository.md index 8a225d83..275c4f91 100644 --- a/koyeb/docs/KgitproxyGitHubRepository.md +++ b/koyeb/api/docs/KgitproxyGitHubRepository.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository +from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KgitproxyGithubInstallationStatus.md b/koyeb/api/docs/KgitproxyGithubInstallationStatus.md similarity index 100% rename from koyeb/docs/KgitproxyGithubInstallationStatus.md rename to koyeb/api/docs/KgitproxyGithubInstallationStatus.md diff --git a/koyeb/docs/KgitproxyIndexingStatus.md b/koyeb/api/docs/KgitproxyIndexingStatus.md similarity index 100% rename from koyeb/docs/KgitproxyIndexingStatus.md rename to koyeb/api/docs/KgitproxyIndexingStatus.md diff --git a/koyeb/docs/KgitproxyListBranchesReply.md b/koyeb/api/docs/KgitproxyListBranchesReply.md similarity index 93% rename from koyeb/docs/KgitproxyListBranchesReply.md rename to koyeb/api/docs/KgitproxyListBranchesReply.md index 132ed004..b311d416 100644 --- a/koyeb/docs/KgitproxyListBranchesReply.md +++ b/koyeb/api/docs/KgitproxyListBranchesReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply +from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KgitproxyListRepositoriesReply.md b/koyeb/api/docs/KgitproxyListRepositoriesReply.md similarity index 93% rename from koyeb/docs/KgitproxyListRepositoriesReply.md rename to koyeb/api/docs/KgitproxyListRepositoriesReply.md index 3a07d351..544d1950 100644 --- a/koyeb/docs/KgitproxyListRepositoriesReply.md +++ b/koyeb/api/docs/KgitproxyListRepositoriesReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply +from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KgitproxyRepository.md b/koyeb/api/docs/KgitproxyRepository.md similarity index 95% rename from koyeb/docs/KgitproxyRepository.md rename to koyeb/api/docs/KgitproxyRepository.md index db6f52ae..6211439c 100644 --- a/koyeb/docs/KgitproxyRepository.md +++ b/koyeb/api/docs/KgitproxyRepository.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.kgitproxy_repository import KgitproxyRepository +from koyeb.api.models.kgitproxy_repository import KgitproxyRepository # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KgitproxyRepositoryProvider.md b/koyeb/api/docs/KgitproxyRepositoryProvider.md similarity index 100% rename from koyeb/docs/KgitproxyRepositoryProvider.md rename to koyeb/api/docs/KgitproxyRepositoryProvider.md diff --git a/koyeb/docs/KsearchApp.md b/koyeb/api/docs/KsearchApp.md similarity index 94% rename from koyeb/docs/KsearchApp.md rename to koyeb/api/docs/KsearchApp.md index a44cafd4..843ef3eb 100644 --- a/koyeb/docs/KsearchApp.md +++ b/koyeb/api/docs/KsearchApp.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_app import KsearchApp +from koyeb.api.models.ksearch_app import KsearchApp # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchGlobalDeployment.md b/koyeb/api/docs/KsearchGlobalDeployment.md similarity index 93% rename from koyeb/docs/KsearchGlobalDeployment.md rename to koyeb/api/docs/KsearchGlobalDeployment.md index 7969eb20..87bd36df 100644 --- a/koyeb/docs/KsearchGlobalDeployment.md +++ b/koyeb/api/docs/KsearchGlobalDeployment.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_global_deployment import KsearchGlobalDeployment +from koyeb.api.models.ksearch_global_deployment import KsearchGlobalDeployment # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchInstance.md b/koyeb/api/docs/KsearchInstance.md similarity index 94% rename from koyeb/docs/KsearchInstance.md rename to koyeb/api/docs/KsearchInstance.md index ce77dc05..bc1c6928 100644 --- a/koyeb/docs/KsearchInstance.md +++ b/koyeb/api/docs/KsearchInstance.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_instance import KsearchInstance +from koyeb.api.models.ksearch_instance import KsearchInstance # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchOrganization.md b/koyeb/api/docs/KsearchOrganization.md similarity index 92% rename from koyeb/docs/KsearchOrganization.md rename to koyeb/api/docs/KsearchOrganization.md index 3ada1041..c2209761 100644 --- a/koyeb/docs/KsearchOrganization.md +++ b/koyeb/api/docs/KsearchOrganization.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_organization import KsearchOrganization +from koyeb.api.models.ksearch_organization import KsearchOrganization # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchRegionalDeployment.md b/koyeb/api/docs/KsearchRegionalDeployment.md similarity index 93% rename from koyeb/docs/KsearchRegionalDeployment.md rename to koyeb/api/docs/KsearchRegionalDeployment.md index 6ce6ca5d..59869731 100644 --- a/koyeb/docs/KsearchRegionalDeployment.md +++ b/koyeb/api/docs/KsearchRegionalDeployment.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_regional_deployment import KsearchRegionalDeployment +from koyeb.api.models.ksearch_regional_deployment import KsearchRegionalDeployment # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchSearchReply.md b/koyeb/api/docs/KsearchSearchReply.md similarity index 95% rename from koyeb/docs/KsearchSearchReply.md rename to koyeb/api/docs/KsearchSearchReply.md index ea8ac6e6..206325cc 100644 --- a/koyeb/docs/KsearchSearchReply.md +++ b/koyeb/api/docs/KsearchSearchReply.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_search_reply import KsearchSearchReply +from koyeb.api.models.ksearch_search_reply import KsearchSearchReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchService.md b/koyeb/api/docs/KsearchService.md similarity index 94% rename from koyeb/docs/KsearchService.md rename to koyeb/api/docs/KsearchService.md index a0b02d6c..31c0deb3 100644 --- a/koyeb/docs/KsearchService.md +++ b/koyeb/api/docs/KsearchService.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_service import KsearchService +from koyeb.api.models.ksearch_service import KsearchService # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/KsearchUser.md b/koyeb/api/docs/KsearchUser.md similarity index 94% rename from koyeb/docs/KsearchUser.md rename to koyeb/api/docs/KsearchUser.md index 18dc71b1..e858457a 100644 --- a/koyeb/docs/KsearchUser.md +++ b/koyeb/api/docs/KsearchUser.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.ksearch_user import KsearchUser +from koyeb.api.models.ksearch_user import KsearchUser # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListAppEventsReply.md b/koyeb/api/docs/ListAppEventsReply.md similarity index 93% rename from koyeb/docs/ListAppEventsReply.md rename to koyeb/api/docs/ListAppEventsReply.md index aa5bcb6a..b4e8e4cd 100644 --- a/koyeb/docs/ListAppEventsReply.md +++ b/koyeb/api/docs/ListAppEventsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_app_events_reply import ListAppEventsReply +from koyeb.api.models.list_app_events_reply import ListAppEventsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListAppsReply.md b/koyeb/api/docs/ListAppsReply.md similarity index 94% rename from koyeb/docs/ListAppsReply.md rename to koyeb/api/docs/ListAppsReply.md index b7ebc7bb..713ebef8 100644 --- a/koyeb/docs/ListAppsReply.md +++ b/koyeb/api/docs/ListAppsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_apps_reply import ListAppsReply +from koyeb.api.models.list_apps_reply import ListAppsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListCatalogInstancesReply.md b/koyeb/api/docs/ListCatalogInstancesReply.md similarity index 93% rename from koyeb/docs/ListCatalogInstancesReply.md rename to koyeb/api/docs/ListCatalogInstancesReply.md index d925d5e9..86dc8145 100644 --- a/koyeb/docs/ListCatalogInstancesReply.md +++ b/koyeb/api/docs/ListCatalogInstancesReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_catalog_instances_reply import ListCatalogInstancesReply +from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListCredentialsReply.md b/koyeb/api/docs/ListCredentialsReply.md similarity index 93% rename from koyeb/docs/ListCredentialsReply.md rename to koyeb/api/docs/ListCredentialsReply.md index c2eca65d..5f0f207c 100644 --- a/koyeb/docs/ListCredentialsReply.md +++ b/koyeb/api/docs/ListCredentialsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_credentials_reply import ListCredentialsReply +from koyeb.api.models.list_credentials_reply import ListCredentialsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListDatacentersReply.md b/koyeb/api/docs/ListDatacentersReply.md similarity index 92% rename from koyeb/docs/ListDatacentersReply.md rename to koyeb/api/docs/ListDatacentersReply.md index 196591b5..fe0117af 100644 --- a/koyeb/docs/ListDatacentersReply.md +++ b/koyeb/api/docs/ListDatacentersReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_datacenters_reply import ListDatacentersReply +from koyeb.api.models.list_datacenters_reply import ListDatacentersReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListDeploymentEventsReply.md b/koyeb/api/docs/ListDeploymentEventsReply.md similarity index 93% rename from koyeb/docs/ListDeploymentEventsReply.md rename to koyeb/api/docs/ListDeploymentEventsReply.md index 4a6493fe..172667d4 100644 --- a/koyeb/docs/ListDeploymentEventsReply.md +++ b/koyeb/api/docs/ListDeploymentEventsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_deployment_events_reply import ListDeploymentEventsReply +from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListDeploymentsReply.md b/koyeb/api/docs/ListDeploymentsReply.md similarity index 93% rename from koyeb/docs/ListDeploymentsReply.md rename to koyeb/api/docs/ListDeploymentsReply.md index 497679f7..3a729a31 100644 --- a/koyeb/docs/ListDeploymentsReply.md +++ b/koyeb/api/docs/ListDeploymentsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_deployments_reply import ListDeploymentsReply +from koyeb.api.models.list_deployments_reply import ListDeploymentsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListDomainsReply.md b/koyeb/api/docs/ListDomainsReply.md similarity index 93% rename from koyeb/docs/ListDomainsReply.md rename to koyeb/api/docs/ListDomainsReply.md index 9c3c03ca..c367370c 100644 --- a/koyeb/docs/ListDomainsReply.md +++ b/koyeb/api/docs/ListDomainsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_domains_reply import ListDomainsReply +from koyeb.api.models.list_domains_reply import ListDomainsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListInstanceEventsReply.md b/koyeb/api/docs/ListInstanceEventsReply.md similarity index 93% rename from koyeb/docs/ListInstanceEventsReply.md rename to koyeb/api/docs/ListInstanceEventsReply.md index 07e69c8d..094e03c9 100644 --- a/koyeb/docs/ListInstanceEventsReply.md +++ b/koyeb/api/docs/ListInstanceEventsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_instance_events_reply import ListInstanceEventsReply +from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListInstancesReply.md b/koyeb/api/docs/ListInstancesReply.md similarity index 93% rename from koyeb/docs/ListInstancesReply.md rename to koyeb/api/docs/ListInstancesReply.md index 76cd3a0b..6c4125f3 100644 --- a/koyeb/docs/ListInstancesReply.md +++ b/koyeb/api/docs/ListInstancesReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_instances_reply import ListInstancesReply +from koyeb.api.models.list_instances_reply import ListInstancesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListOrganizationInvitationsReply.md b/koyeb/api/docs/ListOrganizationInvitationsReply.md similarity index 92% rename from koyeb/docs/ListOrganizationInvitationsReply.md rename to koyeb/api/docs/ListOrganizationInvitationsReply.md index f7306d20..78e24205 100644 --- a/koyeb/docs/ListOrganizationInvitationsReply.md +++ b/koyeb/api/docs/ListOrganizationInvitationsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_organization_invitations_reply import ListOrganizationInvitationsReply +from koyeb.api.models.list_organization_invitations_reply import ListOrganizationInvitationsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListOrganizationMembersReply.md b/koyeb/api/docs/ListOrganizationMembersReply.md similarity index 92% rename from koyeb/docs/ListOrganizationMembersReply.md rename to koyeb/api/docs/ListOrganizationMembersReply.md index 3facfd3f..df70c420 100644 --- a/koyeb/docs/ListOrganizationMembersReply.md +++ b/koyeb/api/docs/ListOrganizationMembersReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_organization_members_reply import ListOrganizationMembersReply +from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListPaymentMethodsReply.md b/koyeb/api/docs/ListPaymentMethodsReply.md similarity index 93% rename from koyeb/docs/ListPaymentMethodsReply.md rename to koyeb/api/docs/ListPaymentMethodsReply.md index 949a176b..c431e827 100644 --- a/koyeb/docs/ListPaymentMethodsReply.md +++ b/koyeb/api/docs/ListPaymentMethodsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_payment_methods_reply import ListPaymentMethodsReply +from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListPersistentVolumeEventsReply.md b/koyeb/api/docs/ListPersistentVolumeEventsReply.md similarity index 92% rename from koyeb/docs/ListPersistentVolumeEventsReply.md rename to koyeb/api/docs/ListPersistentVolumeEventsReply.md index 0a6af2a1..b497a36c 100644 --- a/koyeb/docs/ListPersistentVolumeEventsReply.md +++ b/koyeb/api/docs/ListPersistentVolumeEventsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply +from koyeb.api.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListPersistentVolumesReply.md b/koyeb/api/docs/ListPersistentVolumesReply.md similarity index 92% rename from koyeb/docs/ListPersistentVolumesReply.md rename to koyeb/api/docs/ListPersistentVolumesReply.md index 75c133e5..0ad6da91 100644 --- a/koyeb/docs/ListPersistentVolumesReply.md +++ b/koyeb/api/docs/ListPersistentVolumesReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_persistent_volumes_reply import ListPersistentVolumesReply +from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListRegionalDeploymentEventsReply.md b/koyeb/api/docs/ListRegionalDeploymentEventsReply.md similarity index 92% rename from koyeb/docs/ListRegionalDeploymentEventsReply.md rename to koyeb/api/docs/ListRegionalDeploymentEventsReply.md index 68acc4b9..4d6c07a4 100644 --- a/koyeb/docs/ListRegionalDeploymentEventsReply.md +++ b/koyeb/api/docs/ListRegionalDeploymentEventsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply +from koyeb.api.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListRegionalDeploymentsReply.md b/koyeb/api/docs/ListRegionalDeploymentsReply.md similarity index 93% rename from koyeb/docs/ListRegionalDeploymentsReply.md rename to koyeb/api/docs/ListRegionalDeploymentsReply.md index cdc7e774..08d8baee 100644 --- a/koyeb/docs/ListRegionalDeploymentsReply.md +++ b/koyeb/api/docs/ListRegionalDeploymentsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_regional_deployments_reply import ListRegionalDeploymentsReply +from koyeb.api.models.list_regional_deployments_reply import ListRegionalDeploymentsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListRegionsReply.md b/koyeb/api/docs/ListRegionsReply.md similarity index 93% rename from koyeb/docs/ListRegionsReply.md rename to koyeb/api/docs/ListRegionsReply.md index 144a4ae4..e14d54ef 100644 --- a/koyeb/docs/ListRegionsReply.md +++ b/koyeb/api/docs/ListRegionsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_regions_reply import ListRegionsReply +from koyeb.api.models.list_regions_reply import ListRegionsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListSecretsReply.md b/koyeb/api/docs/ListSecretsReply.md similarity index 93% rename from koyeb/docs/ListSecretsReply.md rename to koyeb/api/docs/ListSecretsReply.md index 78991f93..a5920b83 100644 --- a/koyeb/docs/ListSecretsReply.md +++ b/koyeb/api/docs/ListSecretsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_secrets_reply import ListSecretsReply +from koyeb.api.models.list_secrets_reply import ListSecretsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListServiceEventsReply.md b/koyeb/api/docs/ListServiceEventsReply.md similarity index 93% rename from koyeb/docs/ListServiceEventsReply.md rename to koyeb/api/docs/ListServiceEventsReply.md index 84c973d4..51d499d3 100644 --- a/koyeb/docs/ListServiceEventsReply.md +++ b/koyeb/api/docs/ListServiceEventsReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_service_events_reply import ListServiceEventsReply +from koyeb.api.models.list_service_events_reply import ListServiceEventsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListServicesReply.md b/koyeb/api/docs/ListServicesReply.md similarity index 94% rename from koyeb/docs/ListServicesReply.md rename to koyeb/api/docs/ListServicesReply.md index 8271c1cf..6010c8ea 100644 --- a/koyeb/docs/ListServicesReply.md +++ b/koyeb/api/docs/ListServicesReply.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_services_reply import ListServicesReply +from koyeb.api.models.list_services_reply import ListServicesReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListSnapshotsReply.md b/koyeb/api/docs/ListSnapshotsReply.md similarity index 93% rename from koyeb/docs/ListSnapshotsReply.md rename to koyeb/api/docs/ListSnapshotsReply.md index 602d5424..740b12cc 100644 --- a/koyeb/docs/ListSnapshotsReply.md +++ b/koyeb/api/docs/ListSnapshotsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_snapshots_reply import ListSnapshotsReply +from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListUsageReply.md b/koyeb/api/docs/ListUsageReply.md similarity index 93% rename from koyeb/docs/ListUsageReply.md rename to koyeb/api/docs/ListUsageReply.md index 72c96178..a8df6d2d 100644 --- a/koyeb/docs/ListUsageReply.md +++ b/koyeb/api/docs/ListUsageReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_usage_reply import ListUsageReply +from koyeb.api.models.list_usage_reply import ListUsageReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListUserOrganizationInvitationsReply.md b/koyeb/api/docs/ListUserOrganizationInvitationsReply.md similarity index 92% rename from koyeb/docs/ListUserOrganizationInvitationsReply.md rename to koyeb/api/docs/ListUserOrganizationInvitationsReply.md index 95073483..5dc15c87 100644 --- a/koyeb/docs/ListUserOrganizationInvitationsReply.md +++ b/koyeb/api/docs/ListUserOrganizationInvitationsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply +from koyeb.api.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ListUserOrganizationsReply.md b/koyeb/api/docs/ListUserOrganizationsReply.md similarity index 92% rename from koyeb/docs/ListUserOrganizationsReply.md rename to koyeb/api/docs/ListUserOrganizationsReply.md index b08cfd33..de2bc7e9 100644 --- a/koyeb/docs/ListUserOrganizationsReply.md +++ b/koyeb/api/docs/ListUserOrganizationsReply.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.list_user_organizations_reply import ListUserOrganizationsReply +from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/LogEntry.md b/koyeb/api/docs/LogEntry.md similarity index 94% rename from koyeb/docs/LogEntry.md rename to koyeb/api/docs/LogEntry.md index c9f86702..499b75e1 100644 --- a/koyeb/docs/LogEntry.md +++ b/koyeb/api/docs/LogEntry.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.log_entry import LogEntry +from koyeb.api.models.log_entry import LogEntry # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/LoginMethodReply.md b/koyeb/api/docs/LoginMethodReply.md similarity index 93% rename from koyeb/docs/LoginMethodReply.md rename to koyeb/api/docs/LoginMethodReply.md index f03f989c..d6caf0dd 100644 --- a/koyeb/docs/LoginMethodReply.md +++ b/koyeb/api/docs/LoginMethodReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.login_method_reply import LoginMethodReply +from koyeb.api.models.login_method_reply import LoginMethodReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/LoginMethodReplyMethod.md b/koyeb/api/docs/LoginMethodReplyMethod.md similarity index 100% rename from koyeb/docs/LoginMethodReplyMethod.md rename to koyeb/api/docs/LoginMethodReplyMethod.md diff --git a/koyeb/docs/LoginReply.md b/koyeb/api/docs/LoginReply.md similarity index 93% rename from koyeb/docs/LoginReply.md rename to koyeb/api/docs/LoginReply.md index c271de6c..fecddc23 100644 --- a/koyeb/docs/LoginReply.md +++ b/koyeb/api/docs/LoginReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.login_reply import LoginReply +from koyeb.api.models.login_reply import LoginReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/LoginRequest.md b/koyeb/api/docs/LoginRequest.md similarity index 94% rename from koyeb/docs/LoginRequest.md rename to koyeb/api/docs/LoginRequest.md index 475ce1ef..77a5b43c 100644 --- a/koyeb/docs/LoginRequest.md +++ b/koyeb/api/docs/LoginRequest.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.login_request import LoginRequest +from koyeb.api.models.login_request import LoginRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/LogsApi.md b/koyeb/api/docs/LogsApi.md similarity index 94% rename from koyeb/docs/LogsApi.md rename to koyeb/api/docs/LogsApi.md index 616610cc..18610da8 100644 --- a/koyeb/docs/LogsApi.md +++ b/koyeb/api/docs/LogsApi.md @@ -1,4 +1,4 @@ -# koyeb.LogsApi +# koyeb.api.LogsApi All URIs are relative to *https://app.koyeb.com* @@ -18,14 +18,14 @@ Query logs * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.query_logs_reply import QueryLogsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.query_logs_reply import QueryLogsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,9 +41,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.LogsApi(api_client) + api_instance = koyeb.api.LogsApi(api_client) type = 'type_example' # str | (optional) app_id = 'app_id_example' # str | (optional) service_id = 'service_id_example' # str | (optional) @@ -126,14 +126,14 @@ Tails logs * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.stream_result_of_log_entry import StreamResultOfLogEntry -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -149,9 +149,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.LogsApi(api_client) + api_instance = koyeb.api.LogsApi(api_client) type = 'type_example' # str | (optional) app_id = 'app_id_example' # str | (optional) service_id = 'service_id_example' # str | (optional) diff --git a/koyeb/docs/ManageReply.md b/koyeb/api/docs/ManageReply.md similarity index 93% rename from koyeb/docs/ManageReply.md rename to koyeb/api/docs/ManageReply.md index 06414890..9522e8f7 100644 --- a/koyeb/docs/ManageReply.md +++ b/koyeb/api/docs/ManageReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.manage_reply import ManageReply +from koyeb.api.models.manage_reply import ManageReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/MembersSummary.md b/koyeb/api/docs/MembersSummary.md similarity index 93% rename from koyeb/docs/MembersSummary.md rename to koyeb/api/docs/MembersSummary.md index 33b71b54..004e0a5f 100644 --- a/koyeb/docs/MembersSummary.md +++ b/koyeb/api/docs/MembersSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.members_summary import MembersSummary +from koyeb.api.models.members_summary import MembersSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/MetricName.md b/koyeb/api/docs/MetricName.md similarity index 100% rename from koyeb/docs/MetricName.md rename to koyeb/api/docs/MetricName.md diff --git a/koyeb/docs/MetricsApi.md b/koyeb/api/docs/MetricsApi.md similarity index 92% rename from koyeb/docs/MetricsApi.md rename to koyeb/api/docs/MetricsApi.md index adfcf501..5e5bf453 100644 --- a/koyeb/docs/MetricsApi.md +++ b/koyeb/api/docs/MetricsApi.md @@ -1,4 +1,4 @@ -# koyeb.MetricsApi +# koyeb.api.MetricsApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ Get Metrics * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_metrics_reply import GetMetricsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_metrics_reply import GetMetricsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.MetricsApi(api_client) + api_instance = koyeb.api.MetricsApi(api_client) service_id = 'service_id_example' # str | ID of the service to query instances metrics for. Ignored if instance_id is set. (optional) instance_id = 'instance_id_example' # str | ID of the instance to query metrics for. (optional) name = UNKNOWN # str | Metric to query. (optional) (default to UNKNOWN) diff --git a/koyeb/docs/NeonPostgresDatabase.md b/koyeb/api/docs/NeonPostgresDatabase.md similarity index 94% rename from koyeb/docs/NeonPostgresDatabase.md rename to koyeb/api/docs/NeonPostgresDatabase.md index fc7e625c..57d64b7b 100644 --- a/koyeb/docs/NeonPostgresDatabase.md +++ b/koyeb/api/docs/NeonPostgresDatabase.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.neon_postgres_database import NeonPostgresDatabase +from koyeb.api.models.neon_postgres_database import NeonPostgresDatabase # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NeonPostgresDatabaseDeploymentMetadata.md b/koyeb/api/docs/NeonPostgresDatabaseDeploymentMetadata.md similarity index 91% rename from koyeb/docs/NeonPostgresDatabaseDeploymentMetadata.md rename to koyeb/api/docs/NeonPostgresDatabaseDeploymentMetadata.md index 43c58e0a..c8a85fd8 100644 --- a/koyeb/docs/NeonPostgresDatabaseDeploymentMetadata.md +++ b/koyeb/api/docs/NeonPostgresDatabaseDeploymentMetadata.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata +from koyeb.api.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NeonPostgresDatabaseNeonDatabase.md b/koyeb/api/docs/NeonPostgresDatabaseNeonDatabase.md similarity index 91% rename from koyeb/docs/NeonPostgresDatabaseNeonDatabase.md rename to koyeb/api/docs/NeonPostgresDatabaseNeonDatabase.md index 99309836..57c62f2a 100644 --- a/koyeb/docs/NeonPostgresDatabaseNeonDatabase.md +++ b/koyeb/api/docs/NeonPostgresDatabaseNeonDatabase.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase +from koyeb.api.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NeonPostgresDatabaseNeonRole.md b/koyeb/api/docs/NeonPostgresDatabaseNeonRole.md similarity index 91% rename from koyeb/docs/NeonPostgresDatabaseNeonRole.md rename to koyeb/api/docs/NeonPostgresDatabaseNeonRole.md index ad415ace..d7ee8b29 100644 --- a/koyeb/docs/NeonPostgresDatabaseNeonRole.md +++ b/koyeb/api/docs/NeonPostgresDatabaseNeonRole.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole +from koyeb.api.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NeonPostgresSummary.md b/koyeb/api/docs/NeonPostgresSummary.md similarity index 93% rename from koyeb/docs/NeonPostgresSummary.md rename to koyeb/api/docs/NeonPostgresSummary.md index 405c0e5c..8c5c6bca 100644 --- a/koyeb/docs/NeonPostgresSummary.md +++ b/koyeb/api/docs/NeonPostgresSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.neon_postgres_summary import NeonPostgresSummary +from koyeb.api.models.neon_postgres_summary import NeonPostgresSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NextInvoiceReply.md b/koyeb/api/docs/NextInvoiceReply.md similarity index 94% rename from koyeb/docs/NextInvoiceReply.md rename to koyeb/api/docs/NextInvoiceReply.md index e7cec23d..18afa8ad 100644 --- a/koyeb/docs/NextInvoiceReply.md +++ b/koyeb/api/docs/NextInvoiceReply.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.next_invoice_reply import NextInvoiceReply +from koyeb.api.models.next_invoice_reply import NextInvoiceReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NextInvoiceReplyDiscount.md b/koyeb/api/docs/NextInvoiceReplyDiscount.md similarity index 93% rename from koyeb/docs/NextInvoiceReplyDiscount.md rename to koyeb/api/docs/NextInvoiceReplyDiscount.md index 15651e76..1520ba59 100644 --- a/koyeb/docs/NextInvoiceReplyDiscount.md +++ b/koyeb/api/docs/NextInvoiceReplyDiscount.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.next_invoice_reply_discount import NextInvoiceReplyDiscount +from koyeb.api.models.next_invoice_reply_discount import NextInvoiceReplyDiscount # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NextInvoiceReplyDiscountType.md b/koyeb/api/docs/NextInvoiceReplyDiscountType.md similarity index 100% rename from koyeb/docs/NextInvoiceReplyDiscountType.md rename to koyeb/api/docs/NextInvoiceReplyDiscountType.md diff --git a/koyeb/docs/NextInvoiceReplyLine.md b/koyeb/api/docs/NextInvoiceReplyLine.md similarity index 94% rename from koyeb/docs/NextInvoiceReplyLine.md rename to koyeb/api/docs/NextInvoiceReplyLine.md index 50f38fe8..cedb816d 100644 --- a/koyeb/docs/NextInvoiceReplyLine.md +++ b/koyeb/api/docs/NextInvoiceReplyLine.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.next_invoice_reply_line import NextInvoiceReplyLine +from koyeb.api.models.next_invoice_reply_line import NextInvoiceReplyLine # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NextInvoiceReplyLinePeriod.md b/koyeb/api/docs/NextInvoiceReplyLinePeriod.md similarity index 92% rename from koyeb/docs/NextInvoiceReplyLinePeriod.md rename to koyeb/api/docs/NextInvoiceReplyLinePeriod.md index 44a609e8..823b0f7d 100644 --- a/koyeb/docs/NextInvoiceReplyLinePeriod.md +++ b/koyeb/api/docs/NextInvoiceReplyLinePeriod.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod +from koyeb.api.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NextInvoiceReplyLinePrice.md b/koyeb/api/docs/NextInvoiceReplyLinePrice.md similarity index 91% rename from koyeb/docs/NextInvoiceReplyLinePrice.md rename to koyeb/api/docs/NextInvoiceReplyLinePrice.md index b28a6444..dcab3b55 100644 --- a/koyeb/docs/NextInvoiceReplyLinePrice.md +++ b/koyeb/api/docs/NextInvoiceReplyLinePrice.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice +from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Notification.md b/koyeb/api/docs/Notification.md similarity index 94% rename from koyeb/docs/Notification.md rename to koyeb/api/docs/Notification.md index 4dd6ebef..075aa949 100644 --- a/koyeb/docs/Notification.md +++ b/koyeb/api/docs/Notification.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.notification import Notification +from koyeb.api.models.notification import Notification # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/NotificationList.md b/koyeb/api/docs/NotificationList.md similarity index 94% rename from koyeb/docs/NotificationList.md rename to koyeb/api/docs/NotificationList.md index 247b7df6..4bba0579 100644 --- a/koyeb/docs/NotificationList.md +++ b/koyeb/api/docs/NotificationList.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.notification_list import NotificationList +from koyeb.api.models.notification_list import NotificationList # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/OAuthCallbackReply.md b/koyeb/api/docs/OAuthCallbackReply.md similarity index 92% rename from koyeb/docs/OAuthCallbackReply.md rename to koyeb/api/docs/OAuthCallbackReply.md index 1430fd10..eb98a565 100644 --- a/koyeb/docs/OAuthCallbackReply.md +++ b/koyeb/api/docs/OAuthCallbackReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.o_auth_callback_reply import OAuthCallbackReply +from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/OAuthCallbackRequest.md b/koyeb/api/docs/OAuthCallbackRequest.md similarity index 94% rename from koyeb/docs/OAuthCallbackRequest.md rename to koyeb/api/docs/OAuthCallbackRequest.md index 56ffa155..0632c455 100644 --- a/koyeb/docs/OAuthCallbackRequest.md +++ b/koyeb/api/docs/OAuthCallbackRequest.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.o_auth_callback_request import OAuthCallbackRequest +from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/OAuthProvider.md b/koyeb/api/docs/OAuthProvider.md similarity index 93% rename from koyeb/docs/OAuthProvider.md rename to koyeb/api/docs/OAuthProvider.md index aac530c2..db5ccdb9 100644 --- a/koyeb/docs/OAuthProvider.md +++ b/koyeb/api/docs/OAuthProvider.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.o_auth_provider import OAuthProvider +from koyeb.api.models.o_auth_provider import OAuthProvider # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Object.md b/koyeb/api/docs/Object.md similarity index 95% rename from koyeb/docs/Object.md rename to koyeb/api/docs/Object.md index a8db989f..b88352b5 100644 --- a/koyeb/docs/Object.md +++ b/koyeb/api/docs/Object.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.object import Object +from koyeb.api.models.object import Object # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Organization.md b/koyeb/api/docs/Organization.md similarity index 96% rename from koyeb/docs/Organization.md rename to koyeb/api/docs/Organization.md index 2f6e18b2..b11b379c 100644 --- a/koyeb/docs/Organization.md +++ b/koyeb/api/docs/Organization.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | [optional] +**external_id** | **str** | | [optional] **address1** | **str** | | [optional] **address2** | **str** | | [optional] **city** | **str** | | [optional] @@ -38,7 +39,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/OrganizationApi.md b/koyeb/api/docs/OrganizationApi.md similarity index 87% rename from koyeb/docs/OrganizationApi.md rename to koyeb/api/docs/OrganizationApi.md index ea21cd2f..fd344863 100644 --- a/koyeb/docs/OrganizationApi.md +++ b/koyeb/api/docs/OrganizationApi.md @@ -1,4 +1,4 @@ -# koyeb.OrganizationApi +# koyeb.api.OrganizationApi All URIs are relative to *https://app.koyeb.com* @@ -43,15 +43,15 @@ is a floating point in seconds (so `123.456789012s` means 123 seconds and * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_access_token_reply import CreateAccessTokenReply -from koyeb.models.create_access_token_request import CreateAccessTokenRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply +from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -67,11 +67,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | Organization id for ephemeral credential - body = koyeb.CreateAccessTokenRequest() # CreateAccessTokenRequest | + body = koyeb.api.CreateAccessTokenRequest() # CreateAccessTokenRequest | try: # CreateAccessToken @@ -130,15 +130,15 @@ Create Budget * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_budget_reply import CreateBudgetReply -from koyeb.models.update_budget_request import UpdateBudgetRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_budget_reply import CreateBudgetReply +from koyeb.api.models.update_budget_request import UpdateBudgetRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -154,11 +154,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) organization_id = 'organization_id_example' # str | - body = koyeb.UpdateBudgetRequest() # UpdateBudgetRequest | + body = koyeb.api.UpdateBudgetRequest() # UpdateBudgetRequest | try: # Create Budget @@ -217,15 +217,15 @@ Create Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_organization_reply import CreateOrganizationReply -from koyeb.models.create_organization_request import CreateOrganizationRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_organization_reply import CreateOrganizationReply +from koyeb.api.models.create_organization_request import CreateOrganizationRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -241,10 +241,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) - body = koyeb.CreateOrganizationRequest() # CreateOrganizationRequest | + api_instance = koyeb.api.OrganizationApi(api_client) + body = koyeb.api.CreateOrganizationRequest() # CreateOrganizationRequest | try: # Create Organization @@ -302,15 +302,15 @@ Deactivate an Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.deactivate_organization_reply import DeactivateOrganizationReply -from koyeb.models.deactivate_organization_request import DeactivateOrganizationRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply +from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -326,11 +326,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | - body = koyeb.DeactivateOrganizationRequest() # DeactivateOrganizationRequest | + body = koyeb.api.DeactivateOrganizationRequest() # DeactivateOrganizationRequest | try: # Deactivate an Organization @@ -389,13 +389,13 @@ Delete Budget * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -411,9 +411,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) organization_id = 'organization_id_example' # str | try: @@ -472,14 +472,14 @@ Delete an Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.delete_organization_reply import DeleteOrganizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -495,9 +495,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | try: @@ -556,14 +556,14 @@ Get Budget * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_budget_reply import GetBudgetReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_budget_reply import GetBudgetReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -579,9 +579,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) organization_id = 'organization_id_example' # str | try: @@ -640,14 +640,14 @@ Fetch Github Installation configuration * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_github_installation_reply import GetGithubInstallationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -663,9 +663,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) try: # Fetch Github Installation configuration @@ -720,14 +720,14 @@ Get Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_organization_reply import GetOrganizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_organization_reply import GetOrganizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -743,9 +743,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | try: @@ -804,15 +804,15 @@ Start Github Installation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.github_installation_reply import GithubInstallationReply -from koyeb.models.github_installation_request import GithubInstallationRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.github_installation_reply import GithubInstallationReply +from koyeb.api.models.github_installation_request import GithubInstallationRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -828,10 +828,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) - body = koyeb.GithubInstallationRequest() # GithubInstallationRequest | + api_instance = koyeb.api.OrganizationApi(api_client) + body = koyeb.api.GithubInstallationRequest() # GithubInstallationRequest | try: # Start Github Installation @@ -889,14 +889,14 @@ Reactivate an Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.reactivate_organization_reply import ReactivateOrganizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -912,9 +912,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | body = None # object | @@ -975,14 +975,14 @@ Switch Organization context * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -998,9 +998,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | body = None # object | seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) @@ -1068,14 +1068,14 @@ without invalidating his token. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1091,9 +1091,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) body = None # object | seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) @@ -1154,15 +1154,15 @@ Update Budget * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_budget_reply import UpdateBudgetReply -from koyeb.models.update_budget_request import UpdateBudgetRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_budget_reply import UpdateBudgetReply +from koyeb.api.models.update_budget_request import UpdateBudgetRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1178,11 +1178,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) organization_id = 'organization_id_example' # str | - body = koyeb.UpdateBudgetRequest() # UpdateBudgetRequest | + body = koyeb.api.UpdateBudgetRequest() # UpdateBudgetRequest | try: # Update Budget @@ -1241,15 +1241,15 @@ Update Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.organization import Organization -from koyeb.models.update_organization_reply import UpdateOrganizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.organization import Organization +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1265,11 +1265,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | - organization = koyeb.Organization() # Organization | + organization = koyeb.api.Organization() # Organization | update_mask = 'update_mask_example' # str | (optional) try: @@ -1330,15 +1330,15 @@ Update Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.organization import Organization -from koyeb.models.update_organization_reply import UpdateOrganizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.organization import Organization +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1354,11 +1354,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | - organization = koyeb.Organization() # Organization | + organization = koyeb.api.Organization() # Organization | update_mask = 'update_mask_example' # str | (optional) try: @@ -1419,15 +1419,15 @@ Update Organization plan * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_organization_plan_reply import UpdateOrganizationPlanReply -from koyeb.models.update_organization_plan_request import UpdateOrganizationPlanRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply +from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1443,11 +1443,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | - body = koyeb.UpdateOrganizationPlanRequest() # UpdateOrganizationPlanRequest | + body = koyeb.api.UpdateOrganizationPlanRequest() # UpdateOrganizationPlanRequest | try: # Update Organization plan @@ -1506,15 +1506,15 @@ Upsert Organization's signup qualification * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply -from koyeb.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply +from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1530,11 +1530,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationApi(api_client) + api_instance = koyeb.api.OrganizationApi(api_client) id = 'id_example' # str | - body = koyeb.UpsertSignupQualificationRequest() # UpsertSignupQualificationRequest | + body = koyeb.api.UpsertSignupQualificationRequest() # UpsertSignupQualificationRequest | try: # Upsert Organization's signup qualification diff --git a/koyeb/docs/OrganizationConfirmationsApi.md b/koyeb/api/docs/OrganizationConfirmationsApi.md similarity index 91% rename from koyeb/docs/OrganizationConfirmationsApi.md rename to koyeb/api/docs/OrganizationConfirmationsApi.md index 8b6500df..424bb98a 100644 --- a/koyeb/docs/OrganizationConfirmationsApi.md +++ b/koyeb/api/docs/OrganizationConfirmationsApi.md @@ -1,4 +1,4 @@ -# koyeb.OrganizationConfirmationsApi +# koyeb.api.OrganizationConfirmationsApi All URIs are relative to *https://app.koyeb.com* @@ -17,13 +17,13 @@ Confirm organization action * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -39,9 +39,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationConfirmationsApi(api_client) + api_instance = koyeb.api.OrganizationConfirmationsApi(api_client) id = 'id_example' # str | try: diff --git a/koyeb/docs/OrganizationDeactivationReason.md b/koyeb/api/docs/OrganizationDeactivationReason.md similarity index 100% rename from koyeb/docs/OrganizationDeactivationReason.md rename to koyeb/api/docs/OrganizationDeactivationReason.md diff --git a/koyeb/docs/OrganizationDetailedStatus.md b/koyeb/api/docs/OrganizationDetailedStatus.md similarity index 100% rename from koyeb/docs/OrganizationDetailedStatus.md rename to koyeb/api/docs/OrganizationDetailedStatus.md diff --git a/koyeb/docs/OrganizationInvitation.md b/koyeb/api/docs/OrganizationInvitation.md similarity index 95% rename from koyeb/docs/OrganizationInvitation.md rename to koyeb/api/docs/OrganizationInvitation.md index 125a9e15..0221f7c0 100644 --- a/koyeb/docs/OrganizationInvitation.md +++ b/koyeb/api/docs/OrganizationInvitation.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/OrganizationInvitationStatus.md b/koyeb/api/docs/OrganizationInvitationStatus.md similarity index 100% rename from koyeb/docs/OrganizationInvitationStatus.md rename to koyeb/api/docs/OrganizationInvitationStatus.md diff --git a/koyeb/docs/OrganizationInvitationsApi.md b/koyeb/api/docs/OrganizationInvitationsApi.md similarity index 89% rename from koyeb/docs/OrganizationInvitationsApi.md rename to koyeb/api/docs/OrganizationInvitationsApi.md index 689ccba5..2c338f20 100644 --- a/koyeb/docs/OrganizationInvitationsApi.md +++ b/koyeb/api/docs/OrganizationInvitationsApi.md @@ -1,4 +1,4 @@ -# koyeb.OrganizationInvitationsApi +# koyeb.api.OrganizationInvitationsApi All URIs are relative to *https://app.koyeb.com* @@ -21,15 +21,15 @@ Create Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_organization_invitation_reply import CreateOrganizationInvitationReply -from koyeb.models.create_organization_invitation_request import CreateOrganizationInvitationRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_organization_invitation_reply import CreateOrganizationInvitationReply +from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -45,10 +45,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationInvitationsApi(api_client) - body = koyeb.CreateOrganizationInvitationRequest() # CreateOrganizationInvitationRequest | + api_instance = koyeb.api.OrganizationInvitationsApi(api_client) + body = koyeb.api.CreateOrganizationInvitationRequest() # CreateOrganizationInvitationRequest | try: # Create Organization Invitation @@ -106,13 +106,13 @@ Delete Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -128,9 +128,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationInvitationsApi(api_client) + api_instance = koyeb.api.OrganizationInvitationsApi(api_client) id = 'id_example' # str | The id of the organization invitation to delete try: @@ -189,14 +189,14 @@ Get Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_organization_invitation_reply import GetOrganizationInvitationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_organization_invitation_reply import GetOrganizationInvitationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -212,9 +212,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationInvitationsApi(api_client) + api_instance = koyeb.api.OrganizationInvitationsApi(api_client) id = 'id_example' # str | The id of the invitation to get try: @@ -273,14 +273,14 @@ List Organization Invitations * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_organization_invitations_reply import ListOrganizationInvitationsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_organization_invitations_reply import ListOrganizationInvitationsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -296,9 +296,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationInvitationsApi(api_client) + api_instance = koyeb.api.OrganizationInvitationsApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) statuses = ['statuses_example'] # List[str] | (Optional) Filter on organization invitation statuses (optional) @@ -363,14 +363,14 @@ Resend Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -386,9 +386,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationInvitationsApi(api_client) + api_instance = koyeb.api.OrganizationInvitationsApi(api_client) id = 'id_example' # str | The id of the organization invitation to resend body = None # object | diff --git a/koyeb/docs/OrganizationMember.md b/koyeb/api/docs/OrganizationMember.md similarity index 95% rename from koyeb/docs/OrganizationMember.md rename to koyeb/api/docs/OrganizationMember.md index 3299b391..17c5f445 100644 --- a/koyeb/docs/OrganizationMember.md +++ b/koyeb/api/docs/OrganizationMember.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.organization_member import OrganizationMember +from koyeb.api.models.organization_member import OrganizationMember # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/OrganizationMemberStatus.md b/koyeb/api/docs/OrganizationMemberStatus.md similarity index 100% rename from koyeb/docs/OrganizationMemberStatus.md rename to koyeb/api/docs/OrganizationMemberStatus.md diff --git a/koyeb/docs/OrganizationMembersApi.md b/koyeb/api/docs/OrganizationMembersApi.md similarity index 90% rename from koyeb/docs/OrganizationMembersApi.md rename to koyeb/api/docs/OrganizationMembersApi.md index f417df21..bba1c15e 100644 --- a/koyeb/docs/OrganizationMembersApi.md +++ b/koyeb/api/docs/OrganizationMembersApi.md @@ -1,4 +1,4 @@ -# koyeb.OrganizationMembersApi +# koyeb.api.OrganizationMembersApi All URIs are relative to *https://app.koyeb.com* @@ -18,14 +18,14 @@ List organization members * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_organization_members_reply import ListOrganizationMembersReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,9 +41,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationMembersApi(api_client) + api_instance = koyeb.api.OrganizationMembersApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) organization_id = 'organization_id_example' # str | (Optional) Filter for an organization (optional) @@ -110,14 +110,14 @@ Remove an organization member * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.remove_organization_member_reply import RemoveOrganizationMemberReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -133,9 +133,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationMembersApi(api_client) + api_instance = koyeb.api.OrganizationMembersApi(api_client) id = 'id_example' # str | try: diff --git a/koyeb/docs/OrganizationQuotasApi.md b/koyeb/api/docs/OrganizationQuotasApi.md similarity index 89% rename from koyeb/docs/OrganizationQuotasApi.md rename to koyeb/api/docs/OrganizationQuotasApi.md index fdf82f18..dbd100a5 100644 --- a/koyeb/docs/OrganizationQuotasApi.md +++ b/koyeb/api/docs/OrganizationQuotasApi.md @@ -1,4 +1,4 @@ -# koyeb.OrganizationQuotasApi +# koyeb.api.OrganizationQuotasApi All URIs are relative to *https://app.koyeb.com* @@ -15,14 +15,14 @@ Method | HTTP request | Description * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_quotas_reply import GetQuotasReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_quotas_reply import GetQuotasReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -38,9 +38,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.OrganizationQuotasApi(api_client) + api_instance = koyeb.api.OrganizationQuotasApi(api_client) organization_id = 'organization_id_example' # str | try: diff --git a/koyeb/docs/OrganizationStatus.md b/koyeb/api/docs/OrganizationStatus.md similarity index 100% rename from koyeb/docs/OrganizationStatus.md rename to koyeb/api/docs/OrganizationStatus.md diff --git a/koyeb/docs/OrganizationSummary.md b/koyeb/api/docs/OrganizationSummary.md similarity index 95% rename from koyeb/docs/OrganizationSummary.md rename to koyeb/api/docs/OrganizationSummary.md index 162b2504..23a25746 100644 --- a/koyeb/docs/OrganizationSummary.md +++ b/koyeb/api/docs/OrganizationSummary.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.organization_summary import OrganizationSummary +from koyeb.api.models.organization_summary import OrganizationSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PaymentMethod.md b/koyeb/api/docs/PaymentMethod.md similarity index 97% rename from koyeb/docs/PaymentMethod.md rename to koyeb/api/docs/PaymentMethod.md index 50d34380..c78078f1 100644 --- a/koyeb/docs/PaymentMethod.md +++ b/koyeb/api/docs/PaymentMethod.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.payment_method import PaymentMethod +from koyeb.api.models.payment_method import PaymentMethod # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PaymentMethodStatus.md b/koyeb/api/docs/PaymentMethodStatus.md similarity index 100% rename from koyeb/docs/PaymentMethodStatus.md rename to koyeb/api/docs/PaymentMethodStatus.md diff --git a/koyeb/docs/PaymentMethodsApi.md b/koyeb/api/docs/PaymentMethodsApi.md similarity index 90% rename from koyeb/docs/PaymentMethodsApi.md rename to koyeb/api/docs/PaymentMethodsApi.md index 5189da05..e02e1b6c 100644 --- a/koyeb/docs/PaymentMethodsApi.md +++ b/koyeb/api/docs/PaymentMethodsApi.md @@ -1,4 +1,4 @@ -# koyeb.PaymentMethodsApi +# koyeb.api.PaymentMethodsApi All URIs are relative to *https://app.koyeb.com* @@ -21,14 +21,14 @@ Confirm payment authorization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -44,9 +44,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PaymentMethodsApi(api_client) + api_instance = koyeb.api.PaymentMethodsApi(api_client) id = 'id_example' # str | body = None # object | @@ -107,14 +107,14 @@ Create payment authorization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -130,9 +130,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PaymentMethodsApi(api_client) + api_instance = koyeb.api.PaymentMethodsApi(api_client) body = None # object | try: @@ -191,13 +191,13 @@ Delete payment method * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -213,9 +213,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PaymentMethodsApi(api_client) + api_instance = koyeb.api.PaymentMethodsApi(api_client) id = 'id_example' # str | try: @@ -274,14 +274,14 @@ Get payment method * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_payment_method_reply import GetPaymentMethodReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -297,9 +297,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PaymentMethodsApi(api_client) + api_instance = koyeb.api.PaymentMethodsApi(api_client) id = 'id_example' # str | try: @@ -358,14 +358,14 @@ List payment methods * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_payment_methods_reply import ListPaymentMethodsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -381,9 +381,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PaymentMethodsApi(api_client) + api_instance = koyeb.api.PaymentMethodsApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) statuses = ['statuses_example'] # List[str] | (Optional) Filter on payment method statuses (optional) diff --git a/koyeb/docs/PeriodUsage.md b/koyeb/api/docs/PeriodUsage.md similarity index 94% rename from koyeb/docs/PeriodUsage.md rename to koyeb/api/docs/PeriodUsage.md index 170f6768..fe2c881a 100644 --- a/koyeb/docs/PeriodUsage.md +++ b/koyeb/api/docs/PeriodUsage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.period_usage import PeriodUsage +from koyeb.api.models.period_usage import PeriodUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PersistentVolume.md b/koyeb/api/docs/PersistentVolume.md similarity index 96% rename from koyeb/docs/PersistentVolume.md rename to koyeb/api/docs/PersistentVolume.md index 10a4e868..155df03a 100644 --- a/koyeb/docs/PersistentVolume.md +++ b/koyeb/api/docs/PersistentVolume.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume import PersistentVolume # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PersistentVolumeBackingStore.md b/koyeb/api/docs/PersistentVolumeBackingStore.md similarity index 100% rename from koyeb/docs/PersistentVolumeBackingStore.md rename to koyeb/api/docs/PersistentVolumeBackingStore.md diff --git a/koyeb/docs/PersistentVolumeEvent.md b/koyeb/api/docs/PersistentVolumeEvent.md similarity index 93% rename from koyeb/docs/PersistentVolumeEvent.md rename to koyeb/api/docs/PersistentVolumeEvent.md index 6f88e9e9..25c62885 100644 --- a/koyeb/docs/PersistentVolumeEvent.md +++ b/koyeb/api/docs/PersistentVolumeEvent.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.persistent_volume_event import PersistentVolumeEvent +from koyeb.api.models.persistent_volume_event import PersistentVolumeEvent # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PersistentVolumeQuotas.md b/koyeb/api/docs/PersistentVolumeQuotas.md similarity index 93% rename from koyeb/docs/PersistentVolumeQuotas.md rename to koyeb/api/docs/PersistentVolumeQuotas.md index 21c06ecb..bfd1810a 100644 --- a/koyeb/docs/PersistentVolumeQuotas.md +++ b/koyeb/api/docs/PersistentVolumeQuotas.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.persistent_volume_quotas import PersistentVolumeQuotas +from koyeb.api.models.persistent_volume_quotas import PersistentVolumeQuotas # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PersistentVolumeStatus.md b/koyeb/api/docs/PersistentVolumeStatus.md similarity index 100% rename from koyeb/docs/PersistentVolumeStatus.md rename to koyeb/api/docs/PersistentVolumeStatus.md diff --git a/koyeb/docs/PersistentVolumesApi.md b/koyeb/api/docs/PersistentVolumesApi.md similarity index 88% rename from koyeb/docs/PersistentVolumesApi.md rename to koyeb/api/docs/PersistentVolumesApi.md index 083da506..6797c509 100644 --- a/koyeb/docs/PersistentVolumesApi.md +++ b/koyeb/api/docs/PersistentVolumesApi.md @@ -1,4 +1,4 @@ -# koyeb.PersistentVolumesApi +# koyeb.api.PersistentVolumesApi All URIs are relative to *https://app.koyeb.com* @@ -22,15 +22,15 @@ Create a PersistentVolume * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_persistent_volume_reply import CreatePersistentVolumeReply -from koyeb.models.create_persistent_volume_request import CreatePersistentVolumeRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply +from koyeb.api.models.create_persistent_volume_request import CreatePersistentVolumeRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -46,10 +46,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PersistentVolumesApi(api_client) - body = koyeb.CreatePersistentVolumeRequest() # CreatePersistentVolumeRequest | + api_instance = koyeb.api.PersistentVolumesApi(api_client) + body = koyeb.api.CreatePersistentVolumeRequest() # CreatePersistentVolumeRequest | try: # Create a PersistentVolume @@ -107,14 +107,14 @@ Delete a PersistentVolume * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.delete_persistent_volume_reply import DeletePersistentVolumeReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -130,9 +130,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PersistentVolumesApi(api_client) + api_instance = koyeb.api.PersistentVolumesApi(api_client) id = 'id_example' # str | try: @@ -191,14 +191,14 @@ Get a PersistentVolume * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_persistent_volume_reply import GetPersistentVolumeReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -214,9 +214,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PersistentVolumesApi(api_client) + api_instance = koyeb.api.PersistentVolumesApi(api_client) id = 'id_example' # str | try: @@ -275,14 +275,14 @@ List Persistent Volume events * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -298,9 +298,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PersistentVolumesApi(api_client) + api_instance = koyeb.api.PersistentVolumesApi(api_client) persistent_volume_id = 'persistent_volume_id_example' # str | (Optional) Filter on persistent volume id (optional) types = ['types_example'] # List[str] | (Optional) Filter on persistent volume event types (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) @@ -367,14 +367,14 @@ List all PersistentVolumes * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_persistent_volumes_reply import ListPersistentVolumesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -390,9 +390,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PersistentVolumesApi(api_client) + api_instance = koyeb.api.PersistentVolumesApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) service_id = 'service_id_example' # str | (Optional) A filter for the service id (optional) @@ -459,15 +459,15 @@ Update a PersistentVolume * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_persistent_volume_reply import UpdatePersistentVolumeReply -from koyeb.models.update_persistent_volume_request import UpdatePersistentVolumeRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply +from koyeb.api.models.update_persistent_volume_request import UpdatePersistentVolumeRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -483,11 +483,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.PersistentVolumesApi(api_client) + api_instance = koyeb.api.PersistentVolumesApi(api_client) id = 'id_example' # str | - body = koyeb.UpdatePersistentVolumeRequest() # UpdatePersistentVolumeRequest | + body = koyeb.api.UpdatePersistentVolumeRequest() # UpdatePersistentVolumeRequest | try: # Update a PersistentVolume diff --git a/koyeb/docs/Plan.md b/koyeb/api/docs/Plan.md similarity index 100% rename from koyeb/docs/Plan.md rename to koyeb/api/docs/Plan.md diff --git a/koyeb/docs/Port.md b/koyeb/api/docs/Port.md similarity index 95% rename from koyeb/docs/Port.md rename to koyeb/api/docs/Port.md index 33402eed..42347075 100644 --- a/koyeb/docs/Port.md +++ b/koyeb/api/docs/Port.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.port import Port +from koyeb.api.models.port import Port # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PrivateRegistryConfiguration.md b/koyeb/api/docs/PrivateRegistryConfiguration.md similarity index 92% rename from koyeb/docs/PrivateRegistryConfiguration.md rename to koyeb/api/docs/PrivateRegistryConfiguration.md index ddca1fdd..7d60b37a 100644 --- a/koyeb/docs/PrivateRegistryConfiguration.md +++ b/koyeb/api/docs/PrivateRegistryConfiguration.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.private_registry_configuration import PrivateRegistryConfiguration +from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ProfileApi.md b/koyeb/api/docs/ProfileApi.md similarity index 80% rename from koyeb/docs/ProfileApi.md rename to koyeb/api/docs/ProfileApi.md index 6837c59e..49aa4d4a 100644 --- a/koyeb/docs/ProfileApi.md +++ b/koyeb/api/docs/ProfileApi.md @@ -1,4 +1,4 @@ -# koyeb.ProfileApi +# koyeb.api.ProfileApi All URIs are relative to *https://app.koyeb.com* @@ -24,6 +24,8 @@ Method | HTTP request | Description [**update_user**](ProfileApi.md#update_user) | **PUT** /v1/account/profile | Update User [**update_user2**](ProfileApi.md#update_user2) | **PATCH** /v1/account/profile | Update User [**update_user_settings**](ProfileApi.md#update_user_settings) | **PATCH** /v1/account/settings | +[**update_user_v2**](ProfileApi.md#update_user_v2) | **PUT** /v2/account/profile | Update User V2 +[**update_user_v22**](ProfileApi.md#update_user_v22) | **PATCH** /v2/account/profile | Update User V2 [**validate**](ProfileApi.md#validate) | **POST** /v1/account/validate/{id} | Validate @@ -37,14 +39,14 @@ Accept Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -60,9 +62,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) id = 'id_example' # str | The id of the organization invitation to accept body = None # object | @@ -123,14 +125,14 @@ ClearIdenfyVerificationResult marks the current result for idenfy as superseded * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -146,10 +148,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - body = koyeb.ClearIdenfyVerificationResultRequest() # ClearIdenfyVerificationResultRequest | + api_instance = koyeb.api.ProfileApi(api_client) + body = koyeb.api.ClearIdenfyVerificationResultRequest() # ClearIdenfyVerificationResultRequest | try: # ClearIdenfyVerificationResult marks the current result for idenfy as superseded @@ -207,14 +209,14 @@ Decline Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -230,9 +232,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) id = 'id_example' # str | The id of the organization invitation to decline body = None # object | @@ -293,14 +295,14 @@ Get Current Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_organization_reply import GetOrganizationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_organization_reply import GetOrganizationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -316,9 +318,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) try: # Get Current Organization @@ -373,14 +375,14 @@ Get Current User * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.user_reply import UserReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.user_reply import UserReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -396,9 +398,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) try: # Get Current User @@ -453,14 +455,14 @@ Begin a session with iDenfy, emit an authToken * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_idenfy_token_reply import GetIdenfyTokenReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -476,9 +478,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) try: # Begin a session with iDenfy, emit an authToken @@ -533,14 +535,14 @@ Get OAuth Providers * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_o_auth_options_reply import GetOAuthOptionsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -556,9 +558,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) action = signin # str | Which authentication flow is being initiated (optional) (default to signin) metadata = 'metadata_example' # str | A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state (optional) @@ -619,14 +621,14 @@ Get User Organization Invitation * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -642,9 +644,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) id = 'id_example' # str | The id of the organization invitation to get try: @@ -701,14 +703,14 @@ Name | Type | Description | Notes * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_user_settings_reply import GetUserSettingsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -724,9 +726,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) try: api_response = api_instance.get_user_settings() @@ -780,14 +782,14 @@ List User Organization Invitations * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -803,9 +805,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) statuses = ['statuses_example'] # List[str] | (Optional) Filter on organization invitation statuses (optional) @@ -870,14 +872,14 @@ List all organizations that the current user is a member of. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_user_organizations_reply import ListUserOrganizationsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -893,9 +895,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) limit = 'limit_example' # str | (Optional) Define pagination limit (optional) offset = 'offset_example' # str | (Optional) Define pagination offset (optional) order = 'order_example' # str | (Optional) Sorts the list in the ascending or the descending order (optional) @@ -962,14 +964,14 @@ Get the login method for an email address * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_method_reply import LoginMethodReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_method_reply import LoginMethodReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -985,9 +987,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) email = 'email_example' # str | (optional) try: @@ -1046,15 +1048,15 @@ Authenticate using OAuth * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.o_auth_callback_reply import OAuthCallbackReply -from koyeb.models.o_auth_callback_request import OAuthCallbackRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply +from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1070,10 +1072,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - body = koyeb.OAuthCallbackRequest() # OAuthCallbackRequest | + api_instance = koyeb.api.ProfileApi(api_client) + body = koyeb.api.OAuthCallbackRequest() # OAuthCallbackRequest | seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) try: @@ -1133,13 +1135,13 @@ Resend Email Verification * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1155,9 +1157,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) body = None # object | try: @@ -1216,14 +1218,14 @@ Reset Password * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.reset_password_request import ResetPasswordRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.reset_password_request import ResetPasswordRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1239,10 +1241,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - body = koyeb.ResetPasswordRequest() # ResetPasswordRequest | + api_instance = koyeb.api.ProfileApi(api_client) + body = koyeb.api.ResetPasswordRequest() # ResetPasswordRequest | try: # Reset Password @@ -1300,15 +1302,15 @@ Signup * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_account_request import CreateAccountRequest -from koyeb.models.login_reply import LoginReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_account_request import CreateAccountRequest +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1324,10 +1326,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - body = koyeb.CreateAccountRequest() # CreateAccountRequest | Create new account + api_instance = koyeb.api.ProfileApi(api_client) + body = koyeb.api.CreateAccountRequest() # CreateAccountRequest | Create new account seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) try: @@ -1387,15 +1389,15 @@ Update Password * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.models.update_password_request import UpdatePasswordRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.models.update_password_request import UpdatePasswordRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1411,10 +1413,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - body = koyeb.UpdatePasswordRequest() # UpdatePasswordRequest | + api_instance = koyeb.api.ProfileApi(api_client) + body = koyeb.api.UpdatePasswordRequest() # UpdatePasswordRequest | seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) try: @@ -1474,15 +1476,15 @@ Update User * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody -from koyeb.models.user_reply import UserReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.user_reply import UserReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1498,10 +1500,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - user = koyeb.UpdateUserRequestUserUpdateBody() # UpdateUserRequestUserUpdateBody | + api_instance = koyeb.api.ProfileApi(api_client) + user = koyeb.api.UpdateUserRequestUserUpdateBody() # UpdateUserRequestUserUpdateBody | update_mask = 'update_mask_example' # str | (optional) try: @@ -1561,15 +1563,15 @@ Update User * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody -from koyeb.models.user_reply import UserReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.user_reply import UserReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1585,10 +1587,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - user = koyeb.UpdateUserRequestUserUpdateBody() # UpdateUserRequestUserUpdateBody | + api_instance = koyeb.api.ProfileApi(api_client) + user = koyeb.api.UpdateUserRequestUserUpdateBody() # UpdateUserRequestUserUpdateBody | update_mask = 'update_mask_example' # str | (optional) try: @@ -1646,15 +1648,15 @@ Name | Type | Description | Notes * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_user_settings_reply import UpdateUserSettingsReply -from koyeb.models.update_user_settings_request import UpdateUserSettingsRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply +from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1670,10 +1672,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) - body = koyeb.UpdateUserSettingsRequest() # UpdateUserSettingsRequest | + api_instance = koyeb.api.ProfileApi(api_client) + body = koyeb.api.UpdateUserSettingsRequest() # UpdateUserSettingsRequest | try: api_response = api_instance.update_user_settings(body) @@ -1720,6 +1722,180 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **update_user_v2** +> UserReply update_user_v2(user, update_mask=update_mask) + +Update User V2 + +### Example + +* Api Key Authentication (Bearer): + +```python +import koyeb.api +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.user_reply import UserReply +from koyeb.api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://app.koyeb.com +# See configuration.py for a list of all supported configuration parameters. +configuration = koyeb.api.Configuration( + host = "https://app.koyeb.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration.api_key['Bearer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Bearer'] = 'Bearer' + +# Enter a context with an instance of the API client +with koyeb.api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = koyeb.api.ProfileApi(api_client) + user = koyeb.api.UpdateUserRequestUserUpdateBody() # UpdateUserRequestUserUpdateBody | + update_mask = 'update_mask_example' # str | (optional) + + try: + # Update User V2 + api_response = api_instance.update_user_v2(user, update_mask=update_mask) + print("The response of ProfileApi->update_user_v2:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfileApi->update_user_v2: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user** | [**UpdateUserRequestUserUpdateBody**](UpdateUserRequestUserUpdateBody.md)| | + **update_mask** | **str**| | [optional] + +### Return type + +[**UserReply**](UserReply.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Validation error | - | +**401** | Returned when the token is not valid. | - | +**403** | Returned when the user does not have permission to access the resource. | - | +**404** | Returned when the resource does not exist. | - | +**500** | Returned in case of server error. | - | +**503** | Service is unavailable. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_user_v22** +> UserReply update_user_v22(user, update_mask=update_mask) + +Update User V2 + +### Example + +* Api Key Authentication (Bearer): + +```python +import koyeb.api +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.user_reply import UserReply +from koyeb.api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://app.koyeb.com +# See configuration.py for a list of all supported configuration parameters. +configuration = koyeb.api.Configuration( + host = "https://app.koyeb.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration.api_key['Bearer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Bearer'] = 'Bearer' + +# Enter a context with an instance of the API client +with koyeb.api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = koyeb.api.ProfileApi(api_client) + user = koyeb.api.UpdateUserRequestUserUpdateBody() # UpdateUserRequestUserUpdateBody | + update_mask = 'update_mask_example' # str | (optional) + + try: + # Update User V2 + api_response = api_instance.update_user_v22(user, update_mask=update_mask) + print("The response of ProfileApi->update_user_v22:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfileApi->update_user_v22: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user** | [**UpdateUserRequestUserUpdateBody**](UpdateUserRequestUserUpdateBody.md)| | + **update_mask** | **str**| | [optional] + +### Return type + +[**UserReply**](UserReply.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Validation error | - | +**401** | Returned when the token is not valid. | - | +**403** | Returned when the user does not have permission to access the resource. | - | +**404** | Returned when the resource does not exist. | - | +**500** | Returned in case of server error. | - | +**503** | Service is unavailable. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **validate** > LoginReply validate(id, seon_fp=seon_fp) @@ -1730,14 +1906,14 @@ Validate * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -1753,9 +1929,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProfileApi(api_client) + api_instance = koyeb.api.ProfileApi(api_client) id = 'id_example' # str | seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) diff --git a/koyeb/docs/ProvisioningApi.md b/koyeb/api/docs/ProvisioningApi.md similarity index 88% rename from koyeb/docs/ProvisioningApi.md rename to koyeb/api/docs/ProvisioningApi.md index 09826fbd..8949d250 100644 --- a/koyeb/docs/ProvisioningApi.md +++ b/koyeb/api/docs/ProvisioningApi.md @@ -1,4 +1,4 @@ -# koyeb.ProvisioningApi +# koyeb.api.ProvisioningApi All URIs are relative to *https://app.koyeb.com* @@ -19,14 +19,14 @@ Create an attempt for a stage * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_stage_attempt_request import CreateStageAttemptRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -42,13 +42,13 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProvisioningApi(api_client) + api_instance = koyeb.api.ProvisioningApi(api_client) deployment_id = 'deployment_id_example' # str | stage = 'stage_example' # str | attempt = 'attempt_example' # str | - body = koyeb.CreateStageAttemptRequest() # CreateStageAttemptRequest | + body = koyeb.api.CreateStageAttemptRequest() # CreateStageAttemptRequest | try: # Create an attempt for a stage @@ -109,14 +109,14 @@ Declare stage progress * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.declare_stage_progress_request import DeclareStageProgressRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -132,13 +132,13 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProvisioningApi(api_client) + api_instance = koyeb.api.ProvisioningApi(api_client) deployment_id = 'deployment_id_example' # str | stage = 'stage_example' # str | attempt = 'attempt_example' # str | - body = koyeb.DeclareStageProgressRequest() # DeclareStageProgressRequest | + body = koyeb.api.DeclareStageProgressRequest() # DeclareStageProgressRequest | try: # Declare stage progress @@ -199,14 +199,14 @@ Declare step progress * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.declare_step_progress_request import DeclareStepProgressRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -222,14 +222,14 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ProvisioningApi(api_client) + api_instance = koyeb.api.ProvisioningApi(api_client) deployment_id = 'deployment_id_example' # str | stage = 'stage_example' # str | attempt = 'attempt_example' # str | step = 'step_example' # str | - body = koyeb.DeclareStepProgressRequest() # DeclareStepProgressRequest | + body = koyeb.api.DeclareStepProgressRequest() # DeclareStepProgressRequest | try: # Declare step progress diff --git a/koyeb/docs/ProxyPortProtocol.md b/koyeb/api/docs/ProxyPortProtocol.md similarity index 100% rename from koyeb/docs/ProxyPortProtocol.md rename to koyeb/api/docs/ProxyPortProtocol.md diff --git a/koyeb/docs/PublicOrganization.md b/koyeb/api/docs/PublicOrganization.md similarity index 94% rename from koyeb/docs/PublicOrganization.md rename to koyeb/api/docs/PublicOrganization.md index 52185351..b0276497 100644 --- a/koyeb/docs/PublicOrganization.md +++ b/koyeb/api/docs/PublicOrganization.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.public_organization import PublicOrganization +from koyeb.api.models.public_organization import PublicOrganization # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/PublicUser.md b/koyeb/api/docs/PublicUser.md similarity index 94% rename from koyeb/docs/PublicUser.md rename to koyeb/api/docs/PublicUser.md index 3c477c03..136e718e 100644 --- a/koyeb/docs/PublicUser.md +++ b/koyeb/api/docs/PublicUser.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.public_user import PublicUser +from koyeb.api.models.public_user import PublicUser # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/QueryLogsReply.md b/koyeb/api/docs/QueryLogsReply.md similarity index 93% rename from koyeb/docs/QueryLogsReply.md rename to koyeb/api/docs/QueryLogsReply.md index bc2edd61..b63ae9c0 100644 --- a/koyeb/docs/QueryLogsReply.md +++ b/koyeb/api/docs/QueryLogsReply.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.query_logs_reply import QueryLogsReply +from koyeb.api.models.query_logs_reply import QueryLogsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/QueryLogsReplyPagination.md b/koyeb/api/docs/QueryLogsReplyPagination.md similarity index 92% rename from koyeb/docs/QueryLogsReplyPagination.md rename to koyeb/api/docs/QueryLogsReplyPagination.md index 32b1a99c..6d871d40 100644 --- a/koyeb/docs/QueryLogsReplyPagination.md +++ b/koyeb/api/docs/QueryLogsReplyPagination.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.query_logs_reply_pagination import QueryLogsReplyPagination +from koyeb.api.models.query_logs_reply_pagination import QueryLogsReplyPagination # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Quotas.md b/koyeb/api/docs/Quotas.md similarity index 94% rename from koyeb/docs/Quotas.md rename to koyeb/api/docs/Quotas.md index d7fe64f5..245622cf 100644 --- a/koyeb/docs/Quotas.md +++ b/koyeb/api/docs/Quotas.md @@ -24,11 +24,12 @@ Name | Type | Description | Notes **proxy_ports** | **int** | | [optional] **scale_to_zero** | [**ScaleToZeroQuotas**](ScaleToZeroQuotas.md) | | [optional] **archives** | **str** | | [optional] +**archive_max_size_mb** | **str** | | [optional] ## Example ```python -from koyeb.models.quotas import Quotas +from koyeb.api.models.quotas import Quotas # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/QuotasApi.md b/koyeb/api/docs/QuotasApi.md similarity index 84% rename from koyeb/docs/QuotasApi.md rename to koyeb/api/docs/QuotasApi.md index 9d371ac4..8bab41d8 100644 --- a/koyeb/docs/QuotasApi.md +++ b/koyeb/api/docs/QuotasApi.md @@ -1,4 +1,4 @@ -# koyeb.QuotasApi +# koyeb.api.QuotasApi All URIs are relative to *https://app.koyeb.com* @@ -17,15 +17,15 @@ DEPRECATED: Review Organization Capacity * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply -from koyeb.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply +from koyeb.api.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,10 +41,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.QuotasApi(api_client) - body = koyeb.ReviewOrganizationCapacityRequest() # ReviewOrganizationCapacityRequest | + api_instance = koyeb.api.QuotasApi(api_client) + body = koyeb.api.ReviewOrganizationCapacityRequest() # ReviewOrganizationCapacityRequest | try: # DEPRECATED: Review Organization Capacity diff --git a/koyeb/docs/ReactivateOrganizationReply.md b/koyeb/api/docs/ReactivateOrganizationReply.md similarity index 92% rename from koyeb/docs/ReactivateOrganizationReply.md rename to koyeb/api/docs/ReactivateOrganizationReply.md index 7a687d0b..9215dcc5 100644 --- a/koyeb/docs/ReactivateOrganizationReply.md +++ b/koyeb/api/docs/ReactivateOrganizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.reactivate_organization_reply import ReactivateOrganizationReply +from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RedeemCouponRequest.md b/koyeb/api/docs/RedeemCouponRequest.md similarity index 92% rename from koyeb/docs/RedeemCouponRequest.md rename to koyeb/api/docs/RedeemCouponRequest.md index 247b2924..7e7c88d0 100644 --- a/koyeb/docs/RedeemCouponRequest.md +++ b/koyeb/api/docs/RedeemCouponRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.redeem_coupon_request import RedeemCouponRequest +from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RedeployReply.md b/koyeb/api/docs/RedeployReply.md similarity index 93% rename from koyeb/docs/RedeployReply.md rename to koyeb/api/docs/RedeployReply.md index 1708a173..d638e792 100644 --- a/koyeb/docs/RedeployReply.md +++ b/koyeb/api/docs/RedeployReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.redeploy_reply import RedeployReply +from koyeb.api.models.redeploy_reply import RedeployReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RedeployRequestInfo.md b/koyeb/api/docs/RedeployRequestInfo.md similarity index 94% rename from koyeb/docs/RedeployRequestInfo.md rename to koyeb/api/docs/RedeployRequestInfo.md index 9134c381..3bf278c1 100644 --- a/koyeb/docs/RedeployRequestInfo.md +++ b/koyeb/api/docs/RedeployRequestInfo.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.redeploy_request_info import RedeployRequestInfo +from koyeb.api.models.redeploy_request_info import RedeployRequestInfo # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Region.md b/koyeb/api/docs/Region.md similarity index 96% rename from koyeb/docs/Region.md rename to koyeb/api/docs/Region.md index d8949eaf..4d72c471 100644 --- a/koyeb/docs/Region.md +++ b/koyeb/api/docs/Region.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.region import Region +from koyeb.api.models.region import Region # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionAvailability.md b/koyeb/api/docs/RegionAvailability.md similarity index 93% rename from koyeb/docs/RegionAvailability.md rename to koyeb/api/docs/RegionAvailability.md index 41b5bca9..0ef95dd2 100644 --- a/koyeb/docs/RegionAvailability.md +++ b/koyeb/api/docs/RegionAvailability.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.region_availability import RegionAvailability +from koyeb.api.models.region_availability import RegionAvailability # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionListItem.md b/koyeb/api/docs/RegionListItem.md similarity index 95% rename from koyeb/docs/RegionListItem.md rename to koyeb/api/docs/RegionListItem.md index 27494cf3..bdc3ded4 100644 --- a/koyeb/docs/RegionListItem.md +++ b/koyeb/api/docs/RegionListItem.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.region_list_item import RegionListItem +from koyeb.api.models.region_list_item import RegionListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionUsage.md b/koyeb/api/docs/RegionUsage.md similarity index 93% rename from koyeb/docs/RegionUsage.md rename to koyeb/api/docs/RegionUsage.md index f04cb952..f952ce2e 100644 --- a/koyeb/docs/RegionUsage.md +++ b/koyeb/api/docs/RegionUsage.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.region_usage import RegionUsage +from koyeb.api.models.region_usage import RegionUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionalDeployment.md b/koyeb/api/docs/RegionalDeployment.md similarity index 96% rename from koyeb/docs/RegionalDeployment.md rename to koyeb/api/docs/RegionalDeployment.md index e3c7ebbe..c0bce291 100644 --- a/koyeb/docs/RegionalDeployment.md +++ b/koyeb/api/docs/RegionalDeployment.md @@ -33,7 +33,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.regional_deployment import RegionalDeployment +from koyeb.api.models.regional_deployment import RegionalDeployment # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionalDeploymentDefinition.md b/koyeb/api/docs/RegionalDeploymentDefinition.md similarity index 95% rename from koyeb/docs/RegionalDeploymentDefinition.md rename to koyeb/api/docs/RegionalDeploymentDefinition.md index a8b60fd4..45520488 100644 --- a/koyeb/docs/RegionalDeploymentDefinition.md +++ b/koyeb/api/docs/RegionalDeploymentDefinition.md @@ -26,7 +26,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.regional_deployment_definition import RegionalDeploymentDefinition +from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionalDeploymentDefinitionType.md b/koyeb/api/docs/RegionalDeploymentDefinitionType.md similarity index 100% rename from koyeb/docs/RegionalDeploymentDefinitionType.md rename to koyeb/api/docs/RegionalDeploymentDefinitionType.md diff --git a/koyeb/docs/RegionalDeploymentEvent.md b/koyeb/api/docs/RegionalDeploymentEvent.md similarity index 93% rename from koyeb/docs/RegionalDeploymentEvent.md rename to koyeb/api/docs/RegionalDeploymentEvent.md index 06e782ba..8c5e7a73 100644 --- a/koyeb/docs/RegionalDeploymentEvent.md +++ b/koyeb/api/docs/RegionalDeploymentEvent.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.regional_deployment_event import RegionalDeploymentEvent +from koyeb.api.models.regional_deployment_event import RegionalDeploymentEvent # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionalDeploymentListItem.md b/koyeb/api/docs/RegionalDeploymentListItem.md similarity index 94% rename from koyeb/docs/RegionalDeploymentListItem.md rename to koyeb/api/docs/RegionalDeploymentListItem.md index 79c80272..78d2aabb 100644 --- a/koyeb/docs/RegionalDeploymentListItem.md +++ b/koyeb/api/docs/RegionalDeploymentListItem.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.regional_deployment_list_item import RegionalDeploymentListItem +from koyeb.api.models.regional_deployment_list_item import RegionalDeploymentListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionalDeploymentRole.md b/koyeb/api/docs/RegionalDeploymentRole.md similarity index 100% rename from koyeb/docs/RegionalDeploymentRole.md rename to koyeb/api/docs/RegionalDeploymentRole.md diff --git a/koyeb/docs/RegionalDeploymentStatus.md b/koyeb/api/docs/RegionalDeploymentStatus.md similarity index 100% rename from koyeb/docs/RegionalDeploymentStatus.md rename to koyeb/api/docs/RegionalDeploymentStatus.md diff --git a/koyeb/docs/RegionalDeploymentVolume.md b/koyeb/api/docs/RegionalDeploymentVolume.md similarity index 92% rename from koyeb/docs/RegionalDeploymentVolume.md rename to koyeb/api/docs/RegionalDeploymentVolume.md index 27916f50..10486ab5 100644 --- a/koyeb/docs/RegionalDeploymentVolume.md +++ b/koyeb/api/docs/RegionalDeploymentVolume.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.regional_deployment_volume import RegionalDeploymentVolume +from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RegionalDeploymentsApi.md b/koyeb/api/docs/RegionalDeploymentsApi.md similarity index 91% rename from koyeb/docs/RegionalDeploymentsApi.md rename to koyeb/api/docs/RegionalDeploymentsApi.md index 28378c4e..9f94e709 100644 --- a/koyeb/docs/RegionalDeploymentsApi.md +++ b/koyeb/api/docs/RegionalDeploymentsApi.md @@ -1,4 +1,4 @@ -# koyeb.RegionalDeploymentsApi +# koyeb.api.RegionalDeploymentsApi All URIs are relative to *https://app.koyeb.com* @@ -21,14 +21,14 @@ Experimental: use at your own risk * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_regional_deployment_reply import GetRegionalDeploymentReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -44,9 +44,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.RegionalDeploymentsApi(api_client) + api_instance = koyeb.api.RegionalDeploymentsApi(api_client) id = 'id_example' # str | The id of the regional deployment try: @@ -105,14 +105,14 @@ List Regional Deployment events * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -128,9 +128,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.RegionalDeploymentsApi(api_client) + api_instance = koyeb.api.RegionalDeploymentsApi(api_client) regional_deployment_id = 'regional_deployment_id_example' # str | (Optional) Filter on regional deployment id (optional) types = ['types_example'] # List[str] | (Optional) Filter on regional deployment event types (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) @@ -199,14 +199,14 @@ Experimental: use at your own risk * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_regional_deployments_reply import ListRegionalDeploymentsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_regional_deployments_reply import ListRegionalDeploymentsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -222,9 +222,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.RegionalDeploymentsApi(api_client) + api_instance = koyeb.api.RegionalDeploymentsApi(api_client) deployment_id = 'deployment_id_example' # str | (Optional) Filter on deployment id (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) diff --git a/koyeb/docs/RemoveOrganizationMemberReply.md b/koyeb/api/docs/RemoveOrganizationMemberReply.md similarity index 91% rename from koyeb/docs/RemoveOrganizationMemberReply.md rename to koyeb/api/docs/RemoveOrganizationMemberReply.md index 739fcda3..a86e5c1a 100644 --- a/koyeb/docs/RemoveOrganizationMemberReply.md +++ b/koyeb/api/docs/RemoveOrganizationMemberReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.remove_organization_member_reply import RemoveOrganizationMemberReply +from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RepositoriesApi.md b/koyeb/api/docs/RepositoriesApi.md similarity index 91% rename from koyeb/docs/RepositoriesApi.md rename to koyeb/api/docs/RepositoriesApi.md index 9cb7377e..ff2381fc 100644 --- a/koyeb/docs/RepositoriesApi.md +++ b/koyeb/api/docs/RepositoriesApi.md @@ -1,4 +1,4 @@ -# koyeb.RepositoriesApi +# koyeb.api.RepositoriesApi All URIs are relative to *https://app.koyeb.com* @@ -19,14 +19,14 @@ List Branches * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -42,9 +42,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.RepositoriesApi(api_client) + api_instance = koyeb.api.RepositoriesApi(api_client) repository_id = 'repository_id_example' # str | (Optional) Filter on one repository. (optional) name = 'name_example' # str | (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter. (optional) limit = 'limit_example' # str | (Optional) The number of items to return. (optional) @@ -109,14 +109,14 @@ List Repositories * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -132,9 +132,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.RepositoriesApi(api_client) + api_instance = koyeb.api.RepositoriesApi(api_client) name = 'name_example' # str | (Optional) Filter on repository name using a fuzzy search. (optional) name_search_op = 'name_search_op_example' # str | (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default. (optional) limit = 'limit_example' # str | (Optional) The number of items to return. (optional) @@ -199,13 +199,13 @@ Resync Organization * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -221,9 +221,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.RepositoriesApi(api_client) + api_instance = koyeb.api.RepositoriesApi(api_client) organization_id = 'organization_id_example' # str | try: diff --git a/koyeb/docs/ResendOrganizationInvitationReply.md b/koyeb/api/docs/ResendOrganizationInvitationReply.md similarity index 91% rename from koyeb/docs/ResendOrganizationInvitationReply.md rename to koyeb/api/docs/ResendOrganizationInvitationReply.md index 373f5ca9..e0a89764 100644 --- a/koyeb/docs/ResendOrganizationInvitationReply.md +++ b/koyeb/api/docs/ResendOrganizationInvitationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply +from koyeb.api.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ResetPasswordRequest.md b/koyeb/api/docs/ResetPasswordRequest.md similarity index 92% rename from koyeb/docs/ResetPasswordRequest.md rename to koyeb/api/docs/ResetPasswordRequest.md index 8ef4895c..7c8a22a2 100644 --- a/koyeb/docs/ResetPasswordRequest.md +++ b/koyeb/api/docs/ResetPasswordRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.reset_password_request import ResetPasswordRequest +from koyeb.api.models.reset_password_request import ResetPasswordRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/RevealSecretReply.md b/koyeb/api/docs/RevealSecretReply.md similarity index 92% rename from koyeb/docs/RevealSecretReply.md rename to koyeb/api/docs/RevealSecretReply.md index 12189a97..e6e9ebf0 100644 --- a/koyeb/docs/RevealSecretReply.md +++ b/koyeb/api/docs/RevealSecretReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.reveal_secret_reply import RevealSecretReply +from koyeb.api.models.reveal_secret_reply import RevealSecretReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ReviewOrganizationCapacityReply.md b/koyeb/api/docs/ReviewOrganizationCapacityReply.md similarity index 91% rename from koyeb/docs/ReviewOrganizationCapacityReply.md rename to koyeb/api/docs/ReviewOrganizationCapacityReply.md index d237b814..f023735f 100644 --- a/koyeb/docs/ReviewOrganizationCapacityReply.md +++ b/koyeb/api/docs/ReviewOrganizationCapacityReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply +from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ReviewOrganizationCapacityRequest.md b/koyeb/api/docs/ReviewOrganizationCapacityRequest.md similarity index 91% rename from koyeb/docs/ReviewOrganizationCapacityRequest.md rename to koyeb/api/docs/ReviewOrganizationCapacityRequest.md index 181ee32f..4f8068e2 100644 --- a/koyeb/docs/ReviewOrganizationCapacityRequest.md +++ b/koyeb/api/docs/ReviewOrganizationCapacityRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest +from koyeb.api.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Route.md b/koyeb/api/docs/Route.md similarity index 94% rename from koyeb/docs/Route.md rename to koyeb/api/docs/Route.md index fe681708..165a73ce 100644 --- a/koyeb/docs/Route.md +++ b/koyeb/api/docs/Route.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.route import Route +from koyeb.api.models.route import Route # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Sample.md b/koyeb/api/docs/Sample.md similarity index 94% rename from koyeb/docs/Sample.md rename to koyeb/api/docs/Sample.md index 4877977e..41cd63ed 100644 --- a/koyeb/docs/Sample.md +++ b/koyeb/api/docs/Sample.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.sample import Sample +from koyeb.api.models.sample import Sample # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ScaleToZeroQuotas.md b/koyeb/api/docs/ScaleToZeroQuotas.md similarity index 94% rename from koyeb/docs/ScaleToZeroQuotas.md rename to koyeb/api/docs/ScaleToZeroQuotas.md index b2507173..6305229f 100644 --- a/koyeb/docs/ScaleToZeroQuotas.md +++ b/koyeb/api/docs/ScaleToZeroQuotas.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.scale_to_zero_quotas import ScaleToZeroQuotas +from koyeb.api.models.scale_to_zero_quotas import ScaleToZeroQuotas # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Scaling.md b/koyeb/api/docs/Scaling.md similarity index 95% rename from koyeb/docs/Scaling.md rename to koyeb/api/docs/Scaling.md index fef8fe1b..aa7809fa 100644 --- a/koyeb/docs/Scaling.md +++ b/koyeb/api/docs/Scaling.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.scaling import Scaling +from koyeb.api.models.scaling import Scaling # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/SearchApi.md b/koyeb/api/docs/SearchApi.md similarity index 89% rename from koyeb/docs/SearchApi.md rename to koyeb/api/docs/SearchApi.md index 873a90bf..57ed746a 100644 --- a/koyeb/docs/SearchApi.md +++ b/koyeb/api/docs/SearchApi.md @@ -1,4 +1,4 @@ -# koyeb.SearchApi +# koyeb.api.SearchApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ Search * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.ksearch_search_reply import KsearchSearchReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.ksearch_search_reply import KsearchSearchReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SearchApi(api_client) + api_instance = koyeb.api.SearchApi(api_client) query = 'query_example' # str | (Optional) Search query (optional) try: diff --git a/koyeb/docs/Secret.md b/koyeb/api/docs/Secret.md similarity index 97% rename from koyeb/docs/Secret.md rename to koyeb/api/docs/Secret.md index ae26bbee..d9724865 100644 --- a/koyeb/docs/Secret.md +++ b/koyeb/api/docs/Secret.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.secret import Secret +from koyeb.api.models.secret import Secret # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/SecretType.md b/koyeb/api/docs/SecretType.md similarity index 100% rename from koyeb/docs/SecretType.md rename to koyeb/api/docs/SecretType.md diff --git a/koyeb/docs/SecretsApi.md b/koyeb/api/docs/SecretsApi.md similarity index 89% rename from koyeb/docs/SecretsApi.md rename to koyeb/api/docs/SecretsApi.md index 077f35b0..cb997ae5 100644 --- a/koyeb/docs/SecretsApi.md +++ b/koyeb/api/docs/SecretsApi.md @@ -1,4 +1,4 @@ -# koyeb.SecretsApi +# koyeb.api.SecretsApi All URIs are relative to *https://app.koyeb.com* @@ -23,15 +23,15 @@ Create Secret * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_secret import CreateSecret -from koyeb.models.create_secret_reply import CreateSecretReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_secret import CreateSecret +from koyeb.api.models.create_secret_reply import CreateSecretReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -47,10 +47,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) - secret = koyeb.CreateSecret() # CreateSecret | + api_instance = koyeb.api.SecretsApi(api_client) + secret = koyeb.api.CreateSecret() # CreateSecret | try: # Create Secret @@ -108,13 +108,13 @@ Delete Secret * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -130,9 +130,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) + api_instance = koyeb.api.SecretsApi(api_client) id = 'id_example' # str | try: @@ -191,14 +191,14 @@ Get Secret * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_secret_reply import GetSecretReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_secret_reply import GetSecretReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -214,9 +214,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) + api_instance = koyeb.api.SecretsApi(api_client) id = 'id_example' # str | try: @@ -275,14 +275,14 @@ List Secrets * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_secrets_reply import ListSecretsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_secrets_reply import ListSecretsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -298,9 +298,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) + api_instance = koyeb.api.SecretsApi(api_client) name = 'name_example' # str | (optional) limit = 'limit_example' # str | (optional) offset = 'offset_example' # str | (optional) @@ -365,14 +365,14 @@ Reveal Secret * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.reveal_secret_reply import RevealSecretReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.reveal_secret_reply import RevealSecretReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -388,9 +388,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) + api_instance = koyeb.api.SecretsApi(api_client) id = 'id_example' # str | body = None # object | @@ -451,15 +451,15 @@ Update Secret * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.secret import Secret -from koyeb.models.update_secret_reply import UpdateSecretReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.secret import Secret +from koyeb.api.models.update_secret_reply import UpdateSecretReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -475,11 +475,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) + api_instance = koyeb.api.SecretsApi(api_client) id = 'id_example' # str | - secret = koyeb.Secret() # Secret | + secret = koyeb.api.Secret() # Secret | update_mask = 'update_mask_example' # str | (optional) try: @@ -540,15 +540,15 @@ Update Secret * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.secret import Secret -from koyeb.models.update_secret_reply import UpdateSecretReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.secret import Secret +from koyeb.api.models.update_secret_reply import UpdateSecretReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -564,11 +564,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SecretsApi(api_client) + api_instance = koyeb.api.SecretsApi(api_client) id = 'id_example' # str | - secret = koyeb.Secret() # Secret | + secret = koyeb.api.Secret() # Secret | update_mask = 'update_mask_example' # str | (optional) try: diff --git a/koyeb/docs/SecretsSummary.md b/koyeb/api/docs/SecretsSummary.md similarity index 93% rename from koyeb/docs/SecretsSummary.md rename to koyeb/api/docs/SecretsSummary.md index e447ac30..7a115079 100644 --- a/koyeb/docs/SecretsSummary.md +++ b/koyeb/api/docs/SecretsSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.secrets_summary import SecretsSummary +from koyeb.api.models.secrets_summary import SecretsSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Service.md b/koyeb/api/docs/Service.md similarity index 97% rename from koyeb/docs/Service.md rename to koyeb/api/docs/Service.md index de6429b9..98aa46ad 100644 --- a/koyeb/docs/Service.md +++ b/koyeb/api/docs/Service.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.service import Service +from koyeb.api.models.service import Service # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ServiceEvent.md b/koyeb/api/docs/ServiceEvent.md similarity index 94% rename from koyeb/docs/ServiceEvent.md rename to koyeb/api/docs/ServiceEvent.md index 2ac07e01..471e097b 100644 --- a/koyeb/docs/ServiceEvent.md +++ b/koyeb/api/docs/ServiceEvent.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.service_event import ServiceEvent +from koyeb.api.models.service_event import ServiceEvent # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ServiceListItem.md b/koyeb/api/docs/ServiceListItem.md similarity index 95% rename from koyeb/docs/ServiceListItem.md rename to koyeb/api/docs/ServiceListItem.md index 79a00630..9fbd2596 100644 --- a/koyeb/docs/ServiceListItem.md +++ b/koyeb/api/docs/ServiceListItem.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.service_list_item import ServiceListItem +from koyeb.api.models.service_list_item import ServiceListItem # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ServiceState.md b/koyeb/api/docs/ServiceState.md similarity index 94% rename from koyeb/docs/ServiceState.md rename to koyeb/api/docs/ServiceState.md index 4b3d2d6e..006e864d 100644 --- a/koyeb/docs/ServiceState.md +++ b/koyeb/api/docs/ServiceState.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.service_state import ServiceState +from koyeb.api.models.service_state import ServiceState # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ServiceStatus.md b/koyeb/api/docs/ServiceStatus.md similarity index 100% rename from koyeb/docs/ServiceStatus.md rename to koyeb/api/docs/ServiceStatus.md diff --git a/koyeb/docs/ServiceSummary.md b/koyeb/api/docs/ServiceSummary.md similarity index 93% rename from koyeb/docs/ServiceSummary.md rename to koyeb/api/docs/ServiceSummary.md index 66720084..f03df302 100644 --- a/koyeb/docs/ServiceSummary.md +++ b/koyeb/api/docs/ServiceSummary.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.service_summary import ServiceSummary +from koyeb.api.models.service_summary import ServiceSummary # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ServiceType.md b/koyeb/api/docs/ServiceType.md similarity index 100% rename from koyeb/docs/ServiceType.md rename to koyeb/api/docs/ServiceType.md diff --git a/koyeb/docs/ServiceUsage.md b/koyeb/api/docs/ServiceUsage.md similarity index 94% rename from koyeb/docs/ServiceUsage.md rename to koyeb/api/docs/ServiceUsage.md index 0caa26ce..cba293e9 100644 --- a/koyeb/docs/ServiceUsage.md +++ b/koyeb/api/docs/ServiceUsage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.service_usage import ServiceUsage +from koyeb.api.models.service_usage import ServiceUsage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/ServicesApi.md b/koyeb/api/docs/ServicesApi.md similarity index 88% rename from koyeb/docs/ServicesApi.md rename to koyeb/api/docs/ServicesApi.md index 482f8d30..1d10d33b 100644 --- a/koyeb/docs/ServicesApi.md +++ b/koyeb/api/docs/ServicesApi.md @@ -1,4 +1,4 @@ -# koyeb.ServicesApi +# koyeb.api.ServicesApi All URIs are relative to *https://app.koyeb.com* @@ -29,15 +29,15 @@ Generate autocomplete definition for a service * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.autocomplete_reply import AutocompleteReply -from koyeb.models.autocomplete_request import AutocompleteRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.autocomplete_reply import AutocompleteReply +from koyeb.api.models.autocomplete_request import AutocompleteRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -53,10 +53,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) - body = koyeb.AutocompleteRequest() # AutocompleteRequest | + api_instance = koyeb.api.ServicesApi(api_client) + body = koyeb.api.AutocompleteRequest() # AutocompleteRequest | try: # Autocomplete definition @@ -114,15 +114,15 @@ Create Service * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_service import CreateService -from koyeb.models.create_service_reply import CreateServiceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_service import CreateService +from koyeb.api.models.create_service_reply import CreateServiceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -138,10 +138,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) - service = koyeb.CreateService() # CreateService | + api_instance = koyeb.api.ServicesApi(api_client) + service = koyeb.api.CreateService() # CreateService | dry_run = True # bool | If set only run validation (optional) try: @@ -203,13 +203,13 @@ Service deletion is allowed for all status. * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -225,9 +225,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | The id of the entity to delete try: @@ -286,14 +286,14 @@ Get Service * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_service_reply import GetServiceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_service_reply import GetServiceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -309,9 +309,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | The id of the Service try: @@ -370,14 +370,14 @@ List Service events * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_service_events_reply import ListServiceEventsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_service_events_reply import ListServiceEventsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -393,9 +393,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) service_id = 'service_id_example' # str | (Optional) Filter on service id (optional) types = ['types_example'] # List[str] | (Optional) Filter on service event types (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) @@ -453,7 +453,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_services** -> ListServicesReply list_services(app_id=app_id, limit=limit, offset=offset, name=name, types=types) +> ListServicesReply list_services(app_id=app_id, limit=limit, offset=offset, name=name, types=types, statuses=statuses) List Services @@ -462,14 +462,14 @@ List Services * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_services_reply import ListServicesReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_services_reply import ListServicesReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -485,18 +485,19 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) app_id = 'app_id_example' # str | (Optional) The id of the app (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) name = 'name_example' # str | (Optional) A filter for name (optional) types = ['types_example'] # List[str] | (Optional) Filter on service types (optional) + statuses = ['statuses_example'] # List[str] | (Optional) Filter on service statuses (optional) try: # List Services - api_response = api_instance.list_services(app_id=app_id, limit=limit, offset=offset, name=name, types=types) + api_response = api_instance.list_services(app_id=app_id, limit=limit, offset=offset, name=name, types=types, statuses=statuses) print("The response of ServicesApi->list_services:\n") pprint(api_response) except Exception as e: @@ -515,6 +516,7 @@ Name | Type | Description | Notes **offset** | **str**| (Optional) The offset in the list of item to return | [optional] **name** | **str**| (Optional) A filter for name | [optional] **types** | [**List[str]**](str.md)| (Optional) Filter on service types | [optional] + **statuses** | [**List[str]**](str.md)| (Optional) Filter on service statuses | [optional] ### Return type @@ -561,13 +563,13 @@ Service pause action is allowed for the following status: * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -583,9 +585,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | The id of the service to pause. try: @@ -644,15 +646,15 @@ ReDeploy Service * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.redeploy_reply import RedeployReply -from koyeb.models.redeploy_request_info import RedeployRequestInfo -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.redeploy_reply import RedeployReply +from koyeb.api.models.redeploy_request_info import RedeployRequestInfo +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -668,11 +670,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | - info = koyeb.RedeployRequestInfo() # RedeployRequestInfo | + info = koyeb.api.RedeployRequestInfo() # RedeployRequestInfo | try: # ReDeploy Service @@ -734,13 +736,13 @@ Service resume action is allowed for the following status: * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -756,9 +758,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | The id of the service to pause. skip_build = True # bool | If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened. (optional) use_cache = True # bool | (optional) @@ -821,15 +823,15 @@ Update Service * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_service import UpdateService -from koyeb.models.update_service_reply import UpdateServiceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_service import UpdateService +from koyeb.api.models.update_service_reply import UpdateServiceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -845,11 +847,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | The id of the entity to update - service = koyeb.UpdateService() # UpdateService | + service = koyeb.api.UpdateService() # UpdateService | dry_run = True # bool | If set, run validation and check that the service exists (optional) try: @@ -910,15 +912,15 @@ Update Service * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_service import UpdateService -from koyeb.models.update_service_reply import UpdateServiceReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_service import UpdateService +from koyeb.api.models.update_service_reply import UpdateServiceReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -934,11 +936,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.ServicesApi(api_client) + api_instance = koyeb.api.ServicesApi(api_client) id = 'id_example' # str | The id of the entity to update - service = koyeb.UpdateService() # UpdateService | + service = koyeb.api.UpdateService() # UpdateService | dry_run = True # bool | If set, run validation and check that the service exists (optional) try: diff --git a/koyeb/docs/SessionsApi.md b/koyeb/api/docs/SessionsApi.md similarity index 89% rename from koyeb/docs/SessionsApi.md rename to koyeb/api/docs/SessionsApi.md index 3f626c5f..11a2a944 100644 --- a/koyeb/docs/SessionsApi.md +++ b/koyeb/api/docs/SessionsApi.md @@ -1,4 +1,4 @@ -# koyeb.SessionsApi +# koyeb.api.SessionsApi All URIs are relative to *https://app.koyeb.com* @@ -20,15 +20,15 @@ Login user * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.models.login_request import LoginRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.models.login_request import LoginRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -44,10 +44,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SessionsApi(api_client) - body = koyeb.LoginRequest() # LoginRequest | + api_instance = koyeb.api.SessionsApi(api_client) + body = koyeb.api.LoginRequest() # LoginRequest | seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) try: @@ -107,13 +107,13 @@ Logout user * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -129,9 +129,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SessionsApi(api_client) + api_instance = koyeb.api.SessionsApi(api_client) try: # Logout user @@ -189,14 +189,14 @@ NOTE: If you want a session linked to another organization, please use "Switch o * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -212,9 +212,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SessionsApi(api_client) + api_instance = koyeb.api.SessionsApi(api_client) try: # New session @@ -269,14 +269,14 @@ Refresh token * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.login_reply import LoginReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -292,9 +292,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SessionsApi(api_client) + api_instance = koyeb.api.SessionsApi(api_client) try: # Refresh token diff --git a/koyeb/docs/Snapshot.md b/koyeb/api/docs/Snapshot.md similarity index 96% rename from koyeb/docs/Snapshot.md rename to koyeb/api/docs/Snapshot.md index 4e01416b..8b664d1f 100644 --- a/koyeb/docs/Snapshot.md +++ b/koyeb/api/docs/Snapshot.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.snapshot import Snapshot +from koyeb.api.models.snapshot import Snapshot # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/SnapshotStatus.md b/koyeb/api/docs/SnapshotStatus.md similarity index 100% rename from koyeb/docs/SnapshotStatus.md rename to koyeb/api/docs/SnapshotStatus.md diff --git a/koyeb/docs/SnapshotType.md b/koyeb/api/docs/SnapshotType.md similarity index 100% rename from koyeb/docs/SnapshotType.md rename to koyeb/api/docs/SnapshotType.md diff --git a/koyeb/docs/SnapshotsApi.md b/koyeb/api/docs/SnapshotsApi.md similarity index 89% rename from koyeb/docs/SnapshotsApi.md rename to koyeb/api/docs/SnapshotsApi.md index 57b7e0f7..f13f1575 100644 --- a/koyeb/docs/SnapshotsApi.md +++ b/koyeb/api/docs/SnapshotsApi.md @@ -1,4 +1,4 @@ -# koyeb.SnapshotsApi +# koyeb.api.SnapshotsApi All URIs are relative to *https://app.koyeb.com* @@ -21,15 +21,15 @@ Create a Snapshot * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.create_snapshot_reply import CreateSnapshotReply -from koyeb.models.create_snapshot_request import CreateSnapshotRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply +from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -45,10 +45,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SnapshotsApi(api_client) - body = koyeb.CreateSnapshotRequest() # CreateSnapshotRequest | + api_instance = koyeb.api.SnapshotsApi(api_client) + body = koyeb.api.CreateSnapshotRequest() # CreateSnapshotRequest | try: # Create a Snapshot @@ -106,14 +106,14 @@ Delete a Snapshot * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.delete_snapshot_reply import DeleteSnapshotReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -129,9 +129,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SnapshotsApi(api_client) + api_instance = koyeb.api.SnapshotsApi(api_client) id = 'id_example' # str | try: @@ -190,14 +190,14 @@ Get a Snapshot * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_snapshot_reply import GetSnapshotReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_snapshot_reply import GetSnapshotReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -213,9 +213,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SnapshotsApi(api_client) + api_instance = koyeb.api.SnapshotsApi(api_client) id = 'id_example' # str | try: @@ -274,14 +274,14 @@ List all Snapshots * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.list_snapshots_reply import ListSnapshotsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -297,9 +297,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SnapshotsApi(api_client) + api_instance = koyeb.api.SnapshotsApi(api_client) limit = 'limit_example' # str | (Optional) The number of items to return (optional) offset = 'offset_example' # str | (Optional) The offset in the list of item to return (optional) organization_id = 'organization_id_example' # str | (Optional) Filter by organization_id (optional) @@ -366,15 +366,15 @@ Update a Snapshot * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.update_snapshot_reply import UpdateSnapshotReply -from koyeb.models.update_snapshot_request import UpdateSnapshotRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply +from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -390,11 +390,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SnapshotsApi(api_client) + api_instance = koyeb.api.SnapshotsApi(api_client) id = 'id_example' # str | The id of the snapshot - body = koyeb.UpdateSnapshotRequest() # UpdateSnapshotRequest | + body = koyeb.api.UpdateSnapshotRequest() # UpdateSnapshotRequest | try: # Update a Snapshot diff --git a/koyeb/docs/SsoApi.md b/koyeb/api/docs/SsoApi.md similarity index 87% rename from koyeb/docs/SsoApi.md rename to koyeb/api/docs/SsoApi.md index 2ee816ab..c698caf9 100644 --- a/koyeb/docs/SsoApi.md +++ b/koyeb/api/docs/SsoApi.md @@ -1,4 +1,4 @@ -# koyeb.SsoApi +# koyeb.api.SsoApi All URIs are relative to *https://app.koyeb.com* @@ -16,14 +16,14 @@ Method | HTTP request | Description * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.canny_auth_reply import CannyAuthReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.canny_auth_reply import CannyAuthReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -39,9 +39,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SsoApi(api_client) + api_instance = koyeb.api.SsoApi(api_client) body = None # object | try: @@ -97,15 +97,15 @@ Name | Type | Description | Notes * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.discourse_auth_reply import DiscourseAuthReply -from koyeb.models.discourse_auth_request import DiscourseAuthRequest -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply +from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -121,10 +121,10 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SsoApi(api_client) - body = koyeb.DiscourseAuthRequest() # DiscourseAuthRequest | + api_instance = koyeb.api.SsoApi(api_client) + body = koyeb.api.DiscourseAuthRequest() # DiscourseAuthRequest | try: api_response = api_instance.discourse_auth(body) diff --git a/koyeb/docs/StreamResultOfExecCommandReply.md b/koyeb/api/docs/StreamResultOfExecCommandReply.md similarity index 92% rename from koyeb/docs/StreamResultOfExecCommandReply.md rename to koyeb/api/docs/StreamResultOfExecCommandReply.md index 55f11be2..5c92e624 100644 --- a/koyeb/docs/StreamResultOfExecCommandReply.md +++ b/koyeb/api/docs/StreamResultOfExecCommandReply.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply +from koyeb.api.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/StreamResultOfLogEntry.md b/koyeb/api/docs/StreamResultOfLogEntry.md similarity index 92% rename from koyeb/docs/StreamResultOfLogEntry.md rename to koyeb/api/docs/StreamResultOfLogEntry.md index 4a327dea..33aeb7a1 100644 --- a/koyeb/docs/StreamResultOfLogEntry.md +++ b/koyeb/api/docs/StreamResultOfLogEntry.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.stream_result_of_log_entry import StreamResultOfLogEntry +from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Subscription.md b/koyeb/api/docs/Subscription.md similarity index 97% rename from koyeb/docs/Subscription.md rename to koyeb/api/docs/Subscription.md index 0e8df32c..edaa4474 100644 --- a/koyeb/docs/Subscription.md +++ b/koyeb/api/docs/Subscription.md @@ -33,7 +33,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.subscription import Subscription +from koyeb.api.models.subscription import Subscription # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/SubscriptionPaymentFailure.md b/koyeb/api/docs/SubscriptionPaymentFailure.md similarity index 94% rename from koyeb/docs/SubscriptionPaymentFailure.md rename to koyeb/api/docs/SubscriptionPaymentFailure.md index 8c7c5061..4c8b9278 100644 --- a/koyeb/docs/SubscriptionPaymentFailure.md +++ b/koyeb/api/docs/SubscriptionPaymentFailure.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.subscription_payment_failure import SubscriptionPaymentFailure +from koyeb.api.models.subscription_payment_failure import SubscriptionPaymentFailure # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/SubscriptionPaymentFailureStripeSDK.md b/koyeb/api/docs/SubscriptionPaymentFailureStripeSDK.md similarity index 91% rename from koyeb/docs/SubscriptionPaymentFailureStripeSDK.md rename to koyeb/api/docs/SubscriptionPaymentFailureStripeSDK.md index 00f0afea..39766844 100644 --- a/koyeb/docs/SubscriptionPaymentFailureStripeSDK.md +++ b/koyeb/api/docs/SubscriptionPaymentFailureStripeSDK.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK +from koyeb.api.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/SubscriptionStatus.md b/koyeb/api/docs/SubscriptionStatus.md similarity index 100% rename from koyeb/docs/SubscriptionStatus.md rename to koyeb/api/docs/SubscriptionStatus.md diff --git a/koyeb/docs/SubscriptionsApi.md b/koyeb/api/docs/SubscriptionsApi.md similarity index 89% rename from koyeb/docs/SubscriptionsApi.md rename to koyeb/api/docs/SubscriptionsApi.md index ccfa2dce..555d5aa7 100644 --- a/koyeb/docs/SubscriptionsApi.md +++ b/koyeb/api/docs/SubscriptionsApi.md @@ -1,4 +1,4 @@ -# koyeb.SubscriptionsApi +# koyeb.api.SubscriptionsApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ Get Subscription * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_subscription_reply import GetSubscriptionReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_subscription_reply import GetSubscriptionReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SubscriptionsApi(api_client) + api_instance = koyeb.api.SubscriptionsApi(api_client) id = 'id_example' # str | The id of the instance try: diff --git a/koyeb/docs/SummaryApi.md b/koyeb/api/docs/SummaryApi.md similarity index 89% rename from koyeb/docs/SummaryApi.md rename to koyeb/api/docs/SummaryApi.md index 11e4db97..f43afa33 100644 --- a/koyeb/docs/SummaryApi.md +++ b/koyeb/api/docs/SummaryApi.md @@ -1,4 +1,4 @@ -# koyeb.SummaryApi +# koyeb.api.SummaryApi All URIs are relative to *https://app.koyeb.com* @@ -17,14 +17,14 @@ Get organization usage summary * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_organization_summary_reply import GetOrganizationSummaryReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -40,9 +40,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.SummaryApi(api_client) + api_instance = koyeb.api.SummaryApi(api_client) organization_id = 'organization_id_example' # str | Organization ID try: diff --git a/koyeb/docs/TCPHealthCheck.md b/koyeb/api/docs/TCPHealthCheck.md similarity index 93% rename from koyeb/docs/TCPHealthCheck.md rename to koyeb/api/docs/TCPHealthCheck.md index ba1ca30b..1eae1e49 100644 --- a/koyeb/docs/TCPHealthCheck.md +++ b/koyeb/api/docs/TCPHealthCheck.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.tcp_health_check import TCPHealthCheck +from koyeb.api.models.tcp_health_check import TCPHealthCheck # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Token.md b/koyeb/api/docs/Token.md similarity index 95% rename from koyeb/docs/Token.md rename to koyeb/api/docs/Token.md index b39be1cd..b5304888 100644 --- a/koyeb/docs/Token.md +++ b/koyeb/api/docs/Token.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.token import Token +from koyeb.api.models.token import Token # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/TriggerDeploymentMetadata.md b/koyeb/api/docs/TriggerDeploymentMetadata.md similarity index 94% rename from koyeb/docs/TriggerDeploymentMetadata.md rename to koyeb/api/docs/TriggerDeploymentMetadata.md index d1ec514f..846014d4 100644 --- a/koyeb/docs/TriggerDeploymentMetadata.md +++ b/koyeb/api/docs/TriggerDeploymentMetadata.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.trigger_deployment_metadata import TriggerDeploymentMetadata +from koyeb.api.models.trigger_deployment_metadata import TriggerDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/TriggerDeploymentMetadataActorType.md b/koyeb/api/docs/TriggerDeploymentMetadataActorType.md similarity index 100% rename from koyeb/docs/TriggerDeploymentMetadataActorType.md rename to koyeb/api/docs/TriggerDeploymentMetadataActorType.md diff --git a/koyeb/docs/TriggerDeploymentMetadataTriggerType.md b/koyeb/api/docs/TriggerDeploymentMetadataTriggerType.md similarity index 100% rename from koyeb/docs/TriggerDeploymentMetadataTriggerType.md rename to koyeb/api/docs/TriggerDeploymentMetadataTriggerType.md diff --git a/koyeb/docs/TriggerGitDeploymentMetadata.md b/koyeb/api/docs/TriggerGitDeploymentMetadata.md similarity index 94% rename from koyeb/docs/TriggerGitDeploymentMetadata.md rename to koyeb/api/docs/TriggerGitDeploymentMetadata.md index 088e0cbc..973a0db8 100644 --- a/koyeb/docs/TriggerGitDeploymentMetadata.md +++ b/koyeb/api/docs/TriggerGitDeploymentMetadata.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata +from koyeb.api.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/TriggerGitDeploymentMetadataProvider.md b/koyeb/api/docs/TriggerGitDeploymentMetadataProvider.md similarity index 100% rename from koyeb/docs/TriggerGitDeploymentMetadataProvider.md rename to koyeb/api/docs/TriggerGitDeploymentMetadataProvider.md diff --git a/koyeb/docs/UpdateApp.md b/koyeb/api/docs/UpdateApp.md similarity index 93% rename from koyeb/docs/UpdateApp.md rename to koyeb/api/docs/UpdateApp.md index bf31adce..f81d68bb 100644 --- a/koyeb/docs/UpdateApp.md +++ b/koyeb/api/docs/UpdateApp.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_app import UpdateApp +from koyeb.api.models.update_app import UpdateApp # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateAppReply.md b/koyeb/api/docs/UpdateAppReply.md similarity index 93% rename from koyeb/docs/UpdateAppReply.md rename to koyeb/api/docs/UpdateAppReply.md index dc20905f..65767c64 100644 --- a/koyeb/docs/UpdateAppReply.md +++ b/koyeb/api/docs/UpdateAppReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_app_reply import UpdateAppReply +from koyeb.api.models.update_app_reply import UpdateAppReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateBudgetReply.md b/koyeb/api/docs/UpdateBudgetReply.md similarity index 92% rename from koyeb/docs/UpdateBudgetReply.md rename to koyeb/api/docs/UpdateBudgetReply.md index f3a06cab..d95f9a2e 100644 --- a/koyeb/docs/UpdateBudgetReply.md +++ b/koyeb/api/docs/UpdateBudgetReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_budget_reply import UpdateBudgetReply +from koyeb.api.models.update_budget_reply import UpdateBudgetReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateBudgetRequest.md b/koyeb/api/docs/UpdateBudgetRequest.md similarity index 92% rename from koyeb/docs/UpdateBudgetRequest.md rename to koyeb/api/docs/UpdateBudgetRequest.md index 1da9e855..9fba87f2 100644 --- a/koyeb/docs/UpdateBudgetRequest.md +++ b/koyeb/api/docs/UpdateBudgetRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_budget_request import UpdateBudgetRequest +from koyeb.api.models.update_budget_request import UpdateBudgetRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateCredentialReply.md b/koyeb/api/docs/UpdateCredentialReply.md similarity index 92% rename from koyeb/docs/UpdateCredentialReply.md rename to koyeb/api/docs/UpdateCredentialReply.md index cea344de..a45273d1 100644 --- a/koyeb/docs/UpdateCredentialReply.md +++ b/koyeb/api/docs/UpdateCredentialReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_credential_reply import UpdateCredentialReply +from koyeb.api.models.update_credential_reply import UpdateCredentialReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateDomain.md b/koyeb/api/docs/UpdateDomain.md similarity index 94% rename from koyeb/docs/UpdateDomain.md rename to koyeb/api/docs/UpdateDomain.md index 0cfc7a93..b849245a 100644 --- a/koyeb/docs/UpdateDomain.md +++ b/koyeb/api/docs/UpdateDomain.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_domain import UpdateDomain +from koyeb.api.models.update_domain import UpdateDomain # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateDomainReply.md b/koyeb/api/docs/UpdateDomainReply.md similarity index 92% rename from koyeb/docs/UpdateDomainReply.md rename to koyeb/api/docs/UpdateDomainReply.md index 56d37818..752c1332 100644 --- a/koyeb/docs/UpdateDomainReply.md +++ b/koyeb/api/docs/UpdateDomainReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_domain_reply import UpdateDomainReply +from koyeb.api.models.update_domain_reply import UpdateDomainReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateOrganizationPlanReply.md b/koyeb/api/docs/UpdateOrganizationPlanReply.md similarity index 92% rename from koyeb/docs/UpdateOrganizationPlanReply.md rename to koyeb/api/docs/UpdateOrganizationPlanReply.md index b788beef..8435ea48 100644 --- a/koyeb/docs/UpdateOrganizationPlanReply.md +++ b/koyeb/api/docs/UpdateOrganizationPlanReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_organization_plan_reply import UpdateOrganizationPlanReply +from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateOrganizationPlanRequest.md b/koyeb/api/docs/UpdateOrganizationPlanRequest.md similarity index 91% rename from koyeb/docs/UpdateOrganizationPlanRequest.md rename to koyeb/api/docs/UpdateOrganizationPlanRequest.md index 3e551ecc..7da949df 100644 --- a/koyeb/docs/UpdateOrganizationPlanRequest.md +++ b/koyeb/api/docs/UpdateOrganizationPlanRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_organization_plan_request import UpdateOrganizationPlanRequest +from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateOrganizationReply.md b/koyeb/api/docs/UpdateOrganizationReply.md similarity index 92% rename from koyeb/docs/UpdateOrganizationReply.md rename to koyeb/api/docs/UpdateOrganizationReply.md index 8b9d5c25..5d9f2717 100644 --- a/koyeb/docs/UpdateOrganizationReply.md +++ b/koyeb/api/docs/UpdateOrganizationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_organization_reply import UpdateOrganizationReply +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdatePasswordRequest.md b/koyeb/api/docs/UpdatePasswordRequest.md similarity index 92% rename from koyeb/docs/UpdatePasswordRequest.md rename to koyeb/api/docs/UpdatePasswordRequest.md index 2b552362..e5e9f9ba 100644 --- a/koyeb/docs/UpdatePasswordRequest.md +++ b/koyeb/api/docs/UpdatePasswordRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_password_request import UpdatePasswordRequest +from koyeb.api.models.update_password_request import UpdatePasswordRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdatePersistentVolumeReply.md b/koyeb/api/docs/UpdatePersistentVolumeReply.md similarity index 92% rename from koyeb/docs/UpdatePersistentVolumeReply.md rename to koyeb/api/docs/UpdatePersistentVolumeReply.md index 965bd4c0..2d17dd67 100644 --- a/koyeb/docs/UpdatePersistentVolumeReply.md +++ b/koyeb/api/docs/UpdatePersistentVolumeReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_persistent_volume_reply import UpdatePersistentVolumeReply +from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdatePersistentVolumeRequest.md b/koyeb/api/docs/UpdatePersistentVolumeRequest.md similarity index 91% rename from koyeb/docs/UpdatePersistentVolumeRequest.md rename to koyeb/api/docs/UpdatePersistentVolumeRequest.md index 4b45c5c8..3f150bf3 100644 --- a/koyeb/docs/UpdatePersistentVolumeRequest.md +++ b/koyeb/api/docs/UpdatePersistentVolumeRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_persistent_volume_request import UpdatePersistentVolumeRequest +from koyeb.api.models.update_persistent_volume_request import UpdatePersistentVolumeRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateSecretReply.md b/koyeb/api/docs/UpdateSecretReply.md similarity index 92% rename from koyeb/docs/UpdateSecretReply.md rename to koyeb/api/docs/UpdateSecretReply.md index ac3e15e4..f89e1b8f 100644 --- a/koyeb/docs/UpdateSecretReply.md +++ b/koyeb/api/docs/UpdateSecretReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_secret_reply import UpdateSecretReply +from koyeb.api.models.update_secret_reply import UpdateSecretReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateService.md b/koyeb/api/docs/UpdateService.md similarity index 95% rename from koyeb/docs/UpdateService.md rename to koyeb/api/docs/UpdateService.md index ba53765e..05657ab1 100644 --- a/koyeb/docs/UpdateService.md +++ b/koyeb/api/docs/UpdateService.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_service import UpdateService +from koyeb.api.models.update_service import UpdateService # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateServiceReply.md b/koyeb/api/docs/UpdateServiceReply.md similarity index 92% rename from koyeb/docs/UpdateServiceReply.md rename to koyeb/api/docs/UpdateServiceReply.md index e5ab326a..6019a19b 100644 --- a/koyeb/docs/UpdateServiceReply.md +++ b/koyeb/api/docs/UpdateServiceReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_service_reply import UpdateServiceReply +from koyeb.api.models.update_service_reply import UpdateServiceReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateSnapshotReply.md b/koyeb/api/docs/UpdateSnapshotReply.md similarity index 92% rename from koyeb/docs/UpdateSnapshotReply.md rename to koyeb/api/docs/UpdateSnapshotReply.md index 2f5e0317..20802b81 100644 --- a/koyeb/docs/UpdateSnapshotReply.md +++ b/koyeb/api/docs/UpdateSnapshotReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_snapshot_reply import UpdateSnapshotReply +from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateSnapshotRequest.md b/koyeb/api/docs/UpdateSnapshotRequest.md similarity index 92% rename from koyeb/docs/UpdateSnapshotRequest.md rename to koyeb/api/docs/UpdateSnapshotRequest.md index f80196fe..38044f5d 100644 --- a/koyeb/docs/UpdateSnapshotRequest.md +++ b/koyeb/api/docs/UpdateSnapshotRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_snapshot_request import UpdateSnapshotRequest +from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateUserRequestUserUpdateBody.md b/koyeb/api/docs/UpdateUserRequestUserUpdateBody.md similarity index 92% rename from koyeb/docs/UpdateUserRequestUserUpdateBody.md rename to koyeb/api/docs/UpdateUserRequestUserUpdateBody.md index 4388c9a2..3a0bdb86 100644 --- a/koyeb/docs/UpdateUserRequestUserUpdateBody.md +++ b/koyeb/api/docs/UpdateUserRequestUserUpdateBody.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateUserSettingsReply.md b/koyeb/api/docs/UpdateUserSettingsReply.md similarity index 92% rename from koyeb/docs/UpdateUserSettingsReply.md rename to koyeb/api/docs/UpdateUserSettingsReply.md index 36033bef..7a555bb1 100644 --- a/koyeb/docs/UpdateUserSettingsReply.md +++ b/koyeb/api/docs/UpdateUserSettingsReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_user_settings_reply import UpdateUserSettingsReply +from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpdateUserSettingsRequest.md b/koyeb/api/docs/UpdateUserSettingsRequest.md similarity index 92% rename from koyeb/docs/UpdateUserSettingsRequest.md rename to koyeb/api/docs/UpdateUserSettingsRequest.md index 266d5a21..3daa3e0c 100644 --- a/koyeb/docs/UpdateUserSettingsRequest.md +++ b/koyeb/api/docs/UpdateUserSettingsRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.update_user_settings_request import UpdateUserSettingsRequest +from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpsertSignupQualificationReply.md b/koyeb/api/docs/UpsertSignupQualificationReply.md similarity index 91% rename from koyeb/docs/UpsertSignupQualificationReply.md rename to koyeb/api/docs/UpsertSignupQualificationReply.md index 6bc0b98e..c1d9d40a 100644 --- a/koyeb/docs/UpsertSignupQualificationReply.md +++ b/koyeb/api/docs/UpsertSignupQualificationReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply +from koyeb.api.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UpsertSignupQualificationRequest.md b/koyeb/api/docs/UpsertSignupQualificationRequest.md similarity index 91% rename from koyeb/docs/UpsertSignupQualificationRequest.md rename to koyeb/api/docs/UpsertSignupQualificationRequest.md index 0e5f0063..6b36de63 100644 --- a/koyeb/docs/UpsertSignupQualificationRequest.md +++ b/koyeb/api/docs/UpsertSignupQualificationRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest +from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/Usage.md b/koyeb/api/docs/Usage.md similarity index 95% rename from koyeb/docs/Usage.md rename to koyeb/api/docs/Usage.md index 2859b56d..c4102d71 100644 --- a/koyeb/docs/Usage.md +++ b/koyeb/api/docs/Usage.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.usage import Usage +from koyeb.api.models.usage import Usage # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UsageDetails.md b/koyeb/api/docs/UsageDetails.md similarity index 96% rename from koyeb/docs/UsageDetails.md rename to koyeb/api/docs/UsageDetails.md index cc96e039..f3dccc7e 100644 --- a/koyeb/docs/UsageDetails.md +++ b/koyeb/api/docs/UsageDetails.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.usage_details import UsageDetails +from koyeb.api.models.usage_details import UsageDetails # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UsagesApi.md b/koyeb/api/docs/UsagesApi.md similarity index 91% rename from koyeb/docs/UsagesApi.md rename to koyeb/api/docs/UsagesApi.md index 221df49b..ad322940 100644 --- a/koyeb/docs/UsagesApi.md +++ b/koyeb/api/docs/UsagesApi.md @@ -1,4 +1,4 @@ -# koyeb.UsagesApi +# koyeb.api.UsagesApi All URIs are relative to *https://app.koyeb.com* @@ -18,14 +18,14 @@ Get organization usage * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_organization_usage_reply import GetOrganizationUsageReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -41,9 +41,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.UsagesApi(api_client) + api_instance = koyeb.api.UsagesApi(api_client) starting_time = '2013-10-20T19:20:30+01:00' # datetime | The starting time of the period to get data from (optional) ending_time = '2013-10-20T19:20:30+01:00' # datetime | The ending time of the period to get data from (optional) @@ -98,14 +98,14 @@ Get organization usage details * Api Key Authentication (Bearer): ```python -import koyeb -from koyeb.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply -from koyeb.rest import ApiException +import koyeb.api +from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply +from koyeb.api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to https://app.koyeb.com # See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( +configuration = koyeb.api.Configuration( host = "https://app.koyeb.com" ) @@ -121,9 +121,9 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] # configuration.api_key_prefix['Bearer'] = 'Bearer' # Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: +with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = koyeb.UsagesApi(api_client) + api_instance = koyeb.api.UsagesApi(api_client) starting_time = '2013-10-20T19:20:30+01:00' # datetime | The starting time of the period to get data from (optional) ending_time = '2013-10-20T19:20:30+01:00' # datetime | The ending time of the period to get data from (optional) limit = 'limit_example' # str | (Optional) The number of items to return (optional) diff --git a/koyeb/docs/User.md b/koyeb/api/docs/User.md similarity index 97% rename from koyeb/docs/User.md rename to koyeb/api/docs/User.md index 44c9482d..8d2a8570 100644 --- a/koyeb/docs/User.md +++ b/koyeb/api/docs/User.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.user import User +from koyeb.api.models.user import User # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UserFlags.md b/koyeb/api/docs/UserFlags.md similarity index 100% rename from koyeb/docs/UserFlags.md rename to koyeb/api/docs/UserFlags.md diff --git a/koyeb/docs/UserReply.md b/koyeb/api/docs/UserReply.md similarity index 93% rename from koyeb/docs/UserReply.md rename to koyeb/api/docs/UserReply.md index 5fe354e0..40ab70df 100644 --- a/koyeb/docs/UserReply.md +++ b/koyeb/api/docs/UserReply.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.user_reply import UserReply +from koyeb.api.models.user_reply import UserReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/UserRoleRole.md b/koyeb/api/docs/UserRoleRole.md similarity index 100% rename from koyeb/docs/UserRoleRole.md rename to koyeb/api/docs/UserRoleRole.md diff --git a/koyeb/docs/UserSettings.md b/koyeb/api/docs/UserSettings.md similarity index 94% rename from koyeb/docs/UserSettings.md rename to koyeb/api/docs/UserSettings.md index 929bc04f..c9d5213c 100644 --- a/koyeb/docs/UserSettings.md +++ b/koyeb/api/docs/UserSettings.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.user_settings import UserSettings +from koyeb.api.models.user_settings import UserSettings # TODO update the JSON string below json = "{}" diff --git a/koyeb/api/docs/UsersApi.md b/koyeb/api/docs/UsersApi.md new file mode 100644 index 00000000..f2e7125e --- /dev/null +++ b/koyeb/api/docs/UsersApi.md @@ -0,0 +1,178 @@ +# koyeb.api.UsersApi + +All URIs are relative to *https://app.koyeb.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_user**](UsersApi.md#delete_user) | **DELETE** /v1/users/{id} | Delete user +[**delete_user_v2**](UsersApi.md#delete_user_v2) | **DELETE** /v2/users/{id} | V2 Delete user + + +# **delete_user** +> DeleteUserReply delete_user(id) + +Delete user + +### Example + +* Api Key Authentication (Bearer): + +```python +import koyeb.api +from koyeb.api.models.delete_user_reply import DeleteUserReply +from koyeb.api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://app.koyeb.com +# See configuration.py for a list of all supported configuration parameters. +configuration = koyeb.api.Configuration( + host = "https://app.koyeb.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration.api_key['Bearer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Bearer'] = 'Bearer' + +# Enter a context with an instance of the API client +with koyeb.api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = koyeb.api.UsersApi(api_client) + id = 'id_example' # str | The id of the user + + try: + # Delete user + api_response = api_instance.delete_user(id) + print("The response of UsersApi->delete_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->delete_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The id of the user | + +### Return type + +[**DeleteUserReply**](DeleteUserReply.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Validation error | - | +**401** | Returned when the token is not valid. | - | +**403** | Returned when the user does not have permission to access the resource. | - | +**404** | Returned when the resource does not exist. | - | +**500** | Returned in case of server error. | - | +**503** | Service is unavailable. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_user_v2** +> DeleteUserReply delete_user_v2(id) + +V2 Delete user + +### Example + +* Api Key Authentication (Bearer): + +```python +import koyeb.api +from koyeb.api.models.delete_user_reply import DeleteUserReply +from koyeb.api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://app.koyeb.com +# See configuration.py for a list of all supported configuration parameters. +configuration = koyeb.api.Configuration( + host = "https://app.koyeb.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration.api_key['Bearer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Bearer'] = 'Bearer' + +# Enter a context with an instance of the API client +with koyeb.api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = koyeb.api.UsersApi(api_client) + id = 'id_example' # str | The id of the user + + try: + # V2 Delete user + api_response = api_instance.delete_user_v2(id) + print("The response of UsersApi->delete_user_v2:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->delete_user_v2: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The id of the user | + +### Return type + +[**DeleteUserReply**](DeleteUserReply.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Validation error | - | +**401** | Returned when the token is not valid. | - | +**403** | Returned when the user does not have permission to access the resource. | - | +**404** | Returned when the resource does not exist. | - | +**500** | Returned in case of server error. | - | +**503** | Service is unavailable. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/koyeb/docs/VerifyDockerImageReply.md b/koyeb/api/docs/VerifyDockerImageReply.md similarity index 93% rename from koyeb/docs/VerifyDockerImageReply.md rename to koyeb/api/docs/VerifyDockerImageReply.md index 4e6e5bc2..97684bae 100644 --- a/koyeb/docs/VerifyDockerImageReply.md +++ b/koyeb/api/docs/VerifyDockerImageReply.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from koyeb.models.verify_docker_image_reply import VerifyDockerImageReply +from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply # TODO update the JSON string below json = "{}" diff --git a/koyeb/docs/VerifyDockerImageReplyErrCode.md b/koyeb/api/docs/VerifyDockerImageReplyErrCode.md similarity index 100% rename from koyeb/docs/VerifyDockerImageReplyErrCode.md rename to koyeb/api/docs/VerifyDockerImageReplyErrCode.md diff --git a/koyeb/exceptions.py b/koyeb/api/exceptions.py similarity index 86% rename from koyeb/exceptions.py rename to koyeb/api/exceptions.py index 2c9995ba..beb60ca4 100644 --- a/koyeb/exceptions.py +++ b/koyeb/api/exceptions.py @@ -1,29 +1,27 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from typing import Any, Optional from typing_extensions import Self - class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): - def __init__( - self, msg, path_to_item=None, valid_classes=None, key_type=None - ) -> None: - """Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors Args: msg (str): the exception message @@ -106,9 +104,9 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): def __init__( - self, - status=None, - reason=None, + self, + status=None, + reason=None, http_resp=None, *, body: Optional[str] = None, @@ -127,17 +125,17 @@ def __init__( self.reason = http_resp.reason if self.body is None: try: - self.body = http_resp.data.decode("utf-8") + self.body = http_resp.data.decode('utf-8') except Exception: pass self.headers = http_resp.getheaders() @classmethod def from_response( - cls, - *, - http_resp, - body: Optional[str], + cls, + *, + http_resp, + body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: @@ -157,9 +155,7 @@ def from_response( raise ConflictException(http_resp=http_resp, body=body, data=data) if http_resp.status == 422: - raise UnprocessableEntityException( - http_resp=http_resp, body=body, data=data - ) + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) @@ -167,9 +163,11 @@ def from_response( def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.data or self.body: error_message += "HTTP response body: {0}\n".format(self.data or self.body) @@ -199,13 +197,11 @@ class ServiceException(ApiException): class ConflictException(ApiException): """Exception for HTTP 409 Conflict.""" - pass class UnprocessableEntityException(ApiException): """Exception for HTTP 422 Unprocessable Entity.""" - pass diff --git a/koyeb/api/models/__init__.py b/koyeb/api/models/__init__.py new file mode 100644 index 00000000..b8c02b51 --- /dev/null +++ b/koyeb/api/models/__init__.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +# flake8: noqa +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +# import models into model package +from koyeb.api.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply +from koyeb.api.models.action import Action +from koyeb.api.models.activity import Activity +from koyeb.api.models.activity_list import ActivityList +from koyeb.api.models.app import App +from koyeb.api.models.app_event import AppEvent +from koyeb.api.models.app_list_item import AppListItem +from koyeb.api.models.app_status import AppStatus +from koyeb.api.models.app_usage import AppUsage +from koyeb.api.models.apps_summary import AppsSummary +from koyeb.api.models.archive import Archive +from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata +from koyeb.api.models.archive_source import ArchiveSource +from koyeb.api.models.auto_release import AutoRelease +from koyeb.api.models.auto_release_group import AutoReleaseGroup +from koyeb.api.models.autocomplete_reply import AutocompleteReply +from koyeb.api.models.autocomplete_request import AutocompleteRequest +from koyeb.api.models.availability_level import AvailabilityLevel +from koyeb.api.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration +from koyeb.api.models.budget import Budget +from koyeb.api.models.buildpack_builder import BuildpackBuilder +from koyeb.api.models.canny_auth_reply import CannyAuthReply +from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails +from koyeb.api.models.catalog_instance import CatalogInstance +from koyeb.api.models.catalog_instance_list_item import CatalogInstanceListItem +from koyeb.api.models.catalog_usage import CatalogUsage +from koyeb.api.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest +from koyeb.api.models.compose_reply import ComposeReply +from koyeb.api.models.config_file import ConfigFile +from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply +from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply +from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest +from koyeb.api.models.create_account_request import CreateAccountRequest +from koyeb.api.models.create_app import CreateApp +from koyeb.api.models.create_app_reply import CreateAppReply +from koyeb.api.models.create_archive import CreateArchive +from koyeb.api.models.create_archive_reply import CreateArchiveReply +from koyeb.api.models.create_budget_reply import CreateBudgetReply +from koyeb.api.models.create_compose import CreateCompose +from koyeb.api.models.create_credential import CreateCredential +from koyeb.api.models.create_credential_reply import CreateCredentialReply +from koyeb.api.models.create_domain import CreateDomain +from koyeb.api.models.create_domain_reply import CreateDomainReply +from koyeb.api.models.create_organization_invitation_reply import CreateOrganizationInvitationReply +from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest +from koyeb.api.models.create_organization_reply import CreateOrganizationReply +from koyeb.api.models.create_organization_request import CreateOrganizationRequest +from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply +from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply +from koyeb.api.models.create_persistent_volume_request import CreatePersistentVolumeRequest +from koyeb.api.models.create_secret import CreateSecret +from koyeb.api.models.create_secret_reply import CreateSecretReply +from koyeb.api.models.create_service import CreateService +from koyeb.api.models.create_service_reply import CreateServiceReply +from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply +from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest +from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest +from koyeb.api.models.credential import Credential +from koyeb.api.models.credential_type import CredentialType +from koyeb.api.models.database_deployment_metadata import DatabaseDeploymentMetadata +from koyeb.api.models.database_role_password import DatabaseRolePassword +from koyeb.api.models.database_source import DatabaseSource +from koyeb.api.models.database_usage import DatabaseUsage +from koyeb.api.models.database_usage_details import DatabaseUsageDetails +from koyeb.api.models.datacenter_list_item import DatacenterListItem +from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply +from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest +from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest +from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest +from koyeb.api.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply +from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply +from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply +from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply +from koyeb.api.models.delete_user_reply import DeleteUserReply +from koyeb.api.models.deployment import Deployment +from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo +from koyeb.api.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_definition_type import DeploymentDefinitionType +from koyeb.api.models.deployment_env import DeploymentEnv +from koyeb.api.models.deployment_event import DeploymentEvent +from koyeb.api.models.deployment_health_check import DeploymentHealthCheck +from koyeb.api.models.deployment_instance_type import DeploymentInstanceType +from koyeb.api.models.deployment_list_item import DeploymentListItem +from koyeb.api.models.deployment_metadata import DeploymentMetadata +from koyeb.api.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo +from koyeb.api.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole +from koyeb.api.models.deployment_port import DeploymentPort +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo +from koyeb.api.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus +from koyeb.api.models.deployment_proxy_port import DeploymentProxyPort +from koyeb.api.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata +from koyeb.api.models.deployment_role import DeploymentRole +from koyeb.api.models.deployment_route import DeploymentRoute +from koyeb.api.models.deployment_scaling import DeploymentScaling +from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget +from koyeb.api.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU +from koyeb.api.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem +from koyeb.api.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests +from koyeb.api.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond +from koyeb.api.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime +from koyeb.api.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay +from koyeb.api.models.deployment_status import DeploymentStatus +from koyeb.api.models.deployment_strategy import DeploymentStrategy +from koyeb.api.models.deployment_strategy_type import DeploymentStrategyType +from koyeb.api.models.deployment_volume import DeploymentVolume +from koyeb.api.models.desired_deployment import DesiredDeployment +from koyeb.api.models.desired_deployment_group import DesiredDeploymentGroup +from koyeb.api.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration +from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply +from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest +from koyeb.api.models.docker_builder import DockerBuilder +from koyeb.api.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration +from koyeb.api.models.docker_source import DockerSource +from koyeb.api.models.domain import Domain +from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb +from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas +from koyeb.api.models.domain_status import DomainStatus +from koyeb.api.models.domain_type import DomainType +from koyeb.api.models.domains_summary import DomainsSummary +from koyeb.api.models.env import Env +from koyeb.api.models.error import Error +from koyeb.api.models.error_field import ErrorField +from koyeb.api.models.error_with_fields import ErrorWithFields +from koyeb.api.models.exec_command_io import ExecCommandIO +from koyeb.api.models.exec_command_reply import ExecCommandReply +from koyeb.api.models.exec_command_request_body import ExecCommandRequestBody +from koyeb.api.models.exec_command_request_id_type import ExecCommandRequestIdType +from koyeb.api.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize +from koyeb.api.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration +from koyeb.api.models.get_app_reply import GetAppReply +from koyeb.api.models.get_budget_reply import GetBudgetReply +from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply +from koyeb.api.models.get_credential_reply import GetCredentialReply +from koyeb.api.models.get_deployment_reply import GetDeploymentReply +from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply +from koyeb.api.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem +from koyeb.api.models.get_domain_reply import GetDomainReply +from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply +from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply +from koyeb.api.models.get_instance_reply import GetInstanceReply +from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply +from koyeb.api.models.get_metrics_reply import GetMetricsReply +from koyeb.api.models.get_metrics_reply_metric import GetMetricsReplyMetric +from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply +from koyeb.api.models.get_organization_invitation_reply import GetOrganizationInvitationReply +from koyeb.api.models.get_organization_reply import GetOrganizationReply +from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply +from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply +from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply +from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply +from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply +from koyeb.api.models.get_quotas_reply import GetQuotasReply +from koyeb.api.models.get_region_reply import GetRegionReply +from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply +from koyeb.api.models.get_secret_reply import GetSecretReply +from koyeb.api.models.get_service_reply import GetServiceReply +from koyeb.api.models.get_snapshot_reply import GetSnapshotReply +from koyeb.api.models.get_subscription_reply import GetSubscriptionReply +from koyeb.api.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply +from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply +from koyeb.api.models.git_deployment_metadata import GitDeploymentMetadata +from koyeb.api.models.git_env_deployment_metadata import GitEnvDeploymentMetadata +from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration +from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration +from koyeb.api.models.git_source import GitSource +from koyeb.api.models.github_installation_reply import GithubInstallationReply +from koyeb.api.models.github_installation_request import GithubInstallationRequest +from koyeb.api.models.google_protobuf_any import GoogleProtobufAny +from koyeb.api.models.google_protobuf_null_value import GoogleProtobufNullValue +from koyeb.api.models.google_rpc_status import GoogleRpcStatus +from koyeb.api.models.http_header import HTTPHeader +from koyeb.api.models.http_health_check import HTTPHealthCheck +from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply +from koyeb.api.models.instance import Instance +from koyeb.api.models.instance_availability import InstanceAvailability +from koyeb.api.models.instance_event import InstanceEvent +from koyeb.api.models.instance_list_item import InstanceListItem +from koyeb.api.models.instance_status import InstanceStatus +from koyeb.api.models.instance_usage import InstanceUsage +from koyeb.api.models.instances_summary import InstancesSummary +from koyeb.api.models.invite_user_request import InviteUserRequest +from koyeb.api.models.kgitproxy_branch import KgitproxyBranch +from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository +from koyeb.api.models.kgitproxy_github_installation_status import KgitproxyGithubInstallationStatus +from koyeb.api.models.kgitproxy_indexing_status import KgitproxyIndexingStatus +from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply +from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply +from koyeb.api.models.kgitproxy_repository import KgitproxyRepository +from koyeb.api.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider +from koyeb.api.models.ksearch_app import KsearchApp +from koyeb.api.models.ksearch_global_deployment import KsearchGlobalDeployment +from koyeb.api.models.ksearch_instance import KsearchInstance +from koyeb.api.models.ksearch_organization import KsearchOrganization +from koyeb.api.models.ksearch_regional_deployment import KsearchRegionalDeployment +from koyeb.api.models.ksearch_search_reply import KsearchSearchReply +from koyeb.api.models.ksearch_service import KsearchService +from koyeb.api.models.ksearch_user import KsearchUser +from koyeb.api.models.list_app_events_reply import ListAppEventsReply +from koyeb.api.models.list_apps_reply import ListAppsReply +from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply +from koyeb.api.models.list_credentials_reply import ListCredentialsReply +from koyeb.api.models.list_datacenters_reply import ListDatacentersReply +from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply +from koyeb.api.models.list_deployments_reply import ListDeploymentsReply +from koyeb.api.models.list_domains_reply import ListDomainsReply +from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply +from koyeb.api.models.list_instances_reply import ListInstancesReply +from koyeb.api.models.list_organization_invitations_reply import ListOrganizationInvitationsReply +from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply +from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply +from koyeb.api.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply +from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply +from koyeb.api.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply +from koyeb.api.models.list_regional_deployments_reply import ListRegionalDeploymentsReply +from koyeb.api.models.list_regions_reply import ListRegionsReply +from koyeb.api.models.list_secrets_reply import ListSecretsReply +from koyeb.api.models.list_service_events_reply import ListServiceEventsReply +from koyeb.api.models.list_services_reply import ListServicesReply +from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply +from koyeb.api.models.list_usage_reply import ListUsageReply +from koyeb.api.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply +from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply +from koyeb.api.models.log_entry import LogEntry +from koyeb.api.models.login_method_reply import LoginMethodReply +from koyeb.api.models.login_method_reply_method import LoginMethodReplyMethod +from koyeb.api.models.login_reply import LoginReply +from koyeb.api.models.login_request import LoginRequest +from koyeb.api.models.manage_reply import ManageReply +from koyeb.api.models.members_summary import MembersSummary +from koyeb.api.models.metric_name import MetricName +from koyeb.api.models.neon_postgres_database import NeonPostgresDatabase +from koyeb.api.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata +from koyeb.api.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase +from koyeb.api.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole +from koyeb.api.models.neon_postgres_summary import NeonPostgresSummary +from koyeb.api.models.next_invoice_reply import NextInvoiceReply +from koyeb.api.models.next_invoice_reply_discount import NextInvoiceReplyDiscount +from koyeb.api.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType +from koyeb.api.models.next_invoice_reply_line import NextInvoiceReplyLine +from koyeb.api.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod +from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice +from koyeb.api.models.notification import Notification +from koyeb.api.models.notification_list import NotificationList +from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply +from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest +from koyeb.api.models.o_auth_provider import OAuthProvider +from koyeb.api.models.object import Object +from koyeb.api.models.organization import Organization +from koyeb.api.models.organization_deactivation_reason import OrganizationDeactivationReason +from koyeb.api.models.organization_detailed_status import OrganizationDetailedStatus +from koyeb.api.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation_status import OrganizationInvitationStatus +from koyeb.api.models.organization_member import OrganizationMember +from koyeb.api.models.organization_member_status import OrganizationMemberStatus +from koyeb.api.models.organization_status import OrganizationStatus +from koyeb.api.models.organization_summary import OrganizationSummary +from koyeb.api.models.payment_method import PaymentMethod +from koyeb.api.models.payment_method_status import PaymentMethodStatus +from koyeb.api.models.period_usage import PeriodUsage +from koyeb.api.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume_backing_store import PersistentVolumeBackingStore +from koyeb.api.models.persistent_volume_event import PersistentVolumeEvent +from koyeb.api.models.persistent_volume_quotas import PersistentVolumeQuotas +from koyeb.api.models.persistent_volume_status import PersistentVolumeStatus +from koyeb.api.models.plan import Plan +from koyeb.api.models.port import Port +from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration +from koyeb.api.models.proxy_port_protocol import ProxyPortProtocol +from koyeb.api.models.public_organization import PublicOrganization +from koyeb.api.models.public_user import PublicUser +from koyeb.api.models.query_logs_reply import QueryLogsReply +from koyeb.api.models.query_logs_reply_pagination import QueryLogsReplyPagination +from koyeb.api.models.quotas import Quotas +from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply +from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest +from koyeb.api.models.redeploy_reply import RedeployReply +from koyeb.api.models.redeploy_request_info import RedeployRequestInfo +from koyeb.api.models.region import Region +from koyeb.api.models.region_availability import RegionAvailability +from koyeb.api.models.region_list_item import RegionListItem +from koyeb.api.models.region_usage import RegionUsage +from koyeb.api.models.regional_deployment import RegionalDeployment +from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition +from koyeb.api.models.regional_deployment_definition_type import RegionalDeploymentDefinitionType +from koyeb.api.models.regional_deployment_event import RegionalDeploymentEvent +from koyeb.api.models.regional_deployment_list_item import RegionalDeploymentListItem +from koyeb.api.models.regional_deployment_role import RegionalDeploymentRole +from koyeb.api.models.regional_deployment_status import RegionalDeploymentStatus +from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume +from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply +from koyeb.api.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply +from koyeb.api.models.reset_password_request import ResetPasswordRequest +from koyeb.api.models.reveal_secret_reply import RevealSecretReply +from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply +from koyeb.api.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest +from koyeb.api.models.route import Route +from koyeb.api.models.sample import Sample +from koyeb.api.models.scale_to_zero_quotas import ScaleToZeroQuotas +from koyeb.api.models.scaling import Scaling +from koyeb.api.models.secret import Secret +from koyeb.api.models.secret_type import SecretType +from koyeb.api.models.secrets_summary import SecretsSummary +from koyeb.api.models.service import Service +from koyeb.api.models.service_event import ServiceEvent +from koyeb.api.models.service_list_item import ServiceListItem +from koyeb.api.models.service_state import ServiceState +from koyeb.api.models.service_status import ServiceStatus +from koyeb.api.models.service_summary import ServiceSummary +from koyeb.api.models.service_type import ServiceType +from koyeb.api.models.service_usage import ServiceUsage +from koyeb.api.models.snapshot import Snapshot +from koyeb.api.models.snapshot_status import SnapshotStatus +from koyeb.api.models.snapshot_type import SnapshotType +from koyeb.api.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply +from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry +from koyeb.api.models.subscription import Subscription +from koyeb.api.models.subscription_payment_failure import SubscriptionPaymentFailure +from koyeb.api.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK +from koyeb.api.models.subscription_status import SubscriptionStatus +from koyeb.api.models.tcp_health_check import TCPHealthCheck +from koyeb.api.models.token import Token +from koyeb.api.models.trigger_deployment_metadata import TriggerDeploymentMetadata +from koyeb.api.models.trigger_deployment_metadata_actor_type import TriggerDeploymentMetadataActorType +from koyeb.api.models.trigger_deployment_metadata_trigger_type import TriggerDeploymentMetadataTriggerType +from koyeb.api.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata +from koyeb.api.models.trigger_git_deployment_metadata_provider import TriggerGitDeploymentMetadataProvider +from koyeb.api.models.update_app import UpdateApp +from koyeb.api.models.update_app_reply import UpdateAppReply +from koyeb.api.models.update_budget_reply import UpdateBudgetReply +from koyeb.api.models.update_budget_request import UpdateBudgetRequest +from koyeb.api.models.update_credential_reply import UpdateCredentialReply +from koyeb.api.models.update_domain import UpdateDomain +from koyeb.api.models.update_domain_reply import UpdateDomainReply +from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply +from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply +from koyeb.api.models.update_password_request import UpdatePasswordRequest +from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply +from koyeb.api.models.update_persistent_volume_request import UpdatePersistentVolumeRequest +from koyeb.api.models.update_secret_reply import UpdateSecretReply +from koyeb.api.models.update_service import UpdateService +from koyeb.api.models.update_service_reply import UpdateServiceReply +from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply +from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply +from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest +from koyeb.api.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply +from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest +from koyeb.api.models.usage import Usage +from koyeb.api.models.usage_details import UsageDetails +from koyeb.api.models.user import User +from koyeb.api.models.user_flags import UserFlags +from koyeb.api.models.user_reply import UserReply +from koyeb.api.models.user_role_role import UserRoleRole +from koyeb.api.models.user_settings import UserSettings +from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply +from koyeb.api.models.verify_docker_image_reply_err_code import VerifyDockerImageReplyErrCode + diff --git a/koyeb/models/accept_organization_invitation_reply.py b/koyeb/api/models/accept_organization_invitation_reply.py similarity index 74% rename from koyeb/models/accept_organization_invitation_reply.py rename to koyeb/api/models/accept_organization_invitation_reply.py index 4bb85988..b1f48036 100644 --- a/koyeb/models/accept_organization_invitation_reply.py +++ b/koyeb/api/models/accept_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class AcceptOrganizationInvitationReply(BaseModel): """ AcceptOrganizationInvitationReply - """ # noqa: E501 - + """ # noqa: E501 invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -38,6 +36,7 @@ class AcceptOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of invitation if self.invitation: - _dict["invitation"] = self.invitation.to_dict() + _dict['invitation'] = self.invitation.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitation": ( - OrganizationInvitation.from_dict(obj["invitation"]) - if obj.get("invitation") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "invitation": OrganizationInvitation.from_dict(obj["invitation"]) if obj.get("invitation") is not None else None + }) return _obj + + diff --git a/koyeb/models/action.py b/koyeb/api/models/action.py similarity index 52% rename from koyeb/models/action.py rename to koyeb/api/models/action.py index e0131ae6..2c83db3f 100644 --- a/koyeb/models/action.py +++ b/koyeb/api/models/action.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class Action(str, Enum): """ allowed enum values """ - SIGNIN = "signin" - SIGNUP = "signup" - REGISTER = "register" + SIGNIN = 'signin' + SIGNUP = 'signup' + REGISTER = 'register' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of Action from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/activity.py b/koyeb/api/models/activity.py similarity index 65% rename from koyeb/models/activity.py rename to koyeb/api/models/activity.py index 1cd797e0..d3edacb8 100644 --- a/koyeb/models/activity.py +++ b/koyeb/api/models/activity.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,30 +20,21 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.object import Object +from koyeb.api.models.object import Object from typing import Optional, Set from typing_extensions import Self - class Activity(BaseModel): """ Activity - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None actor: Optional[Object] = None object: Optional[Object] = None verb: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None created_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "id", - "actor", - "object", - "verb", - "metadata", - "created_at", - ] + __properties: ClassVar[List[str]] = ["id", "actor", "object", "verb", "metadata", "created_at"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +42,7 @@ class Activity(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -84,10 +77,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of actor if self.actor: - _dict["actor"] = self.actor.to_dict() + _dict['actor'] = self.actor.to_dict() # override the default output from pydantic by calling `to_dict()` of object if self.object: - _dict["object"] = self.object.to_dict() + _dict['object'] = self.object.to_dict() return _dict @classmethod @@ -99,22 +92,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "actor": ( - Object.from_dict(obj["actor"]) - if obj.get("actor") is not None - else None - ), - "object": ( - Object.from_dict(obj["object"]) - if obj.get("object") is not None - else None - ), - "verb": obj.get("verb"), - "metadata": obj.get("metadata"), - "created_at": obj.get("created_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "actor": Object.from_dict(obj["actor"]) if obj.get("actor") is not None else None, + "object": Object.from_dict(obj["object"]) if obj.get("object") is not None else None, + "verb": obj.get("verb"), + "metadata": obj.get("metadata"), + "created_at": obj.get("created_at") + }) return _obj + + diff --git a/koyeb/models/activity_list.py b/koyeb/api/models/activity_list.py similarity index 74% rename from koyeb/models/activity_list.py rename to koyeb/api/models/activity_list.py index 04fdbda4..db8df01a 100644 --- a/koyeb/models/activity_list.py +++ b/koyeb/api/models/activity_list.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.activity import Activity +from koyeb.api.models.activity import Activity from typing import Optional, Set from typing_extensions import Self - class ActivityList(BaseModel): """ ActivityList - """ # noqa: E501 - + """ # noqa: E501 activities: Optional[List[Activity]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ActivityList(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_activities in self.activities: if _item_activities: _items.append(_item_activities.to_dict()) - _dict["activities"] = _items + _dict['activities'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "activities": ( - [Activity.from_dict(_item) for _item in obj["activities"]] - if obj.get("activities") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "activities": [Activity.from_dict(_item) for _item in obj["activities"]] if obj.get("activities") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/app.py b/koyeb/api/models/app.py similarity index 60% rename from koyeb/models/app.py rename to koyeb/api/models/app.py index 9059db1f..5772aeed 100644 --- a/koyeb/models/app.py +++ b/koyeb/api/models/app.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app_status import AppStatus -from koyeb.models.domain import Domain +from koyeb.api.models.app_status import AppStatus +from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self - class App(BaseModel): """ App - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None @@ -45,22 +43,7 @@ class App(BaseModel): messages: Optional[List[StrictStr]] = None version: Optional[StrictStr] = None domains: Optional[List[Domain]] = None - __properties: ClassVar[List[str]] = [ - "id", - "name", - "organization_id", - "created_at", - "updated_at", - "started_at", - "succeeded_at", - "paused_at", - "resumed_at", - "terminated_at", - "status", - "messages", - "version", - "domains", - ] + __properties: ClassVar[List[str]] = ["id", "name", "organization_id", "created_at", "updated_at", "started_at", "succeeded_at", "paused_at", "resumed_at", "terminated_at", "status", "messages", "version", "domains"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +51,7 @@ class App(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -92,7 +76,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -105,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_domains in self.domains: if _item_domains: _items.append(_item_domains.to_dict()) - _dict["domains"] = _items + _dict['domains'] = _items return _dict @classmethod @@ -117,30 +102,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "organization_id": obj.get("organization_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "paused_at": obj.get("paused_at"), - "resumed_at": obj.get("resumed_at"), - "terminated_at": obj.get("terminated_at"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else AppStatus.STARTING - ), - "messages": obj.get("messages"), - "version": obj.get("version"), - "domains": ( - [Domain.from_dict(_item) for _item in obj["domains"]] - if obj.get("domains") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "organization_id": obj.get("organization_id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "paused_at": obj.get("paused_at"), + "resumed_at": obj.get("resumed_at"), + "terminated_at": obj.get("terminated_at"), + "status": obj.get("status") if obj.get("status") is not None else AppStatus.STARTING, + "messages": obj.get("messages"), + "version": obj.get("version"), + "domains": [Domain.from_dict(_item) for _item in obj["domains"]] if obj.get("domains") is not None else None + }) return _obj + + diff --git a/koyeb/models/app_event.py b/koyeb/api/models/app_event.py similarity index 71% rename from koyeb/models/app_event.py rename to koyeb/api/models/app_event.py index 6e8108f6..5c8dc0fb 100644 --- a/koyeb/models/app_event.py +++ b/koyeb/api/models/app_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class AppEvent(BaseModel): """ AppEvent - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -36,15 +34,7 @@ class AppEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = [ - "id", - "when", - "organization_id", - "app_id", - "type", - "message", - "metadata", - ] + __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "app_id", "type", "message", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class AppEvent(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/app_list_item.py b/koyeb/api/models/app_list_item.py similarity index 64% rename from koyeb/models/app_list_item.py rename to koyeb/api/models/app_list_item.py index 3e154aba..a7b4cb8e 100644 --- a/koyeb/models/app_list_item.py +++ b/koyeb/api/models/app_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app_status import AppStatus -from koyeb.models.domain import Domain +from koyeb.api.models.app_status import AppStatus +from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self - class AppListItem(BaseModel): """ AppListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None @@ -39,16 +37,7 @@ class AppListItem(BaseModel): domains: Optional[List[Domain]] = None status: Optional[AppStatus] = AppStatus.STARTING messages: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = [ - "id", - "name", - "organization_id", - "updated_at", - "created_at", - "domains", - "status", - "messages", - ] + __properties: ClassVar[List[str]] = ["id", "name", "organization_id", "updated_at", "created_at", "domains", "status", "messages"] model_config = ConfigDict( populate_by_name=True, @@ -56,6 +45,7 @@ class AppListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,7 +70,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -93,7 +84,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_domains in self.domains: if _item_domains: _items.append(_item_domains.to_dict()) - _dict["domains"] = _items + _dict['domains'] = _items return _dict @classmethod @@ -105,24 +96,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "organization_id": obj.get("organization_id"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "domains": ( - [Domain.from_dict(_item) for _item in obj["domains"]] - if obj.get("domains") is not None - else None - ), - "status": ( - obj.get("status") - if obj.get("status") is not None - else AppStatus.STARTING - ), - "messages": obj.get("messages"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "organization_id": obj.get("organization_id"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "domains": [Domain.from_dict(_item) for _item in obj["domains"]] if obj.get("domains") is not None else None, + "status": obj.get("status") if obj.get("status") is not None else AppStatus.STARTING, + "messages": obj.get("messages") + }) return _obj + + diff --git a/koyeb/api/models/app_status.py b/koyeb/api/models/app_status.py new file mode 100644 index 00000000..3135ab25 --- /dev/null +++ b/koyeb/api/models/app_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class AppStatus(str, Enum): + """ + AppStatus + """ + + """ + allowed enum values + """ + STARTING = 'STARTING' + HEALTHY = 'HEALTHY' + DEGRADED = 'DEGRADED' + UNHEALTHY = 'UNHEALTHY' + DELETING = 'DELETING' + DELETED = 'DELETED' + PAUSING = 'PAUSING' + PAUSED = 'PAUSED' + RESUMING = 'RESUMING' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AppStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/app_usage.py b/koyeb/api/models/app_usage.py similarity index 71% rename from koyeb/models/app_usage.py rename to koyeb/api/models/app_usage.py index c4e6ef58..f921e893 100644 --- a/koyeb/models/app_usage.py +++ b/koyeb/api/models/app_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.database_usage import DatabaseUsage -from koyeb.models.service_usage import ServiceUsage +from koyeb.api.models.database_usage import DatabaseUsage +from koyeb.api.models.service_usage import ServiceUsage from typing import Optional, Set from typing_extensions import Self - class AppUsage(BaseModel): """ AppUsage - """ # noqa: E501 - + """ # noqa: E501 app_id: Optional[StrictStr] = None app_name: Optional[StrictStr] = None services: Optional[List[ServiceUsage]] = None @@ -42,6 +40,7 @@ class AppUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,14 +79,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict["services"] = _items + _dict['services'] = _items # override the default output from pydantic by calling `to_dict()` of each item in databases (list) _items = [] if self.databases: for _item_databases in self.databases: if _item_databases: _items.append(_item_databases.to_dict()) - _dict["databases"] = _items + _dict['databases'] = _items return _dict @classmethod @@ -98,20 +98,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "app_id": obj.get("app_id"), - "app_name": obj.get("app_name"), - "services": ( - [ServiceUsage.from_dict(_item) for _item in obj["services"]] - if obj.get("services") is not None - else None - ), - "databases": ( - [DatabaseUsage.from_dict(_item) for _item in obj["databases"]] - if obj.get("databases") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "app_id": obj.get("app_id"), + "app_name": obj.get("app_name"), + "services": [ServiceUsage.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None, + "databases": [DatabaseUsage.from_dict(_item) for _item in obj["databases"]] if obj.get("databases") is not None else None + }) return _obj + + diff --git a/koyeb/models/apps_summary.py b/koyeb/api/models/apps_summary.py similarity index 80% rename from koyeb/models/apps_summary.py rename to koyeb/api/models/apps_summary.py index b8d9d482..ba230f96 100644 --- a/koyeb/models/apps_summary.py +++ b/koyeb/api/models/apps_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class AppsSummary(BaseModel): """ AppsSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None by_status: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "by_status"] @@ -38,6 +36,7 @@ class AppsSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"total": obj.get("total"), "by_status": obj.get("by_status")} - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "by_status": obj.get("by_status") + }) return _obj + + diff --git a/koyeb/models/archive.py b/koyeb/api/models/archive.py similarity index 52% rename from koyeb/models/archive.py rename to koyeb/api/models/archive.py index f46cb023..1da38bae 100644 --- a/koyeb/models/archive.py +++ b/koyeb/api/models/archive.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,41 +23,17 @@ from typing import Optional, Set from typing_extensions import Self - class Archive(BaseModel): """ Archive - """ # noqa: E501 - - id: Optional[StrictStr] = Field( - default=None, - description="The archive id, that can be referenced when creating or updating a service.", - ) - organization_id: Optional[StrictStr] = Field( - default=None, description="Organization owning the archive." - ) - upload_url: Optional[StrictStr] = Field( - default=None, - description="The URL where to upload the archive. This URL is signed and can only be used to upload the archive until `valid_until`.", - ) - size: Optional[StrictStr] = Field( - default=None, description="The provisioned space for the archive." - ) - created_at: Optional[datetime] = Field( - default=None, description="Date of creation of the archive." - ) - deleted_at: Optional[datetime] = Field( - default=None, - description="This field is automatically set by Koyeb when the archive is garbage collected.", - ) - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "upload_url", - "size", - "created_at", - "deleted_at", - ] + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The archive id, that can be referenced when creating or updating a service.") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization owning the archive.") + upload_url: Optional[StrictStr] = Field(default=None, description="The URL where to upload the archive. This URL is signed and can only be used to upload the archive until `valid_until`.") + size: Optional[StrictStr] = Field(default=None, description="The provisioned space for the archive.") + created_at: Optional[datetime] = Field(default=None, description="Date of creation of the archive.") + deleted_at: Optional[datetime] = Field(default=None, description="This field is automatically set by Koyeb when the archive is garbage collected.") + __properties: ClassVar[List[str]] = ["id", "organization_id", "upload_url", "size", "created_at", "deleted_at"] model_config = ConfigDict( populate_by_name=True, @@ -65,6 +41,7 @@ class Archive(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -89,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -107,14 +85,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "upload_url": obj.get("upload_url"), - "size": obj.get("size"), - "created_at": obj.get("created_at"), - "deleted_at": obj.get("deleted_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "upload_url": obj.get("upload_url"), + "size": obj.get("size"), + "created_at": obj.get("created_at"), + "deleted_at": obj.get("deleted_at") + }) return _obj + + diff --git a/koyeb/models/archive_deployment_metadata.py b/koyeb/api/models/archive_deployment_metadata.py similarity index 79% rename from koyeb/models/archive_deployment_metadata.py rename to koyeb/api/models/archive_deployment_metadata.py index 4e0fd41f..a32752ff 100644 --- a/koyeb/models/archive_deployment_metadata.py +++ b/koyeb/api/models/archive_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ArchiveDeploymentMetadata(BaseModel): """ ArchiveDeploymentMetadata - """ # noqa: E501 - + """ # noqa: E501 last_provisioned_deployment_id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["last_provisioned_deployment_id"] @@ -37,6 +35,7 @@ class ArchiveDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,11 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "last_provisioned_deployment_id": obj.get( - "last_provisioned_deployment_id" - ) - } - ) + _obj = cls.model_validate({ + "last_provisioned_deployment_id": obj.get("last_provisioned_deployment_id") + }) return _obj + + diff --git a/koyeb/models/archive_source.py b/koyeb/api/models/archive_source.py similarity index 69% rename from koyeb/models/archive_source.py rename to koyeb/api/models/archive_source.py index 68ec80f7..bee9a97b 100644 --- a/koyeb/models/archive_source.py +++ b/koyeb/api/models/archive_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.buildpack_builder import BuildpackBuilder -from koyeb.models.docker_builder import DockerBuilder +from koyeb.api.models.buildpack_builder import BuildpackBuilder +from koyeb.api.models.docker_builder import DockerBuilder from typing import Optional, Set from typing_extensions import Self - class ArchiveSource(BaseModel): """ ArchiveSource - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None buildpack: Optional[BuildpackBuilder] = None docker: Optional[DockerBuilder] = None @@ -41,6 +39,7 @@ class ArchiveSource(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of buildpack if self.buildpack: - _dict["buildpack"] = self.buildpack.to_dict() + _dict['buildpack'] = self.buildpack.to_dict() # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict["docker"] = self.docker.to_dict() + _dict['docker'] = self.docker.to_dict() return _dict @classmethod @@ -89,19 +89,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "buildpack": ( - BuildpackBuilder.from_dict(obj["buildpack"]) - if obj.get("buildpack") is not None - else None - ), - "docker": ( - DockerBuilder.from_dict(obj["docker"]) - if obj.get("docker") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "buildpack": BuildpackBuilder.from_dict(obj["buildpack"]) if obj.get("buildpack") is not None else None, + "docker": DockerBuilder.from_dict(obj["docker"]) if obj.get("docker") is not None else None + }) return _obj + + diff --git a/koyeb/models/auto_release.py b/koyeb/api/models/auto_release.py similarity index 76% rename from koyeb/models/auto_release.py rename to koyeb/api/models/auto_release.py index ed9a289c..5fdc930e 100644 --- a/koyeb/models/auto_release.py +++ b/koyeb/api/models/auto_release.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.auto_release_group import AutoReleaseGroup +from koyeb.api.models.auto_release_group import AutoReleaseGroup from typing import Optional, Set from typing_extensions import Self - class AutoRelease(BaseModel): """ AutoRelease - """ # noqa: E501 - + """ # noqa: E501 groups: Optional[List[AutoReleaseGroup]] = None __properties: ClassVar[List[str]] = ["groups"] @@ -38,6 +36,7 @@ class AutoRelease(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_groups in self.groups: if _item_groups: _items.append(_item_groups.to_dict()) - _dict["groups"] = _items + _dict['groups'] = _items return _dict @classmethod @@ -87,13 +87,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "groups": ( - [AutoReleaseGroup.from_dict(_item) for _item in obj["groups"]] - if obj.get("groups") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "groups": [AutoReleaseGroup.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None + }) return _obj + + diff --git a/koyeb/models/auto_release_group.py b/koyeb/api/models/auto_release_group.py similarity index 78% rename from koyeb/models/auto_release_group.py rename to koyeb/api/models/auto_release_group.py index 357dc05c..cf9a1cf7 100644 --- a/koyeb/models/auto_release_group.py +++ b/koyeb/api/models/auto_release_group.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class AutoReleaseGroup(BaseModel): """ AutoReleaseGroup - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None repository: Optional[StrictStr] = None git_ref: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class AutoReleaseGroup(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "repository": obj.get("repository"), - "git_ref": obj.get("git_ref"), - "latest_sha": obj.get("latest_sha"), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "repository": obj.get("repository"), + "git_ref": obj.get("git_ref"), + "latest_sha": obj.get("latest_sha") + }) return _obj + + diff --git a/koyeb/models/autocomplete_reply.py b/koyeb/api/models/autocomplete_reply.py similarity index 79% rename from koyeb/models/autocomplete_reply.py rename to koyeb/api/models/autocomplete_reply.py index f97bb9e8..c3571910 100644 --- a/koyeb/models/autocomplete_reply.py +++ b/koyeb/api/models/autocomplete_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class AutocompleteReply(BaseModel): """ AutocompleteReply - """ # noqa: E501 - + """ # noqa: E501 secrets: Optional[List[StrictStr]] = None user_env: Optional[List[StrictStr]] = None system_env: Optional[List[StrictStr]] = None @@ -39,6 +37,7 @@ class AutocompleteReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secrets": obj.get("secrets"), - "user_env": obj.get("user_env"), - "system_env": obj.get("system_env"), - } - ) + _obj = cls.model_validate({ + "secrets": obj.get("secrets"), + "user_env": obj.get("user_env"), + "system_env": obj.get("system_env") + }) return _obj + + diff --git a/koyeb/models/autocomplete_request.py b/koyeb/api/models/autocomplete_request.py similarity index 74% rename from koyeb/models/autocomplete_request.py rename to koyeb/api/models/autocomplete_request.py index ac7ad5a1..952027b7 100644 --- a/koyeb/models/autocomplete_request.py +++ b/koyeb/api/models/autocomplete_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_definition import DeploymentDefinition from typing import Optional, Set from typing_extensions import Self - class AutocompleteRequest(BaseModel): """ AutocompleteRequest - """ # noqa: E501 - + """ # noqa: E501 definition: Optional[DeploymentDefinition] = None __properties: ClassVar[List[str]] = ["definition"] @@ -38,6 +36,7 @@ class AutocompleteRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict["definition"] = self.definition.to_dict() + _dict['definition'] = self.definition.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "definition": ( - DeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None + }) return _obj + + diff --git a/koyeb/models/availability_level.py b/koyeb/api/models/availability_level.py similarity index 53% rename from koyeb/models/availability_level.py rename to koyeb/api/models/availability_level.py index 3c84a955..b3af7346 100644 --- a/koyeb/models/availability_level.py +++ b/koyeb/api/models/availability_level.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class AvailabilityLevel(str, Enum): """ allowed enum values """ - UNKNOWN = "UNKNOWN" - LOW = "LOW" - MEDIUM = "MEDIUM" - HIGH = "HIGH" + UNKNOWN = 'UNKNOWN' + LOW = 'LOW' + MEDIUM = 'MEDIUM' + HIGH = 'HIGH' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of AvailabilityLevel from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/azure_container_registry_configuration.py b/koyeb/api/models/azure_container_registry_configuration.py similarity index 79% rename from koyeb/models/azure_container_registry_configuration.py rename to koyeb/api/models/azure_container_registry_configuration.py index bf23e924..4472ad70 100644 --- a/koyeb/models/azure_container_registry_configuration.py +++ b/koyeb/api/models/azure_container_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class AzureContainerRegistryConfiguration(BaseModel): """ AzureContainerRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 registry_name: Optional[StrictStr] = None username: Optional[StrictStr] = None password: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class AzureContainerRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "registry_name": obj.get("registry_name"), - "username": obj.get("username"), - "password": obj.get("password"), - } - ) + _obj = cls.model_validate({ + "registry_name": obj.get("registry_name"), + "username": obj.get("username"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/budget.py b/koyeb/api/models/budget.py similarity index 80% rename from koyeb/models/budget.py rename to koyeb/api/models/budget.py index e25c00f1..3f0c25a6 100644 --- a/koyeb/models/budget.py +++ b/koyeb/api/models/budget.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Budget(BaseModel): """ Budget - """ # noqa: E501 - + """ # noqa: E501 amount: Optional[StrictStr] = None thresholds: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["amount", "thresholds"] @@ -38,6 +36,7 @@ class Budget(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"amount": obj.get("amount"), "thresholds": obj.get("thresholds")} - ) + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "thresholds": obj.get("thresholds") + }) return _obj + + diff --git a/koyeb/models/buildpack_builder.py b/koyeb/api/models/buildpack_builder.py similarity index 79% rename from koyeb/models/buildpack_builder.py rename to koyeb/api/models/buildpack_builder.py index 237340cc..cd2483e8 100644 --- a/koyeb/models/buildpack_builder.py +++ b/koyeb/api/models/buildpack_builder.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class BuildpackBuilder(BaseModel): """ BuildpackBuilder - """ # noqa: E501 - + """ # noqa: E501 build_command: Optional[StrictStr] = None run_command: Optional[StrictStr] = None privileged: Optional[StrictBool] = None @@ -39,6 +37,7 @@ class BuildpackBuilder(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "build_command": obj.get("build_command"), - "run_command": obj.get("run_command"), - "privileged": obj.get("privileged"), - } - ) + _obj = cls.model_validate({ + "build_command": obj.get("build_command"), + "run_command": obj.get("run_command"), + "privileged": obj.get("privileged") + }) return _obj + + diff --git a/koyeb/models/canny_auth_reply.py b/koyeb/api/models/canny_auth_reply.py similarity index 81% rename from koyeb/models/canny_auth_reply.py rename to koyeb/api/models/canny_auth_reply.py index 56ca275a..80454583 100644 --- a/koyeb/models/canny_auth_reply.py +++ b/koyeb/api/models/canny_auth_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CannyAuthReply(BaseModel): """ CannyAuthReply - """ # noqa: E501 - + """ # noqa: E501 token: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["token"] @@ -37,6 +35,7 @@ class CannyAuthReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"token": obj.get("token")}) + _obj = cls.model_validate({ + "token": obj.get("token") + }) return _obj + + diff --git a/koyeb/models/catalog_gpu_details.py b/koyeb/api/models/catalog_gpu_details.py similarity index 79% rename from koyeb/models/catalog_gpu_details.py rename to koyeb/api/models/catalog_gpu_details.py index 687d11b1..dbe27926 100644 --- a/koyeb/models/catalog_gpu_details.py +++ b/koyeb/api/models/catalog_gpu_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CatalogGPUDetails(BaseModel): """ CatalogGPUDetails - """ # noqa: E501 - + """ # noqa: E501 count: Optional[StrictInt] = None brand: Optional[StrictStr] = None memory: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class CatalogGPUDetails(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "count": obj.get("count"), - "brand": obj.get("brand"), - "memory": obj.get("memory"), - "name": obj.get("name"), - } - ) + _obj = cls.model_validate({ + "count": obj.get("count"), + "brand": obj.get("brand"), + "memory": obj.get("memory"), + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/catalog_instance.py b/koyeb/api/models/catalog_instance.py similarity index 53% rename from koyeb/models/catalog_instance.py rename to koyeb/api/models/catalog_instance.py index 6d0a5feb..1ebe10ad 100644 --- a/koyeb/models/catalog_instance.py +++ b/koyeb/api/models/catalog_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -17,32 +17,19 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from koyeb.models.catalog_gpu_details import CatalogGPUDetails +from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails from typing import Optional, Set from typing_extensions import Self - class CatalogInstance(BaseModel): """ CatalogInstance - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None description: Optional[StrictStr] = None - vcpu: Optional[StrictInt] = Field( - default=None, - description="The number of cpus. Deprecated. Use vcpu_shares instead.", - ) + vcpu: Optional[StrictInt] = Field(default=None, description="The number of cpus. Deprecated. Use vcpu_shares instead.") memory: Optional[StrictStr] = None disk: Optional[StrictStr] = None price_per_second: Optional[StrictStr] = None @@ -51,9 +38,7 @@ class CatalogInstance(BaseModel): regions: Optional[List[StrictStr]] = None status: Optional[StrictStr] = None require_plan: Optional[List[StrictStr]] = None - vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The number of vcpu shares reserved for the instance." - ) + vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of vcpu shares reserved for the instance.") display_name: Optional[StrictStr] = None aliases: Optional[List[StrictStr]] = None type: Optional[StrictStr] = None @@ -61,27 +46,7 @@ class CatalogInstance(BaseModel): service_types: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None light_sleep_enabled: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "id", - "description", - "vcpu", - "memory", - "disk", - "price_per_second", - "price_hourly", - "price_monthly", - "regions", - "status", - "require_plan", - "vcpu_shares", - "display_name", - "aliases", - "type", - "gpu", - "service_types", - "volumes_enabled", - "light_sleep_enabled", - ] + __properties: ClassVar[List[str]] = ["id", "description", "vcpu", "memory", "disk", "price_per_second", "price_hourly", "price_monthly", "regions", "status", "require_plan", "vcpu_shares", "display_name", "aliases", "type", "gpu", "service_types", "volumes_enabled", "light_sleep_enabled"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +54,7 @@ class CatalogInstance(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -113,7 +79,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -122,7 +89,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of gpu if self.gpu: - _dict["gpu"] = self.gpu.to_dict() + _dict['gpu'] = self.gpu.to_dict() return _dict @classmethod @@ -134,31 +101,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "description": obj.get("description"), - "vcpu": obj.get("vcpu"), - "memory": obj.get("memory"), - "disk": obj.get("disk"), - "price_per_second": obj.get("price_per_second"), - "price_hourly": obj.get("price_hourly"), - "price_monthly": obj.get("price_monthly"), - "regions": obj.get("regions"), - "status": obj.get("status"), - "require_plan": obj.get("require_plan"), - "vcpu_shares": obj.get("vcpu_shares"), - "display_name": obj.get("display_name"), - "aliases": obj.get("aliases"), - "type": obj.get("type"), - "gpu": ( - CatalogGPUDetails.from_dict(obj["gpu"]) - if obj.get("gpu") is not None - else None - ), - "service_types": obj.get("service_types"), - "volumes_enabled": obj.get("volumes_enabled"), - "light_sleep_enabled": obj.get("light_sleep_enabled"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "description": obj.get("description"), + "vcpu": obj.get("vcpu"), + "memory": obj.get("memory"), + "disk": obj.get("disk"), + "price_per_second": obj.get("price_per_second"), + "price_hourly": obj.get("price_hourly"), + "price_monthly": obj.get("price_monthly"), + "regions": obj.get("regions"), + "status": obj.get("status"), + "require_plan": obj.get("require_plan"), + "vcpu_shares": obj.get("vcpu_shares"), + "display_name": obj.get("display_name"), + "aliases": obj.get("aliases"), + "type": obj.get("type"), + "gpu": CatalogGPUDetails.from_dict(obj["gpu"]) if obj.get("gpu") is not None else None, + "service_types": obj.get("service_types"), + "volumes_enabled": obj.get("volumes_enabled"), + "light_sleep_enabled": obj.get("light_sleep_enabled") + }) return _obj + + diff --git a/koyeb/models/catalog_instance_list_item.py b/koyeb/api/models/catalog_instance_list_item.py similarity index 53% rename from koyeb/models/catalog_instance_list_item.py rename to koyeb/api/models/catalog_instance_list_item.py index f0f4abd3..45fb4829 100644 --- a/koyeb/models/catalog_instance_list_item.py +++ b/koyeb/api/models/catalog_instance_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -17,32 +17,19 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from koyeb.models.catalog_gpu_details import CatalogGPUDetails +from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails from typing import Optional, Set from typing_extensions import Self - class CatalogInstanceListItem(BaseModel): """ CatalogInstanceListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None description: Optional[StrictStr] = None - vcpu: Optional[StrictInt] = Field( - default=None, - description="The number of cpus. Deprecated. Use vcpu_shares instead.", - ) + vcpu: Optional[StrictInt] = Field(default=None, description="The number of cpus. Deprecated. Use vcpu_shares instead.") memory: Optional[StrictStr] = None disk: Optional[StrictStr] = None price_per_second: Optional[StrictStr] = None @@ -51,9 +38,7 @@ class CatalogInstanceListItem(BaseModel): regions: Optional[List[StrictStr]] = None status: Optional[StrictStr] = None require_plan: Optional[List[StrictStr]] = None - vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The number of vcpu shares reserved for the instance." - ) + vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of vcpu shares reserved for the instance.") display_name: Optional[StrictStr] = None aliases: Optional[List[StrictStr]] = None type: Optional[StrictStr] = None @@ -61,27 +46,7 @@ class CatalogInstanceListItem(BaseModel): service_types: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None light_sleep_enabled: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "id", - "description", - "vcpu", - "memory", - "disk", - "price_per_second", - "price_hourly", - "price_monthly", - "regions", - "status", - "require_plan", - "vcpu_shares", - "display_name", - "aliases", - "type", - "gpu", - "service_types", - "volumes_enabled", - "light_sleep_enabled", - ] + __properties: ClassVar[List[str]] = ["id", "description", "vcpu", "memory", "disk", "price_per_second", "price_hourly", "price_monthly", "regions", "status", "require_plan", "vcpu_shares", "display_name", "aliases", "type", "gpu", "service_types", "volumes_enabled", "light_sleep_enabled"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +54,7 @@ class CatalogInstanceListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -113,7 +79,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -122,7 +89,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of gpu if self.gpu: - _dict["gpu"] = self.gpu.to_dict() + _dict['gpu'] = self.gpu.to_dict() return _dict @classmethod @@ -134,31 +101,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "description": obj.get("description"), - "vcpu": obj.get("vcpu"), - "memory": obj.get("memory"), - "disk": obj.get("disk"), - "price_per_second": obj.get("price_per_second"), - "price_hourly": obj.get("price_hourly"), - "price_monthly": obj.get("price_monthly"), - "regions": obj.get("regions"), - "status": obj.get("status"), - "require_plan": obj.get("require_plan"), - "vcpu_shares": obj.get("vcpu_shares"), - "display_name": obj.get("display_name"), - "aliases": obj.get("aliases"), - "type": obj.get("type"), - "gpu": ( - CatalogGPUDetails.from_dict(obj["gpu"]) - if obj.get("gpu") is not None - else None - ), - "service_types": obj.get("service_types"), - "volumes_enabled": obj.get("volumes_enabled"), - "light_sleep_enabled": obj.get("light_sleep_enabled"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "description": obj.get("description"), + "vcpu": obj.get("vcpu"), + "memory": obj.get("memory"), + "disk": obj.get("disk"), + "price_per_second": obj.get("price_per_second"), + "price_hourly": obj.get("price_hourly"), + "price_monthly": obj.get("price_monthly"), + "regions": obj.get("regions"), + "status": obj.get("status"), + "require_plan": obj.get("require_plan"), + "vcpu_shares": obj.get("vcpu_shares"), + "display_name": obj.get("display_name"), + "aliases": obj.get("aliases"), + "type": obj.get("type"), + "gpu": CatalogGPUDetails.from_dict(obj["gpu"]) if obj.get("gpu") is not None else None, + "service_types": obj.get("service_types"), + "volumes_enabled": obj.get("volumes_enabled"), + "light_sleep_enabled": obj.get("light_sleep_enabled") + }) return _obj + + diff --git a/koyeb/models/catalog_usage.py b/koyeb/api/models/catalog_usage.py similarity index 72% rename from koyeb/models/catalog_usage.py rename to koyeb/api/models/catalog_usage.py index 81b3f744..b0c714bf 100644 --- a/koyeb/models/catalog_usage.py +++ b/koyeb/api/models/catalog_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance_availability import InstanceAvailability +from koyeb.api.models.instance_availability import InstanceAvailability from typing import Optional, Set from typing_extensions import Self - class CatalogUsage(BaseModel): """ CatalogUsage - """ # noqa: E501 - + """ # noqa: E501 instances: Optional[Dict[str, InstanceAvailability]] = None __properties: ClassVar[List[str]] = ["instances"] @@ -38,6 +36,7 @@ class CatalogUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,8 @@ def to_dict(self) -> Dict[str, Any]: if self.instances: for _key_instances in self.instances: if self.instances[_key_instances]: - _field_dict[_key_instances] = self.instances[ - _key_instances - ].to_dict() - _dict["instances"] = _field_dict + _field_dict[_key_instances] = self.instances[_key_instances].to_dict() + _dict['instances'] = _field_dict return _dict @classmethod @@ -89,16 +87,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "instances": ( - dict( - (_k, InstanceAvailability.from_dict(_v)) - for _k, _v in obj["instances"].items() - ) - if obj.get("instances") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "instances": dict( + (_k, InstanceAvailability.from_dict(_v)) + for _k, _v in obj["instances"].items() + ) + if obj.get("instances") is not None + else None + }) return _obj + + diff --git a/koyeb/models/clear_idenfy_verification_result_request.py b/koyeb/api/models/clear_idenfy_verification_result_request.py similarity index 80% rename from koyeb/models/clear_idenfy_verification_result_request.py rename to koyeb/api/models/clear_idenfy_verification_result_request.py index 946a3f7e..5bb6bb39 100644 --- a/koyeb/models/clear_idenfy_verification_result_request.py +++ b/koyeb/api/models/clear_idenfy_verification_result_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ClearIdenfyVerificationResultRequest(BaseModel): """ ClearIdenfyVerificationResultRequest - """ # noqa: E501 - + """ # noqa: E501 user_id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["user_id", "organization_id"] @@ -38,6 +36,7 @@ class ClearIdenfyVerificationResultRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,10 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "user_id": obj.get("user_id"), - "organization_id": obj.get("organization_id"), - } - ) + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "organization_id": obj.get("organization_id") + }) return _obj + + diff --git a/koyeb/models/compose_reply.py b/koyeb/api/models/compose_reply.py similarity index 73% rename from koyeb/models/compose_reply.py rename to koyeb/api/models/compose_reply.py index 6acafae7..4a80f27b 100644 --- a/koyeb/models/compose_reply.py +++ b/koyeb/api/models/compose_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app import App -from koyeb.models.service import Service +from koyeb.api.models.app import App +from koyeb.api.models.service import Service from typing import Optional, Set from typing_extensions import Self - class ComposeReply(BaseModel): """ ComposeReply - """ # noqa: E501 - + """ # noqa: E501 app: Optional[App] = None services: Optional[List[Service]] = None __properties: ClassVar[List[str]] = ["app", "services"] @@ -40,6 +38,7 @@ class ComposeReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,14 +73,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict["app"] = self.app.to_dict() + _dict['app'] = self.app.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in services (list) _items = [] if self.services: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict["services"] = _items + _dict['services'] = _items return _dict @classmethod @@ -92,16 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "app": ( - App.from_dict(obj["app"]) if obj.get("app") is not None else None - ), - "services": ( - [Service.from_dict(_item) for _item in obj["services"]] - if obj.get("services") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "app": App.from_dict(obj["app"]) if obj.get("app") is not None else None, + "services": [Service.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None + }) return _obj + + diff --git a/koyeb/models/config_file.py b/koyeb/api/models/config_file.py similarity index 79% rename from koyeb/models/config_file.py rename to koyeb/api/models/config_file.py index e6db013a..7754f483 100644 --- a/koyeb/models/config_file.py +++ b/koyeb/api/models/config_file.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ConfigFile(BaseModel): """ ConfigFile - """ # noqa: E501 - + """ # noqa: E501 path: Optional[StrictStr] = None permissions: Optional[StrictStr] = None content: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class ConfigFile(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "path": obj.get("path"), - "permissions": obj.get("permissions"), - "content": obj.get("content"), - } - ) + _obj = cls.model_validate({ + "path": obj.get("path"), + "permissions": obj.get("permissions"), + "content": obj.get("content") + }) return _obj + + diff --git a/koyeb/models/confirm_payment_authorization_reply.py b/koyeb/api/models/confirm_payment_authorization_reply.py similarity index 75% rename from koyeb/models/confirm_payment_authorization_reply.py rename to koyeb/api/models/confirm_payment_authorization_reply.py index 9d88fc3a..c6dd06a2 100644 --- a/koyeb/models/confirm_payment_authorization_reply.py +++ b/koyeb/api/models/confirm_payment_authorization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.payment_method import PaymentMethod +from koyeb.api.models.payment_method import PaymentMethod from typing import Optional, Set from typing_extensions import Self - class ConfirmPaymentAuthorizationReply(BaseModel): """ ConfirmPaymentAuthorizationReply - """ # noqa: E501 - + """ # noqa: E501 payment_method: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["payment_method"] @@ -38,6 +36,7 @@ class ConfirmPaymentAuthorizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_method if self.payment_method: - _dict["payment_method"] = self.payment_method.to_dict() + _dict['payment_method'] = self.payment_method.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "payment_method": ( - PaymentMethod.from_dict(obj["payment_method"]) - if obj.get("payment_method") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "payment_method": PaymentMethod.from_dict(obj["payment_method"]) if obj.get("payment_method") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_access_token_reply.py b/koyeb/api/models/create_access_token_reply.py similarity index 82% rename from koyeb/models/create_access_token_reply.py rename to koyeb/api/models/create_access_token_reply.py index 281b5a30..cc2e11ad 100644 --- a/koyeb/models/create_access_token_reply.py +++ b/koyeb/api/models/create_access_token_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateAccessTokenReply(BaseModel): """ CreateAccessTokenReply - """ # noqa: E501 - + """ # noqa: E501 token: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["token"] @@ -37,6 +35,7 @@ class CreateAccessTokenReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"token": obj.get("token")}) + _obj = cls.model_validate({ + "token": obj.get("token") + }) return _obj + + diff --git a/koyeb/models/create_access_token_request.py b/koyeb/api/models/create_access_token_request.py similarity index 81% rename from koyeb/models/create_access_token_request.py rename to koyeb/api/models/create_access_token_request.py index 1cf05f13..9e21618c 100644 --- a/koyeb/models/create_access_token_request.py +++ b/koyeb/api/models/create_access_token_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateAccessTokenRequest(BaseModel): """ CreateAccessTokenRequest - """ # noqa: E501 - + """ # noqa: E501 validity: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["validity"] @@ -37,6 +35,7 @@ class CreateAccessTokenRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"validity": obj.get("validity")}) + _obj = cls.model_validate({ + "validity": obj.get("validity") + }) return _obj + + diff --git a/koyeb/models/create_account_request.py b/koyeb/api/models/create_account_request.py similarity index 78% rename from koyeb/models/create_account_request.py rename to koyeb/api/models/create_account_request.py index 1ec7abdf..91b2c39a 100644 --- a/koyeb/models/create_account_request.py +++ b/koyeb/api/models/create_account_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateAccountRequest(BaseModel): """ Create new account - """ # noqa: E501 - + """ # noqa: E501 email: StrictStr password: StrictStr name: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class CreateAccountRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "email": obj.get("email"), - "password": obj.get("password"), - "name": obj.get("name"), - "captcha": obj.get("captcha"), - } - ) + _obj = cls.model_validate({ + "email": obj.get("email"), + "password": obj.get("password"), + "name": obj.get("name"), + "captcha": obj.get("captcha") + }) return _obj + + diff --git a/koyeb/models/create_app.py b/koyeb/api/models/create_app.py similarity index 81% rename from koyeb/models/create_app.py rename to koyeb/api/models/create_app.py index 32e35349..50f9c99a 100644 --- a/koyeb/models/create_app.py +++ b/koyeb/api/models/create_app.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateApp(BaseModel): """ CreateApp - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name"] @@ -37,6 +35,7 @@ class CreateApp(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name")}) + _obj = cls.model_validate({ + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/create_app_reply.py b/koyeb/api/models/create_app_reply.py similarity index 78% rename from koyeb/models/create_app_reply.py rename to koyeb/api/models/create_app_reply.py index 6a7a0dcd..67206d29 100644 --- a/koyeb/models/create_app_reply.py +++ b/koyeb/api/models/create_app_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app import App +from koyeb.api.models.app import App from typing import Optional, Set from typing_extensions import Self - class CreateAppReply(BaseModel): """ CreateAppReply - """ # noqa: E501 - + """ # noqa: E501 app: Optional[App] = None __properties: ClassVar[List[str]] = ["app"] @@ -38,6 +36,7 @@ class CreateAppReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict["app"] = self.app.to_dict() + _dict['app'] = self.app.to_dict() return _dict @classmethod @@ -83,7 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"app": App.from_dict(obj["app"]) if obj.get("app") is not None else None} - ) + _obj = cls.model_validate({ + "app": App.from_dict(obj["app"]) if obj.get("app") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_archive.py b/koyeb/api/models/create_archive.py similarity index 77% rename from koyeb/models/create_archive.py rename to koyeb/api/models/create_archive.py index 43ac63b4..a05724e1 100644 --- a/koyeb/models/create_archive.py +++ b/koyeb/api/models/create_archive.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,16 +22,11 @@ from typing import Optional, Set from typing_extensions import Self - class CreateArchive(BaseModel): """ CreateArchive - """ # noqa: E501 - - size: Optional[StrictStr] = Field( - default=None, - description="How much space to provision for the archive, in bytes.", - ) + """ # noqa: E501 + size: Optional[StrictStr] = Field(default=None, description="How much space to provision for the archive, in bytes.") __properties: ClassVar[List[str]] = ["size"] model_config = ConfigDict( @@ -40,6 +35,7 @@ class CreateArchive(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"size": obj.get("size")}) + _obj = cls.model_validate({ + "size": obj.get("size") + }) return _obj + + diff --git a/koyeb/models/create_archive_reply.py b/koyeb/api/models/create_archive_reply.py similarity index 75% rename from koyeb/models/create_archive_reply.py rename to koyeb/api/models/create_archive_reply.py index 39bac4b6..fb514c14 100644 --- a/koyeb/models/create_archive_reply.py +++ b/koyeb/api/models/create_archive_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.archive import Archive +from koyeb.api.models.archive import Archive from typing import Optional, Set from typing_extensions import Self - class CreateArchiveReply(BaseModel): """ CreateArchiveReply - """ # noqa: E501 - + """ # noqa: E501 archive: Optional[Archive] = None __properties: ClassVar[List[str]] = ["archive"] @@ -38,6 +36,7 @@ class CreateArchiveReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of archive if self.archive: - _dict["archive"] = self.archive.to_dict() + _dict['archive'] = self.archive.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "archive": ( - Archive.from_dict(obj["archive"]) - if obj.get("archive") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "archive": Archive.from_dict(obj["archive"]) if obj.get("archive") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_budget_reply.py b/koyeb/api/models/create_budget_reply.py similarity index 75% rename from koyeb/models/create_budget_reply.py rename to koyeb/api/models/create_budget_reply.py index 3f372b3d..b75a4f6b 100644 --- a/koyeb/models/create_budget_reply.py +++ b/koyeb/api/models/create_budget_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.budget import Budget +from koyeb.api.models.budget import Budget from typing import Optional, Set from typing_extensions import Self - class CreateBudgetReply(BaseModel): """ CreateBudgetReply - """ # noqa: E501 - + """ # noqa: E501 budget: Optional[Budget] = None __properties: ClassVar[List[str]] = ["budget"] @@ -38,6 +36,7 @@ class CreateBudgetReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of budget if self.budget: - _dict["budget"] = self.budget.to_dict() + _dict['budget'] = self.budget.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "budget": ( - Budget.from_dict(obj["budget"]) - if obj.get("budget") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "budget": Budget.from_dict(obj["budget"]) if obj.get("budget") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_compose.py b/koyeb/api/models/create_compose.py similarity index 71% rename from koyeb/models/create_compose.py rename to koyeb/api/models/create_compose.py index 43aafb04..8aaeb38f 100644 --- a/koyeb/models/create_compose.py +++ b/koyeb/api/models/create_compose.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.create_app import CreateApp -from koyeb.models.create_service import CreateService +from koyeb.api.models.create_app import CreateApp +from koyeb.api.models.create_service import CreateService from typing import Optional, Set from typing_extensions import Self - class CreateCompose(BaseModel): """ CreateCompose - """ # noqa: E501 - + """ # noqa: E501 app: Optional[CreateApp] = None services: Optional[List[CreateService]] = None __properties: ClassVar[List[str]] = ["app", "services"] @@ -40,6 +38,7 @@ class CreateCompose(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,14 +73,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict["app"] = self.app.to_dict() + _dict['app'] = self.app.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in services (list) _items = [] if self.services: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict["services"] = _items + _dict['services'] = _items return _dict @classmethod @@ -92,18 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "app": ( - CreateApp.from_dict(obj["app"]) - if obj.get("app") is not None - else None - ), - "services": ( - [CreateService.from_dict(_item) for _item in obj["services"]] - if obj.get("services") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "app": CreateApp.from_dict(obj["app"]) if obj.get("app") is not None else None, + "services": [CreateService.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_credential.py b/koyeb/api/models/create_credential.py similarity index 69% rename from koyeb/models/create_credential.py rename to koyeb/api/models/create_credential.py index e1821c72..2fed6e3f 100644 --- a/koyeb/models/create_credential.py +++ b/koyeb/api/models/create_credential.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,26 +19,19 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.credential_type import CredentialType +from koyeb.api.models.credential_type import CredentialType from typing import Optional, Set from typing_extensions import Self - class CreateCredential(BaseModel): """ CreateCredential - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None description: Optional[StrictStr] = None type: Optional[CredentialType] = CredentialType.INVALID organization_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "name", - "description", - "type", - "organization_id", - ] + __properties: ClassVar[List[str]] = ["name", "description", "type", "organization_id"] model_config = ConfigDict( populate_by_name=True, @@ -46,6 +39,7 @@ class CreateCredential(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,16 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "description": obj.get("description"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else CredentialType.INVALID - ), - "organization_id": obj.get("organization_id"), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "type": obj.get("type") if obj.get("type") is not None else CredentialType.INVALID, + "organization_id": obj.get("organization_id") + }) return _obj + + diff --git a/koyeb/models/create_credential_reply.py b/koyeb/api/models/create_credential_reply.py similarity index 75% rename from koyeb/models/create_credential_reply.py rename to koyeb/api/models/create_credential_reply.py index 846b0c9a..7b3b90db 100644 --- a/koyeb/models/create_credential_reply.py +++ b/koyeb/api/models/create_credential_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.credential import Credential +from koyeb.api.models.credential import Credential from typing import Optional, Set from typing_extensions import Self - class CreateCredentialReply(BaseModel): """ CreateCredentialReply - """ # noqa: E501 - + """ # noqa: E501 credential: Optional[Credential] = None __properties: ClassVar[List[str]] = ["credential"] @@ -38,6 +36,7 @@ class CreateCredentialReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of credential if self.credential: - _dict["credential"] = self.credential.to_dict() + _dict['credential'] = self.credential.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "credential": ( - Credential.from_dict(obj["credential"]) - if obj.get("credential") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "credential": Credential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_domain.py b/koyeb/api/models/create_domain.py similarity index 65% rename from koyeb/models/create_domain.py rename to koyeb/api/models/create_domain.py index 7be0b9d9..54a1f43d 100644 --- a/koyeb/models/create_domain.py +++ b/koyeb/api/models/create_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,29 +19,21 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb -from koyeb.models.domain_type import DomainType +from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb +from koyeb.api.models.domain_type import DomainType from typing import Optional, Set from typing_extensions import Self - class CreateDomain(BaseModel): """ CreateDomain - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None type: Optional[DomainType] = DomainType.AUTOASSIGNED app_id: Optional[StrictStr] = None cloudflare: Optional[Dict[str, Any]] = None koyeb: Optional[DomainLoadBalancerKoyeb] = None - __properties: ClassVar[List[str]] = [ - "name", - "type", - "app_id", - "cloudflare", - "koyeb", - ] + __properties: ClassVar[List[str]] = ["name", "type", "app_id", "cloudflare", "koyeb"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +41,7 @@ class CreateDomain(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of koyeb if self.koyeb: - _dict["koyeb"] = self.koyeb.to_dict() + _dict['koyeb'] = self.koyeb.to_dict() return _dict @classmethod @@ -94,21 +88,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else DomainType.AUTOASSIGNED - ), - "app_id": obj.get("app_id"), - "cloudflare": obj.get("cloudflare"), - "koyeb": ( - DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) - if obj.get("koyeb") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else DomainType.AUTOASSIGNED, + "app_id": obj.get("app_id"), + "cloudflare": obj.get("cloudflare"), + "koyeb": DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) if obj.get("koyeb") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_domain_reply.py b/koyeb/api/models/create_domain_reply.py similarity index 75% rename from koyeb/models/create_domain_reply.py rename to koyeb/api/models/create_domain_reply.py index 5cf7033a..059c48c3 100644 --- a/koyeb/models/create_domain_reply.py +++ b/koyeb/api/models/create_domain_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain import Domain +from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self - class CreateDomainReply(BaseModel): """ CreateDomainReply - """ # noqa: E501 - + """ # noqa: E501 domain: Optional[Domain] = None __properties: ClassVar[List[str]] = ["domain"] @@ -38,6 +36,7 @@ class CreateDomainReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of domain if self.domain: - _dict["domain"] = self.domain.to_dict() + _dict['domain'] = self.domain.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "domain": ( - Domain.from_dict(obj["domain"]) - if obj.get("domain") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "domain": Domain.from_dict(obj["domain"]) if obj.get("domain") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_organization_invitation_reply.py b/koyeb/api/models/create_organization_invitation_reply.py similarity index 74% rename from koyeb/models/create_organization_invitation_reply.py rename to koyeb/api/models/create_organization_invitation_reply.py index a499b0cf..7f78715a 100644 --- a/koyeb/models/create_organization_invitation_reply.py +++ b/koyeb/api/models/create_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class CreateOrganizationInvitationReply(BaseModel): """ CreateOrganizationInvitationReply - """ # noqa: E501 - + """ # noqa: E501 invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -38,6 +36,7 @@ class CreateOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of invitation if self.invitation: - _dict["invitation"] = self.invitation.to_dict() + _dict['invitation'] = self.invitation.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitation": ( - OrganizationInvitation.from_dict(obj["invitation"]) - if obj.get("invitation") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "invitation": OrganizationInvitation.from_dict(obj["invitation"]) if obj.get("invitation") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_organization_invitation_request.py b/koyeb/api/models/create_organization_invitation_request.py similarity index 82% rename from koyeb/models/create_organization_invitation_request.py rename to koyeb/api/models/create_organization_invitation_request.py index 3b253201..83e33c20 100644 --- a/koyeb/models/create_organization_invitation_request.py +++ b/koyeb/api/models/create_organization_invitation_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateOrganizationInvitationRequest(BaseModel): """ CreateOrganizationInvitationRequest - """ # noqa: E501 - + """ # noqa: E501 email: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["email"] @@ -37,6 +35,7 @@ class CreateOrganizationInvitationRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"email": obj.get("email")}) + _obj = cls.model_validate({ + "email": obj.get("email") + }) return _obj + + diff --git a/koyeb/models/create_organization_reply.py b/koyeb/api/models/create_organization_reply.py similarity index 75% rename from koyeb/models/create_organization_reply.py rename to koyeb/api/models/create_organization_reply.py index c4ad28af..5f4bf6ce 100644 --- a/koyeb/models/create_organization_reply.py +++ b/koyeb/api/models/create_organization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class CreateOrganizationReply(BaseModel): """ CreateOrganizationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class CreateOrganizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_organization_request.py b/koyeb/api/models/create_organization_request.py similarity index 82% rename from koyeb/models/create_organization_request.py rename to koyeb/api/models/create_organization_request.py index 6c5ce2cb..8256c023 100644 --- a/koyeb/models/create_organization_request.py +++ b/koyeb/api/models/create_organization_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateOrganizationRequest(BaseModel): """ CreateOrganizationRequest - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name"] @@ -37,6 +35,7 @@ class CreateOrganizationRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name")}) + _obj = cls.model_validate({ + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/create_payment_authorization_reply.py b/koyeb/api/models/create_payment_authorization_reply.py similarity index 75% rename from koyeb/models/create_payment_authorization_reply.py rename to koyeb/api/models/create_payment_authorization_reply.py index 73634d91..bce0ce53 100644 --- a/koyeb/models/create_payment_authorization_reply.py +++ b/koyeb/api/models/create_payment_authorization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.payment_method import PaymentMethod +from koyeb.api.models.payment_method import PaymentMethod from typing import Optional, Set from typing_extensions import Self - class CreatePaymentAuthorizationReply(BaseModel): """ CreatePaymentAuthorizationReply - """ # noqa: E501 - + """ # noqa: E501 payment_method: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["payment_method"] @@ -38,6 +36,7 @@ class CreatePaymentAuthorizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_method if self.payment_method: - _dict["payment_method"] = self.payment_method.to_dict() + _dict['payment_method'] = self.payment_method.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "payment_method": ( - PaymentMethod.from_dict(obj["payment_method"]) - if obj.get("payment_method") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "payment_method": PaymentMethod.from_dict(obj["payment_method"]) if obj.get("payment_method") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_persistent_volume_reply.py b/koyeb/api/models/create_persistent_volume_reply.py similarity index 75% rename from koyeb/models/create_persistent_volume_reply.py rename to koyeb/api/models/create_persistent_volume_reply.py index 4ac021a1..564b0de8 100644 --- a/koyeb/models/create_persistent_volume_reply.py +++ b/koyeb/api/models/create_persistent_volume_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume import PersistentVolume from typing import Optional, Set from typing_extensions import Self - class CreatePersistentVolumeReply(BaseModel): """ CreatePersistentVolumeReply - """ # noqa: E501 - + """ # noqa: E501 volume: Optional[PersistentVolume] = None __properties: ClassVar[List[str]] = ["volume"] @@ -38,6 +36,7 @@ class CreatePersistentVolumeReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of volume if self.volume: - _dict["volume"] = self.volume.to_dict() + _dict['volume'] = self.volume.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "volume": ( - PersistentVolume.from_dict(obj["volume"]) - if obj.get("volume") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "volume": PersistentVolume.from_dict(obj["volume"]) if obj.get("volume") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_persistent_volume_request.py b/koyeb/api/models/create_persistent_volume_request.py similarity index 63% rename from koyeb/models/create_persistent_volume_request.py rename to koyeb/api/models/create_persistent_volume_request.py index 8f9bd07b..84ff734f 100644 --- a/koyeb/models/create_persistent_volume_request.py +++ b/koyeb/api/models/create_persistent_volume_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,32 +19,21 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume_backing_store import PersistentVolumeBackingStore +from koyeb.api.models.persistent_volume_backing_store import PersistentVolumeBackingStore from typing import Optional, Set from typing_extensions import Self - class CreatePersistentVolumeRequest(BaseModel): """ CreatePersistentVolumeRequest - """ # noqa: E501 - - volume_type: Optional[PersistentVolumeBackingStore] = ( - PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID - ) + """ # noqa: E501 + volume_type: Optional[PersistentVolumeBackingStore] = PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID name: Optional[StrictStr] = None region: Optional[StrictStr] = None read_only: Optional[StrictBool] = None max_size: Optional[StrictInt] = None snapshot_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "volume_type", - "name", - "region", - "read_only", - "max_size", - "snapshot_id", - ] + __properties: ClassVar[List[str]] = ["volume_type", "name", "region", "read_only", "max_size", "snapshot_id"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +41,7 @@ class CreatePersistentVolumeRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,18 +85,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "volume_type": ( - obj.get("volume_type") - if obj.get("volume_type") is not None - else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID - ), - "name": obj.get("name"), - "region": obj.get("region"), - "read_only": obj.get("read_only"), - "max_size": obj.get("max_size"), - "snapshot_id": obj.get("snapshot_id"), - } - ) + _obj = cls.model_validate({ + "volume_type": obj.get("volume_type") if obj.get("volume_type") is not None else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID, + "name": obj.get("name"), + "region": obj.get("region"), + "read_only": obj.get("read_only"), + "max_size": obj.get("max_size"), + "snapshot_id": obj.get("snapshot_id") + }) return _obj + + diff --git a/koyeb/api/models/create_secret.py b/koyeb/api/models/create_secret.py new file mode 100644 index 00000000..83f6c1bc --- /dev/null +++ b/koyeb/api/models/create_secret.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration +from koyeb.api.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration +from koyeb.api.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration +from koyeb.api.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration +from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration +from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration +from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration +from koyeb.api.models.secret_type import SecretType +from typing import Optional, Set +from typing_extensions import Self + +class CreateSecret(BaseModel): + """ + CreateSecret + """ # noqa: E501 + name: Optional[StrictStr] = None + type: Optional[SecretType] = SecretType.SIMPLE + value: Optional[StrictStr] = None + docker_hub_registry: Optional[DockerHubRegistryConfiguration] = None + private_registry: Optional[PrivateRegistryConfiguration] = None + digital_ocean_registry: Optional[DigitalOceanRegistryConfiguration] = None + github_registry: Optional[GitHubRegistryConfiguration] = None + gitlab_registry: Optional[GitLabRegistryConfiguration] = None + gcp_container_registry: Optional[GCPContainerRegistryConfiguration] = None + azure_container_registry: Optional[AzureContainerRegistryConfiguration] = None + __properties: ClassVar[List[str]] = ["name", "type", "value", "docker_hub_registry", "private_registry", "digital_ocean_registry", "github_registry", "gitlab_registry", "gcp_container_registry", "azure_container_registry"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateSecret from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of docker_hub_registry + if self.docker_hub_registry: + _dict['docker_hub_registry'] = self.docker_hub_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of private_registry + if self.private_registry: + _dict['private_registry'] = self.private_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of digital_ocean_registry + if self.digital_ocean_registry: + _dict['digital_ocean_registry'] = self.digital_ocean_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of github_registry + if self.github_registry: + _dict['github_registry'] = self.github_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of gitlab_registry + if self.gitlab_registry: + _dict['gitlab_registry'] = self.gitlab_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of gcp_container_registry + if self.gcp_container_registry: + _dict['gcp_container_registry'] = self.gcp_container_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of azure_container_registry + if self.azure_container_registry: + _dict['azure_container_registry'] = self.azure_container_registry.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateSecret from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else SecretType.SIMPLE, + "value": obj.get("value"), + "docker_hub_registry": DockerHubRegistryConfiguration.from_dict(obj["docker_hub_registry"]) if obj.get("docker_hub_registry") is not None else None, + "private_registry": PrivateRegistryConfiguration.from_dict(obj["private_registry"]) if obj.get("private_registry") is not None else None, + "digital_ocean_registry": DigitalOceanRegistryConfiguration.from_dict(obj["digital_ocean_registry"]) if obj.get("digital_ocean_registry") is not None else None, + "github_registry": GitHubRegistryConfiguration.from_dict(obj["github_registry"]) if obj.get("github_registry") is not None else None, + "gitlab_registry": GitLabRegistryConfiguration.from_dict(obj["gitlab_registry"]) if obj.get("gitlab_registry") is not None else None, + "gcp_container_registry": GCPContainerRegistryConfiguration.from_dict(obj["gcp_container_registry"]) if obj.get("gcp_container_registry") is not None else None, + "azure_container_registry": AzureContainerRegistryConfiguration.from_dict(obj["azure_container_registry"]) if obj.get("azure_container_registry") is not None else None + }) + return _obj + + diff --git a/koyeb/models/create_secret_reply.py b/koyeb/api/models/create_secret_reply.py similarity index 75% rename from koyeb/models/create_secret_reply.py rename to koyeb/api/models/create_secret_reply.py index 9573659a..4fecc310 100644 --- a/koyeb/models/create_secret_reply.py +++ b/koyeb/api/models/create_secret_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.secret import Secret +from koyeb.api.models.secret import Secret from typing import Optional, Set from typing_extensions import Self - class CreateSecretReply(BaseModel): """ CreateSecretReply - """ # noqa: E501 - + """ # noqa: E501 secret: Optional[Secret] = None __properties: ClassVar[List[str]] = ["secret"] @@ -38,6 +36,7 @@ class CreateSecretReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of secret if self.secret: - _dict["secret"] = self.secret.to_dict() + _dict['secret'] = self.secret.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secret": ( - Secret.from_dict(obj["secret"]) - if obj.get("secret") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "secret": Secret.from_dict(obj["secret"]) if obj.get("secret") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_service.py b/koyeb/api/models/create_service.py similarity index 73% rename from koyeb/models/create_service.py rename to koyeb/api/models/create_service.py index 2e577b80..afd61faf 100644 --- a/koyeb/models/create_service.py +++ b/koyeb/api/models/create_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_definition import DeploymentDefinition from typing import Optional, Set from typing_extensions import Self - class CreateService(BaseModel): """ CreateService - """ # noqa: E501 - + """ # noqa: E501 app_id: Optional[StrictStr] = None definition: Optional[DeploymentDefinition] = None __properties: ClassVar[List[str]] = ["app_id", "definition"] @@ -39,6 +37,7 @@ class CreateService(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict["definition"] = self.definition.to_dict() + _dict['definition'] = self.definition.to_dict() return _dict @classmethod @@ -84,14 +84,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "app_id": obj.get("app_id"), - "definition": ( - DeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "app_id": obj.get("app_id"), + "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_service_reply.py b/koyeb/api/models/create_service_reply.py similarity index 75% rename from koyeb/models/create_service_reply.py rename to koyeb/api/models/create_service_reply.py index 53d76a08..23d921b2 100644 --- a/koyeb/models/create_service_reply.py +++ b/koyeb/api/models/create_service_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service import Service +from koyeb.api.models.service import Service from typing import Optional, Set from typing_extensions import Self - class CreateServiceReply(BaseModel): """ CreateServiceReply - """ # noqa: E501 - + """ # noqa: E501 service: Optional[Service] = None __properties: ClassVar[List[str]] = ["service"] @@ -38,6 +36,7 @@ class CreateServiceReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of service if self.service: - _dict["service"] = self.service.to_dict() + _dict['service'] = self.service.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "service": ( - Service.from_dict(obj["service"]) - if obj.get("service") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "service": Service.from_dict(obj["service"]) if obj.get("service") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_snapshot_reply.py b/koyeb/api/models/create_snapshot_reply.py similarity index 75% rename from koyeb/models/create_snapshot_reply.py rename to koyeb/api/models/create_snapshot_reply.py index 160d76d1..9fabcb7f 100644 --- a/koyeb/models/create_snapshot_reply.py +++ b/koyeb/api/models/create_snapshot_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.snapshot import Snapshot +from koyeb.api.models.snapshot import Snapshot from typing import Optional, Set from typing_extensions import Self - class CreateSnapshotReply(BaseModel): """ CreateSnapshotReply - """ # noqa: E501 - + """ # noqa: E501 snapshot: Optional[Snapshot] = None __properties: ClassVar[List[str]] = ["snapshot"] @@ -38,6 +36,7 @@ class CreateSnapshotReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of snapshot if self.snapshot: - _dict["snapshot"] = self.snapshot.to_dict() + _dict['snapshot'] = self.snapshot.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "snapshot": ( - Snapshot.from_dict(obj["snapshot"]) - if obj.get("snapshot") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "snapshot": Snapshot.from_dict(obj["snapshot"]) if obj.get("snapshot") is not None else None + }) return _obj + + diff --git a/koyeb/models/create_snapshot_request.py b/koyeb/api/models/create_snapshot_request.py similarity index 80% rename from koyeb/models/create_snapshot_request.py rename to koyeb/api/models/create_snapshot_request.py index 783b0c54..64da389f 100644 --- a/koyeb/models/create_snapshot_request.py +++ b/koyeb/api/models/create_snapshot_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateSnapshotRequest(BaseModel): """ CreateSnapshotRequest - """ # noqa: E501 - + """ # noqa: E501 parent_volume_id: Optional[StrictStr] = None name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["parent_volume_id", "name"] @@ -38,6 +36,7 @@ class CreateSnapshotRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"parent_volume_id": obj.get("parent_volume_id"), "name": obj.get("name")} - ) + _obj = cls.model_validate({ + "parent_volume_id": obj.get("parent_volume_id"), + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/create_stage_attempt_request.py b/koyeb/api/models/create_stage_attempt_request.py similarity index 65% rename from koyeb/models/create_stage_attempt_request.py rename to koyeb/api/models/create_stage_attempt_request.py index 15e5520a..37564f3a 100644 --- a/koyeb/models/create_stage_attempt_request.py +++ b/koyeb/api/models/create_stage_attempt_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,32 +20,20 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus from typing import Optional, Set from typing_extensions import Self - class CreateStageAttemptRequest(BaseModel): """ CreateStageAttemptRequest - """ # noqa: E501 - + """ # noqa: E501 secret: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = ( - DeploymentProvisioningInfoStageStatus.UNKNOWN - ) + status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN started_at: Optional[datetime] = None messages: Optional[List[StrictStr]] = None steps: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = [ - "secret", - "status", - "started_at", - "messages", - "steps", - ] + __properties: ClassVar[List[str]] = ["secret", "status", "started_at", "messages", "steps"] model_config = ConfigDict( populate_by_name=True, @@ -53,6 +41,7 @@ class CreateStageAttemptRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -77,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -95,17 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secret": obj.get("secret"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentProvisioningInfoStageStatus.UNKNOWN - ), - "started_at": obj.get("started_at"), - "messages": obj.get("messages"), - "steps": obj.get("steps"), - } - ) + _obj = cls.model_validate({ + "secret": obj.get("secret"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, + "started_at": obj.get("started_at"), + "messages": obj.get("messages"), + "steps": obj.get("steps") + }) return _obj + + diff --git a/koyeb/models/credential.py b/koyeb/api/models/credential.py similarity index 64% rename from koyeb/models/credential.py rename to koyeb/api/models/credential.py index 3fa67734..46ba4c9a 100644 --- a/koyeb/models/credential.py +++ b/koyeb/api/models/credential.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.credential_type import CredentialType +from koyeb.api.models.credential_type import CredentialType from typing import Optional, Set from typing_extensions import Self - class Credential(BaseModel): """ Credential - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None type: Optional[CredentialType] = CredentialType.INVALID name: Optional[StrictStr] = None @@ -40,18 +38,7 @@ class Credential(BaseModel): updated_at: Optional[datetime] = None created_at: Optional[datetime] = None expires_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "id", - "type", - "name", - "token", - "description", - "user_id", - "organization_id", - "updated_at", - "created_at", - "expires_at", - ] + __properties: ClassVar[List[str]] = ["id", "type", "name", "token", "description", "user_id", "organization_id", "updated_at", "created_at", "expires_at"] model_config = ConfigDict( populate_by_name=True, @@ -59,6 +46,7 @@ class Credential(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -83,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -101,22 +90,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else CredentialType.INVALID - ), - "name": obj.get("name"), - "token": obj.get("token"), - "description": obj.get("description"), - "user_id": obj.get("user_id"), - "organization_id": obj.get("organization_id"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "expires_at": obj.get("expires_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") if obj.get("type") is not None else CredentialType.INVALID, + "name": obj.get("name"), + "token": obj.get("token"), + "description": obj.get("description"), + "user_id": obj.get("user_id"), + "organization_id": obj.get("organization_id"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "expires_at": obj.get("expires_at") + }) return _obj + + diff --git a/koyeb/models/credential_type.py b/koyeb/api/models/credential_type.py similarity index 53% rename from koyeb/models/credential_type.py rename to koyeb/api/models/credential_type.py index b329066b..bf4708ee 100644 --- a/koyeb/models/credential_type.py +++ b/koyeb/api/models/credential_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class CredentialType(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - USER = "USER" - ORGANIZATION = "ORGANIZATION" + INVALID = 'INVALID' + USER = 'USER' + ORGANIZATION = 'ORGANIZATION' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of CredentialType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/database_deployment_metadata.py b/koyeb/api/models/database_deployment_metadata.py similarity index 72% rename from koyeb/models/database_deployment_metadata.py rename to koyeb/api/models/database_deployment_metadata.py index 5127340d..dbf1d0b1 100644 --- a/koyeb/models/database_deployment_metadata.py +++ b/koyeb/api/models/database_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,18 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.neon_postgres_database_deployment_metadata import ( - NeonPostgresDatabaseDeploymentMetadata, -) +from koyeb.api.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata from typing import Optional, Set from typing_extensions import Self - class DatabaseDeploymentMetadata(BaseModel): """ DatabaseDeploymentMetadata - """ # noqa: E501 - + """ # noqa: E501 neon_postgres: Optional[NeonPostgresDatabaseDeploymentMetadata] = None __properties: ClassVar[List[str]] = ["neon_postgres"] @@ -40,6 +36,7 @@ class DatabaseDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict["neon_postgres"] = self.neon_postgres.to_dict() + _dict['neon_postgres'] = self.neon_postgres.to_dict() return _dict @classmethod @@ -85,15 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "neon_postgres": ( - NeonPostgresDatabaseDeploymentMetadata.from_dict( - obj["neon_postgres"] - ) - if obj.get("neon_postgres") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "neon_postgres": NeonPostgresDatabaseDeploymentMetadata.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None + }) return _obj + + diff --git a/koyeb/models/database_role_password.py b/koyeb/api/models/database_role_password.py similarity index 80% rename from koyeb/models/database_role_password.py rename to koyeb/api/models/database_role_password.py index b8ac10fd..98fe0039 100644 --- a/koyeb/models/database_role_password.py +++ b/koyeb/api/models/database_role_password.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DatabaseRolePassword(BaseModel): """ DatabaseRolePassword - """ # noqa: E501 - + """ # noqa: E501 username: Optional[StrictStr] = None password: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["username", "password"] @@ -38,6 +36,7 @@ class DatabaseRolePassword(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"username": obj.get("username"), "password": obj.get("password")} - ) + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/database_source.py b/koyeb/api/models/database_source.py similarity index 74% rename from koyeb/models/database_source.py rename to koyeb/api/models/database_source.py index 5ceaf7d8..06ef4d40 100644 --- a/koyeb/models/database_source.py +++ b/koyeb/api/models/database_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.neon_postgres_database import NeonPostgresDatabase +from koyeb.api.models.neon_postgres_database import NeonPostgresDatabase from typing import Optional, Set from typing_extensions import Self - class DatabaseSource(BaseModel): """ DatabaseSource - """ # noqa: E501 - + """ # noqa: E501 neon_postgres: Optional[NeonPostgresDatabase] = None __properties: ClassVar[List[str]] = ["neon_postgres"] @@ -38,6 +36,7 @@ class DatabaseSource(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict["neon_postgres"] = self.neon_postgres.to_dict() + _dict['neon_postgres'] = self.neon_postgres.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "neon_postgres": ( - NeonPostgresDatabase.from_dict(obj["neon_postgres"]) - if obj.get("neon_postgres") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "neon_postgres": NeonPostgresDatabase.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None + }) return _obj + + diff --git a/koyeb/models/database_usage.py b/koyeb/api/models/database_usage.py similarity index 71% rename from koyeb/models/database_usage.py rename to koyeb/api/models/database_usage.py index e1e92c3f..f62bae78 100644 --- a/koyeb/models/database_usage.py +++ b/koyeb/api/models/database_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,22 +22,15 @@ from typing import Optional, Set from typing_extensions import Self - class DatabaseUsage(BaseModel): """ DatabaseUsage - """ # noqa: E501 - + """ # noqa: E501 service_id: Optional[StrictStr] = None service_name: Optional[StrictStr] = None compute_time_seconds: Optional[StrictInt] = None data_storage_megabytes_hours: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = [ - "service_id", - "service_name", - "compute_time_seconds", - "data_storage_megabytes_hours", - ] + __properties: ClassVar[List[str]] = ["service_id", "service_name", "compute_time_seconds", "data_storage_megabytes_hours"] model_config = ConfigDict( populate_by_name=True, @@ -45,6 +38,7 @@ class DatabaseUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -87,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "compute_time_seconds": obj.get("compute_time_seconds"), - "data_storage_megabytes_hours": obj.get("data_storage_megabytes_hours"), - } - ) + _obj = cls.model_validate({ + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "compute_time_seconds": obj.get("compute_time_seconds"), + "data_storage_megabytes_hours": obj.get("data_storage_megabytes_hours") + }) return _obj + + diff --git a/koyeb/models/database_usage_details.py b/koyeb/api/models/database_usage_details.py similarity index 66% rename from koyeb/models/database_usage_details.py rename to koyeb/api/models/database_usage_details.py index 71f45b16..5b855288 100644 --- a/koyeb/models/database_usage_details.py +++ b/koyeb/api/models/database_usage_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class DatabaseUsageDetails(BaseModel): """ DatabaseUsageDetails - """ # noqa: E501 - + """ # noqa: E501 organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None app_name: Optional[StrictStr] = None @@ -38,17 +36,7 @@ class DatabaseUsageDetails(BaseModel): data_storage_megabytes_hour: Optional[StrictInt] = None started_at: Optional[datetime] = None terminated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "organization_id", - "app_id", - "app_name", - "service_id", - "service_name", - "compute_time_seconds", - "data_storage_megabytes_hour", - "started_at", - "terminated_at", - ] + __properties: ClassVar[List[str]] = ["organization_id", "app_id", "app_name", "service_id", "service_name", "compute_time_seconds", "data_storage_megabytes_hour", "started_at", "terminated_at"] model_config = ConfigDict( populate_by_name=True, @@ -56,6 +44,7 @@ class DatabaseUsageDetails(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,7 +69,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -98,17 +88,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "app_name": obj.get("app_name"), - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "compute_time_seconds": obj.get("compute_time_seconds"), - "data_storage_megabytes_hour": obj.get("data_storage_megabytes_hour"), - "started_at": obj.get("started_at"), - "terminated_at": obj.get("terminated_at"), - } - ) + _obj = cls.model_validate({ + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "app_name": obj.get("app_name"), + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "compute_time_seconds": obj.get("compute_time_seconds"), + "data_storage_megabytes_hour": obj.get("data_storage_megabytes_hour"), + "started_at": obj.get("started_at"), + "terminated_at": obj.get("terminated_at") + }) return _obj + + diff --git a/koyeb/models/datacenter_list_item.py b/koyeb/api/models/datacenter_list_item.py similarity index 72% rename from koyeb/models/datacenter_list_item.py rename to koyeb/api/models/datacenter_list_item.py index 4a15b143..529f28fb 100644 --- a/koyeb/models/datacenter_list_item.py +++ b/koyeb/api/models/datacenter_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,26 +22,17 @@ from typing import Optional, Set from typing_extensions import Self - class DatacenterListItem(BaseModel): """ DatacenterListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None region_id: Optional[StrictStr] = None domain: Optional[StrictStr] = None coordinates: Optional[List[StrictStr]] = None use_gpu: Optional[StrictBool] = None regions: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = [ - "id", - "region_id", - "domain", - "coordinates", - "use_gpu", - "regions", - ] + __properties: ClassVar[List[str]] = ["id", "region_id", "domain", "coordinates", "use_gpu", "regions"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +40,7 @@ class DatacenterListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,14 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "region_id": obj.get("region_id"), - "domain": obj.get("domain"), - "coordinates": obj.get("coordinates"), - "use_gpu": obj.get("use_gpu"), - "regions": obj.get("regions"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "region_id": obj.get("region_id"), + "domain": obj.get("domain"), + "coordinates": obj.get("coordinates"), + "use_gpu": obj.get("use_gpu"), + "regions": obj.get("regions") + }) return _obj + + diff --git a/koyeb/models/deactivate_organization_reply.py b/koyeb/api/models/deactivate_organization_reply.py similarity index 75% rename from koyeb/models/deactivate_organization_reply.py rename to koyeb/api/models/deactivate_organization_reply.py index 5b8fb860..d0fd9a39 100644 --- a/koyeb/models/deactivate_organization_reply.py +++ b/koyeb/api/models/deactivate_organization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class DeactivateOrganizationReply(BaseModel): """ DeactivateOrganizationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class DeactivateOrganizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/deactivate_organization_request.py b/koyeb/api/models/deactivate_organization_request.py similarity index 75% rename from koyeb/models/deactivate_organization_request.py rename to koyeb/api/models/deactivate_organization_request.py index 295db468..c4210b91 100644 --- a/koyeb/models/deactivate_organization_request.py +++ b/koyeb/api/models/deactivate_organization_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,16 +22,11 @@ from typing import Optional, Set from typing_extensions import Self - class DeactivateOrganizationRequest(BaseModel): """ DeactivateOrganizationRequest - """ # noqa: E501 - - skip_confirmation: Optional[StrictBool] = Field( - default=None, - description="if set to true, skip_confirmation will directly start the deactivation process, without sending a confirmation email beforehand.", - ) + """ # noqa: E501 + skip_confirmation: Optional[StrictBool] = Field(default=None, description="if set to true, skip_confirmation will directly start the deactivation process, without sending a confirmation email beforehand.") __properties: ClassVar[List[str]] = ["skip_confirmation"] model_config = ConfigDict( @@ -40,6 +35,7 @@ class DeactivateOrganizationRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"skip_confirmation": obj.get("skip_confirmation")}) + _obj = cls.model_validate({ + "skip_confirmation": obj.get("skip_confirmation") + }) return _obj + + diff --git a/koyeb/models/declare_stage_progress_request.py b/koyeb/api/models/declare_stage_progress_request.py similarity index 62% rename from koyeb/models/declare_stage_progress_request.py rename to koyeb/api/models/declare_stage_progress_request.py index c1926d24..19fdebf0 100644 --- a/koyeb/models/declare_stage_progress_request.py +++ b/koyeb/api/models/declare_stage_progress_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,36 +20,22 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus from typing import Optional, Set from typing_extensions import Self - class DeclareStageProgressRequest(BaseModel): """ DeclareStageProgressRequest - """ # noqa: E501 - + """ # noqa: E501 secret: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = ( - DeploymentProvisioningInfoStageStatus.UNKNOWN - ) + status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN finished_at: Optional[datetime] = None messages: Optional[List[StrictStr]] = None image_pushed: Optional[StrictBool] = None internal_failure: Optional[StrictBool] = None retryable_failure: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "secret", - "status", - "finished_at", - "messages", - "image_pushed", - "internal_failure", - "retryable_failure", - ] + __properties: ClassVar[List[str]] = ["secret", "status", "finished_at", "messages", "image_pushed", "internal_failure", "retryable_failure"] model_config = ConfigDict( populate_by_name=True, @@ -57,6 +43,7 @@ class DeclareStageProgressRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -81,7 +68,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -99,19 +87,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secret": obj.get("secret"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentProvisioningInfoStageStatus.UNKNOWN - ), - "finished_at": obj.get("finished_at"), - "messages": obj.get("messages"), - "image_pushed": obj.get("image_pushed"), - "internal_failure": obj.get("internal_failure"), - "retryable_failure": obj.get("retryable_failure"), - } - ) + _obj = cls.model_validate({ + "secret": obj.get("secret"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, + "finished_at": obj.get("finished_at"), + "messages": obj.get("messages"), + "image_pushed": obj.get("image_pushed"), + "internal_failure": obj.get("internal_failure"), + "retryable_failure": obj.get("retryable_failure") + }) return _obj + + diff --git a/koyeb/models/declare_step_progress_request.py b/koyeb/api/models/declare_step_progress_request.py similarity index 64% rename from koyeb/models/declare_step_progress_request.py rename to koyeb/api/models/declare_step_progress_request.py index d52c347d..afe0038c 100644 --- a/koyeb/models/declare_step_progress_request.py +++ b/koyeb/api/models/declare_step_progress_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,32 +20,20 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus from typing import Optional, Set from typing_extensions import Self - class DeclareStepProgressRequest(BaseModel): """ DeclareStepProgressRequest - """ # noqa: E501 - + """ # noqa: E501 secret: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = ( - DeploymentProvisioningInfoStageStatus.UNKNOWN - ) + status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN started_at: Optional[datetime] = None finished_at: Optional[datetime] = None messages: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = [ - "secret", - "status", - "started_at", - "finished_at", - "messages", - ] + __properties: ClassVar[List[str]] = ["secret", "status", "started_at", "finished_at", "messages"] model_config = ConfigDict( populate_by_name=True, @@ -53,6 +41,7 @@ class DeclareStepProgressRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -77,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -95,17 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secret": obj.get("secret"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentProvisioningInfoStageStatus.UNKNOWN - ), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - "messages": obj.get("messages"), - } - ) + _obj = cls.model_validate({ + "secret": obj.get("secret"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + "messages": obj.get("messages") + }) return _obj + + diff --git a/koyeb/models/decline_organization_invitation_reply.py b/koyeb/api/models/decline_organization_invitation_reply.py similarity index 75% rename from koyeb/models/decline_organization_invitation_reply.py rename to koyeb/api/models/decline_organization_invitation_reply.py index eabd8c8b..47e83c9c 100644 --- a/koyeb/models/decline_organization_invitation_reply.py +++ b/koyeb/api/models/decline_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class DeclineOrganizationInvitationReply(BaseModel): """ DeclineOrganizationInvitationReply - """ # noqa: E501 - + """ # noqa: E501 invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -38,6 +36,7 @@ class DeclineOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of invitation if self.invitation: - _dict["invitation"] = self.invitation.to_dict() + _dict['invitation'] = self.invitation.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitation": ( - OrganizationInvitation.from_dict(obj["invitation"]) - if obj.get("invitation") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "invitation": OrganizationInvitation.from_dict(obj["invitation"]) if obj.get("invitation") is not None else None + }) return _obj + + diff --git a/koyeb/models/delete_organization_reply.py b/koyeb/api/models/delete_organization_reply.py similarity index 75% rename from koyeb/models/delete_organization_reply.py rename to koyeb/api/models/delete_organization_reply.py index 72dd0c9b..db095e62 100644 --- a/koyeb/models/delete_organization_reply.py +++ b/koyeb/api/models/delete_organization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class DeleteOrganizationReply(BaseModel): """ DeleteOrganizationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class DeleteOrganizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/delete_persistent_volume_reply.py b/koyeb/api/models/delete_persistent_volume_reply.py similarity index 75% rename from koyeb/models/delete_persistent_volume_reply.py rename to koyeb/api/models/delete_persistent_volume_reply.py index 3c1f7543..2dc39b00 100644 --- a/koyeb/models/delete_persistent_volume_reply.py +++ b/koyeb/api/models/delete_persistent_volume_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume import PersistentVolume from typing import Optional, Set from typing_extensions import Self - class DeletePersistentVolumeReply(BaseModel): """ DeletePersistentVolumeReply - """ # noqa: E501 - + """ # noqa: E501 volume: Optional[PersistentVolume] = None __properties: ClassVar[List[str]] = ["volume"] @@ -38,6 +36,7 @@ class DeletePersistentVolumeReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of volume if self.volume: - _dict["volume"] = self.volume.to_dict() + _dict['volume'] = self.volume.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "volume": ( - PersistentVolume.from_dict(obj["volume"]) - if obj.get("volume") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "volume": PersistentVolume.from_dict(obj["volume"]) if obj.get("volume") is not None else None + }) return _obj + + diff --git a/koyeb/models/delete_snapshot_reply.py b/koyeb/api/models/delete_snapshot_reply.py similarity index 75% rename from koyeb/models/delete_snapshot_reply.py rename to koyeb/api/models/delete_snapshot_reply.py index c4126235..30cadc32 100644 --- a/koyeb/models/delete_snapshot_reply.py +++ b/koyeb/api/models/delete_snapshot_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.snapshot import Snapshot +from koyeb.api.models.snapshot import Snapshot from typing import Optional, Set from typing_extensions import Self - class DeleteSnapshotReply(BaseModel): """ DeleteSnapshotReply - """ # noqa: E501 - + """ # noqa: E501 snapshot: Optional[Snapshot] = None __properties: ClassVar[List[str]] = ["snapshot"] @@ -38,6 +36,7 @@ class DeleteSnapshotReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of snapshot if self.snapshot: - _dict["snapshot"] = self.snapshot.to_dict() + _dict['snapshot'] = self.snapshot.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "snapshot": ( - Snapshot.from_dict(obj["snapshot"]) - if obj.get("snapshot") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "snapshot": Snapshot.from_dict(obj["snapshot"]) if obj.get("snapshot") is not None else None + }) return _obj + + diff --git a/koyeb/models/delete_user_reply.py b/koyeb/api/models/delete_user_reply.py similarity index 78% rename from koyeb/models/delete_user_reply.py rename to koyeb/api/models/delete_user_reply.py index 42403d38..a1383e76 100644 --- a/koyeb/models/delete_user_reply.py +++ b/koyeb/api/models/delete_user_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.user import User +from koyeb.api.models.user import User from typing import Optional, Set from typing_extensions import Self - class DeleteUserReply(BaseModel): """ DeleteUserReply - """ # noqa: E501 - + """ # noqa: E501 user: Optional[User] = None __properties: ClassVar[List[str]] = ["user"] @@ -38,6 +36,7 @@ class DeleteUserReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of user if self.user: - _dict["user"] = self.user.to_dict() + _dict['user'] = self.user.to_dict() return _dict @classmethod @@ -83,11 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "user": ( - User.from_dict(obj["user"]) if obj.get("user") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "user": User.from_dict(obj["user"]) if obj.get("user") is not None else None + }) return _obj + + diff --git a/koyeb/api/models/deployment.py b/koyeb/api/models/deployment.py new file mode 100644 index 00000000..c34e44ec --- /dev/null +++ b/koyeb/api/models/deployment.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo +from koyeb.api.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_metadata import DeploymentMetadata +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo +from koyeb.api.models.deployment_role import DeploymentRole +from koyeb.api.models.deployment_status import DeploymentStatus +from typing import Optional, Set +from typing_extensions import Self + +class Deployment(BaseModel): + """ + Deployment + """ # noqa: E501 + id: Optional[StrictStr] = None + created_at: Optional[datetime] = None + updated_at: Optional[datetime] = None + allocated_at: Optional[datetime] = None + started_at: Optional[datetime] = None + succeeded_at: Optional[datetime] = None + terminated_at: Optional[datetime] = None + organization_id: Optional[StrictStr] = None + app_id: Optional[StrictStr] = None + service_id: Optional[StrictStr] = None + parent_id: Optional[StrictStr] = None + child_id: Optional[StrictStr] = None + status: Optional[DeploymentStatus] = DeploymentStatus.PENDING + metadata: Optional[DeploymentMetadata] = None + definition: Optional[DeploymentDefinition] = None + messages: Optional[List[StrictStr]] = None + provisioning_info: Optional[DeploymentProvisioningInfo] = None + database_info: Optional[DeploymentDatabaseInfo] = None + skip_build: Optional[StrictBool] = None + role: Optional[DeploymentRole] = DeploymentRole.INVALID + version: Optional[StrictStr] = None + deployment_group: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "allocated_at", "started_at", "succeeded_at", "terminated_at", "organization_id", "app_id", "service_id", "parent_id", "child_id", "status", "metadata", "definition", "messages", "provisioning_info", "database_info", "skip_build", "role", "version", "deployment_group"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Deployment from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = self.metadata.to_dict() + # override the default output from pydantic by calling `to_dict()` of definition + if self.definition: + _dict['definition'] = self.definition.to_dict() + # override the default output from pydantic by calling `to_dict()` of provisioning_info + if self.provisioning_info: + _dict['provisioning_info'] = self.provisioning_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of database_info + if self.database_info: + _dict['database_info'] = self.database_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Deployment from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "allocated_at": obj.get("allocated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "parent_id": obj.get("parent_id"), + "child_id": obj.get("child_id"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentStatus.PENDING, + "metadata": DeploymentMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, + "messages": obj.get("messages"), + "provisioning_info": DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) if obj.get("provisioning_info") is not None else None, + "database_info": DeploymentDatabaseInfo.from_dict(obj["database_info"]) if obj.get("database_info") is not None else None, + "skip_build": obj.get("skip_build"), + "role": obj.get("role") if obj.get("role") is not None else DeploymentRole.INVALID, + "version": obj.get("version"), + "deployment_group": obj.get("deployment_group") + }) + return _obj + + diff --git a/koyeb/models/deployment_database_info.py b/koyeb/api/models/deployment_database_info.py similarity index 73% rename from koyeb/models/deployment_database_info.py rename to koyeb/api/models/deployment_database_info.py index 6a4f8bfa..b6ce5b17 100644 --- a/koyeb/models/deployment_database_info.py +++ b/koyeb/api/models/deployment_database_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,18 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_neon_postgres_database_info import ( - DeploymentNeonPostgresDatabaseInfo, -) +from koyeb.api.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo from typing import Optional, Set from typing_extensions import Self - class DeploymentDatabaseInfo(BaseModel): """ DeploymentDatabaseInfo - """ # noqa: E501 - + """ # noqa: E501 neon_postgres: Optional[DeploymentNeonPostgresDatabaseInfo] = None __properties: ClassVar[List[str]] = ["neon_postgres"] @@ -40,6 +36,7 @@ class DeploymentDatabaseInfo(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict["neon_postgres"] = self.neon_postgres.to_dict() + _dict['neon_postgres'] = self.neon_postgres.to_dict() return _dict @classmethod @@ -85,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "neon_postgres": ( - DeploymentNeonPostgresDatabaseInfo.from_dict(obj["neon_postgres"]) - if obj.get("neon_postgres") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "neon_postgres": DeploymentNeonPostgresDatabaseInfo.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None + }) return _obj + + diff --git a/koyeb/api/models/deployment_definition.py b/koyeb/api/models/deployment_definition.py new file mode 100644 index 00000000..369a3e92 --- /dev/null +++ b/koyeb/api/models/deployment_definition.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.archive_source import ArchiveSource +from koyeb.api.models.config_file import ConfigFile +from koyeb.api.models.database_source import DatabaseSource +from koyeb.api.models.deployment_definition_type import DeploymentDefinitionType +from koyeb.api.models.deployment_env import DeploymentEnv +from koyeb.api.models.deployment_health_check import DeploymentHealthCheck +from koyeb.api.models.deployment_instance_type import DeploymentInstanceType +from koyeb.api.models.deployment_port import DeploymentPort +from koyeb.api.models.deployment_proxy_port import DeploymentProxyPort +from koyeb.api.models.deployment_route import DeploymentRoute +from koyeb.api.models.deployment_scaling import DeploymentScaling +from koyeb.api.models.deployment_strategy import DeploymentStrategy +from koyeb.api.models.deployment_volume import DeploymentVolume +from koyeb.api.models.docker_source import DockerSource +from koyeb.api.models.git_source import GitSource +from typing import Optional, Set +from typing_extensions import Self + +class DeploymentDefinition(BaseModel): + """ + DeploymentDefinition + """ # noqa: E501 + name: Optional[StrictStr] = None + type: Optional[DeploymentDefinitionType] = DeploymentDefinitionType.INVALID + strategy: Optional[DeploymentStrategy] = None + routes: Optional[List[DeploymentRoute]] = None + ports: Optional[List[DeploymentPort]] = None + proxy_ports: Optional[List[DeploymentProxyPort]] = None + env: Optional[List[DeploymentEnv]] = None + regions: Optional[List[StrictStr]] = None + scalings: Optional[List[DeploymentScaling]] = None + instance_types: Optional[List[DeploymentInstanceType]] = None + health_checks: Optional[List[DeploymentHealthCheck]] = None + volumes: Optional[List[DeploymentVolume]] = None + config_files: Optional[List[ConfigFile]] = None + skip_cache: Optional[StrictBool] = None + docker: Optional[DockerSource] = None + git: Optional[GitSource] = None + database: Optional[DatabaseSource] = None + archive: Optional[ArchiveSource] = None + __properties: ClassVar[List[str]] = ["name", "type", "strategy", "routes", "ports", "proxy_ports", "env", "regions", "scalings", "instance_types", "health_checks", "volumes", "config_files", "skip_cache", "docker", "git", "database", "archive"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeploymentDefinition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of strategy + if self.strategy: + _dict['strategy'] = self.strategy.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in routes (list) + _items = [] + if self.routes: + for _item_routes in self.routes: + if _item_routes: + _items.append(_item_routes.to_dict()) + _dict['routes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in ports (list) + _items = [] + if self.ports: + for _item_ports in self.ports: + if _item_ports: + _items.append(_item_ports.to_dict()) + _dict['ports'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in proxy_ports (list) + _items = [] + if self.proxy_ports: + for _item_proxy_ports in self.proxy_ports: + if _item_proxy_ports: + _items.append(_item_proxy_ports.to_dict()) + _dict['proxy_ports'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in env (list) + _items = [] + if self.env: + for _item_env in self.env: + if _item_env: + _items.append(_item_env.to_dict()) + _dict['env'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in scalings (list) + _items = [] + if self.scalings: + for _item_scalings in self.scalings: + if _item_scalings: + _items.append(_item_scalings.to_dict()) + _dict['scalings'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in instance_types (list) + _items = [] + if self.instance_types: + for _item_instance_types in self.instance_types: + if _item_instance_types: + _items.append(_item_instance_types.to_dict()) + _dict['instance_types'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in health_checks (list) + _items = [] + if self.health_checks: + for _item_health_checks in self.health_checks: + if _item_health_checks: + _items.append(_item_health_checks.to_dict()) + _dict['health_checks'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in volumes (list) + _items = [] + if self.volumes: + for _item_volumes in self.volumes: + if _item_volumes: + _items.append(_item_volumes.to_dict()) + _dict['volumes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in config_files (list) + _items = [] + if self.config_files: + for _item_config_files in self.config_files: + if _item_config_files: + _items.append(_item_config_files.to_dict()) + _dict['config_files'] = _items + # override the default output from pydantic by calling `to_dict()` of docker + if self.docker: + _dict['docker'] = self.docker.to_dict() + # override the default output from pydantic by calling `to_dict()` of git + if self.git: + _dict['git'] = self.git.to_dict() + # override the default output from pydantic by calling `to_dict()` of database + if self.database: + _dict['database'] = self.database.to_dict() + # override the default output from pydantic by calling `to_dict()` of archive + if self.archive: + _dict['archive'] = self.archive.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeploymentDefinition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else DeploymentDefinitionType.INVALID, + "strategy": DeploymentStrategy.from_dict(obj["strategy"]) if obj.get("strategy") is not None else None, + "routes": [DeploymentRoute.from_dict(_item) for _item in obj["routes"]] if obj.get("routes") is not None else None, + "ports": [DeploymentPort.from_dict(_item) for _item in obj["ports"]] if obj.get("ports") is not None else None, + "proxy_ports": [DeploymentProxyPort.from_dict(_item) for _item in obj["proxy_ports"]] if obj.get("proxy_ports") is not None else None, + "env": [DeploymentEnv.from_dict(_item) for _item in obj["env"]] if obj.get("env") is not None else None, + "regions": obj.get("regions"), + "scalings": [DeploymentScaling.from_dict(_item) for _item in obj["scalings"]] if obj.get("scalings") is not None else None, + "instance_types": [DeploymentInstanceType.from_dict(_item) for _item in obj["instance_types"]] if obj.get("instance_types") is not None else None, + "health_checks": [DeploymentHealthCheck.from_dict(_item) for _item in obj["health_checks"]] if obj.get("health_checks") is not None else None, + "volumes": [DeploymentVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None, + "config_files": [ConfigFile.from_dict(_item) for _item in obj["config_files"]] if obj.get("config_files") is not None else None, + "skip_cache": obj.get("skip_cache"), + "docker": DockerSource.from_dict(obj["docker"]) if obj.get("docker") is not None else None, + "git": GitSource.from_dict(obj["git"]) if obj.get("git") is not None else None, + "database": DatabaseSource.from_dict(obj["database"]) if obj.get("database") is not None else None, + "archive": ArchiveSource.from_dict(obj["archive"]) if obj.get("archive") is not None else None + }) + return _obj + + diff --git a/koyeb/models/deployment_definition_type.py b/koyeb/api/models/deployment_definition_type.py similarity index 54% rename from koyeb/models/deployment_definition_type.py rename to koyeb/api/models/deployment_definition_type.py index d44a9781..ab9668ba 100644 --- a/koyeb/models/deployment_definition_type.py +++ b/koyeb/api/models/deployment_definition_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class DeploymentDefinitionType(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - WEB = "WEB" - WORKER = "WORKER" - DATABASE = "DATABASE" + INVALID = 'INVALID' + WEB = 'WEB' + WORKER = 'WORKER' + DATABASE = 'DATABASE' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DeploymentDefinitionType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/deployment_env.py b/koyeb/api/models/deployment_env.py similarity index 78% rename from koyeb/models/deployment_env.py rename to koyeb/api/models/deployment_env.py index a459d6c4..b38bc9da 100644 --- a/koyeb/models/deployment_env.py +++ b/koyeb/api/models/deployment_env.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentEnv(BaseModel): """ DeploymentEnv - """ # noqa: E501 - + """ # noqa: E501 scopes: Optional[List[StrictStr]] = None key: Optional[StrictStr] = None value: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class DeploymentEnv(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "scopes": obj.get("scopes"), - "key": obj.get("key"), - "value": obj.get("value"), - "secret": obj.get("secret"), - } - ) + _obj = cls.model_validate({ + "scopes": obj.get("scopes"), + "key": obj.get("key"), + "value": obj.get("value"), + "secret": obj.get("secret") + }) return _obj + + diff --git a/koyeb/models/deployment_event.py b/koyeb/api/models/deployment_event.py similarity index 71% rename from koyeb/models/deployment_event.py rename to koyeb/api/models/deployment_event.py index 2c03c913..c324e39c 100644 --- a/koyeb/models/deployment_event.py +++ b/koyeb/api/models/deployment_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentEvent(BaseModel): """ DeploymentEvent - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -36,15 +34,7 @@ class DeploymentEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = [ - "id", - "when", - "organization_id", - "deployment_id", - "type", - "message", - "metadata", - ] + __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "deployment_id", "type", "message", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class DeploymentEvent(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "deployment_id": obj.get("deployment_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "deployment_id": obj.get("deployment_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/deployment_health_check.py b/koyeb/api/models/deployment_health_check.py similarity index 64% rename from koyeb/models/deployment_health_check.py rename to koyeb/api/models/deployment_health_check.py index 1dd542aa..e6e200cf 100644 --- a/koyeb/models/deployment_health_check.py +++ b/koyeb/api/models/deployment_health_check.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,31 +19,22 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.http_health_check import HTTPHealthCheck -from koyeb.models.tcp_health_check import TCPHealthCheck +from koyeb.api.models.http_health_check import HTTPHealthCheck +from koyeb.api.models.tcp_health_check import TCPHealthCheck from typing import Optional, Set from typing_extensions import Self - class DeploymentHealthCheck(BaseModel): """ DeploymentHealthCheck - """ # noqa: E501 - + """ # noqa: E501 grace_period: Optional[StrictInt] = None interval: Optional[StrictInt] = None restart_limit: Optional[StrictInt] = None timeout: Optional[StrictInt] = None tcp: Optional[TCPHealthCheck] = None http: Optional[HTTPHealthCheck] = None - __properties: ClassVar[List[str]] = [ - "grace_period", - "interval", - "restart_limit", - "timeout", - "tcp", - "http", - ] + __properties: ClassVar[List[str]] = ["grace_period", "interval", "restart_limit", "timeout", "tcp", "http"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +42,7 @@ class DeploymentHealthCheck(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -84,10 +77,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of tcp if self.tcp: - _dict["tcp"] = self.tcp.to_dict() + _dict['tcp'] = self.tcp.to_dict() # override the default output from pydantic by calling `to_dict()` of http if self.http: - _dict["http"] = self.http.to_dict() + _dict['http'] = self.http.to_dict() return _dict @classmethod @@ -99,22 +92,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "grace_period": obj.get("grace_period"), - "interval": obj.get("interval"), - "restart_limit": obj.get("restart_limit"), - "timeout": obj.get("timeout"), - "tcp": ( - TCPHealthCheck.from_dict(obj["tcp"]) - if obj.get("tcp") is not None - else None - ), - "http": ( - HTTPHealthCheck.from_dict(obj["http"]) - if obj.get("http") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "grace_period": obj.get("grace_period"), + "interval": obj.get("interval"), + "restart_limit": obj.get("restart_limit"), + "timeout": obj.get("timeout"), + "tcp": TCPHealthCheck.from_dict(obj["tcp"]) if obj.get("tcp") is not None else None, + "http": HTTPHealthCheck.from_dict(obj["http"]) if obj.get("http") is not None else None + }) return _obj + + diff --git a/koyeb/models/deployment_instance_type.py b/koyeb/api/models/deployment_instance_type.py similarity index 81% rename from koyeb/models/deployment_instance_type.py rename to koyeb/api/models/deployment_instance_type.py index 546c1508..32dcd5b7 100644 --- a/koyeb/models/deployment_instance_type.py +++ b/koyeb/api/models/deployment_instance_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentInstanceType(BaseModel): """ DeploymentInstanceType - """ # noqa: E501 - + """ # noqa: E501 scopes: Optional[List[StrictStr]] = None type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["scopes", "type"] @@ -38,6 +36,7 @@ class DeploymentInstanceType(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"scopes": obj.get("scopes"), "type": obj.get("type")} - ) + _obj = cls.model_validate({ + "scopes": obj.get("scopes"), + "type": obj.get("type") + }) return _obj + + diff --git a/koyeb/models/deployment_list_item.py b/koyeb/api/models/deployment_list_item.py similarity index 50% rename from koyeb/models/deployment_list_item.py rename to koyeb/api/models/deployment_list_item.py index 25a375b3..bb77e859 100644 --- a/koyeb/models/deployment_list_item.py +++ b/koyeb/api/models/deployment_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,20 +20,18 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_database_info import DeploymentDatabaseInfo -from koyeb.models.deployment_definition import DeploymentDefinition -from koyeb.models.deployment_metadata import DeploymentMetadata -from koyeb.models.deployment_provisioning_info import DeploymentProvisioningInfo -from koyeb.models.deployment_status import DeploymentStatus +from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo +from koyeb.api.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_metadata import DeploymentMetadata +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo +from koyeb.api.models.deployment_status import DeploymentStatus from typing import Optional, Set from typing_extensions import Self - class DeploymentListItem(BaseModel): """ DeploymentListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -54,28 +52,7 @@ class DeploymentListItem(BaseModel): database_info: Optional[DeploymentDatabaseInfo] = None version: Optional[StrictStr] = None deployment_group: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "allocated_at", - "started_at", - "succeeded_at", - "terminated_at", - "organization_id", - "app_id", - "service_id", - "parent_id", - "child_id", - "status", - "metadata", - "definition", - "messages", - "provisioning_info", - "database_info", - "version", - "deployment_group", - ] + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "allocated_at", "started_at", "succeeded_at", "terminated_at", "organization_id", "app_id", "service_id", "parent_id", "child_id", "status", "metadata", "definition", "messages", "provisioning_info", "database_info", "version", "deployment_group"] model_config = ConfigDict( populate_by_name=True, @@ -83,6 +60,7 @@ class DeploymentListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -107,7 +85,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -116,16 +95,16 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of metadata if self.metadata: - _dict["metadata"] = self.metadata.to_dict() + _dict['metadata'] = self.metadata.to_dict() # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict["definition"] = self.definition.to_dict() + _dict['definition'] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of provisioning_info if self.provisioning_info: - _dict["provisioning_info"] = self.provisioning_info.to_dict() + _dict['provisioning_info'] = self.provisioning_info.to_dict() # override the default output from pydantic by calling `to_dict()` of database_info if self.database_info: - _dict["database_info"] = self.database_info.to_dict() + _dict['database_info'] = self.database_info.to_dict() return _dict @classmethod @@ -137,48 +116,28 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "allocated_at": obj.get("allocated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "parent_id": obj.get("parent_id"), - "child_id": obj.get("child_id"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentStatus.PENDING - ), - "metadata": ( - DeploymentMetadata.from_dict(obj["metadata"]) - if obj.get("metadata") is not None - else None - ), - "definition": ( - DeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ), - "messages": obj.get("messages"), - "provisioning_info": ( - DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) - if obj.get("provisioning_info") is not None - else None - ), - "database_info": ( - DeploymentDatabaseInfo.from_dict(obj["database_info"]) - if obj.get("database_info") is not None - else None - ), - "version": obj.get("version"), - "deployment_group": obj.get("deployment_group"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "allocated_at": obj.get("allocated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "parent_id": obj.get("parent_id"), + "child_id": obj.get("child_id"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentStatus.PENDING, + "metadata": DeploymentMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, + "messages": obj.get("messages"), + "provisioning_info": DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) if obj.get("provisioning_info") is not None else None, + "database_info": DeploymentDatabaseInfo.from_dict(obj["database_info"]) if obj.get("database_info") is not None else None, + "version": obj.get("version"), + "deployment_group": obj.get("deployment_group") + }) return _obj + + diff --git a/koyeb/models/deployment_metadata.py b/koyeb/api/models/deployment_metadata.py similarity index 56% rename from koyeb/models/deployment_metadata.py rename to koyeb/api/models/deployment_metadata.py index 9cabbda7..0bb9b5b6 100644 --- a/koyeb/models/deployment_metadata.py +++ b/koyeb/api/models/deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,32 +19,24 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.archive_deployment_metadata import ArchiveDeploymentMetadata -from koyeb.models.database_deployment_metadata import DatabaseDeploymentMetadata -from koyeb.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata -from koyeb.models.git_deployment_metadata import GitDeploymentMetadata -from koyeb.models.trigger_deployment_metadata import TriggerDeploymentMetadata +from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata +from koyeb.api.models.database_deployment_metadata import DatabaseDeploymentMetadata +from koyeb.api.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata +from koyeb.api.models.git_deployment_metadata import GitDeploymentMetadata +from koyeb.api.models.trigger_deployment_metadata import TriggerDeploymentMetadata from typing import Optional, Set from typing_extensions import Self - class DeploymentMetadata(BaseModel): """ DeploymentMetadata - """ # noqa: E501 - + """ # noqa: E501 trigger: Optional[TriggerDeploymentMetadata] = None database: Optional[DatabaseDeploymentMetadata] = None git: Optional[GitDeploymentMetadata] = None archive: Optional[ArchiveDeploymentMetadata] = None proxy_ports: Optional[List[DeploymentProxyPortMetadata]] = None - __properties: ClassVar[List[str]] = [ - "trigger", - "database", - "git", - "archive", - "proxy_ports", - ] + __properties: ClassVar[List[str]] = ["trigger", "database", "git", "archive", "proxy_ports"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +44,7 @@ class DeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +69,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,23 +79,23 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of trigger if self.trigger: - _dict["trigger"] = self.trigger.to_dict() + _dict['trigger'] = self.trigger.to_dict() # override the default output from pydantic by calling `to_dict()` of database if self.database: - _dict["database"] = self.database.to_dict() + _dict['database'] = self.database.to_dict() # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict["git"] = self.git.to_dict() + _dict['git'] = self.git.to_dict() # override the default output from pydantic by calling `to_dict()` of archive if self.archive: - _dict["archive"] = self.archive.to_dict() + _dict['archive'] = self.archive.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in proxy_ports (list) _items = [] if self.proxy_ports: for _item_proxy_ports in self.proxy_ports: if _item_proxy_ports: _items.append(_item_proxy_ports.to_dict()) - _dict["proxy_ports"] = _items + _dict['proxy_ports'] = _items return _dict @classmethod @@ -113,36 +107,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "trigger": ( - TriggerDeploymentMetadata.from_dict(obj["trigger"]) - if obj.get("trigger") is not None - else None - ), - "database": ( - DatabaseDeploymentMetadata.from_dict(obj["database"]) - if obj.get("database") is not None - else None - ), - "git": ( - GitDeploymentMetadata.from_dict(obj["git"]) - if obj.get("git") is not None - else None - ), - "archive": ( - ArchiveDeploymentMetadata.from_dict(obj["archive"]) - if obj.get("archive") is not None - else None - ), - "proxy_ports": ( - [ - DeploymentProxyPortMetadata.from_dict(_item) - for _item in obj["proxy_ports"] - ] - if obj.get("proxy_ports") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "trigger": TriggerDeploymentMetadata.from_dict(obj["trigger"]) if obj.get("trigger") is not None else None, + "database": DatabaseDeploymentMetadata.from_dict(obj["database"]) if obj.get("database") is not None else None, + "git": GitDeploymentMetadata.from_dict(obj["git"]) if obj.get("git") is not None else None, + "archive": ArchiveDeploymentMetadata.from_dict(obj["archive"]) if obj.get("archive") is not None else None, + "proxy_ports": [DeploymentProxyPortMetadata.from_dict(_item) for _item in obj["proxy_ports"]] if obj.get("proxy_ports") is not None else None + }) return _obj + + diff --git a/koyeb/models/deployment_neon_postgres_database_info.py b/koyeb/api/models/deployment_neon_postgres_database_info.py similarity index 58% rename from koyeb/models/deployment_neon_postgres_database_info.py rename to koyeb/api/models/deployment_neon_postgres_database_info.py index 268bd3cd..414734f1 100644 --- a/koyeb/models/deployment_neon_postgres_database_info.py +++ b/koyeb/api/models/deployment_neon_postgres_database_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_neon_postgres_database_info_role import ( - DeploymentNeonPostgresDatabaseInfoRole, -) +from koyeb.api.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole from typing import Optional, Set from typing_extensions import Self - class DeploymentNeonPostgresDatabaseInfo(BaseModel): """ DeploymentNeonPostgresDatabaseInfo - """ # noqa: E501 - + """ # noqa: E501 active_time_seconds: Optional[StrictStr] = None compute_time_seconds: Optional[StrictStr] = None written_data_bytes: Optional[StrictStr] = None @@ -46,22 +42,7 @@ class DeploymentNeonPostgresDatabaseInfo(BaseModel): default_branch_state: Optional[StrictStr] = None default_branch_logical_size: Optional[StrictStr] = None roles: Optional[List[DeploymentNeonPostgresDatabaseInfoRole]] = None - __properties: ClassVar[List[str]] = [ - "active_time_seconds", - "compute_time_seconds", - "written_data_bytes", - "data_transfer_bytes", - "data_storage_bytes_hour", - "server_host", - "server_port", - "endpoint_state", - "endpoint_last_active", - "default_branch_id", - "default_branch_name", - "default_branch_state", - "default_branch_logical_size", - "roles", - ] + __properties: ClassVar[List[str]] = ["active_time_seconds", "compute_time_seconds", "written_data_bytes", "data_transfer_bytes", "data_storage_bytes_hour", "server_host", "server_port", "endpoint_state", "endpoint_last_active", "default_branch_id", "default_branch_name", "default_branch_state", "default_branch_logical_size", "roles"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +50,7 @@ class DeploymentNeonPostgresDatabaseInfo(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -93,7 +75,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -106,7 +89,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_roles in self.roles: if _item_roles: _items.append(_item_roles.to_dict()) - _dict["roles"] = _items + _dict['roles'] = _items return _dict @classmethod @@ -118,29 +101,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "active_time_seconds": obj.get("active_time_seconds"), - "compute_time_seconds": obj.get("compute_time_seconds"), - "written_data_bytes": obj.get("written_data_bytes"), - "data_transfer_bytes": obj.get("data_transfer_bytes"), - "data_storage_bytes_hour": obj.get("data_storage_bytes_hour"), - "server_host": obj.get("server_host"), - "server_port": obj.get("server_port"), - "endpoint_state": obj.get("endpoint_state"), - "endpoint_last_active": obj.get("endpoint_last_active"), - "default_branch_id": obj.get("default_branch_id"), - "default_branch_name": obj.get("default_branch_name"), - "default_branch_state": obj.get("default_branch_state"), - "default_branch_logical_size": obj.get("default_branch_logical_size"), - "roles": ( - [ - DeploymentNeonPostgresDatabaseInfoRole.from_dict(_item) - for _item in obj["roles"] - ] - if obj.get("roles") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "active_time_seconds": obj.get("active_time_seconds"), + "compute_time_seconds": obj.get("compute_time_seconds"), + "written_data_bytes": obj.get("written_data_bytes"), + "data_transfer_bytes": obj.get("data_transfer_bytes"), + "data_storage_bytes_hour": obj.get("data_storage_bytes_hour"), + "server_host": obj.get("server_host"), + "server_port": obj.get("server_port"), + "endpoint_state": obj.get("endpoint_state"), + "endpoint_last_active": obj.get("endpoint_last_active"), + "default_branch_id": obj.get("default_branch_id"), + "default_branch_name": obj.get("default_branch_name"), + "default_branch_state": obj.get("default_branch_state"), + "default_branch_logical_size": obj.get("default_branch_logical_size"), + "roles": [DeploymentNeonPostgresDatabaseInfoRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None + }) return _obj + + diff --git a/koyeb/models/deployment_neon_postgres_database_info_role.py b/koyeb/api/models/deployment_neon_postgres_database_info_role.py similarity index 81% rename from koyeb/models/deployment_neon_postgres_database_info_role.py rename to koyeb/api/models/deployment_neon_postgres_database_info_role.py index 61f82562..7a0e3252 100644 --- a/koyeb/models/deployment_neon_postgres_database_info_role.py +++ b/koyeb/api/models/deployment_neon_postgres_database_info_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentNeonPostgresDatabaseInfoRole(BaseModel): """ DeploymentNeonPostgresDatabaseInfoRole - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None secret_id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name", "secret_id"] @@ -38,6 +36,7 @@ class DeploymentNeonPostgresDatabaseInfoRole(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"name": obj.get("name"), "secret_id": obj.get("secret_id")} - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "secret_id": obj.get("secret_id") + }) return _obj + + diff --git a/koyeb/models/deployment_port.py b/koyeb/api/models/deployment_port.py similarity index 80% rename from koyeb/models/deployment_port.py rename to koyeb/api/models/deployment_port.py index 664b84f4..0406be19 100644 --- a/koyeb/models/deployment_port.py +++ b/koyeb/api/models/deployment_port.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentPort(BaseModel): """ DeploymentPort - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None protocol: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["port", "protocol"] @@ -38,6 +36,7 @@ class DeploymentPort(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"port": obj.get("port"), "protocol": obj.get("protocol")} - ) + _obj = cls.model_validate({ + "port": obj.get("port"), + "protocol": obj.get("protocol") + }) return _obj + + diff --git a/koyeb/models/deployment_provisioning_info.py b/koyeb/api/models/deployment_provisioning_info.py similarity index 65% rename from koyeb/models/deployment_provisioning_info.py rename to koyeb/api/models/deployment_provisioning_info.py index c94214e2..7c0454c1 100644 --- a/koyeb/models/deployment_provisioning_info.py +++ b/koyeb/api/models/deployment_provisioning_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,17 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage import ( - DeploymentProvisioningInfoStage, -) +from koyeb.api.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage from typing import Optional, Set from typing_extensions import Self - class DeploymentProvisioningInfo(BaseModel): """ DeploymentProvisioningInfo - """ # noqa: E501 - - sha: Optional[StrictStr] = Field( - default=None, - description="The git sha for this build (we resolve the reference at the start of the build).", - ) - image: Optional[StrictStr] = Field( - default=None, description="The docker image built as a result of this build." - ) - stages: Optional[List[DeploymentProvisioningInfoStage]] = Field( - default=None, description="Some info about the build." - ) + """ # noqa: E501 + sha: Optional[StrictStr] = Field(default=None, description="The git sha for this build (we resolve the reference at the start of the build).") + image: Optional[StrictStr] = Field(default=None, description="The docker image built as a result of this build.") + stages: Optional[List[DeploymentProvisioningInfoStage]] = Field(default=None, description="Some info about the build.") __properties: ClassVar[List[str]] = ["sha", "image", "stages"] model_config = ConfigDict( @@ -49,6 +38,7 @@ class DeploymentProvisioningInfo(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -86,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_stages in self.stages: if _item_stages: _items.append(_item_stages.to_dict()) - _dict["stages"] = _items + _dict['stages'] = _items return _dict @classmethod @@ -98,18 +89,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "sha": obj.get("sha"), - "image": obj.get("image"), - "stages": ( - [ - DeploymentProvisioningInfoStage.from_dict(_item) - for _item in obj["stages"] - ] - if obj.get("stages") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "sha": obj.get("sha"), + "image": obj.get("image"), + "stages": [DeploymentProvisioningInfoStage.from_dict(_item) for _item in obj["stages"]] if obj.get("stages") is not None else None + }) return _obj + + diff --git a/koyeb/models/deployment_provisioning_info_stage.py b/koyeb/api/models/deployment_provisioning_info_stage.py similarity index 60% rename from koyeb/models/deployment_provisioning_info_stage.py rename to koyeb/api/models/deployment_provisioning_info_stage.py index 62fd86ea..8c2c6d2e 100644 --- a/koyeb/models/deployment_provisioning_info_stage.py +++ b/koyeb/api/models/deployment_provisioning_info_stage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,37 +20,22 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage_build_attempt import ( - DeploymentProvisioningInfoStageBuildAttempt, -) -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus from typing import Optional, Set from typing_extensions import Self - class DeploymentProvisioningInfoStage(BaseModel): """ DeploymentProvisioningInfoStage - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = ( - DeploymentProvisioningInfoStageStatus.UNKNOWN - ) + status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN messages: Optional[List[StrictStr]] = None started_at: Optional[datetime] = None finished_at: Optional[datetime] = None build_attempts: Optional[List[DeploymentProvisioningInfoStageBuildAttempt]] = None - __properties: ClassVar[List[str]] = [ - "name", - "status", - "messages", - "started_at", - "finished_at", - "build_attempts", - ] + __properties: ClassVar[List[str]] = ["name", "status", "messages", "started_at", "finished_at", "build_attempts"] model_config = ConfigDict( populate_by_name=True, @@ -58,6 +43,7 @@ class DeploymentProvisioningInfoStage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,7 +68,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -95,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_build_attempts in self.build_attempts: if _item_build_attempts: _items.append(_item_build_attempts.to_dict()) - _dict["build_attempts"] = _items + _dict['build_attempts'] = _items return _dict @classmethod @@ -107,25 +94,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentProvisioningInfoStageStatus.UNKNOWN - ), - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - "build_attempts": ( - [ - DeploymentProvisioningInfoStageBuildAttempt.from_dict(_item) - for _item in obj["build_attempts"] - ] - if obj.get("build_attempts") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + "build_attempts": [DeploymentProvisioningInfoStageBuildAttempt.from_dict(_item) for _item in obj["build_attempts"]] if obj.get("build_attempts") is not None else None + }) return _obj + + diff --git a/koyeb/models/deployment_provisioning_info_stage_build_attempt.py b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py similarity index 54% rename from koyeb/models/deployment_provisioning_info_stage_build_attempt.py rename to koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py index da640d06..de0f8ecd 100644 --- a/koyeb/models/deployment_provisioning_info_stage_build_attempt.py +++ b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,25 +20,17 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage_build_attempt_build_step import ( - DeploymentProvisioningInfoStageBuildAttemptBuildStep, -) -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus from typing import Optional, Set from typing_extensions import Self - class DeploymentProvisioningInfoStageBuildAttempt(BaseModel): """ DeploymentProvisioningInfoStageBuildAttempt - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = ( - DeploymentProvisioningInfoStageStatus.UNKNOWN - ) + status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN messages: Optional[List[StrictStr]] = None started_at: Optional[datetime] = None finished_at: Optional[datetime] = None @@ -46,22 +38,8 @@ class DeploymentProvisioningInfoStageBuildAttempt(BaseModel): image_pushed: Optional[StrictBool] = None internal_failure: Optional[StrictBool] = None retryable_failure: Optional[StrictBool] = None - wait_completion: Optional[StrictBool] = Field( - default=None, - description="This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure.", - ) - __properties: ClassVar[List[str]] = [ - "id", - "status", - "messages", - "started_at", - "finished_at", - "steps", - "image_pushed", - "internal_failure", - "retryable_failure", - "wait_completion", - ] + wait_completion: Optional[StrictBool] = Field(default=None, description="This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure.") + __properties: ClassVar[List[str]] = ["id", "status", "messages", "started_at", "finished_at", "steps", "image_pushed", "internal_failure", "retryable_failure", "wait_completion"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +47,7 @@ class DeploymentProvisioningInfoStageBuildAttempt(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -93,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -106,7 +86,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_steps in self.steps: if _item_steps: _items.append(_item_steps.to_dict()) - _dict["steps"] = _items + _dict['steps'] = _items return _dict @classmethod @@ -118,31 +98,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentProvisioningInfoStageStatus.UNKNOWN - ), - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - "steps": ( - [ - DeploymentProvisioningInfoStageBuildAttemptBuildStep.from_dict( - _item - ) - for _item in obj["steps"] - ] - if obj.get("steps") is not None - else None - ), - "image_pushed": obj.get("image_pushed"), - "internal_failure": obj.get("internal_failure"), - "retryable_failure": obj.get("retryable_failure"), - "wait_completion": obj.get("wait_completion"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + "steps": [DeploymentProvisioningInfoStageBuildAttemptBuildStep.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, + "image_pushed": obj.get("image_pushed"), + "internal_failure": obj.get("internal_failure"), + "retryable_failure": obj.get("retryable_failure"), + "wait_completion": obj.get("wait_completion") + }) return _obj + + diff --git a/koyeb/models/deployment_provisioning_info_stage_build_attempt_build_step.py b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py similarity index 65% rename from koyeb/models/deployment_provisioning_info_stage_build_attempt_build_step.py rename to koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py index ba127659..e5864591 100644 --- a/koyeb/models/deployment_provisioning_info_stage_build_attempt_build_step.py +++ b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,32 +20,20 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus from typing import Optional, Set from typing_extensions import Self - class DeploymentProvisioningInfoStageBuildAttemptBuildStep(BaseModel): """ DeploymentProvisioningInfoStageBuildAttemptBuildStep - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = ( - DeploymentProvisioningInfoStageStatus.UNKNOWN - ) + status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN messages: Optional[List[StrictStr]] = None started_at: Optional[datetime] = None finished_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "name", - "status", - "messages", - "started_at", - "finished_at", - ] + __properties: ClassVar[List[str]] = ["name", "status", "messages", "started_at", "finished_at"] model_config = ConfigDict( populate_by_name=True, @@ -53,6 +41,7 @@ class DeploymentProvisioningInfoStageBuildAttemptBuildStep(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -77,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -95,17 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentProvisioningInfoStageStatus.UNKNOWN - ), - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at") + }) return _obj + + diff --git a/koyeb/models/deployment_provisioning_info_stage_status.py b/koyeb/api/models/deployment_provisioning_info_stage_status.py similarity index 52% rename from koyeb/models/deployment_provisioning_info_stage_status.py rename to koyeb/api/models/deployment_provisioning_info_stage_status.py index cc598007..38fe449d 100644 --- a/koyeb/models/deployment_provisioning_info_stage_status.py +++ b/koyeb/api/models/deployment_provisioning_info_stage_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,16 @@ class DeploymentProvisioningInfoStageStatus(str, Enum): """ allowed enum values """ - UNKNOWN = "UNKNOWN" - PENDING = "PENDING" - RUNNING = "RUNNING" - FAILED = "FAILED" - COMPLETED = "COMPLETED" - ABORTED = "ABORTED" + UNKNOWN = 'UNKNOWN' + PENDING = 'PENDING' + RUNNING = 'RUNNING' + FAILED = 'FAILED' + COMPLETED = 'COMPLETED' + ABORTED = 'ABORTED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DeploymentProvisioningInfoStageStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/deployment_proxy_port.py b/koyeb/api/models/deployment_proxy_port.py similarity index 75% rename from koyeb/models/deployment_proxy_port.py rename to koyeb/api/models/deployment_proxy_port.py index b29e0093..eb335816 100644 --- a/koyeb/models/deployment_proxy_port.py +++ b/koyeb/api/models/deployment_proxy_port.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.proxy_port_protocol import ProxyPortProtocol +from koyeb.api.models.proxy_port_protocol import ProxyPortProtocol from typing import Optional, Set from typing_extensions import Self - class DeploymentProxyPort(BaseModel): """ DeploymentProxyPort - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None protocol: Optional[ProxyPortProtocol] = ProxyPortProtocol.TCP __properties: ClassVar[List[str]] = ["port", "protocol"] @@ -39,6 +37,7 @@ class DeploymentProxyPort(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,14 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "port": obj.get("port"), - "protocol": ( - obj.get("protocol") - if obj.get("protocol") is not None - else ProxyPortProtocol.TCP - ), - } - ) + _obj = cls.model_validate({ + "port": obj.get("port"), + "protocol": obj.get("protocol") if obj.get("protocol") is not None else ProxyPortProtocol.TCP + }) return _obj + + diff --git a/koyeb/models/deployment_proxy_port_metadata.py b/koyeb/api/models/deployment_proxy_port_metadata.py similarity index 74% rename from koyeb/models/deployment_proxy_port_metadata.py rename to koyeb/api/models/deployment_proxy_port_metadata.py index 6c51ad90..0cef6d39 100644 --- a/koyeb/models/deployment_proxy_port_metadata.py +++ b/koyeb/api/models/deployment_proxy_port_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.proxy_port_protocol import ProxyPortProtocol +from koyeb.api.models.proxy_port_protocol import ProxyPortProtocol from typing import Optional, Set from typing_extensions import Self - class DeploymentProxyPortMetadata(BaseModel): """ DeploymentProxyPortMetadata - """ # noqa: E501 - + """ # noqa: E501 host: Optional[StrictStr] = None public_port: Optional[StrictInt] = None port: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class DeploymentProxyPortMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,16 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "host": obj.get("host"), - "public_port": obj.get("public_port"), - "port": obj.get("port"), - "protocol": ( - obj.get("protocol") - if obj.get("protocol") is not None - else ProxyPortProtocol.TCP - ), - } - ) + _obj = cls.model_validate({ + "host": obj.get("host"), + "public_port": obj.get("public_port"), + "port": obj.get("port"), + "protocol": obj.get("protocol") if obj.get("protocol") is not None else ProxyPortProtocol.TCP + }) return _obj + + diff --git a/koyeb/models/deployment_role.py b/koyeb/api/models/deployment_role.py similarity index 52% rename from koyeb/models/deployment_role.py rename to koyeb/api/models/deployment_role.py index 1d3f5bd2..da8fe3d3 100644 --- a/koyeb/models/deployment_role.py +++ b/koyeb/api/models/deployment_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class DeploymentRole(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - ACTIVE = "ACTIVE" - UPCOMING = "UPCOMING" - CURRENT = "CURRENT" + INVALID = 'INVALID' + ACTIVE = 'ACTIVE' + UPCOMING = 'UPCOMING' + CURRENT = 'CURRENT' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DeploymentRole from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/deployment_route.py b/koyeb/api/models/deployment_route.py similarity index 81% rename from koyeb/models/deployment_route.py rename to koyeb/api/models/deployment_route.py index bba58d67..70c35206 100644 --- a/koyeb/models/deployment_route.py +++ b/koyeb/api/models/deployment_route.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentRoute(BaseModel): """ DeploymentRoute - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None path: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["port", "path"] @@ -38,6 +36,7 @@ class DeploymentRoute(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"port": obj.get("port"), "path": obj.get("path")}) + _obj = cls.model_validate({ + "port": obj.get("port"), + "path": obj.get("path") + }) return _obj + + diff --git a/koyeb/models/deployment_scaling.py b/koyeb/api/models/deployment_scaling.py similarity index 72% rename from koyeb/models/deployment_scaling.py rename to koyeb/api/models/deployment_scaling.py index 9b245e66..a38abdf1 100644 --- a/koyeb/models/deployment_scaling.py +++ b/koyeb/api/models/deployment_scaling.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_scaling_target import DeploymentScalingTarget +from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget from typing import Optional, Set from typing_extensions import Self - class DeploymentScaling(BaseModel): """ DeploymentScaling - """ # noqa: E501 - + """ # noqa: E501 scopes: Optional[List[StrictStr]] = None min: Optional[StrictInt] = None max: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class DeploymentScaling(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_targets in self.targets: if _item_targets: _items.append(_item_targets.to_dict()) - _dict["targets"] = _items + _dict['targets'] = _items return _dict @classmethod @@ -90,19 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "scopes": obj.get("scopes"), - "min": obj.get("min"), - "max": obj.get("max"), - "targets": ( - [ - DeploymentScalingTarget.from_dict(_item) - for _item in obj["targets"] - ] - if obj.get("targets") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "scopes": obj.get("scopes"), + "min": obj.get("min"), + "max": obj.get("max"), + "targets": [DeploymentScalingTarget.from_dict(_item) for _item in obj["targets"]] if obj.get("targets") is not None else None + }) return _obj + + diff --git a/koyeb/api/models/deployment_scaling_target.py b/koyeb/api/models/deployment_scaling_target.py new file mode 100644 index 00000000..9b73bc3f --- /dev/null +++ b/koyeb/api/models/deployment_scaling_target.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU +from koyeb.api.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem +from koyeb.api.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests +from koyeb.api.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond +from koyeb.api.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime +from koyeb.api.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay +from typing import Optional, Set +from typing_extensions import Self + +class DeploymentScalingTarget(BaseModel): + """ + DeploymentScalingTarget + """ # noqa: E501 + average_cpu: Optional[DeploymentScalingTargetAverageCPU] = None + average_mem: Optional[DeploymentScalingTargetAverageMem] = None + requests_per_second: Optional[DeploymentScalingTargetRequestsPerSecond] = None + concurrent_requests: Optional[DeploymentScalingTargetConcurrentRequests] = None + requests_response_time: Optional[DeploymentScalingTargetRequestsResponseTime] = None + sleep_idle_delay: Optional[DeploymentScalingTargetSleepIdleDelay] = None + __properties: ClassVar[List[str]] = ["average_cpu", "average_mem", "requests_per_second", "concurrent_requests", "requests_response_time", "sleep_idle_delay"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeploymentScalingTarget from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_cpu + if self.average_cpu: + _dict['average_cpu'] = self.average_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of average_mem + if self.average_mem: + _dict['average_mem'] = self.average_mem.to_dict() + # override the default output from pydantic by calling `to_dict()` of requests_per_second + if self.requests_per_second: + _dict['requests_per_second'] = self.requests_per_second.to_dict() + # override the default output from pydantic by calling `to_dict()` of concurrent_requests + if self.concurrent_requests: + _dict['concurrent_requests'] = self.concurrent_requests.to_dict() + # override the default output from pydantic by calling `to_dict()` of requests_response_time + if self.requests_response_time: + _dict['requests_response_time'] = self.requests_response_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of sleep_idle_delay + if self.sleep_idle_delay: + _dict['sleep_idle_delay'] = self.sleep_idle_delay.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeploymentScalingTarget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "average_cpu": DeploymentScalingTargetAverageCPU.from_dict(obj["average_cpu"]) if obj.get("average_cpu") is not None else None, + "average_mem": DeploymentScalingTargetAverageMem.from_dict(obj["average_mem"]) if obj.get("average_mem") is not None else None, + "requests_per_second": DeploymentScalingTargetRequestsPerSecond.from_dict(obj["requests_per_second"]) if obj.get("requests_per_second") is not None else None, + "concurrent_requests": DeploymentScalingTargetConcurrentRequests.from_dict(obj["concurrent_requests"]) if obj.get("concurrent_requests") is not None else None, + "requests_response_time": DeploymentScalingTargetRequestsResponseTime.from_dict(obj["requests_response_time"]) if obj.get("requests_response_time") is not None else None, + "sleep_idle_delay": DeploymentScalingTargetSleepIdleDelay.from_dict(obj["sleep_idle_delay"]) if obj.get("sleep_idle_delay") is not None else None + }) + return _obj + + diff --git a/koyeb/models/deployment_scaling_target_average_cpu.py b/koyeb/api/models/deployment_scaling_target_average_cpu.py similarity index 82% rename from koyeb/models/deployment_scaling_target_average_cpu.py rename to koyeb/api/models/deployment_scaling_target_average_cpu.py index 3b2648b4..825f5d53 100644 --- a/koyeb/models/deployment_scaling_target_average_cpu.py +++ b/koyeb/api/models/deployment_scaling_target_average_cpu.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentScalingTargetAverageCPU(BaseModel): """ DeploymentScalingTargetAverageCPU - """ # noqa: E501 - + """ # noqa: E501 value: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["value"] @@ -37,6 +35,7 @@ class DeploymentScalingTargetAverageCPU(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"value": obj.get("value")}) + _obj = cls.model_validate({ + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/deployment_scaling_target_average_mem.py b/koyeb/api/models/deployment_scaling_target_average_mem.py similarity index 82% rename from koyeb/models/deployment_scaling_target_average_mem.py rename to koyeb/api/models/deployment_scaling_target_average_mem.py index 8bcef090..661d839f 100644 --- a/koyeb/models/deployment_scaling_target_average_mem.py +++ b/koyeb/api/models/deployment_scaling_target_average_mem.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentScalingTargetAverageMem(BaseModel): """ DeploymentScalingTargetAverageMem - """ # noqa: E501 - + """ # noqa: E501 value: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["value"] @@ -37,6 +35,7 @@ class DeploymentScalingTargetAverageMem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"value": obj.get("value")}) + _obj = cls.model_validate({ + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/deployment_scaling_target_concurrent_requests.py b/koyeb/api/models/deployment_scaling_target_concurrent_requests.py similarity index 82% rename from koyeb/models/deployment_scaling_target_concurrent_requests.py rename to koyeb/api/models/deployment_scaling_target_concurrent_requests.py index 12897b01..ba025927 100644 --- a/koyeb/models/deployment_scaling_target_concurrent_requests.py +++ b/koyeb/api/models/deployment_scaling_target_concurrent_requests.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentScalingTargetConcurrentRequests(BaseModel): """ DeploymentScalingTargetConcurrentRequests - """ # noqa: E501 - + """ # noqa: E501 value: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["value"] @@ -37,6 +35,7 @@ class DeploymentScalingTargetConcurrentRequests(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"value": obj.get("value")}) + _obj = cls.model_validate({ + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/deployment_scaling_target_requests_per_second.py b/koyeb/api/models/deployment_scaling_target_requests_per_second.py similarity index 82% rename from koyeb/models/deployment_scaling_target_requests_per_second.py rename to koyeb/api/models/deployment_scaling_target_requests_per_second.py index 00166100..ee94d13d 100644 --- a/koyeb/models/deployment_scaling_target_requests_per_second.py +++ b/koyeb/api/models/deployment_scaling_target_requests_per_second.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentScalingTargetRequestsPerSecond(BaseModel): """ DeploymentScalingTargetRequestsPerSecond - """ # noqa: E501 - + """ # noqa: E501 value: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["value"] @@ -37,6 +35,7 @@ class DeploymentScalingTargetRequestsPerSecond(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"value": obj.get("value")}) + _obj = cls.model_validate({ + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/deployment_scaling_target_requests_response_time.py b/koyeb/api/models/deployment_scaling_target_requests_response_time.py similarity index 75% rename from koyeb/models/deployment_scaling_target_requests_response_time.py rename to koyeb/api/models/deployment_scaling_target_requests_response_time.py index 5777a25a..1dbbe1c8 100644 --- a/koyeb/models/deployment_scaling_target_requests_response_time.py +++ b/koyeb/api/models/deployment_scaling_target_requests_response_time.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,12 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentScalingTargetRequestsResponseTime(BaseModel): """ DeploymentScalingTargetRequestsResponseTime - """ # noqa: E501 - + """ # noqa: E501 value: Optional[StrictInt] = None - quantile: Optional[StrictInt] = Field( - default=None, - description="The quantile to use for autoscaling. For example, set to 95 to use the 95th percentile (p95) for autoscaling. Valid values are between 0 and 100.", - ) + quantile: Optional[StrictInt] = Field(default=None, description="The quantile to use for autoscaling. For example, set to 95 to use the 95th percentile (p95) for autoscaling. Valid values are between 0 and 100.") __properties: ClassVar[List[str]] = ["value", "quantile"] model_config = ConfigDict( @@ -41,6 +36,7 @@ class DeploymentScalingTargetRequestsResponseTime(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"value": obj.get("value"), "quantile": obj.get("quantile")} - ) + _obj = cls.model_validate({ + "value": obj.get("value"), + "quantile": obj.get("quantile") + }) return _obj + + diff --git a/koyeb/models/deployment_scaling_target_sleep_idle_delay.py b/koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py similarity index 61% rename from koyeb/models/deployment_scaling_target_sleep_idle_delay.py rename to koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py index ede98372..5c924be5 100644 --- a/koyeb/models/deployment_scaling_target_sleep_idle_delay.py +++ b/koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,29 +22,14 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentScalingTargetSleepIdleDelay(BaseModel): """ DeploymentScalingTargetSleepIdleDelay - """ # noqa: E501 - - value: Optional[StrictInt] = Field( - default=None, - description="DEPRECATED: use deep_sleep_value instead. Delay in seconds after which a service which received 0 request is put to deep sleep.", - ) - deep_sleep_value: Optional[StrictInt] = Field( - default=None, - description="Delay in seconds after which a service which received 0 request is put to deep sleep.", - ) - light_sleep_value: Optional[StrictInt] = Field( - default=None, - description="Delay in seconds after which a service which received 0 request is put to light sleep.", - ) - __properties: ClassVar[List[str]] = [ - "value", - "deep_sleep_value", - "light_sleep_value", - ] + """ # noqa: E501 + value: Optional[StrictInt] = Field(default=None, description="DEPRECATED: use deep_sleep_value instead. Delay in seconds after which a service which received 0 request is put to deep sleep.") + deep_sleep_value: Optional[StrictInt] = Field(default=None, description="Delay in seconds after which a service which received 0 request is put to deep sleep.") + light_sleep_value: Optional[StrictInt] = Field(default=None, description="Delay in seconds after which a service which received 0 request is put to light sleep.") + __properties: ClassVar[List[str]] = ["value", "deep_sleep_value", "light_sleep_value"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +37,7 @@ class DeploymentScalingTargetSleepIdleDelay(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "value": obj.get("value"), - "deep_sleep_value": obj.get("deep_sleep_value"), - "light_sleep_value": obj.get("light_sleep_value"), - } - ) + _obj = cls.model_validate({ + "value": obj.get("value"), + "deep_sleep_value": obj.get("deep_sleep_value"), + "light_sleep_value": obj.get("light_sleep_value") + }) return _obj + + diff --git a/koyeb/api/models/deployment_status.py b/koyeb/api/models/deployment_status.py new file mode 100644 index 00000000..ce4765e8 --- /dev/null +++ b/koyeb/api/models/deployment_status.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class DeploymentStatus(str, Enum): + """ + DeploymentStatus + """ + + """ + allowed enum values + """ + PENDING = 'PENDING' + PROVISIONING = 'PROVISIONING' + SCHEDULED = 'SCHEDULED' + CANCELING = 'CANCELING' + CANCELED = 'CANCELED' + ALLOCATING = 'ALLOCATING' + STARTING = 'STARTING' + HEALTHY = 'HEALTHY' + DEGRADED = 'DEGRADED' + UNHEALTHY = 'UNHEALTHY' + STOPPING = 'STOPPING' + STOPPED = 'STOPPED' + ERRORING = 'ERRORING' + ERROR = 'ERROR' + STASHED = 'STASHED' + SLEEPING = 'SLEEPING' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DeploymentStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/deployment_strategy.py b/koyeb/api/models/deployment_strategy.py similarity index 71% rename from koyeb/models/deployment_strategy.py rename to koyeb/api/models/deployment_strategy.py index 9cd19c4e..f392a041 100644 --- a/koyeb/models/deployment_strategy.py +++ b/koyeb/api/models/deployment_strategy.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,19 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_strategy_type import DeploymentStrategyType +from koyeb.api.models.deployment_strategy_type import DeploymentStrategyType from typing import Optional, Set from typing_extensions import Self - class DeploymentStrategy(BaseModel): """ DeploymentStrategy - """ # noqa: E501 - - type: Optional[DeploymentStrategyType] = ( - DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID - ) + """ # noqa: E501 + type: Optional[DeploymentStrategyType] = DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( @@ -40,6 +36,7 @@ class DeploymentStrategy(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,13 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "type": ( - obj.get("type") - if obj.get("type") is not None - else DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID - ) - } - ) + _obj = cls.model_validate({ + "type": obj.get("type") if obj.get("type") is not None else DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID + }) return _obj + + diff --git a/koyeb/api/models/deployment_strategy_type.py b/koyeb/api/models/deployment_strategy_type.py new file mode 100644 index 00000000..62093fdd --- /dev/null +++ b/koyeb/api/models/deployment_strategy_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class DeploymentStrategyType(str, Enum): + """ + - DEPLOYMENT_STRATEGY_TYPE_INVALID: Invalid / Zero value. - DEPLOYMENT_STRATEGY_TYPE_CANARY: Use canary strategy. - DEPLOYMENT_STRATEGY_TYPE_ROLLING: Use rolling strategy. - DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN: Use blue green strategy. - DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE: Use immediate strategy. + """ + + """ + allowed enum values + """ + DEPLOYMENT_STRATEGY_TYPE_INVALID = 'DEPLOYMENT_STRATEGY_TYPE_INVALID' + DEPLOYMENT_STRATEGY_TYPE_CANARY = 'DEPLOYMENT_STRATEGY_TYPE_CANARY' + DEPLOYMENT_STRATEGY_TYPE_ROLLING = 'DEPLOYMENT_STRATEGY_TYPE_ROLLING' + DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN = 'DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN' + DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE = 'DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DeploymentStrategyType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/deployment_volume.py b/koyeb/api/models/deployment_volume.py similarity index 78% rename from koyeb/models/deployment_volume.py rename to koyeb/api/models/deployment_volume.py index b90422ac..b836490b 100644 --- a/koyeb/models/deployment_volume.py +++ b/koyeb/api/models/deployment_volume.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DeploymentVolume(BaseModel): """ DeploymentVolume - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None path: Optional[StrictStr] = None replica_index: Optional[StrictInt] = None @@ -40,6 +38,7 @@ class DeploymentVolume(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "path": obj.get("path"), - "replica_index": obj.get("replica_index"), - "scopes": obj.get("scopes"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "path": obj.get("path"), + "replica_index": obj.get("replica_index"), + "scopes": obj.get("scopes") + }) return _obj + + diff --git a/koyeb/models/desired_deployment.py b/koyeb/api/models/desired_deployment.py similarity index 76% rename from koyeb/models/desired_deployment.py rename to koyeb/api/models/desired_deployment.py index ca6725a5..78f21270 100644 --- a/koyeb/models/desired_deployment.py +++ b/koyeb/api/models/desired_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.desired_deployment_group import DesiredDeploymentGroup +from koyeb.api.models.desired_deployment_group import DesiredDeploymentGroup from typing import Optional, Set from typing_extensions import Self - class DesiredDeployment(BaseModel): """ DesiredDeployment - """ # noqa: E501 - + """ # noqa: E501 groups: Optional[List[DesiredDeploymentGroup]] = None __properties: ClassVar[List[str]] = ["groups"] @@ -38,6 +36,7 @@ class DesiredDeployment(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_groups in self.groups: if _item_groups: _items.append(_item_groups.to_dict()) - _dict["groups"] = _items + _dict['groups'] = _items return _dict @classmethod @@ -87,13 +87,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "groups": ( - [DesiredDeploymentGroup.from_dict(_item) for _item in obj["groups"]] - if obj.get("groups") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "groups": [DesiredDeploymentGroup.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None + }) return _obj + + diff --git a/koyeb/models/desired_deployment_group.py b/koyeb/api/models/desired_deployment_group.py similarity index 80% rename from koyeb/models/desired_deployment_group.py rename to koyeb/api/models/desired_deployment_group.py index 40e5a55e..d4a0772e 100644 --- a/koyeb/models/desired_deployment_group.py +++ b/koyeb/api/models/desired_deployment_group.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DesiredDeploymentGroup(BaseModel): """ DesiredDeploymentGroup - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None deployment_ids: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["name", "deployment_ids"] @@ -38,6 +36,7 @@ class DesiredDeploymentGroup(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"name": obj.get("name"), "deployment_ids": obj.get("deployment_ids")} - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "deployment_ids": obj.get("deployment_ids") + }) return _obj + + diff --git a/koyeb/models/digital_ocean_registry_configuration.py b/koyeb/api/models/digital_ocean_registry_configuration.py similarity index 81% rename from koyeb/models/digital_ocean_registry_configuration.py rename to koyeb/api/models/digital_ocean_registry_configuration.py index 03895931..1d1d37aa 100644 --- a/koyeb/models/digital_ocean_registry_configuration.py +++ b/koyeb/api/models/digital_ocean_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DigitalOceanRegistryConfiguration(BaseModel): """ DigitalOceanRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 username: Optional[StrictStr] = None password: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["username", "password"] @@ -38,6 +36,7 @@ class DigitalOceanRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"username": obj.get("username"), "password": obj.get("password")} - ) + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/discourse_auth_reply.py b/koyeb/api/models/discourse_auth_reply.py similarity index 81% rename from koyeb/models/discourse_auth_reply.py rename to koyeb/api/models/discourse_auth_reply.py index a7358113..af10eeb2 100644 --- a/koyeb/models/discourse_auth_reply.py +++ b/koyeb/api/models/discourse_auth_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DiscourseAuthReply(BaseModel): """ DiscourseAuthReply - """ # noqa: E501 - + """ # noqa: E501 sso: Optional[StrictStr] = None sig: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["sso", "sig"] @@ -38,6 +36,7 @@ class DiscourseAuthReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"sso": obj.get("sso"), "sig": obj.get("sig")}) + _obj = cls.model_validate({ + "sso": obj.get("sso"), + "sig": obj.get("sig") + }) return _obj + + diff --git a/koyeb/models/discourse_auth_request.py b/koyeb/api/models/discourse_auth_request.py similarity index 81% rename from koyeb/models/discourse_auth_request.py rename to koyeb/api/models/discourse_auth_request.py index 7dc95273..ece6c503 100644 --- a/koyeb/models/discourse_auth_request.py +++ b/koyeb/api/models/discourse_auth_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DiscourseAuthRequest(BaseModel): """ DiscourseAuthRequest - """ # noqa: E501 - + """ # noqa: E501 payload: Optional[StrictStr] = None sig: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["payload", "sig"] @@ -38,6 +36,7 @@ class DiscourseAuthRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"payload": obj.get("payload"), "sig": obj.get("sig")} - ) + _obj = cls.model_validate({ + "payload": obj.get("payload"), + "sig": obj.get("sig") + }) return _obj + + diff --git a/koyeb/models/docker_builder.py b/koyeb/api/models/docker_builder.py similarity index 71% rename from koyeb/models/docker_builder.py rename to koyeb/api/models/docker_builder.py index 544abc04..64388dde 100644 --- a/koyeb/models/docker_builder.py +++ b/koyeb/api/models/docker_builder.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,26 +22,17 @@ from typing import Optional, Set from typing_extensions import Self - class DockerBuilder(BaseModel): """ DockerBuilder - """ # noqa: E501 - + """ # noqa: E501 dockerfile: Optional[StrictStr] = None entrypoint: Optional[List[StrictStr]] = None command: Optional[StrictStr] = None args: Optional[List[StrictStr]] = None target: Optional[StrictStr] = None privileged: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "dockerfile", - "entrypoint", - "command", - "args", - "target", - "privileged", - ] + __properties: ClassVar[List[str]] = ["dockerfile", "entrypoint", "command", "args", "target", "privileged"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +40,7 @@ class DockerBuilder(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,14 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "dockerfile": obj.get("dockerfile"), - "entrypoint": obj.get("entrypoint"), - "command": obj.get("command"), - "args": obj.get("args"), - "target": obj.get("target"), - "privileged": obj.get("privileged"), - } - ) + _obj = cls.model_validate({ + "dockerfile": obj.get("dockerfile"), + "entrypoint": obj.get("entrypoint"), + "command": obj.get("command"), + "args": obj.get("args"), + "target": obj.get("target"), + "privileged": obj.get("privileged") + }) return _obj + + diff --git a/koyeb/models/docker_hub_registry_configuration.py b/koyeb/api/models/docker_hub_registry_configuration.py similarity index 81% rename from koyeb/models/docker_hub_registry_configuration.py rename to koyeb/api/models/docker_hub_registry_configuration.py index 305a0f1e..3dfaafed 100644 --- a/koyeb/models/docker_hub_registry_configuration.py +++ b/koyeb/api/models/docker_hub_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DockerHubRegistryConfiguration(BaseModel): """ DockerHubRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 username: Optional[StrictStr] = None password: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["username", "password"] @@ -38,6 +36,7 @@ class DockerHubRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"username": obj.get("username"), "password": obj.get("password")} - ) + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/docker_source.py b/koyeb/api/models/docker_source.py similarity index 71% rename from koyeb/models/docker_source.py rename to koyeb/api/models/docker_source.py index b3ca771e..f70fd015 100644 --- a/koyeb/models/docker_source.py +++ b/koyeb/api/models/docker_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,26 +22,17 @@ from typing import Optional, Set from typing_extensions import Self - class DockerSource(BaseModel): """ DockerSource - """ # noqa: E501 - + """ # noqa: E501 image: Optional[StrictStr] = None command: Optional[StrictStr] = None args: Optional[List[StrictStr]] = None image_registry_secret: Optional[StrictStr] = None entrypoint: Optional[List[StrictStr]] = None privileged: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "image", - "command", - "args", - "image_registry_secret", - "entrypoint", - "privileged", - ] + __properties: ClassVar[List[str]] = ["image", "command", "args", "image_registry_secret", "entrypoint", "privileged"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +40,7 @@ class DockerSource(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,14 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "image": obj.get("image"), - "command": obj.get("command"), - "args": obj.get("args"), - "image_registry_secret": obj.get("image_registry_secret"), - "entrypoint": obj.get("entrypoint"), - "privileged": obj.get("privileged"), - } - ) + _obj = cls.model_validate({ + "image": obj.get("image"), + "command": obj.get("command"), + "args": obj.get("args"), + "image_registry_secret": obj.get("image_registry_secret"), + "entrypoint": obj.get("entrypoint"), + "privileged": obj.get("privileged") + }) return _obj + + diff --git a/koyeb/models/domain.py b/koyeb/api/models/domain.py similarity index 55% rename from koyeb/models/domain.py rename to koyeb/api/models/domain.py index f93dbd31..2d24d5e7 100644 --- a/koyeb/models/domain.py +++ b/koyeb/api/models/domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,16 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb -from koyeb.models.domain_status import DomainStatus -from koyeb.models.domain_type import DomainType +from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb +from koyeb.api.models.domain_status import DomainStatus +from koyeb.api.models.domain_type import DomainType from typing import Optional, Set from typing_extensions import Self - class Domain(BaseModel): """ Domain - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None name: Optional[StrictStr] = None @@ -47,23 +45,7 @@ class Domain(BaseModel): version: Optional[StrictStr] = None cloudflare: Optional[Dict[str, Any]] = None koyeb: Optional[DomainLoadBalancerKoyeb] = None - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "name", - "created_at", - "updated_at", - "status", - "type", - "app_id", - "deployment_group", - "verified_at", - "intended_cname", - "messages", - "version", - "cloudflare", - "koyeb", - ] + __properties: ClassVar[List[str]] = ["id", "organization_id", "name", "created_at", "updated_at", "status", "type", "app_id", "deployment_group", "verified_at", "intended_cname", "messages", "version", "cloudflare", "koyeb"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +53,7 @@ class Domain(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -95,7 +78,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -104,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of koyeb if self.koyeb: - _dict["koyeb"] = self.koyeb.to_dict() + _dict['koyeb'] = self.koyeb.to_dict() return _dict @classmethod @@ -116,35 +100,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "name": obj.get("name"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DomainStatus.PENDING - ), - "type": ( - obj.get("type") - if obj.get("type") is not None - else DomainType.AUTOASSIGNED - ), - "app_id": obj.get("app_id"), - "deployment_group": obj.get("deployment_group"), - "verified_at": obj.get("verified_at"), - "intended_cname": obj.get("intended_cname"), - "messages": obj.get("messages"), - "version": obj.get("version"), - "cloudflare": obj.get("cloudflare"), - "koyeb": ( - DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) - if obj.get("koyeb") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "name": obj.get("name"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "status": obj.get("status") if obj.get("status") is not None else DomainStatus.PENDING, + "type": obj.get("type") if obj.get("type") is not None else DomainType.AUTOASSIGNED, + "app_id": obj.get("app_id"), + "deployment_group": obj.get("deployment_group"), + "verified_at": obj.get("verified_at"), + "intended_cname": obj.get("intended_cname"), + "messages": obj.get("messages"), + "version": obj.get("version"), + "cloudflare": obj.get("cloudflare"), + "koyeb": DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) if obj.get("koyeb") is not None else None + }) return _obj + + diff --git a/koyeb/models/domain_load_balancer_koyeb.py b/koyeb/api/models/domain_load_balancer_koyeb.py similarity index 81% rename from koyeb/models/domain_load_balancer_koyeb.py rename to koyeb/api/models/domain_load_balancer_koyeb.py index 034c4d1d..918fda8a 100644 --- a/koyeb/models/domain_load_balancer_koyeb.py +++ b/koyeb/api/models/domain_load_balancer_koyeb.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DomainLoadBalancerKoyeb(BaseModel): """ DomainLoadBalancerKoyeb - """ # noqa: E501 - + """ # noqa: E501 request_timeout_seconds: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["request_timeout_seconds"] @@ -37,6 +35,7 @@ class DomainLoadBalancerKoyeb(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"request_timeout_seconds": obj.get("request_timeout_seconds")} - ) + _obj = cls.model_validate({ + "request_timeout_seconds": obj.get("request_timeout_seconds") + }) return _obj + + diff --git a/koyeb/models/domain_load_balancer_quotas.py b/koyeb/api/models/domain_load_balancer_quotas.py similarity index 81% rename from koyeb/models/domain_load_balancer_quotas.py rename to koyeb/api/models/domain_load_balancer_quotas.py index 09a2fd89..1a7f943f 100644 --- a/koyeb/models/domain_load_balancer_quotas.py +++ b/koyeb/api/models/domain_load_balancer_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DomainLoadBalancerQuotas(BaseModel): """ DomainLoadBalancerQuotas - """ # noqa: E501 - + """ # noqa: E501 max_koyeb: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["max_koyeb"] @@ -37,6 +35,7 @@ class DomainLoadBalancerQuotas(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"max_koyeb": obj.get("max_koyeb")}) + _obj = cls.model_validate({ + "max_koyeb": obj.get("max_koyeb") + }) return _obj + + diff --git a/koyeb/models/domain_status.py b/koyeb/api/models/domain_status.py similarity index 50% rename from koyeb/models/domain_status.py rename to koyeb/api/models/domain_status.py index e05ed638..1f441933 100644 --- a/koyeb/models/domain_status.py +++ b/koyeb/api/models/domain_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,15 @@ class DomainStatus(str, Enum): """ allowed enum values """ - PENDING = "PENDING" - ACTIVE = "ACTIVE" - ERROR = "ERROR" - DELETING = "DELETING" - DELETED = "DELETED" + PENDING = 'PENDING' + ACTIVE = 'ACTIVE' + ERROR = 'ERROR' + DELETING = 'DELETING' + DELETED = 'DELETED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DomainStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/domain_type.py b/koyeb/api/models/domain_type.py similarity index 54% rename from koyeb/models/domain_type.py rename to koyeb/api/models/domain_type.py index f76c076e..6ea6ca50 100644 --- a/koyeb/models/domain_type.py +++ b/koyeb/api/models/domain_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ class DomainType(str, Enum): """ allowed enum values """ - AUTOASSIGNED = "AUTOASSIGNED" - CUSTOM = "CUSTOM" + AUTOASSIGNED = 'AUTOASSIGNED' + CUSTOM = 'CUSTOM' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DomainType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/domains_summary.py b/koyeb/api/models/domains_summary.py similarity index 80% rename from koyeb/models/domains_summary.py rename to koyeb/api/models/domains_summary.py index 6305158d..8da36c7a 100644 --- a/koyeb/models/domains_summary.py +++ b/koyeb/api/models/domains_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class DomainsSummary(BaseModel): """ DomainsSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None by_status: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "by_status"] @@ -38,6 +36,7 @@ class DomainsSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"total": obj.get("total"), "by_status": obj.get("by_status")} - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "by_status": obj.get("by_status") + }) return _obj + + diff --git a/koyeb/models/env.py b/koyeb/api/models/env.py similarity index 79% rename from koyeb/models/env.py rename to koyeb/api/models/env.py index 9ec5425c..439499d9 100644 --- a/koyeb/models/env.py +++ b/koyeb/api/models/env.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Env(BaseModel): """ Env - """ # noqa: E501 - + """ # noqa: E501 key: Optional[StrictStr] = None value: Optional[StrictStr] = None secret: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class Env(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "key": obj.get("key"), - "value": obj.get("value"), - "secret": obj.get("secret"), - } - ) + _obj = cls.model_validate({ + "key": obj.get("key"), + "value": obj.get("value"), + "secret": obj.get("secret") + }) return _obj + + diff --git a/koyeb/models/error.py b/koyeb/api/models/error.py similarity index 79% rename from koyeb/models/error.py rename to koyeb/api/models/error.py index 18c60e6a..723a0833 100644 --- a/koyeb/models/error.py +++ b/koyeb/api/models/error.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Error(BaseModel): """ Error - """ # noqa: E501 - + """ # noqa: E501 status: Optional[StrictInt] = None code: Optional[StrictStr] = None message: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class Error(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "status": obj.get("status"), - "code": obj.get("code"), - "message": obj.get("message"), - } - ) + _obj = cls.model_validate({ + "status": obj.get("status"), + "code": obj.get("code"), + "message": obj.get("message") + }) return _obj + + diff --git a/koyeb/models/error_field.py b/koyeb/api/models/error_field.py similarity index 80% rename from koyeb/models/error_field.py rename to koyeb/api/models/error_field.py index 776fa9bf..49123951 100644 --- a/koyeb/models/error_field.py +++ b/koyeb/api/models/error_field.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ErrorField(BaseModel): """ ErrorField - """ # noqa: E501 - + """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") description: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["field", "description"] @@ -38,6 +36,7 @@ class ErrorField(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"field": obj.get("field"), "description": obj.get("description")} - ) + _obj = cls.model_validate({ + "field": obj.get("field"), + "description": obj.get("description") + }) return _obj + + diff --git a/koyeb/models/error_with_fields.py b/koyeb/api/models/error_with_fields.py similarity index 74% rename from koyeb/models/error_with_fields.py rename to koyeb/api/models/error_with_fields.py index 3cacf4eb..4a3c574e 100644 --- a/koyeb/models/error_with_fields.py +++ b/koyeb/api/models/error_with_fields.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.error_field import ErrorField +from koyeb.api.models.error_field import ErrorField from typing import Optional, Set from typing_extensions import Self - class ErrorWithFields(BaseModel): """ ErrorWithFields - """ # noqa: E501 - + """ # noqa: E501 status: Optional[StrictInt] = None code: Optional[StrictStr] = None message: Optional[StrictStr] = None @@ -41,6 +39,7 @@ class ErrorWithFields(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_fields in self.fields: if _item_fields: _items.append(_item_fields.to_dict()) - _dict["fields"] = _items + _dict['fields'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "status": obj.get("status"), - "code": obj.get("code"), - "message": obj.get("message"), - "fields": ( - [ErrorField.from_dict(_item) for _item in obj["fields"]] - if obj.get("fields") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "status": obj.get("status"), + "code": obj.get("code"), + "message": obj.get("message"), + "fields": [ErrorField.from_dict(_item) for _item in obj["fields"]] if obj.get("fields") is not None else None + }) return _obj + + diff --git a/koyeb/models/exec_command_io.py b/koyeb/api/models/exec_command_io.py similarity index 68% rename from koyeb/models/exec_command_io.py rename to koyeb/api/models/exec_command_io.py index de37cbec..4d7f0155 100644 --- a/koyeb/models/exec_command_io.py +++ b/koyeb/api/models/exec_command_io.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,33 +23,22 @@ from typing import Optional, Set from typing_extensions import Self - class ExecCommandIO(BaseModel): """ ExecCommandIO - """ # noqa: E501 - - data: Optional[ - Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]] - ] = Field(default=None, description="Data is base64 encoded") - close: Optional[StrictBool] = Field( - default=None, description="Indicate last data frame" - ) + """ # noqa: E501 + data: Optional[Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]]] = Field(default=None, description="Data is base64 encoded") + close: Optional[StrictBool] = Field(default=None, description="Indicate last data frame") __properties: ClassVar[List[str]] = ["data", "close"] - @field_validator("data") + @field_validator('data') def data_validate_regular_expression(cls, value): """Validates the regular expression""" if value is None: return value - if not re.match( - r"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$", - value, - ): - raise ValueError( - r"must validate the regular expression /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/" - ) + if not re.match(r"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$", value): + raise ValueError(r"must validate the regular expression /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/") return value model_config = ConfigDict( @@ -58,6 +47,7 @@ def data_validate_regular_expression(cls, value): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -100,5 +91,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data"), "close": obj.get("close")}) + _obj = cls.model_validate({ + "data": obj.get("data"), + "close": obj.get("close") + }) return _obj + + diff --git a/koyeb/models/exec_command_reply.py b/koyeb/api/models/exec_command_reply.py similarity index 70% rename from koyeb/models/exec_command_reply.py rename to koyeb/api/models/exec_command_reply.py index ae82c96b..913a7305 100644 --- a/koyeb/models/exec_command_reply.py +++ b/koyeb/api/models/exec_command_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.exec_command_io import ExecCommandIO +from koyeb.api.models.exec_command_io import ExecCommandIO from typing import Optional, Set from typing_extensions import Self - class ExecCommandReply(BaseModel): """ ExecCommandReply - """ # noqa: E501 - + """ # noqa: E501 stdout: Optional[ExecCommandIO] = None stderr: Optional[ExecCommandIO] = None exited: Optional[StrictBool] = None @@ -41,6 +39,7 @@ class ExecCommandReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of stdout if self.stdout: - _dict["stdout"] = self.stdout.to_dict() + _dict['stdout'] = self.stdout.to_dict() # override the default output from pydantic by calling `to_dict()` of stderr if self.stderr: - _dict["stderr"] = self.stderr.to_dict() + _dict['stderr'] = self.stderr.to_dict() return _dict @classmethod @@ -89,20 +89,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "stdout": ( - ExecCommandIO.from_dict(obj["stdout"]) - if obj.get("stdout") is not None - else None - ), - "stderr": ( - ExecCommandIO.from_dict(obj["stderr"]) - if obj.get("stderr") is not None - else None - ), - "exited": obj.get("exited"), - "exit_code": obj.get("exit_code"), - } - ) + _obj = cls.model_validate({ + "stdout": ExecCommandIO.from_dict(obj["stdout"]) if obj.get("stdout") is not None else None, + "stderr": ExecCommandIO.from_dict(obj["stderr"]) if obj.get("stderr") is not None else None, + "exited": obj.get("exited"), + "exit_code": obj.get("exit_code") + }) return _obj + + diff --git a/koyeb/models/exec_command_request_body.py b/koyeb/api/models/exec_command_request_body.py similarity index 61% rename from koyeb/models/exec_command_request_body.py rename to koyeb/api/models/exec_command_request_body.py index 8ca896eb..b56fc3c0 100644 --- a/koyeb/models/exec_command_request_body.py +++ b/koyeb/api/models/exec_command_request_body.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,29 +19,19 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.exec_command_io import ExecCommandIO -from koyeb.models.exec_command_request_terminal_size import ( - ExecCommandRequestTerminalSize, -) +from koyeb.api.models.exec_command_io import ExecCommandIO +from koyeb.api.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize from typing import Optional, Set from typing_extensions import Self - class ExecCommandRequestBody(BaseModel): """ ExecCommandRequestBody - """ # noqa: E501 - - command: Optional[List[StrictStr]] = Field( - default=None, description="Command to exec. Mandatory in the first frame sent" - ) + """ # noqa: E501 + command: Optional[List[StrictStr]] = Field(default=None, description="Command to exec. Mandatory in the first frame sent") tty_size: Optional[ExecCommandRequestTerminalSize] = None stdin: Optional[ExecCommandIO] = None - disable_tty: Optional[StrictBool] = Field( - default=None, - description="Disable TTY. It's enough to specify it in the first frame", - alias="disableTty", - ) + disable_tty: Optional[StrictBool] = Field(default=None, description="Disable TTY. It's enough to specify it in the first frame", alias="disableTty") __properties: ClassVar[List[str]] = ["command", "tty_size", "stdin", "disableTty"] model_config = ConfigDict( @@ -50,6 +40,7 @@ class ExecCommandRequestBody(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -74,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,10 +75,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of tty_size if self.tty_size: - _dict["tty_size"] = self.tty_size.to_dict() + _dict['tty_size'] = self.tty_size.to_dict() # override the default output from pydantic by calling `to_dict()` of stdin if self.stdin: - _dict["stdin"] = self.stdin.to_dict() + _dict['stdin'] = self.stdin.to_dict() return _dict @classmethod @@ -98,20 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "command": obj.get("command"), - "tty_size": ( - ExecCommandRequestTerminalSize.from_dict(obj["tty_size"]) - if obj.get("tty_size") is not None - else None - ), - "stdin": ( - ExecCommandIO.from_dict(obj["stdin"]) - if obj.get("stdin") is not None - else None - ), - "disableTty": obj.get("disableTty"), - } - ) + _obj = cls.model_validate({ + "command": obj.get("command"), + "tty_size": ExecCommandRequestTerminalSize.from_dict(obj["tty_size"]) if obj.get("tty_size") is not None else None, + "stdin": ExecCommandIO.from_dict(obj["stdin"]) if obj.get("stdin") is not None else None, + "disableTty": obj.get("disableTty") + }) return _obj + + diff --git a/koyeb/models/exec_command_request_id_type.py b/koyeb/api/models/exec_command_request_id_type.py similarity index 54% rename from koyeb/models/exec_command_request_id_type.py rename to koyeb/api/models/exec_command_request_id_type.py index c7e45305..9893c9dc 100644 --- a/koyeb/models/exec_command_request_id_type.py +++ b/koyeb/api/models/exec_command_request_id_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class ExecCommandRequestIdType(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - INSTANCE_ID = "INSTANCE_ID" - SERVICE_ID = "SERVICE_ID" + INVALID = 'INVALID' + INSTANCE_ID = 'INSTANCE_ID' + SERVICE_ID = 'SERVICE_ID' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ExecCommandRequestIdType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/exec_command_request_terminal_size.py b/koyeb/api/models/exec_command_request_terminal_size.py similarity index 81% rename from koyeb/models/exec_command_request_terminal_size.py rename to koyeb/api/models/exec_command_request_terminal_size.py index 2b634a0d..4b65f553 100644 --- a/koyeb/models/exec_command_request_terminal_size.py +++ b/koyeb/api/models/exec_command_request_terminal_size.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ExecCommandRequestTerminalSize(BaseModel): """ ExecCommandRequestTerminalSize - """ # noqa: E501 - + """ # noqa: E501 height: Optional[StrictInt] = None width: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["height", "width"] @@ -38,6 +36,7 @@ class ExecCommandRequestTerminalSize(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"height": obj.get("height"), "width": obj.get("width")} - ) + _obj = cls.model_validate({ + "height": obj.get("height"), + "width": obj.get("width") + }) return _obj + + diff --git a/koyeb/models/gcp_container_registry_configuration.py b/koyeb/api/models/gcp_container_registry_configuration.py similarity index 81% rename from koyeb/models/gcp_container_registry_configuration.py rename to koyeb/api/models/gcp_container_registry_configuration.py index 4341c857..a5195a6f 100644 --- a/koyeb/models/gcp_container_registry_configuration.py +++ b/koyeb/api/models/gcp_container_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GCPContainerRegistryConfiguration(BaseModel): """ GCPContainerRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 keyfile_content: Optional[StrictStr] = None url: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["keyfile_content", "url"] @@ -38,6 +36,7 @@ class GCPContainerRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"keyfile_content": obj.get("keyfile_content"), "url": obj.get("url")} - ) + _obj = cls.model_validate({ + "keyfile_content": obj.get("keyfile_content"), + "url": obj.get("url") + }) return _obj + + diff --git a/koyeb/models/get_app_reply.py b/koyeb/api/models/get_app_reply.py similarity index 78% rename from koyeb/models/get_app_reply.py rename to koyeb/api/models/get_app_reply.py index 3b6ea773..2c559db0 100644 --- a/koyeb/models/get_app_reply.py +++ b/koyeb/api/models/get_app_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app import App +from koyeb.api.models.app import App from typing import Optional, Set from typing_extensions import Self - class GetAppReply(BaseModel): """ GetAppReply - """ # noqa: E501 - + """ # noqa: E501 app: Optional[App] = None __properties: ClassVar[List[str]] = ["app"] @@ -38,6 +36,7 @@ class GetAppReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict["app"] = self.app.to_dict() + _dict['app'] = self.app.to_dict() return _dict @classmethod @@ -83,7 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"app": App.from_dict(obj["app"]) if obj.get("app") is not None else None} - ) + _obj = cls.model_validate({ + "app": App.from_dict(obj["app"]) if obj.get("app") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_budget_reply.py b/koyeb/api/models/get_budget_reply.py similarity index 75% rename from koyeb/models/get_budget_reply.py rename to koyeb/api/models/get_budget_reply.py index 55d2b32f..4e5b3c81 100644 --- a/koyeb/models/get_budget_reply.py +++ b/koyeb/api/models/get_budget_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.budget import Budget +from koyeb.api.models.budget import Budget from typing import Optional, Set from typing_extensions import Self - class GetBudgetReply(BaseModel): """ GetBudgetReply - """ # noqa: E501 - + """ # noqa: E501 budget: Optional[Budget] = None __properties: ClassVar[List[str]] = ["budget"] @@ -38,6 +36,7 @@ class GetBudgetReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of budget if self.budget: - _dict["budget"] = self.budget.to_dict() + _dict['budget'] = self.budget.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "budget": ( - Budget.from_dict(obj["budget"]) - if obj.get("budget") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "budget": Budget.from_dict(obj["budget"]) if obj.get("budget") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_catalog_instance_reply.py b/koyeb/api/models/get_catalog_instance_reply.py similarity index 75% rename from koyeb/models/get_catalog_instance_reply.py rename to koyeb/api/models/get_catalog_instance_reply.py index 1fa67f31..5bd5b116 100644 --- a/koyeb/models/get_catalog_instance_reply.py +++ b/koyeb/api/models/get_catalog_instance_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.catalog_instance import CatalogInstance +from koyeb.api.models.catalog_instance import CatalogInstance from typing import Optional, Set from typing_extensions import Self - class GetCatalogInstanceReply(BaseModel): """ GetCatalogInstanceReply - """ # noqa: E501 - + """ # noqa: E501 instance: Optional[CatalogInstance] = None __properties: ClassVar[List[str]] = ["instance"] @@ -38,6 +36,7 @@ class GetCatalogInstanceReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of instance if self.instance: - _dict["instance"] = self.instance.to_dict() + _dict['instance'] = self.instance.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "instance": ( - CatalogInstance.from_dict(obj["instance"]) - if obj.get("instance") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "instance": CatalogInstance.from_dict(obj["instance"]) if obj.get("instance") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_credential_reply.py b/koyeb/api/models/get_credential_reply.py similarity index 75% rename from koyeb/models/get_credential_reply.py rename to koyeb/api/models/get_credential_reply.py index 4b043791..ec2c6fdc 100644 --- a/koyeb/models/get_credential_reply.py +++ b/koyeb/api/models/get_credential_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.credential import Credential +from koyeb.api.models.credential import Credential from typing import Optional, Set from typing_extensions import Self - class GetCredentialReply(BaseModel): """ GetCredentialReply - """ # noqa: E501 - + """ # noqa: E501 credential: Optional[Credential] = None __properties: ClassVar[List[str]] = ["credential"] @@ -38,6 +36,7 @@ class GetCredentialReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of credential if self.credential: - _dict["credential"] = self.credential.to_dict() + _dict['credential'] = self.credential.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "credential": ( - Credential.from_dict(obj["credential"]) - if obj.get("credential") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "credential": Credential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_deployment_reply.py b/koyeb/api/models/get_deployment_reply.py similarity index 75% rename from koyeb/models/get_deployment_reply.py rename to koyeb/api/models/get_deployment_reply.py index 1bedc61b..f33bcb78 100644 --- a/koyeb/models/get_deployment_reply.py +++ b/koyeb/api/models/get_deployment_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment import Deployment +from koyeb.api.models.deployment import Deployment from typing import Optional, Set from typing_extensions import Self - class GetDeploymentReply(BaseModel): """ GetDeploymentReply - """ # noqa: E501 - + """ # noqa: E501 deployment: Optional[Deployment] = None __properties: ClassVar[List[str]] = ["deployment"] @@ -38,6 +36,7 @@ class GetDeploymentReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of deployment if self.deployment: - _dict["deployment"] = self.deployment.to_dict() + _dict['deployment'] = self.deployment.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "deployment": ( - Deployment.from_dict(obj["deployment"]) - if obj.get("deployment") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "deployment": Deployment.from_dict(obj["deployment"]) if obj.get("deployment") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_deployment_scaling_reply.py b/koyeb/api/models/get_deployment_scaling_reply.py similarity index 74% rename from koyeb/models/get_deployment_scaling_reply.py rename to koyeb/api/models/get_deployment_scaling_reply.py index a04affad..013064e7 100644 --- a/koyeb/models/get_deployment_scaling_reply.py +++ b/koyeb/api/models/get_deployment_scaling_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem +from koyeb.api.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem from typing import Optional, Set from typing_extensions import Self - class GetDeploymentScalingReply(BaseModel): """ GetDeploymentScalingReply - """ # noqa: E501 - + """ # noqa: E501 replicas: Optional[List[GetDeploymentScalingReplyItem]] = None __properties: ClassVar[List[str]] = ["replicas"] @@ -38,6 +36,7 @@ class GetDeploymentScalingReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_replicas in self.replicas: if _item_replicas: _items.append(_item_replicas.to_dict()) - _dict["replicas"] = _items + _dict['replicas'] = _items return _dict @classmethod @@ -87,16 +87,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "replicas": ( - [ - GetDeploymentScalingReplyItem.from_dict(_item) - for _item in obj["replicas"] - ] - if obj.get("replicas") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "replicas": [GetDeploymentScalingReplyItem.from_dict(_item) for _item in obj["replicas"]] if obj.get("replicas") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_deployment_scaling_reply_item.py b/koyeb/api/models/get_deployment_scaling_reply_item.py similarity index 68% rename from koyeb/models/get_deployment_scaling_reply_item.py rename to koyeb/api/models/get_deployment_scaling_reply_item.py index a4d00947..f93fa1ec 100644 --- a/koyeb/models/get_deployment_scaling_reply_item.py +++ b/koyeb/api/models/get_deployment_scaling_reply_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,22 +19,17 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance import Instance +from koyeb.api.models.instance import Instance from typing import Optional, Set from typing_extensions import Self - class GetDeploymentScalingReplyItem(BaseModel): """ GetDeploymentScalingReplyItem - """ # noqa: E501 - + """ # noqa: E501 region: Optional[StrictStr] = None replica_index: Optional[StrictInt] = None - instances: Optional[List[Instance]] = Field( - default=None, - description="An array of `active` and `starting` instances. Status of the active instance (and if none the most recent instance) string status = 4; Status message of the active instance (and if none the most recent instance) string message = 5;", - ) + instances: Optional[List[Instance]] = Field(default=None, description="An array of `active` and `starting` instances. Status of the active instance (and if none the most recent instance) string status = 4; Status message of the active instance (and if none the most recent instance) string message = 5;") __properties: ClassVar[List[str]] = ["region", "replica_index", "instances"] model_config = ConfigDict( @@ -43,6 +38,7 @@ class GetDeploymentScalingReplyItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict["instances"] = _items + _dict['instances'] = _items return _dict @classmethod @@ -92,15 +89,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "region": obj.get("region"), - "replica_index": obj.get("replica_index"), - "instances": ( - [Instance.from_dict(_item) for _item in obj["instances"]] - if obj.get("instances") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "region": obj.get("region"), + "replica_index": obj.get("replica_index"), + "instances": [Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_domain_reply.py b/koyeb/api/models/get_domain_reply.py similarity index 75% rename from koyeb/models/get_domain_reply.py rename to koyeb/api/models/get_domain_reply.py index 2423b3c8..a7fc8611 100644 --- a/koyeb/models/get_domain_reply.py +++ b/koyeb/api/models/get_domain_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain import Domain +from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self - class GetDomainReply(BaseModel): """ GetDomainReply - """ # noqa: E501 - + """ # noqa: E501 domain: Optional[Domain] = None __properties: ClassVar[List[str]] = ["domain"] @@ -38,6 +36,7 @@ class GetDomainReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of domain if self.domain: - _dict["domain"] = self.domain.to_dict() + _dict['domain'] = self.domain.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "domain": ( - Domain.from_dict(obj["domain"]) - if obj.get("domain") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "domain": Domain.from_dict(obj["domain"]) if obj.get("domain") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_github_installation_reply.py b/koyeb/api/models/get_github_installation_reply.py similarity index 54% rename from koyeb/models/get_github_installation_reply.py rename to koyeb/api/models/get_github_installation_reply.py index 16c914f6..f042cc71 100644 --- a/koyeb/models/get_github_installation_reply.py +++ b/koyeb/api/models/get_github_installation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,45 +20,26 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.kgitproxy_github_installation_status import ( - KgitproxyGithubInstallationStatus, -) -from koyeb.models.kgitproxy_indexing_status import KgitproxyIndexingStatus +from koyeb.api.models.kgitproxy_github_installation_status import KgitproxyGithubInstallationStatus +from koyeb.api.models.kgitproxy_indexing_status import KgitproxyIndexingStatus from typing import Optional, Set from typing_extensions import Self - class GetGithubInstallationReply(BaseModel): """ GetGithubInstallationReply - """ # noqa: E501 - + """ # noqa: E501 installation_id: Optional[StrictStr] = None installation_url: Optional[StrictStr] = None name: Optional[StrictStr] = None avatar_url: Optional[StrictStr] = None - status: Optional[KgitproxyGithubInstallationStatus] = ( - KgitproxyGithubInstallationStatus.INVALID - ) + status: Optional[KgitproxyGithubInstallationStatus] = KgitproxyGithubInstallationStatus.INVALID installed_at: Optional[datetime] = None suspended_at: Optional[datetime] = None - indexing_status: Optional[KgitproxyIndexingStatus] = ( - KgitproxyIndexingStatus.INVALID_INDEXING_STATUS - ) + indexing_status: Optional[KgitproxyIndexingStatus] = KgitproxyIndexingStatus.INVALID_INDEXING_STATUS indexed_repositories: Optional[StrictInt] = None total_repositories: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = [ - "installation_id", - "installation_url", - "name", - "avatar_url", - "status", - "installed_at", - "suspended_at", - "indexing_status", - "indexed_repositories", - "total_repositories", - ] + __properties: ClassVar[List[str]] = ["installation_id", "installation_url", "name", "avatar_url", "status", "installed_at", "suspended_at", "indexing_status", "indexed_repositories", "total_repositories"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +47,7 @@ class GetGithubInstallationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -90,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -108,26 +91,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "installation_id": obj.get("installation_id"), - "installation_url": obj.get("installation_url"), - "name": obj.get("name"), - "avatar_url": obj.get("avatar_url"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else KgitproxyGithubInstallationStatus.INVALID - ), - "installed_at": obj.get("installed_at"), - "suspended_at": obj.get("suspended_at"), - "indexing_status": ( - obj.get("indexing_status") - if obj.get("indexing_status") is not None - else KgitproxyIndexingStatus.INVALID_INDEXING_STATUS - ), - "indexed_repositories": obj.get("indexed_repositories"), - "total_repositories": obj.get("total_repositories"), - } - ) + _obj = cls.model_validate({ + "installation_id": obj.get("installation_id"), + "installation_url": obj.get("installation_url"), + "name": obj.get("name"), + "avatar_url": obj.get("avatar_url"), + "status": obj.get("status") if obj.get("status") is not None else KgitproxyGithubInstallationStatus.INVALID, + "installed_at": obj.get("installed_at"), + "suspended_at": obj.get("suspended_at"), + "indexing_status": obj.get("indexing_status") if obj.get("indexing_status") is not None else KgitproxyIndexingStatus.INVALID_INDEXING_STATUS, + "indexed_repositories": obj.get("indexed_repositories"), + "total_repositories": obj.get("total_repositories") + }) return _obj + + diff --git a/koyeb/models/get_idenfy_token_reply.py b/koyeb/api/models/get_idenfy_token_reply.py similarity index 81% rename from koyeb/models/get_idenfy_token_reply.py rename to koyeb/api/models/get_idenfy_token_reply.py index d180873d..2115901c 100644 --- a/koyeb/models/get_idenfy_token_reply.py +++ b/koyeb/api/models/get_idenfy_token_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetIdenfyTokenReply(BaseModel): """ GetIdenfyTokenReply - """ # noqa: E501 - + """ # noqa: E501 auth_token: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["auth_token"] @@ -37,6 +35,7 @@ class GetIdenfyTokenReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"auth_token": obj.get("auth_token")}) + _obj = cls.model_validate({ + "auth_token": obj.get("auth_token") + }) return _obj + + diff --git a/koyeb/models/get_instance_reply.py b/koyeb/api/models/get_instance_reply.py similarity index 75% rename from koyeb/models/get_instance_reply.py rename to koyeb/api/models/get_instance_reply.py index 3b147f5f..61686ce2 100644 --- a/koyeb/models/get_instance_reply.py +++ b/koyeb/api/models/get_instance_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance import Instance +from koyeb.api.models.instance import Instance from typing import Optional, Set from typing_extensions import Self - class GetInstanceReply(BaseModel): """ GetInstanceReply - """ # noqa: E501 - + """ # noqa: E501 instance: Optional[Instance] = None __properties: ClassVar[List[str]] = ["instance"] @@ -38,6 +36,7 @@ class GetInstanceReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of instance if self.instance: - _dict["instance"] = self.instance.to_dict() + _dict['instance'] = self.instance.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "instance": ( - Instance.from_dict(obj["instance"]) - if obj.get("instance") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "instance": Instance.from_dict(obj["instance"]) if obj.get("instance") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_intercom_profile_reply.py b/koyeb/api/models/get_intercom_profile_reply.py similarity index 82% rename from koyeb/models/get_intercom_profile_reply.py rename to koyeb/api/models/get_intercom_profile_reply.py index 4c50c0f0..c080f046 100644 --- a/koyeb/models/get_intercom_profile_reply.py +++ b/koyeb/api/models/get_intercom_profile_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetIntercomProfileReply(BaseModel): """ GetIntercomProfileReply - """ # noqa: E501 - + """ # noqa: E501 hash: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["hash"] @@ -37,6 +35,7 @@ class GetIntercomProfileReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"hash": obj.get("hash")}) + _obj = cls.model_validate({ + "hash": obj.get("hash") + }) return _obj + + diff --git a/koyeb/models/get_metrics_reply.py b/koyeb/api/models/get_metrics_reply.py similarity index 76% rename from koyeb/models/get_metrics_reply.py rename to koyeb/api/models/get_metrics_reply.py index 0db2140a..cfebacda 100644 --- a/koyeb/models/get_metrics_reply.py +++ b/koyeb/api/models/get_metrics_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.get_metrics_reply_metric import GetMetricsReplyMetric +from koyeb.api.models.get_metrics_reply_metric import GetMetricsReplyMetric from typing import Optional, Set from typing_extensions import Self - class GetMetricsReply(BaseModel): """ GetMetricsReply - """ # noqa: E501 - + """ # noqa: E501 metrics: Optional[List[GetMetricsReplyMetric]] = None __properties: ClassVar[List[str]] = ["metrics"] @@ -38,6 +36,7 @@ class GetMetricsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_metrics in self.metrics: if _item_metrics: _items.append(_item_metrics.to_dict()) - _dict["metrics"] = _items + _dict['metrics'] = _items return _dict @classmethod @@ -87,13 +87,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "metrics": ( - [GetMetricsReplyMetric.from_dict(_item) for _item in obj["metrics"]] - if obj.get("metrics") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "metrics": [GetMetricsReplyMetric.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_metrics_reply_metric.py b/koyeb/api/models/get_metrics_reply_metric.py similarity index 76% rename from koyeb/models/get_metrics_reply_metric.py rename to koyeb/api/models/get_metrics_reply_metric.py index a3035613..370c2c21 100644 --- a/koyeb/models/get_metrics_reply_metric.py +++ b/koyeb/api/models/get_metrics_reply_metric.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.sample import Sample +from koyeb.api.models.sample import Sample from typing import Optional, Set from typing_extensions import Self - class GetMetricsReplyMetric(BaseModel): """ GetMetricsReplyMetric - """ # noqa: E501 - + """ # noqa: E501 labels: Optional[Dict[str, StrictStr]] = None samples: Optional[List[Sample]] = None __properties: ClassVar[List[str]] = ["labels", "samples"] @@ -39,6 +37,7 @@ class GetMetricsReplyMetric(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_samples in self.samples: if _item_samples: _items.append(_item_samples.to_dict()) - _dict["samples"] = _items + _dict['samples'] = _items return _dict @classmethod @@ -88,14 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "labels": obj.get("labels"), - "samples": ( - [Sample.from_dict(_item) for _item in obj["samples"]] - if obj.get("samples") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "labels": obj.get("labels"), + "samples": [Sample.from_dict(_item) for _item in obj["samples"]] if obj.get("samples") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_o_auth_options_reply.py b/koyeb/api/models/get_o_auth_options_reply.py similarity index 76% rename from koyeb/models/get_o_auth_options_reply.py rename to koyeb/api/models/get_o_auth_options_reply.py index 65c2d9ba..888fffd0 100644 --- a/koyeb/models/get_o_auth_options_reply.py +++ b/koyeb/api/models/get_o_auth_options_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.o_auth_provider import OAuthProvider +from koyeb.api.models.o_auth_provider import OAuthProvider from typing import Optional, Set from typing_extensions import Self - class GetOAuthOptionsReply(BaseModel): """ A list of providers which you can use for single sign-on. - """ # noqa: E501 - + """ # noqa: E501 oauth_providers: Optional[List[OAuthProvider]] = None __properties: ClassVar[List[str]] = ["oauth_providers"] @@ -38,6 +36,7 @@ class GetOAuthOptionsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_oauth_providers in self.oauth_providers: if _item_oauth_providers: _items.append(_item_oauth_providers.to_dict()) - _dict["oauth_providers"] = _items + _dict['oauth_providers'] = _items return _dict @classmethod @@ -87,13 +87,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "oauth_providers": ( - [OAuthProvider.from_dict(_item) for _item in obj["oauth_providers"]] - if obj.get("oauth_providers") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "oauth_providers": [OAuthProvider.from_dict(_item) for _item in obj["oauth_providers"]] if obj.get("oauth_providers") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_organization_invitation_reply.py b/koyeb/api/models/get_organization_invitation_reply.py similarity index 74% rename from koyeb/models/get_organization_invitation_reply.py rename to koyeb/api/models/get_organization_invitation_reply.py index a88de3b5..58cb7137 100644 --- a/koyeb/models/get_organization_invitation_reply.py +++ b/koyeb/api/models/get_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class GetOrganizationInvitationReply(BaseModel): """ GetOrganizationInvitationReply - """ # noqa: E501 - + """ # noqa: E501 invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -38,6 +36,7 @@ class GetOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of invitation if self.invitation: - _dict["invitation"] = self.invitation.to_dict() + _dict['invitation'] = self.invitation.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitation": ( - OrganizationInvitation.from_dict(obj["invitation"]) - if obj.get("invitation") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "invitation": OrganizationInvitation.from_dict(obj["invitation"]) if obj.get("invitation") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_organization_reply.py b/koyeb/api/models/get_organization_reply.py similarity index 75% rename from koyeb/models/get_organization_reply.py rename to koyeb/api/models/get_organization_reply.py index 2cbab3b0..ffe3271e 100644 --- a/koyeb/models/get_organization_reply.py +++ b/koyeb/api/models/get_organization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class GetOrganizationReply(BaseModel): """ GetOrganizationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class GetOrganizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_organization_summary_reply.py b/koyeb/api/models/get_organization_summary_reply.py similarity index 75% rename from koyeb/models/get_organization_summary_reply.py rename to koyeb/api/models/get_organization_summary_reply.py index 2398d475..0f1c2abb 100644 --- a/koyeb/models/get_organization_summary_reply.py +++ b/koyeb/api/models/get_organization_summary_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_summary import OrganizationSummary +from koyeb.api.models.organization_summary import OrganizationSummary from typing import Optional, Set from typing_extensions import Self - class GetOrganizationSummaryReply(BaseModel): """ GetOrganizationSummaryReply - """ # noqa: E501 - + """ # noqa: E501 summary: Optional[OrganizationSummary] = None __properties: ClassVar[List[str]] = ["summary"] @@ -38,6 +36,7 @@ class GetOrganizationSummaryReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of summary if self.summary: - _dict["summary"] = self.summary.to_dict() + _dict['summary'] = self.summary.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "summary": ( - OrganizationSummary.from_dict(obj["summary"]) - if obj.get("summary") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "summary": OrganizationSummary.from_dict(obj["summary"]) if obj.get("summary") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_organization_usage_details_reply.py b/koyeb/api/models/get_organization_usage_details_reply.py similarity index 66% rename from koyeb/models/get_organization_usage_details_reply.py rename to koyeb/api/models/get_organization_usage_details_reply.py index 3dc6cc0e..39b38beb 100644 --- a/koyeb/models/get_organization_usage_details_reply.py +++ b/koyeb/api/models/get_organization_usage_details_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,31 +19,22 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.database_usage_details import DatabaseUsageDetails -from koyeb.models.usage_details import UsageDetails +from koyeb.api.models.database_usage_details import DatabaseUsageDetails +from koyeb.api.models.usage_details import UsageDetails from typing import Optional, Set from typing_extensions import Self - class GetOrganizationUsageDetailsReply(BaseModel): """ GetOrganizationUsageDetailsReply - """ # noqa: E501 - + """ # noqa: E501 usage_details: Optional[List[UsageDetails]] = None database_details: Optional[List[DatabaseUsageDetails]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None order: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "usage_details", - "database_details", - "limit", - "offset", - "count", - "order", - ] + __properties: ClassVar[List[str]] = ["usage_details", "database_details", "limit", "offset", "count", "order"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +42,7 @@ class GetOrganizationUsageDetailsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,14 +81,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_usage_details in self.usage_details: if _item_usage_details: _items.append(_item_usage_details.to_dict()) - _dict["usage_details"] = _items + _dict['usage_details'] = _items # override the default output from pydantic by calling `to_dict()` of each item in database_details (list) _items = [] if self.database_details: for _item_database_details in self.database_details: if _item_database_details: _items.append(_item_database_details.to_dict()) - _dict["database_details"] = _items + _dict['database_details'] = _items return _dict @classmethod @@ -107,25 +100,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "usage_details": ( - [UsageDetails.from_dict(_item) for _item in obj["usage_details"]] - if obj.get("usage_details") is not None - else None - ), - "database_details": ( - [ - DatabaseUsageDetails.from_dict(_item) - for _item in obj["database_details"] - ] - if obj.get("database_details") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "order": obj.get("order"), - } - ) + _obj = cls.model_validate({ + "usage_details": [UsageDetails.from_dict(_item) for _item in obj["usage_details"]] if obj.get("usage_details") is not None else None, + "database_details": [DatabaseUsageDetails.from_dict(_item) for _item in obj["database_details"]] if obj.get("database_details") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "order": obj.get("order") + }) return _obj + + diff --git a/koyeb/models/get_organization_usage_reply.py b/koyeb/api/models/get_organization_usage_reply.py similarity index 76% rename from koyeb/models/get_organization_usage_reply.py rename to koyeb/api/models/get_organization_usage_reply.py index 61288bcb..954be1ea 100644 --- a/koyeb/models/get_organization_usage_reply.py +++ b/koyeb/api/models/get_organization_usage_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.usage import Usage +from koyeb.api.models.usage import Usage from typing import Optional, Set from typing_extensions import Self - class GetOrganizationUsageReply(BaseModel): """ GetOrganizationUsageReply - """ # noqa: E501 - + """ # noqa: E501 usage: Optional[Usage] = None __properties: ClassVar[List[str]] = ["usage"] @@ -38,6 +36,7 @@ class GetOrganizationUsageReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of usage if self.usage: - _dict["usage"] = self.usage.to_dict() + _dict['usage'] = self.usage.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "usage": ( - Usage.from_dict(obj["usage"]) - if obj.get("usage") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "usage": Usage.from_dict(obj["usage"]) if obj.get("usage") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_payment_method_reply.py b/koyeb/api/models/get_payment_method_reply.py similarity index 74% rename from koyeb/models/get_payment_method_reply.py rename to koyeb/api/models/get_payment_method_reply.py index c0ac3559..dd33e4c5 100644 --- a/koyeb/models/get_payment_method_reply.py +++ b/koyeb/api/models/get_payment_method_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.payment_method import PaymentMethod +from koyeb.api.models.payment_method import PaymentMethod from typing import Optional, Set from typing_extensions import Self - class GetPaymentMethodReply(BaseModel): """ GetPaymentMethodReply - """ # noqa: E501 - + """ # noqa: E501 payment_method: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["payment_method"] @@ -38,6 +36,7 @@ class GetPaymentMethodReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_method if self.payment_method: - _dict["payment_method"] = self.payment_method.to_dict() + _dict['payment_method'] = self.payment_method.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "payment_method": ( - PaymentMethod.from_dict(obj["payment_method"]) - if obj.get("payment_method") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "payment_method": PaymentMethod.from_dict(obj["payment_method"]) if obj.get("payment_method") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_persistent_volume_reply.py b/koyeb/api/models/get_persistent_volume_reply.py similarity index 75% rename from koyeb/models/get_persistent_volume_reply.py rename to koyeb/api/models/get_persistent_volume_reply.py index c9ba5bee..a9ddf855 100644 --- a/koyeb/models/get_persistent_volume_reply.py +++ b/koyeb/api/models/get_persistent_volume_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume import PersistentVolume from typing import Optional, Set from typing_extensions import Self - class GetPersistentVolumeReply(BaseModel): """ GetPersistentVolumeReply - """ # noqa: E501 - + """ # noqa: E501 volume: Optional[PersistentVolume] = None __properties: ClassVar[List[str]] = ["volume"] @@ -38,6 +36,7 @@ class GetPersistentVolumeReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of volume if self.volume: - _dict["volume"] = self.volume.to_dict() + _dict['volume'] = self.volume.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "volume": ( - PersistentVolume.from_dict(obj["volume"]) - if obj.get("volume") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "volume": PersistentVolume.from_dict(obj["volume"]) if obj.get("volume") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_quotas_reply.py b/koyeb/api/models/get_quotas_reply.py similarity index 75% rename from koyeb/models/get_quotas_reply.py rename to koyeb/api/models/get_quotas_reply.py index 3bd07924..bb412462 100644 --- a/koyeb/models/get_quotas_reply.py +++ b/koyeb/api/models/get_quotas_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.quotas import Quotas +from koyeb.api.models.quotas import Quotas from typing import Optional, Set from typing_extensions import Self - class GetQuotasReply(BaseModel): """ GetQuotasReply - """ # noqa: E501 - + """ # noqa: E501 quotas: Optional[Quotas] = None __properties: ClassVar[List[str]] = ["quotas"] @@ -38,6 +36,7 @@ class GetQuotasReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of quotas if self.quotas: - _dict["quotas"] = self.quotas.to_dict() + _dict['quotas'] = self.quotas.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "quotas": ( - Quotas.from_dict(obj["quotas"]) - if obj.get("quotas") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "quotas": Quotas.from_dict(obj["quotas"]) if obj.get("quotas") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_region_reply.py b/koyeb/api/models/get_region_reply.py similarity index 75% rename from koyeb/models/get_region_reply.py rename to koyeb/api/models/get_region_reply.py index cd1f0d46..f78a555d 100644 --- a/koyeb/models/get_region_reply.py +++ b/koyeb/api/models/get_region_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.region import Region +from koyeb.api.models.region import Region from typing import Optional, Set from typing_extensions import Self - class GetRegionReply(BaseModel): """ GetRegionReply - """ # noqa: E501 - + """ # noqa: E501 region: Optional[Region] = None __properties: ClassVar[List[str]] = ["region"] @@ -38,6 +36,7 @@ class GetRegionReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of region if self.region: - _dict["region"] = self.region.to_dict() + _dict['region'] = self.region.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "region": ( - Region.from_dict(obj["region"]) - if obj.get("region") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "region": Region.from_dict(obj["region"]) if obj.get("region") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_regional_deployment_reply.py b/koyeb/api/models/get_regional_deployment_reply.py similarity index 74% rename from koyeb/models/get_regional_deployment_reply.py rename to koyeb/api/models/get_regional_deployment_reply.py index a319fc35..4b025b3b 100644 --- a/koyeb/models/get_regional_deployment_reply.py +++ b/koyeb/api/models/get_regional_deployment_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.regional_deployment import RegionalDeployment +from koyeb.api.models.regional_deployment import RegionalDeployment from typing import Optional, Set from typing_extensions import Self - class GetRegionalDeploymentReply(BaseModel): """ GetRegionalDeploymentReply - """ # noqa: E501 - + """ # noqa: E501 regional_deployment: Optional[RegionalDeployment] = None __properties: ClassVar[List[str]] = ["regional_deployment"] @@ -38,6 +36,7 @@ class GetRegionalDeploymentReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of regional_deployment if self.regional_deployment: - _dict["regional_deployment"] = self.regional_deployment.to_dict() + _dict['regional_deployment'] = self.regional_deployment.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "regional_deployment": ( - RegionalDeployment.from_dict(obj["regional_deployment"]) - if obj.get("regional_deployment") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "regional_deployment": RegionalDeployment.from_dict(obj["regional_deployment"]) if obj.get("regional_deployment") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_secret_reply.py b/koyeb/api/models/get_secret_reply.py similarity index 75% rename from koyeb/models/get_secret_reply.py rename to koyeb/api/models/get_secret_reply.py index 1f4b9171..384c2f63 100644 --- a/koyeb/models/get_secret_reply.py +++ b/koyeb/api/models/get_secret_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.secret import Secret +from koyeb.api.models.secret import Secret from typing import Optional, Set from typing_extensions import Self - class GetSecretReply(BaseModel): """ GetSecretReply - """ # noqa: E501 - + """ # noqa: E501 secret: Optional[Secret] = None __properties: ClassVar[List[str]] = ["secret"] @@ -38,6 +36,7 @@ class GetSecretReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of secret if self.secret: - _dict["secret"] = self.secret.to_dict() + _dict['secret'] = self.secret.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secret": ( - Secret.from_dict(obj["secret"]) - if obj.get("secret") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "secret": Secret.from_dict(obj["secret"]) if obj.get("secret") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_service_reply.py b/koyeb/api/models/get_service_reply.py similarity index 75% rename from koyeb/models/get_service_reply.py rename to koyeb/api/models/get_service_reply.py index 860b9c59..c6be9cd8 100644 --- a/koyeb/models/get_service_reply.py +++ b/koyeb/api/models/get_service_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service import Service +from koyeb.api.models.service import Service from typing import Optional, Set from typing_extensions import Self - class GetServiceReply(BaseModel): """ GetServiceReply - """ # noqa: E501 - + """ # noqa: E501 service: Optional[Service] = None __properties: ClassVar[List[str]] = ["service"] @@ -38,6 +36,7 @@ class GetServiceReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of service if self.service: - _dict["service"] = self.service.to_dict() + _dict['service'] = self.service.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "service": ( - Service.from_dict(obj["service"]) - if obj.get("service") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "service": Service.from_dict(obj["service"]) if obj.get("service") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_snapshot_reply.py b/koyeb/api/models/get_snapshot_reply.py similarity index 75% rename from koyeb/models/get_snapshot_reply.py rename to koyeb/api/models/get_snapshot_reply.py index 2b3d6c8d..174b393a 100644 --- a/koyeb/models/get_snapshot_reply.py +++ b/koyeb/api/models/get_snapshot_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.snapshot import Snapshot +from koyeb.api.models.snapshot import Snapshot from typing import Optional, Set from typing_extensions import Self - class GetSnapshotReply(BaseModel): """ GetSnapshotReply - """ # noqa: E501 - + """ # noqa: E501 snapshot: Optional[Snapshot] = None __properties: ClassVar[List[str]] = ["snapshot"] @@ -38,6 +36,7 @@ class GetSnapshotReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of snapshot if self.snapshot: - _dict["snapshot"] = self.snapshot.to_dict() + _dict['snapshot'] = self.snapshot.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "snapshot": ( - Snapshot.from_dict(obj["snapshot"]) - if obj.get("snapshot") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "snapshot": Snapshot.from_dict(obj["snapshot"]) if obj.get("snapshot") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_subscription_reply.py b/koyeb/api/models/get_subscription_reply.py similarity index 75% rename from koyeb/models/get_subscription_reply.py rename to koyeb/api/models/get_subscription_reply.py index 43318b05..ee9d4c59 100644 --- a/koyeb/models/get_subscription_reply.py +++ b/koyeb/api/models/get_subscription_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.subscription import Subscription +from koyeb.api.models.subscription import Subscription from typing import Optional, Set from typing_extensions import Self - class GetSubscriptionReply(BaseModel): """ GetSubscriptionReply - """ # noqa: E501 - + """ # noqa: E501 subscription: Optional[Subscription] = None __properties: ClassVar[List[str]] = ["subscription"] @@ -38,6 +36,7 @@ class GetSubscriptionReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of subscription if self.subscription: - _dict["subscription"] = self.subscription.to_dict() + _dict['subscription'] = self.subscription.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "subscription": ( - Subscription.from_dict(obj["subscription"]) - if obj.get("subscription") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "subscription": Subscription.from_dict(obj["subscription"]) if obj.get("subscription") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_user_organization_invitation_reply.py b/koyeb/api/models/get_user_organization_invitation_reply.py similarity index 75% rename from koyeb/models/get_user_organization_invitation_reply.py rename to koyeb/api/models/get_user_organization_invitation_reply.py index d4baac01..e53655da 100644 --- a/koyeb/models/get_user_organization_invitation_reply.py +++ b/koyeb/api/models/get_user_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class GetUserOrganizationInvitationReply(BaseModel): """ GetUserOrganizationInvitationReply - """ # noqa: E501 - + """ # noqa: E501 invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -38,6 +36,7 @@ class GetUserOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of invitation if self.invitation: - _dict["invitation"] = self.invitation.to_dict() + _dict['invitation'] = self.invitation.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitation": ( - OrganizationInvitation.from_dict(obj["invitation"]) - if obj.get("invitation") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "invitation": OrganizationInvitation.from_dict(obj["invitation"]) if obj.get("invitation") is not None else None + }) return _obj + + diff --git a/koyeb/models/get_user_settings_reply.py b/koyeb/api/models/get_user_settings_reply.py similarity index 75% rename from koyeb/models/get_user_settings_reply.py rename to koyeb/api/models/get_user_settings_reply.py index a436388e..f8331bfa 100644 --- a/koyeb/models/get_user_settings_reply.py +++ b/koyeb/api/models/get_user_settings_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.user_settings import UserSettings +from koyeb.api.models.user_settings import UserSettings from typing import Optional, Set from typing_extensions import Self - class GetUserSettingsReply(BaseModel): """ GetUserSettingsReply - """ # noqa: E501 - + """ # noqa: E501 settings: Optional[UserSettings] = None __properties: ClassVar[List[str]] = ["settings"] @@ -38,6 +36,7 @@ class GetUserSettingsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of settings if self.settings: - _dict["settings"] = self.settings.to_dict() + _dict['settings'] = self.settings.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "settings": ( - UserSettings.from_dict(obj["settings"]) - if obj.get("settings") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "settings": UserSettings.from_dict(obj["settings"]) if obj.get("settings") is not None else None + }) return _obj + + diff --git a/koyeb/models/git_deployment_metadata.py b/koyeb/api/models/git_deployment_metadata.py similarity index 72% rename from koyeb/models/git_deployment_metadata.py rename to koyeb/api/models/git_deployment_metadata.py index e2e9285b..422b67f8 100644 --- a/koyeb/models/git_deployment_metadata.py +++ b/koyeb/api/models/git_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.git_env_deployment_metadata import GitEnvDeploymentMetadata +from koyeb.api.models.git_env_deployment_metadata import GitEnvDeploymentMetadata from typing import Optional, Set from typing_extensions import Self - class GitDeploymentMetadata(BaseModel): """ GitDeploymentMetadata - """ # noqa: E501 - + """ # noqa: E501 last_provisioned_deployment_id: Optional[StrictStr] = None git_env: Optional[GitEnvDeploymentMetadata] = None __properties: ClassVar[List[str]] = ["last_provisioned_deployment_id", "git_env"] @@ -39,6 +37,7 @@ class GitDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of git_env if self.git_env: - _dict["git_env"] = self.git_env.to_dict() + _dict['git_env'] = self.git_env.to_dict() return _dict @classmethod @@ -84,16 +84,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "last_provisioned_deployment_id": obj.get( - "last_provisioned_deployment_id" - ), - "git_env": ( - GitEnvDeploymentMetadata.from_dict(obj["git_env"]) - if obj.get("git_env") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "last_provisioned_deployment_id": obj.get("last_provisioned_deployment_id"), + "git_env": GitEnvDeploymentMetadata.from_dict(obj["git_env"]) if obj.get("git_env") is not None else None + }) return _obj + + diff --git a/koyeb/models/git_env_deployment_metadata.py b/koyeb/api/models/git_env_deployment_metadata.py similarity index 79% rename from koyeb/models/git_env_deployment_metadata.py rename to koyeb/api/models/git_env_deployment_metadata.py index 96de36b9..7f427c6e 100644 --- a/koyeb/models/git_env_deployment_metadata.py +++ b/koyeb/api/models/git_env_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GitEnvDeploymentMetadata(BaseModel): """ GitEnvDeploymentMetadata - """ # noqa: E501 - + """ # noqa: E501 sha: Optional[StrictStr] = None commit_author: Optional[StrictStr] = None commit_message: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class GitEnvDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "sha": obj.get("sha"), - "commit_author": obj.get("commit_author"), - "commit_message": obj.get("commit_message"), - } - ) + _obj = cls.model_validate({ + "sha": obj.get("sha"), + "commit_author": obj.get("commit_author"), + "commit_message": obj.get("commit_message") + }) return _obj + + diff --git a/koyeb/models/git_hub_registry_configuration.py b/koyeb/api/models/git_hub_registry_configuration.py similarity index 81% rename from koyeb/models/git_hub_registry_configuration.py rename to koyeb/api/models/git_hub_registry_configuration.py index cc78a454..0fae9ee4 100644 --- a/koyeb/models/git_hub_registry_configuration.py +++ b/koyeb/api/models/git_hub_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GitHubRegistryConfiguration(BaseModel): """ GitHubRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 username: Optional[StrictStr] = None password: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["username", "password"] @@ -38,6 +36,7 @@ class GitHubRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"username": obj.get("username"), "password": obj.get("password")} - ) + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/git_lab_registry_configuration.py b/koyeb/api/models/git_lab_registry_configuration.py similarity index 81% rename from koyeb/models/git_lab_registry_configuration.py rename to koyeb/api/models/git_lab_registry_configuration.py index 48b03c02..1f18cf7a 100644 --- a/koyeb/models/git_lab_registry_configuration.py +++ b/koyeb/api/models/git_lab_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GitLabRegistryConfiguration(BaseModel): """ GitLabRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 username: Optional[StrictStr] = None password: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["username", "password"] @@ -38,6 +36,7 @@ class GitLabRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"username": obj.get("username"), "password": obj.get("password")} - ) + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/git_source.py b/koyeb/api/models/git_source.py similarity index 58% rename from koyeb/models/git_source.py rename to koyeb/api/models/git_source.py index 063c0831..de75355c 100644 --- a/koyeb/models/git_source.py +++ b/koyeb/api/models/git_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,21 +19,16 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.buildpack_builder import BuildpackBuilder -from koyeb.models.docker_builder import DockerBuilder +from koyeb.api.models.buildpack_builder import BuildpackBuilder +from koyeb.api.models.docker_builder import DockerBuilder from typing import Optional, Set from typing_extensions import Self - class GitSource(BaseModel): """ GitSource - """ # noqa: E501 - - repository: Optional[StrictStr] = Field( - default=None, - description="A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test.", - ) + """ # noqa: E501 + repository: Optional[StrictStr] = Field(default=None, description="A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test.") branch: Optional[StrictStr] = None tag: Optional[StrictStr] = None sha: Optional[StrictStr] = None @@ -43,18 +38,7 @@ class GitSource(BaseModel): workdir: Optional[StrictStr] = None buildpack: Optional[BuildpackBuilder] = None docker: Optional[DockerBuilder] = None - __properties: ClassVar[List[str]] = [ - "repository", - "branch", - "tag", - "sha", - "build_command", - "run_command", - "no_deploy_on_push", - "workdir", - "buildpack", - "docker", - ] + __properties: ClassVar[List[str]] = ["repository", "branch", "tag", "sha", "build_command", "run_command", "no_deploy_on_push", "workdir", "buildpack", "docker"] model_config = ConfigDict( populate_by_name=True, @@ -62,6 +46,7 @@ class GitSource(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -86,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -95,10 +81,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of buildpack if self.buildpack: - _dict["buildpack"] = self.buildpack.to_dict() + _dict['buildpack'] = self.buildpack.to_dict() # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict["docker"] = self.docker.to_dict() + _dict['docker'] = self.docker.to_dict() return _dict @classmethod @@ -110,26 +96,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "repository": obj.get("repository"), - "branch": obj.get("branch"), - "tag": obj.get("tag"), - "sha": obj.get("sha"), - "build_command": obj.get("build_command"), - "run_command": obj.get("run_command"), - "no_deploy_on_push": obj.get("no_deploy_on_push"), - "workdir": obj.get("workdir"), - "buildpack": ( - BuildpackBuilder.from_dict(obj["buildpack"]) - if obj.get("buildpack") is not None - else None - ), - "docker": ( - DockerBuilder.from_dict(obj["docker"]) - if obj.get("docker") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "repository": obj.get("repository"), + "branch": obj.get("branch"), + "tag": obj.get("tag"), + "sha": obj.get("sha"), + "build_command": obj.get("build_command"), + "run_command": obj.get("run_command"), + "no_deploy_on_push": obj.get("no_deploy_on_push"), + "workdir": obj.get("workdir"), + "buildpack": BuildpackBuilder.from_dict(obj["buildpack"]) if obj.get("buildpack") is not None else None, + "docker": DockerBuilder.from_dict(obj["docker"]) if obj.get("docker") is not None else None + }) return _obj + + diff --git a/koyeb/models/github_installation_reply.py b/koyeb/api/models/github_installation_reply.py similarity index 79% rename from koyeb/models/github_installation_reply.py rename to koyeb/api/models/github_installation_reply.py index b800aaa5..6ffcaa98 100644 --- a/koyeb/models/github_installation_reply.py +++ b/koyeb/api/models/github_installation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GithubInstallationReply(BaseModel): """ GithubInstallationReply - """ # noqa: E501 - + """ # noqa: E501 app_name: Optional[StrictStr] = None app_id: Optional[StrictStr] = None url: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class GithubInstallationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "app_name": obj.get("app_name"), - "app_id": obj.get("app_id"), - "url": obj.get("url"), - "state": obj.get("state"), - } - ) + _obj = cls.model_validate({ + "app_name": obj.get("app_name"), + "app_id": obj.get("app_id"), + "url": obj.get("url"), + "state": obj.get("state") + }) return _obj + + diff --git a/koyeb/models/github_installation_request.py b/koyeb/api/models/github_installation_request.py similarity index 81% rename from koyeb/models/github_installation_request.py rename to koyeb/api/models/github_installation_request.py index 3ddd8051..a04aebe8 100644 --- a/koyeb/models/github_installation_request.py +++ b/koyeb/api/models/github_installation_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GithubInstallationRequest(BaseModel): """ GithubInstallationRequest - """ # noqa: E501 - + """ # noqa: E501 metadata: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["metadata"] @@ -37,6 +35,7 @@ class GithubInstallationRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"metadata": obj.get("metadata")}) + _obj = cls.model_validate({ + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/google_protobuf_any.py b/koyeb/api/models/google_protobuf_any.py similarity index 84% rename from koyeb/models/google_protobuf_any.py rename to koyeb/api/models/google_protobuf_any.py index 6769bd51..17578045 100644 --- a/koyeb/models/google_protobuf_any.py +++ b/koyeb/api/models/google_protobuf_any.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class GoogleProtobufAny(BaseModel): """ GoogleProtobufAny - """ # noqa: E501 - + """ # noqa: E501 type: Optional[StrictStr] = Field(default=None, alias="@type") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["@type"] @@ -38,6 +36,7 @@ class GoogleProtobufAny(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,11 +62,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -90,10 +87,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"@type": obj.get("@type")}) + _obj = cls.model_validate({ + "@type": obj.get("@type") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/koyeb/models/google_protobuf_null_value.py b/koyeb/api/models/google_protobuf_null_value.py similarity index 65% rename from koyeb/models/google_protobuf_null_value.py rename to koyeb/api/models/google_protobuf_null_value.py index 52e4bfdb..3b72b255 100644 --- a/koyeb/models/google_protobuf_null_value.py +++ b/koyeb/api/models/google_protobuf_null_value.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,9 +26,11 @@ class GoogleProtobufNullValue(str, Enum): """ allowed enum values """ - NULL_VALUE = "NULL_VALUE" + NULL_VALUE = 'NULL_VALUE' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of GoogleProtobufNullValue from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/google_rpc_status.py b/koyeb/api/models/google_rpc_status.py similarity index 75% rename from koyeb/models/google_rpc_status.py rename to koyeb/api/models/google_rpc_status.py index 40d7b568..fbdd21a3 100644 --- a/koyeb/models/google_rpc_status.py +++ b/koyeb/api/models/google_rpc_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.google_protobuf_any import GoogleProtobufAny +from koyeb.api.models.google_protobuf_any import GoogleProtobufAny from typing import Optional, Set from typing_extensions import Self - class GoogleRpcStatus(BaseModel): """ GoogleRpcStatus - """ # noqa: E501 - + """ # noqa: E501 code: Optional[StrictInt] = None message: Optional[StrictStr] = None details: Optional[List[GoogleProtobufAny]] = None @@ -40,6 +38,7 @@ class GoogleRpcStatus(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_details in self.details: if _item_details: _items.append(_item_details.to_dict()) - _dict["details"] = _items + _dict['details'] = _items return _dict @classmethod @@ -89,15 +89,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "code": obj.get("code"), - "message": obj.get("message"), - "details": ( - [GoogleProtobufAny.from_dict(_item) for _item in obj["details"]] - if obj.get("details") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "code": obj.get("code"), + "message": obj.get("message"), + "details": [GoogleProtobufAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None + }) return _obj + + diff --git a/koyeb/models/has_unpaid_invoices_reply.py b/koyeb/api/models/has_unpaid_invoices_reply.py similarity index 81% rename from koyeb/models/has_unpaid_invoices_reply.py rename to koyeb/api/models/has_unpaid_invoices_reply.py index 55d38692..06675b35 100644 --- a/koyeb/models/has_unpaid_invoices_reply.py +++ b/koyeb/api/models/has_unpaid_invoices_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class HasUnpaidInvoicesReply(BaseModel): """ HasUnpaidInvoicesReply - """ # noqa: E501 - + """ # noqa: E501 has_unpaid_invoices: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["has_unpaid_invoices"] @@ -37,6 +35,7 @@ class HasUnpaidInvoicesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"has_unpaid_invoices": obj.get("has_unpaid_invoices")} - ) + _obj = cls.model_validate({ + "has_unpaid_invoices": obj.get("has_unpaid_invoices") + }) return _obj + + diff --git a/koyeb/models/http_header.py b/koyeb/api/models/http_header.py similarity index 80% rename from koyeb/models/http_header.py rename to koyeb/api/models/http_header.py index 9b009168..8fac45ca 100644 --- a/koyeb/models/http_header.py +++ b/koyeb/api/models/http_header.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class HTTPHeader(BaseModel): """ HTTPHeader - """ # noqa: E501 - + """ # noqa: E501 key: Optional[StrictStr] = None value: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["key", "value"] @@ -38,6 +36,7 @@ class HTTPHeader(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"key": obj.get("key"), "value": obj.get("value")}) + _obj = cls.model_validate({ + "key": obj.get("key"), + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/http_health_check.py b/koyeb/api/models/http_health_check.py similarity index 75% rename from koyeb/models/http_health_check.py rename to koyeb/api/models/http_health_check.py index 7ffe860d..0ad0d21e 100644 --- a/koyeb/models/http_health_check.py +++ b/koyeb/api/models/http_health_check.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.http_header import HTTPHeader +from koyeb.api.models.http_header import HTTPHeader from typing import Optional, Set from typing_extensions import Self - class HTTPHealthCheck(BaseModel): """ HTTPHealthCheck - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None path: Optional[StrictStr] = None method: Optional[StrictStr] = None @@ -41,6 +39,7 @@ class HTTPHealthCheck(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_headers in self.headers: if _item_headers: _items.append(_item_headers.to_dict()) - _dict["headers"] = _items + _dict['headers'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "port": obj.get("port"), - "path": obj.get("path"), - "method": obj.get("method"), - "headers": ( - [HTTPHeader.from_dict(_item) for _item in obj["headers"]] - if obj.get("headers") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "port": obj.get("port"), + "path": obj.get("path"), + "method": obj.get("method"), + "headers": [HTTPHeader.from_dict(_item) for _item in obj["headers"]] if obj.get("headers") is not None else None + }) return _obj + + diff --git a/koyeb/models/instance.py b/koyeb/api/models/instance.py similarity index 53% rename from koyeb/models/instance.py rename to koyeb/api/models/instance.py index 12f70789..f103f470 100644 --- a/koyeb/models/instance.py +++ b/koyeb/api/models/instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance_status import InstanceStatus +from koyeb.api.models.instance_status import InstanceStatus from typing import Optional, Set from typing_extensions import Self - class Instance(BaseModel): """ Instance - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -48,31 +46,8 @@ class Instance(BaseModel): started_at: Optional[datetime] = None succeeded_at: Optional[datetime] = None terminated_at: Optional[datetime] = None - xyz_deployment_id: Optional[StrictStr] = Field( - default=None, - description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.", - ) - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "organization_id", - "app_id", - "service_id", - "regional_deployment_id", - "allocation_id", - "type", - "replica_index", - "region", - "datacenter", - "hypervisor", - "status", - "messages", - "started_at", - "succeeded_at", - "terminated_at", - "xyz_deployment_id", - ] + xyz_deployment_id: Optional[StrictStr] = Field(default=None, description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.") + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "organization_id", "app_id", "service_id", "regional_deployment_id", "allocation_id", "type", "replica_index", "region", "datacenter", "hypervisor", "status", "messages", "started_at", "succeeded_at", "terminated_at", "xyz_deployment_id"] model_config = ConfigDict( populate_by_name=True, @@ -80,6 +55,7 @@ class Instance(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -104,7 +80,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -122,31 +99,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "allocation_id": obj.get("allocation_id"), - "type": obj.get("type"), - "replica_index": obj.get("replica_index"), - "region": obj.get("region"), - "datacenter": obj.get("datacenter"), - "hypervisor": obj.get("hypervisor"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else InstanceStatus.ALLOCATING - ), - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "xyz_deployment_id": obj.get("xyz_deployment_id"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "allocation_id": obj.get("allocation_id"), + "type": obj.get("type"), + "replica_index": obj.get("replica_index"), + "region": obj.get("region"), + "datacenter": obj.get("datacenter"), + "hypervisor": obj.get("hypervisor"), + "status": obj.get("status") if obj.get("status") is not None else InstanceStatus.ALLOCATING, + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "xyz_deployment_id": obj.get("xyz_deployment_id") + }) return _obj + + diff --git a/koyeb/models/instance_availability.py b/koyeb/api/models/instance_availability.py similarity index 69% rename from koyeb/models/instance_availability.py rename to koyeb/api/models/instance_availability.py index 0dcf7b8a..78ba4f2a 100644 --- a/koyeb/models/instance_availability.py +++ b/koyeb/api/models/instance_availability.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.availability_level import AvailabilityLevel -from koyeb.models.region_availability import RegionAvailability +from koyeb.api.models.availability_level import AvailabilityLevel +from koyeb.api.models.region_availability import RegionAvailability from typing import Optional, Set from typing_extensions import Self - class InstanceAvailability(BaseModel): """ InstanceAvailability - """ # noqa: E501 - + """ # noqa: E501 regions: Optional[Dict[str, RegionAvailability]] = None availability: Optional[AvailabilityLevel] = AvailabilityLevel.UNKNOWN __properties: ClassVar[List[str]] = ["regions", "availability"] @@ -40,6 +38,7 @@ class InstanceAvailability(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_regions in self.regions: if self.regions[_key_regions]: _field_dict[_key_regions] = self.regions[_key_regions].to_dict() - _dict["regions"] = _field_dict + _dict['regions'] = _field_dict return _dict @classmethod @@ -89,21 +89,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "regions": ( - dict( - (_k, RegionAvailability.from_dict(_v)) - for _k, _v in obj["regions"].items() - ) - if obj.get("regions") is not None - else None - ), - "availability": ( - obj.get("availability") - if obj.get("availability") is not None - else AvailabilityLevel.UNKNOWN - ), - } - ) + _obj = cls.model_validate({ + "regions": dict( + (_k, RegionAvailability.from_dict(_v)) + for _k, _v in obj["regions"].items() + ) + if obj.get("regions") is not None + else None, + "availability": obj.get("availability") if obj.get("availability") is not None else AvailabilityLevel.UNKNOWN + }) return _obj + + diff --git a/koyeb/models/instance_event.py b/koyeb/api/models/instance_event.py similarity index 71% rename from koyeb/models/instance_event.py rename to koyeb/api/models/instance_event.py index fb8ff082..0884c912 100644 --- a/koyeb/models/instance_event.py +++ b/koyeb/api/models/instance_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class InstanceEvent(BaseModel): """ InstanceEvent - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -36,15 +34,7 @@ class InstanceEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = [ - "id", - "when", - "organization_id", - "instance_id", - "type", - "message", - "metadata", - ] + __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "instance_id", "type", "message", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class InstanceEvent(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "instance_id": obj.get("instance_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "instance_id": obj.get("instance_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/instance_list_item.py b/koyeb/api/models/instance_list_item.py similarity index 55% rename from koyeb/models/instance_list_item.py rename to koyeb/api/models/instance_list_item.py index bade7af7..9d2462a9 100644 --- a/koyeb/models/instance_list_item.py +++ b/koyeb/api/models/instance_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance_status import InstanceStatus +from koyeb.api.models.instance_status import InstanceStatus from typing import Optional, Set from typing_extensions import Self - class InstanceListItem(BaseModel): """ InstanceListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -44,27 +42,8 @@ class InstanceListItem(BaseModel): datacenter: Optional[StrictStr] = None status: Optional[InstanceStatus] = InstanceStatus.ALLOCATING messages: Optional[List[StrictStr]] = None - xyz_deployment_id: Optional[StrictStr] = Field( - default=None, - description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.", - ) - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "organization_id", - "app_id", - "service_id", - "regional_deployment_id", - "allocation_id", - "type", - "replica_index", - "region", - "datacenter", - "status", - "messages", - "xyz_deployment_id", - ] + xyz_deployment_id: Optional[StrictStr] = Field(default=None, description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.") + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "organization_id", "app_id", "service_id", "regional_deployment_id", "allocation_id", "type", "replica_index", "region", "datacenter", "status", "messages", "xyz_deployment_id"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +51,7 @@ class InstanceListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -96,7 +76,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -114,27 +95,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "allocation_id": obj.get("allocation_id"), - "type": obj.get("type"), - "replica_index": obj.get("replica_index"), - "region": obj.get("region"), - "datacenter": obj.get("datacenter"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else InstanceStatus.ALLOCATING - ), - "messages": obj.get("messages"), - "xyz_deployment_id": obj.get("xyz_deployment_id"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "allocation_id": obj.get("allocation_id"), + "type": obj.get("type"), + "replica_index": obj.get("replica_index"), + "region": obj.get("region"), + "datacenter": obj.get("datacenter"), + "status": obj.get("status") if obj.get("status") is not None else InstanceStatus.ALLOCATING, + "messages": obj.get("messages"), + "xyz_deployment_id": obj.get("xyz_deployment_id") + }) return _obj + + diff --git a/koyeb/api/models/instance_status.py b/koyeb/api/models/instance_status.py new file mode 100644 index 00000000..10443720 --- /dev/null +++ b/koyeb/api/models/instance_status.py @@ -0,0 +1,43 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class InstanceStatus(str, Enum): + """ + InstanceStatus + """ + + """ + allowed enum values + """ + ALLOCATING = 'ALLOCATING' + STARTING = 'STARTING' + HEALTHY = 'HEALTHY' + UNHEALTHY = 'UNHEALTHY' + STOPPING = 'STOPPING' + STOPPED = 'STOPPED' + ERROR = 'ERROR' + SLEEPING = 'SLEEPING' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of InstanceStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/instance_usage.py b/koyeb/api/models/instance_usage.py similarity index 81% rename from koyeb/models/instance_usage.py rename to koyeb/api/models/instance_usage.py index da5e3ab6..c71ed20f 100644 --- a/koyeb/models/instance_usage.py +++ b/koyeb/api/models/instance_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class InstanceUsage(BaseModel): """ InstanceUsage - """ # noqa: E501 - + """ # noqa: E501 duration_seconds: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["duration_seconds"] @@ -37,6 +35,7 @@ class InstanceUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"duration_seconds": obj.get("duration_seconds")}) + _obj = cls.model_validate({ + "duration_seconds": obj.get("duration_seconds") + }) return _obj + + diff --git a/koyeb/models/instances_summary.py b/koyeb/api/models/instances_summary.py similarity index 80% rename from koyeb/models/instances_summary.py rename to koyeb/api/models/instances_summary.py index 7baae165..6e3f8ef8 100644 --- a/koyeb/models/instances_summary.py +++ b/koyeb/api/models/instances_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class InstancesSummary(BaseModel): """ InstancesSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None by_type: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "by_type"] @@ -38,6 +36,7 @@ class InstancesSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"total": obj.get("total"), "by_type": obj.get("by_type")} - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "by_type": obj.get("by_type") + }) return _obj + + diff --git a/koyeb/models/invite_user_request.py b/koyeb/api/models/invite_user_request.py similarity index 79% rename from koyeb/models/invite_user_request.py rename to koyeb/api/models/invite_user_request.py index f06099c0..6009b788 100644 --- a/koyeb/models/invite_user_request.py +++ b/koyeb/api/models/invite_user_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class InviteUserRequest(BaseModel): """ InviteUserRequest - """ # noqa: E501 - + """ # noqa: E501 email: Optional[StrictStr] = None name: Optional[StrictStr] = None message: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class InviteUserRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "email": obj.get("email"), - "name": obj.get("name"), - "message": obj.get("message"), - } - ) + _obj = cls.model_validate({ + "email": obj.get("email"), + "name": obj.get("name"), + "message": obj.get("message") + }) return _obj + + diff --git a/koyeb/models/kgitproxy_branch.py b/koyeb/api/models/kgitproxy_branch.py similarity index 62% rename from koyeb/models/kgitproxy_branch.py rename to koyeb/api/models/kgitproxy_branch.py index 92f9c7e8..6d03553e 100644 --- a/koyeb/models/kgitproxy_branch.py +++ b/koyeb/api/models/kgitproxy_branch.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,34 +19,22 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider +from koyeb.api.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider from typing import Optional, Set from typing_extensions import Self - class KgitproxyBranch(BaseModel): """ KgitproxyBranch - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None repository_id: Optional[StrictStr] = None name: Optional[StrictStr] = None is_default: Optional[StrictBool] = None is_protected: Optional[StrictBool] = None - provider: Optional[KgitproxyRepositoryProvider] = ( - KgitproxyRepositoryProvider.INVALID_PROVIDER - ) - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "repository_id", - "name", - "is_default", - "is_protected", - "provider", - ] + provider: Optional[KgitproxyRepositoryProvider] = KgitproxyRepositoryProvider.INVALID_PROVIDER + __properties: ClassVar[List[str]] = ["id", "organization_id", "repository_id", "name", "is_default", "is_protected", "provider"] model_config = ConfigDict( populate_by_name=True, @@ -54,6 +42,7 @@ class KgitproxyBranch(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -78,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -96,19 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "repository_id": obj.get("repository_id"), - "name": obj.get("name"), - "is_default": obj.get("is_default"), - "is_protected": obj.get("is_protected"), - "provider": ( - obj.get("provider") - if obj.get("provider") is not None - else KgitproxyRepositoryProvider.INVALID_PROVIDER - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "repository_id": obj.get("repository_id"), + "name": obj.get("name"), + "is_default": obj.get("is_default"), + "is_protected": obj.get("is_protected"), + "provider": obj.get("provider") if obj.get("provider") is not None else KgitproxyRepositoryProvider.INVALID_PROVIDER + }) return _obj + + diff --git a/koyeb/models/kgitproxy_git_hub_repository.py b/koyeb/api/models/kgitproxy_git_hub_repository.py similarity index 81% rename from koyeb/models/kgitproxy_git_hub_repository.py rename to koyeb/api/models/kgitproxy_git_hub_repository.py index 05a2db4d..77647e28 100644 --- a/koyeb/models/kgitproxy_git_hub_repository.py +++ b/koyeb/api/models/kgitproxy_git_hub_repository.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class KgitproxyGitHubRepository(BaseModel): """ KgitproxyGitHubRepository - """ # noqa: E501 - + """ # noqa: E501 github_id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["github_id"] @@ -37,6 +35,7 @@ class KgitproxyGitHubRepository(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"github_id": obj.get("github_id")}) + _obj = cls.model_validate({ + "github_id": obj.get("github_id") + }) return _obj + + diff --git a/koyeb/models/kgitproxy_github_installation_status.py b/koyeb/api/models/kgitproxy_github_installation_status.py similarity index 54% rename from koyeb/models/kgitproxy_github_installation_status.py rename to koyeb/api/models/kgitproxy_github_installation_status.py index a534e6de..9d281028 100644 --- a/koyeb/models/kgitproxy_github_installation_status.py +++ b/koyeb/api/models/kgitproxy_github_installation_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class KgitproxyGithubInstallationStatus(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - INSTALLED = "INSTALLED" - SUSPENDED = "SUSPENDED" - DELETED = "DELETED" + INVALID = 'INVALID' + INSTALLED = 'INSTALLED' + SUSPENDED = 'SUSPENDED' + DELETED = 'DELETED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of KgitproxyGithubInstallationStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/kgitproxy_indexing_status.py b/koyeb/api/models/kgitproxy_indexing_status.py similarity index 50% rename from koyeb/models/kgitproxy_indexing_status.py rename to koyeb/api/models/kgitproxy_indexing_status.py index 428a53ec..50cf2426 100644 --- a/koyeb/models/kgitproxy_indexing_status.py +++ b/koyeb/api/models/kgitproxy_indexing_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class KgitproxyIndexingStatus(str, Enum): """ allowed enum values """ - INVALID_INDEXING_STATUS = "INVALID_INDEXING_STATUS" - NOT_STARTED = "NOT_STARTED" - IN_PROGRESS = "IN_PROGRESS" - COMPLETED = "COMPLETED" + INVALID_INDEXING_STATUS = 'INVALID_INDEXING_STATUS' + NOT_STARTED = 'NOT_STARTED' + IN_PROGRESS = 'IN_PROGRESS' + COMPLETED = 'COMPLETED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of KgitproxyIndexingStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/kgitproxy_list_branches_reply.py b/koyeb/api/models/kgitproxy_list_branches_reply.py similarity index 64% rename from koyeb/models/kgitproxy_list_branches_reply.py rename to koyeb/api/models/kgitproxy_list_branches_reply.py index 57d03afa..6dfaef56 100644 --- a/koyeb/models/kgitproxy_list_branches_reply.py +++ b/koyeb/api/models/kgitproxy_list_branches_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.kgitproxy_branch import KgitproxyBranch +from koyeb.api.models.kgitproxy_branch import KgitproxyBranch from typing import Optional, Set from typing_extensions import Self - class KgitproxyListBranchesReply(BaseModel): """ KgitproxyListBranchesReply - """ # noqa: E501 - - branches: Optional[List[KgitproxyBranch]] = Field( - default=None, description="The collection of branches." - ) - limit: Optional[StrictInt] = Field( - default=None, description="The limit in the request." - ) - offset: Optional[StrictInt] = Field( - default=None, description="The offset in the request." - ) - count: Optional[StrictInt] = Field( - default=None, description="The total number of items." - ) + """ # noqa: E501 + branches: Optional[List[KgitproxyBranch]] = Field(default=None, description="The collection of branches.") + limit: Optional[StrictInt] = Field(default=None, description="The limit in the request.") + offset: Optional[StrictInt] = Field(default=None, description="The offset in the request.") + count: Optional[StrictInt] = Field(default=None, description="The total number of items.") __properties: ClassVar[List[str]] = ["branches", "limit", "offset", "count"] model_config = ConfigDict( @@ -49,6 +39,7 @@ class KgitproxyListBranchesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -86,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_branches in self.branches: if _item_branches: _items.append(_item_branches.to_dict()) - _dict["branches"] = _items + _dict['branches'] = _items return _dict @classmethod @@ -98,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "branches": ( - [KgitproxyBranch.from_dict(_item) for _item in obj["branches"]] - if obj.get("branches") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "branches": [KgitproxyBranch.from_dict(_item) for _item in obj["branches"]] if obj.get("branches") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/kgitproxy_list_repositories_reply.py b/koyeb/api/models/kgitproxy_list_repositories_reply.py similarity index 63% rename from koyeb/models/kgitproxy_list_repositories_reply.py rename to koyeb/api/models/kgitproxy_list_repositories_reply.py index f48bc743..8c2848eb 100644 --- a/koyeb/models/kgitproxy_list_repositories_reply.py +++ b/koyeb/api/models/kgitproxy_list_repositories_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.kgitproxy_repository import KgitproxyRepository +from koyeb.api.models.kgitproxy_repository import KgitproxyRepository from typing import Optional, Set from typing_extensions import Self - class KgitproxyListRepositoriesReply(BaseModel): """ KgitproxyListRepositoriesReply - """ # noqa: E501 - - repositories: Optional[List[KgitproxyRepository]] = Field( - default=None, description="The collection of repositories." - ) - limit: Optional[StrictInt] = Field( - default=None, description="The limit in the request." - ) - offset: Optional[StrictInt] = Field( - default=None, description="The offset in the request." - ) - count: Optional[StrictInt] = Field( - default=None, description="The total number of items." - ) + """ # noqa: E501 + repositories: Optional[List[KgitproxyRepository]] = Field(default=None, description="The collection of repositories.") + limit: Optional[StrictInt] = Field(default=None, description="The limit in the request.") + offset: Optional[StrictInt] = Field(default=None, description="The offset in the request.") + count: Optional[StrictInt] = Field(default=None, description="The total number of items.") __properties: ClassVar[List[str]] = ["repositories", "limit", "offset", "count"] model_config = ConfigDict( @@ -49,6 +39,7 @@ class KgitproxyListRepositoriesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -86,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_repositories in self.repositories: if _item_repositories: _items.append(_item_repositories.to_dict()) - _dict["repositories"] = _items + _dict['repositories'] = _items return _dict @classmethod @@ -98,19 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "repositories": ( - [ - KgitproxyRepository.from_dict(_item) - for _item in obj["repositories"] - ] - if obj.get("repositories") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "repositories": [KgitproxyRepository.from_dict(_item) for _item in obj["repositories"]] if obj.get("repositories") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/kgitproxy_repository.py b/koyeb/api/models/kgitproxy_repository.py similarity index 57% rename from koyeb/models/kgitproxy_repository.py rename to koyeb/api/models/kgitproxy_repository.py index d2f1e870..2ae437a5 100644 --- a/koyeb/models/kgitproxy_repository.py +++ b/koyeb/api/models/kgitproxy_repository.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository -from koyeb.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider +from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository +from koyeb.api.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider from typing import Optional, Set from typing_extensions import Self - class KgitproxyRepository(BaseModel): """ KgitproxyRepository - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None name: Optional[StrictStr] = None @@ -39,24 +37,10 @@ class KgitproxyRepository(BaseModel): is_private: Optional[StrictBool] = None is_disabled: Optional[StrictBool] = None default_branch: Optional[StrictStr] = None - provider: Optional[KgitproxyRepositoryProvider] = ( - KgitproxyRepositoryProvider.INVALID_PROVIDER - ) + provider: Optional[KgitproxyRepositoryProvider] = KgitproxyRepositoryProvider.INVALID_PROVIDER last_push_date: Optional[datetime] = None github: Optional[KgitproxyGitHubRepository] = None - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "name", - "url", - "description", - "is_private", - "is_disabled", - "default_branch", - "provider", - "last_push_date", - "github", - ] + __properties: ClassVar[List[str]] = ["id", "organization_id", "name", "url", "description", "is_private", "is_disabled", "default_branch", "provider", "last_push_date", "github"] model_config = ConfigDict( populate_by_name=True, @@ -64,6 +48,7 @@ class KgitproxyRepository(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -88,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -97,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of github if self.github: - _dict["github"] = self.github.to_dict() + _dict['github'] = self.github.to_dict() return _dict @classmethod @@ -109,27 +95,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "name": obj.get("name"), - "url": obj.get("url"), - "description": obj.get("description"), - "is_private": obj.get("is_private"), - "is_disabled": obj.get("is_disabled"), - "default_branch": obj.get("default_branch"), - "provider": ( - obj.get("provider") - if obj.get("provider") is not None - else KgitproxyRepositoryProvider.INVALID_PROVIDER - ), - "last_push_date": obj.get("last_push_date"), - "github": ( - KgitproxyGitHubRepository.from_dict(obj["github"]) - if obj.get("github") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "name": obj.get("name"), + "url": obj.get("url"), + "description": obj.get("description"), + "is_private": obj.get("is_private"), + "is_disabled": obj.get("is_disabled"), + "default_branch": obj.get("default_branch"), + "provider": obj.get("provider") if obj.get("provider") is not None else KgitproxyRepositoryProvider.INVALID_PROVIDER, + "last_push_date": obj.get("last_push_date"), + "github": KgitproxyGitHubRepository.from_dict(obj["github"]) if obj.get("github") is not None else None + }) return _obj + + diff --git a/koyeb/models/kgitproxy_repository_provider.py b/koyeb/api/models/kgitproxy_repository_provider.py similarity index 56% rename from koyeb/models/kgitproxy_repository_provider.py rename to koyeb/api/models/kgitproxy_repository_provider.py index 53913b60..123d8ee8 100644 --- a/koyeb/models/kgitproxy_repository_provider.py +++ b/koyeb/api/models/kgitproxy_repository_provider.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ class KgitproxyRepositoryProvider(str, Enum): """ allowed enum values """ - INVALID_PROVIDER = "INVALID_PROVIDER" - GITHUB = "GITHUB" + INVALID_PROVIDER = 'INVALID_PROVIDER' + GITHUB = 'GITHUB' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of KgitproxyRepositoryProvider from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/ksearch_app.py b/koyeb/api/models/ksearch_app.py similarity index 79% rename from koyeb/models/ksearch_app.py rename to koyeb/api/models/ksearch_app.py index 0d18ba4f..39002689 100644 --- a/koyeb/models/ksearch_app.py +++ b/koyeb/api/models/ksearch_app.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchApp(BaseModel): """ KsearchApp - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None name: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class KsearchApp(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "name": obj.get("name"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/ksearch_global_deployment.py b/koyeb/api/models/ksearch_global_deployment.py similarity index 74% rename from koyeb/models/ksearch_global_deployment.py rename to koyeb/api/models/ksearch_global_deployment.py index bf9c1629..2c23406c 100644 --- a/koyeb/models/ksearch_global_deployment.py +++ b/koyeb/api/models/ksearch_global_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,22 +22,15 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchGlobalDeployment(BaseModel): """ KsearchGlobalDeployment - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None service_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "app_id", - "service_id", - ] + __properties: ClassVar[List[str]] = ["id", "organization_id", "app_id", "service_id"] model_config = ConfigDict( populate_by_name=True, @@ -45,6 +38,7 @@ class KsearchGlobalDeployment(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -87,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id") + }) return _obj + + diff --git a/koyeb/models/ksearch_instance.py b/koyeb/api/models/ksearch_instance.py similarity index 72% rename from koyeb/models/ksearch_instance.py rename to koyeb/api/models/ksearch_instance.py index 221d567b..45fe55ba 100644 --- a/koyeb/models/ksearch_instance.py +++ b/koyeb/api/models/ksearch_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,24 +22,16 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchInstance(BaseModel): """ KsearchInstance - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None service_id: Optional[StrictStr] = None allocation_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "app_id", - "service_id", - "allocation_id", - ] + __properties: ClassVar[List[str]] = ["id", "organization_id", "app_id", "service_id", "allocation_id"] model_config = ConfigDict( populate_by_name=True, @@ -47,6 +39,7 @@ class KsearchInstance(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -89,13 +83,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "allocation_id": obj.get("allocation_id"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "allocation_id": obj.get("allocation_id") + }) return _obj + + diff --git a/koyeb/models/ksearch_organization.py b/koyeb/api/models/ksearch_organization.py similarity index 81% rename from koyeb/models/ksearch_organization.py rename to koyeb/api/models/ksearch_organization.py index 7f87d995..2009ea9c 100644 --- a/koyeb/models/ksearch_organization.py +++ b/koyeb/api/models/ksearch_organization.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchOrganization(BaseModel): """ KsearchOrganization - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "name"] @@ -38,6 +36,7 @@ class KsearchOrganization(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/ksearch_regional_deployment.py b/koyeb/api/models/ksearch_regional_deployment.py similarity index 73% rename from koyeb/models/ksearch_regional_deployment.py rename to koyeb/api/models/ksearch_regional_deployment.py index 0c352cdb..88da3ca6 100644 --- a/koyeb/models/ksearch_regional_deployment.py +++ b/koyeb/api/models/ksearch_regional_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,24 +22,16 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchRegionalDeployment(BaseModel): """ KsearchRegionalDeployment - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None service_id: Optional[StrictStr] = None region: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "app_id", - "service_id", - "region", - ] + __properties: ClassVar[List[str]] = ["id", "organization_id", "app_id", "service_id", "region"] model_config = ConfigDict( populate_by_name=True, @@ -47,6 +39,7 @@ class KsearchRegionalDeployment(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -89,13 +83,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "region": obj.get("region"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "region": obj.get("region") + }) return _obj + + diff --git a/koyeb/models/ksearch_search_reply.py b/koyeb/api/models/ksearch_search_reply.py similarity index 59% rename from koyeb/models/ksearch_search_reply.py rename to koyeb/api/models/ksearch_search_reply.py index b707682e..6e8e7081 100644 --- a/koyeb/models/ksearch_search_reply.py +++ b/koyeb/api/models/ksearch_search_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,22 +19,20 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.ksearch_app import KsearchApp -from koyeb.models.ksearch_global_deployment import KsearchGlobalDeployment -from koyeb.models.ksearch_instance import KsearchInstance -from koyeb.models.ksearch_organization import KsearchOrganization -from koyeb.models.ksearch_regional_deployment import KsearchRegionalDeployment -from koyeb.models.ksearch_service import KsearchService -from koyeb.models.ksearch_user import KsearchUser +from koyeb.api.models.ksearch_app import KsearchApp +from koyeb.api.models.ksearch_global_deployment import KsearchGlobalDeployment +from koyeb.api.models.ksearch_instance import KsearchInstance +from koyeb.api.models.ksearch_organization import KsearchOrganization +from koyeb.api.models.ksearch_regional_deployment import KsearchRegionalDeployment +from koyeb.api.models.ksearch_service import KsearchService +from koyeb.api.models.ksearch_user import KsearchUser from typing import Optional, Set from typing_extensions import Self - class KsearchSearchReply(BaseModel): """ KsearchSearchReply - """ # noqa: E501 - + """ # noqa: E501 organizations: Optional[List[KsearchOrganization]] = None users: Optional[List[KsearchUser]] = None apps: Optional[List[KsearchApp]] = None @@ -42,15 +40,7 @@ class KsearchSearchReply(BaseModel): global_deployments: Optional[List[KsearchGlobalDeployment]] = None regional_deployments: Optional[List[KsearchRegionalDeployment]] = None instances: Optional[List[KsearchInstance]] = None - __properties: ClassVar[List[str]] = [ - "organizations", - "users", - "apps", - "services", - "global_deployments", - "regional_deployments", - "instances", - ] + __properties: ClassVar[List[str]] = ["organizations", "users", "apps", "services", "global_deployments", "regional_deployments", "instances"] model_config = ConfigDict( populate_by_name=True, @@ -58,6 +48,7 @@ class KsearchSearchReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -95,49 +87,49 @@ def to_dict(self) -> Dict[str, Any]: for _item_organizations in self.organizations: if _item_organizations: _items.append(_item_organizations.to_dict()) - _dict["organizations"] = _items + _dict['organizations'] = _items # override the default output from pydantic by calling `to_dict()` of each item in users (list) _items = [] if self.users: for _item_users in self.users: if _item_users: _items.append(_item_users.to_dict()) - _dict["users"] = _items + _dict['users'] = _items # override the default output from pydantic by calling `to_dict()` of each item in apps (list) _items = [] if self.apps: for _item_apps in self.apps: if _item_apps: _items.append(_item_apps.to_dict()) - _dict["apps"] = _items + _dict['apps'] = _items # override the default output from pydantic by calling `to_dict()` of each item in services (list) _items = [] if self.services: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict["services"] = _items + _dict['services'] = _items # override the default output from pydantic by calling `to_dict()` of each item in global_deployments (list) _items = [] if self.global_deployments: for _item_global_deployments in self.global_deployments: if _item_global_deployments: _items.append(_item_global_deployments.to_dict()) - _dict["global_deployments"] = _items + _dict['global_deployments'] = _items # override the default output from pydantic by calling `to_dict()` of each item in regional_deployments (list) _items = [] if self.regional_deployments: for _item_regional_deployments in self.regional_deployments: if _item_regional_deployments: _items.append(_item_regional_deployments.to_dict()) - _dict["regional_deployments"] = _items + _dict['regional_deployments'] = _items # override the default output from pydantic by calling `to_dict()` of each item in instances (list) _items = [] if self.instances: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict["instances"] = _items + _dict['instances'] = _items return _dict @classmethod @@ -149,52 +141,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organizations": ( - [ - KsearchOrganization.from_dict(_item) - for _item in obj["organizations"] - ] - if obj.get("organizations") is not None - else None - ), - "users": ( - [KsearchUser.from_dict(_item) for _item in obj["users"]] - if obj.get("users") is not None - else None - ), - "apps": ( - [KsearchApp.from_dict(_item) for _item in obj["apps"]] - if obj.get("apps") is not None - else None - ), - "services": ( - [KsearchService.from_dict(_item) for _item in obj["services"]] - if obj.get("services") is not None - else None - ), - "global_deployments": ( - [ - KsearchGlobalDeployment.from_dict(_item) - for _item in obj["global_deployments"] - ] - if obj.get("global_deployments") is not None - else None - ), - "regional_deployments": ( - [ - KsearchRegionalDeployment.from_dict(_item) - for _item in obj["regional_deployments"] - ] - if obj.get("regional_deployments") is not None - else None - ), - "instances": ( - [KsearchInstance.from_dict(_item) for _item in obj["instances"]] - if obj.get("instances") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "organizations": [KsearchOrganization.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None, + "users": [KsearchUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "apps": [KsearchApp.from_dict(_item) for _item in obj["apps"]] if obj.get("apps") is not None else None, + "services": [KsearchService.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None, + "global_deployments": [KsearchGlobalDeployment.from_dict(_item) for _item in obj["global_deployments"]] if obj.get("global_deployments") is not None else None, + "regional_deployments": [KsearchRegionalDeployment.from_dict(_item) for _item in obj["regional_deployments"]] if obj.get("regional_deployments") is not None else None, + "instances": [KsearchInstance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None + }) return _obj + + diff --git a/koyeb/models/ksearch_service.py b/koyeb/api/models/ksearch_service.py similarity index 78% rename from koyeb/models/ksearch_service.py rename to koyeb/api/models/ksearch_service.py index 9adfd0f2..0ef74ed8 100644 --- a/koyeb/models/ksearch_service.py +++ b/koyeb/api/models/ksearch_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchService(BaseModel): """ KsearchService - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class KsearchService(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "name": obj.get("name"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/ksearch_user.py b/koyeb/api/models/ksearch_user.py similarity index 78% rename from koyeb/models/ksearch_user.py rename to koyeb/api/models/ksearch_user.py index 03458a61..75bcef37 100644 --- a/koyeb/models/ksearch_user.py +++ b/koyeb/api/models/ksearch_user.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class KsearchUser(BaseModel): """ KsearchUser - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None email: Optional[StrictStr] = None name: Optional[StrictStr] = None @@ -40,6 +38,7 @@ class KsearchUser(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "email": obj.get("email"), - "name": obj.get("name"), - "github_user": obj.get("github_user"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email"), + "name": obj.get("name"), + "github_user": obj.get("github_user") + }) return _obj + + diff --git a/koyeb/models/list_app_events_reply.py b/koyeb/api/models/list_app_events_reply.py similarity index 71% rename from koyeb/models/list_app_events_reply.py rename to koyeb/api/models/list_app_events_reply.py index d124b150..f35e2c73 100644 --- a/koyeb/models/list_app_events_reply.py +++ b/koyeb/api/models/list_app_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app_event import AppEvent +from koyeb.api.models.app_event import AppEvent from typing import Optional, Set from typing_extensions import Self - class ListAppEventsReply(BaseModel): """ ListAppEventsReply - """ # noqa: E501 - + """ # noqa: E501 events: Optional[List[AppEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "events", - "limit", - "offset", - "order", - "has_next", - ] + __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListAppEventsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict["events"] = _items + _dict['events'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "events": ( - [AppEvent.from_dict(_item) for _item in obj["events"]] - if obj.get("events") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "events": [AppEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_apps_reply.py b/koyeb/api/models/list_apps_reply.py similarity index 74% rename from koyeb/models/list_apps_reply.py rename to koyeb/api/models/list_apps_reply.py index c8c4803b..bda0210d 100644 --- a/koyeb/models/list_apps_reply.py +++ b/koyeb/api/models/list_apps_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app_list_item import AppListItem +from koyeb.api.models.app_list_item import AppListItem from typing import Optional, Set from typing_extensions import Self - class ListAppsReply(BaseModel): """ ListAppsReply - """ # noqa: E501 - + """ # noqa: E501 apps: Optional[List[AppListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -42,6 +40,7 @@ class ListAppsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_apps in self.apps: if _item_apps: _items.append(_item_apps.to_dict()) - _dict["apps"] = _items + _dict['apps'] = _items return _dict @classmethod @@ -91,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "apps": ( - [AppListItem.from_dict(_item) for _item in obj["apps"]] - if obj.get("apps") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "apps": [AppListItem.from_dict(_item) for _item in obj["apps"]] if obj.get("apps") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_catalog_instances_reply.py b/koyeb/api/models/list_catalog_instances_reply.py similarity index 72% rename from koyeb/models/list_catalog_instances_reply.py rename to koyeb/api/models/list_catalog_instances_reply.py index 312a52ba..0de65f35 100644 --- a/koyeb/models/list_catalog_instances_reply.py +++ b/koyeb/api/models/list_catalog_instances_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.catalog_instance_list_item import CatalogInstanceListItem +from koyeb.api.models.catalog_instance_list_item import CatalogInstanceListItem from typing import Optional, Set from typing_extensions import Self - class ListCatalogInstancesReply(BaseModel): """ ListCatalogInstancesReply - """ # noqa: E501 - + """ # noqa: E501 instances: Optional[List[CatalogInstanceListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListCatalogInstancesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict["instances"] = _items + _dict['instances'] = _items return _dict @classmethod @@ -90,19 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "instances": ( - [ - CatalogInstanceListItem.from_dict(_item) - for _item in obj["instances"] - ] - if obj.get("instances") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "instances": [CatalogInstanceListItem.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_credentials_reply.py b/koyeb/api/models/list_credentials_reply.py similarity index 74% rename from koyeb/models/list_credentials_reply.py rename to koyeb/api/models/list_credentials_reply.py index e8bd96bc..6d94f3b1 100644 --- a/koyeb/models/list_credentials_reply.py +++ b/koyeb/api/models/list_credentials_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.credential import Credential +from koyeb.api.models.credential import Credential from typing import Optional, Set from typing_extensions import Self - class ListCredentialsReply(BaseModel): """ ListCredentialsReply - """ # noqa: E501 - + """ # noqa: E501 credentials: Optional[List[Credential]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListCredentialsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_credentials in self.credentials: if _item_credentials: _items.append(_item_credentials.to_dict()) - _dict["credentials"] = _items + _dict['credentials'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "credentials": ( - [Credential.from_dict(_item) for _item in obj["credentials"]] - if obj.get("credentials") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "credentials": [Credential.from_dict(_item) for _item in obj["credentials"]] if obj.get("credentials") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_datacenters_reply.py b/koyeb/api/models/list_datacenters_reply.py similarity index 74% rename from koyeb/models/list_datacenters_reply.py rename to koyeb/api/models/list_datacenters_reply.py index 7044f99d..775e4304 100644 --- a/koyeb/models/list_datacenters_reply.py +++ b/koyeb/api/models/list_datacenters_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.datacenter_list_item import DatacenterListItem +from koyeb.api.models.datacenter_list_item import DatacenterListItem from typing import Optional, Set from typing_extensions import Self - class ListDatacentersReply(BaseModel): """ ListDatacentersReply - """ # noqa: E501 - + """ # noqa: E501 datacenters: Optional[List[DatacenterListItem]] = None __properties: ClassVar[List[str]] = ["datacenters"] @@ -38,6 +36,7 @@ class ListDatacentersReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_datacenters in self.datacenters: if _item_datacenters: _items.append(_item_datacenters.to_dict()) - _dict["datacenters"] = _items + _dict['datacenters'] = _items return _dict @classmethod @@ -87,16 +87,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "datacenters": ( - [ - DatacenterListItem.from_dict(_item) - for _item in obj["datacenters"] - ] - if obj.get("datacenters") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "datacenters": [DatacenterListItem.from_dict(_item) for _item in obj["datacenters"]] if obj.get("datacenters") is not None else None + }) return _obj + + diff --git a/koyeb/models/list_deployment_events_reply.py b/koyeb/api/models/list_deployment_events_reply.py similarity index 70% rename from koyeb/models/list_deployment_events_reply.py rename to koyeb/api/models/list_deployment_events_reply.py index f91a2f9c..25974cb8 100644 --- a/koyeb/models/list_deployment_events_reply.py +++ b/koyeb/api/models/list_deployment_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_event import DeploymentEvent +from koyeb.api.models.deployment_event import DeploymentEvent from typing import Optional, Set from typing_extensions import Self - class ListDeploymentEventsReply(BaseModel): """ ListDeploymentEventsReply - """ # noqa: E501 - + """ # noqa: E501 events: Optional[List[DeploymentEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "events", - "limit", - "offset", - "order", - "has_next", - ] + __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListDeploymentEventsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict["events"] = _items + _dict['events'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "events": ( - [DeploymentEvent.from_dict(_item) for _item in obj["events"]] - if obj.get("events") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "events": [DeploymentEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_deployments_reply.py b/koyeb/api/models/list_deployments_reply.py similarity index 68% rename from koyeb/models/list_deployments_reply.py rename to koyeb/api/models/list_deployments_reply.py index 21e1b8d8..e99ea154 100644 --- a/koyeb/models/list_deployments_reply.py +++ b/koyeb/api/models/list_deployments_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_list_item import DeploymentListItem +from koyeb.api.models.deployment_list_item import DeploymentListItem from typing import Optional, Set from typing_extensions import Self - class ListDeploymentsReply(BaseModel): """ ListDeploymentsReply - """ # noqa: E501 - + """ # noqa: E501 deployments: Optional[List[DeploymentListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "deployments", - "limit", - "offset", - "count", - "has_next", - ] + __properties: ClassVar[List[str]] = ["deployments", "limit", "offset", "count", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListDeploymentsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_deployments in self.deployments: if _item_deployments: _items.append(_item_deployments.to_dict()) - _dict["deployments"] = _items + _dict['deployments'] = _items return _dict @classmethod @@ -97,20 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "deployments": ( - [ - DeploymentListItem.from_dict(_item) - for _item in obj["deployments"] - ] - if obj.get("deployments") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "deployments": [DeploymentListItem.from_dict(_item) for _item in obj["deployments"]] if obj.get("deployments") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_domains_reply.py b/koyeb/api/models/list_domains_reply.py similarity index 75% rename from koyeb/models/list_domains_reply.py rename to koyeb/api/models/list_domains_reply.py index 0a61dae0..a4669c35 100644 --- a/koyeb/models/list_domains_reply.py +++ b/koyeb/api/models/list_domains_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain import Domain +from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self - class ListDomainsReply(BaseModel): """ ListDomainsReply - """ # noqa: E501 - + """ # noqa: E501 domains: Optional[List[Domain]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListDomainsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_domains in self.domains: if _item_domains: _items.append(_item_domains.to_dict()) - _dict["domains"] = _items + _dict['domains'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "domains": ( - [Domain.from_dict(_item) for _item in obj["domains"]] - if obj.get("domains") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "domains": [Domain.from_dict(_item) for _item in obj["domains"]] if obj.get("domains") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_instance_events_reply.py b/koyeb/api/models/list_instance_events_reply.py similarity index 70% rename from koyeb/models/list_instance_events_reply.py rename to koyeb/api/models/list_instance_events_reply.py index be8d0716..a46d93e6 100644 --- a/koyeb/models/list_instance_events_reply.py +++ b/koyeb/api/models/list_instance_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance_event import InstanceEvent +from koyeb.api.models.instance_event import InstanceEvent from typing import Optional, Set from typing_extensions import Self - class ListInstanceEventsReply(BaseModel): """ ListInstanceEventsReply - """ # noqa: E501 - + """ # noqa: E501 events: Optional[List[InstanceEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "events", - "limit", - "offset", - "order", - "has_next", - ] + __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListInstanceEventsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict["events"] = _items + _dict['events'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "events": ( - [InstanceEvent.from_dict(_item) for _item in obj["events"]] - if obj.get("events") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "events": [InstanceEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_instances_reply.py b/koyeb/api/models/list_instances_reply.py similarity index 70% rename from koyeb/models/list_instances_reply.py rename to koyeb/api/models/list_instances_reply.py index e75c00cb..f787df7a 100644 --- a/koyeb/models/list_instances_reply.py +++ b/koyeb/api/models/list_instances_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance_list_item import InstanceListItem +from koyeb.api.models.instance_list_item import InstanceListItem from typing import Optional, Set from typing_extensions import Self - class ListInstancesReply(BaseModel): """ ListInstancesReply - """ # noqa: E501 - + """ # noqa: E501 instances: Optional[List[InstanceListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None order: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "instances", - "limit", - "offset", - "count", - "order", - ] + __properties: ClassVar[List[str]] = ["instances", "limit", "offset", "count", "order"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListInstancesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict["instances"] = _items + _dict['instances'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "instances": ( - [InstanceListItem.from_dict(_item) for _item in obj["instances"]] - if obj.get("instances") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "order": obj.get("order"), - } - ) + _obj = cls.model_validate({ + "instances": [InstanceListItem.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "order": obj.get("order") + }) return _obj + + diff --git a/koyeb/models/list_organization_invitations_reply.py b/koyeb/api/models/list_organization_invitations_reply.py similarity index 73% rename from koyeb/models/list_organization_invitations_reply.py rename to koyeb/api/models/list_organization_invitations_reply.py index 4ca61842..87188b99 100644 --- a/koyeb/models/list_organization_invitations_reply.py +++ b/koyeb/api/models/list_organization_invitations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class ListOrganizationInvitationsReply(BaseModel): """ ListOrganizationInvitationsReply - """ # noqa: E501 - + """ # noqa: E501 invitations: Optional[List[OrganizationInvitation]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListOrganizationInvitationsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_invitations in self.invitations: if _item_invitations: _items.append(_item_invitations.to_dict()) - _dict["invitations"] = _items + _dict['invitations'] = _items return _dict @classmethod @@ -90,19 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitations": ( - [ - OrganizationInvitation.from_dict(_item) - for _item in obj["invitations"] - ] - if obj.get("invitations") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "invitations": [OrganizationInvitation.from_dict(_item) for _item in obj["invitations"]] if obj.get("invitations") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_organization_members_reply.py b/koyeb/api/models/list_organization_members_reply.py similarity index 74% rename from koyeb/models/list_organization_members_reply.py rename to koyeb/api/models/list_organization_members_reply.py index 17d8010b..9c3fbd76 100644 --- a/koyeb/models/list_organization_members_reply.py +++ b/koyeb/api/models/list_organization_members_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_member import OrganizationMember +from koyeb.api.models.organization_member import OrganizationMember from typing import Optional, Set from typing_extensions import Self - class ListOrganizationMembersReply(BaseModel): """ ListOrganizationMembersReply - """ # noqa: E501 - + """ # noqa: E501 members: Optional[List[OrganizationMember]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListOrganizationMembersReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_members in self.members: if _item_members: _items.append(_item_members.to_dict()) - _dict["members"] = _items + _dict['members'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "members": ( - [OrganizationMember.from_dict(_item) for _item in obj["members"]] - if obj.get("members") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "members": [OrganizationMember.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_payment_methods_reply.py b/koyeb/api/models/list_payment_methods_reply.py similarity index 74% rename from koyeb/models/list_payment_methods_reply.py rename to koyeb/api/models/list_payment_methods_reply.py index 5cd3354d..e3fa354a 100644 --- a/koyeb/models/list_payment_methods_reply.py +++ b/koyeb/api/models/list_payment_methods_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.payment_method import PaymentMethod +from koyeb.api.models.payment_method import PaymentMethod from typing import Optional, Set from typing_extensions import Self - class ListPaymentMethodsReply(BaseModel): """ ListPaymentMethodsReply - """ # noqa: E501 - + """ # noqa: E501 payment_methods: Optional[List[PaymentMethod]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListPaymentMethodsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_payment_methods in self.payment_methods: if _item_payment_methods: _items.append(_item_payment_methods.to_dict()) - _dict["payment_methods"] = _items + _dict['payment_methods'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "payment_methods": ( - [PaymentMethod.from_dict(_item) for _item in obj["payment_methods"]] - if obj.get("payment_methods") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "payment_methods": [PaymentMethod.from_dict(_item) for _item in obj["payment_methods"]] if obj.get("payment_methods") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_persistent_volume_events_reply.py b/koyeb/api/models/list_persistent_volume_events_reply.py similarity index 70% rename from koyeb/models/list_persistent_volume_events_reply.py rename to koyeb/api/models/list_persistent_volume_events_reply.py index 7ae56003..db567ac9 100644 --- a/koyeb/models/list_persistent_volume_events_reply.py +++ b/koyeb/api/models/list_persistent_volume_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume_event import PersistentVolumeEvent +from koyeb.api.models.persistent_volume_event import PersistentVolumeEvent from typing import Optional, Set from typing_extensions import Self - class ListPersistentVolumeEventsReply(BaseModel): """ ListPersistentVolumeEventsReply - """ # noqa: E501 - + """ # noqa: E501 events: Optional[List[PersistentVolumeEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "events", - "limit", - "offset", - "order", - "has_next", - ] + __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListPersistentVolumeEventsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict["events"] = _items + _dict['events'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "events": ( - [PersistentVolumeEvent.from_dict(_item) for _item in obj["events"]] - if obj.get("events") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "events": [PersistentVolumeEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_persistent_volumes_reply.py b/koyeb/api/models/list_persistent_volumes_reply.py similarity index 74% rename from koyeb/models/list_persistent_volumes_reply.py rename to koyeb/api/models/list_persistent_volumes_reply.py index f3caa63f..40120635 100644 --- a/koyeb/models/list_persistent_volumes_reply.py +++ b/koyeb/api/models/list_persistent_volumes_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume import PersistentVolume from typing import Optional, Set from typing_extensions import Self - class ListPersistentVolumesReply(BaseModel): """ ListPersistentVolumesReply - """ # noqa: E501 - + """ # noqa: E501 volumes: Optional[List[PersistentVolume]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListPersistentVolumesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_volumes in self.volumes: if _item_volumes: _items.append(_item_volumes.to_dict()) - _dict["volumes"] = _items + _dict['volumes'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "volumes": ( - [PersistentVolume.from_dict(_item) for _item in obj["volumes"]] - if obj.get("volumes") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "volumes": [PersistentVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_regional_deployment_events_reply.py b/koyeb/api/models/list_regional_deployment_events_reply.py similarity index 69% rename from koyeb/models/list_regional_deployment_events_reply.py rename to koyeb/api/models/list_regional_deployment_events_reply.py index e6f0e4da..bf00c3b3 100644 --- a/koyeb/models/list_regional_deployment_events_reply.py +++ b/koyeb/api/models/list_regional_deployment_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.regional_deployment_event import RegionalDeploymentEvent +from koyeb.api.models.regional_deployment_event import RegionalDeploymentEvent from typing import Optional, Set from typing_extensions import Self - class ListRegionalDeploymentEventsReply(BaseModel): """ ListRegionalDeploymentEventsReply - """ # noqa: E501 - + """ # noqa: E501 events: Optional[List[RegionalDeploymentEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "events", - "limit", - "offset", - "order", - "has_next", - ] + __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListRegionalDeploymentEventsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict["events"] = _items + _dict['events'] = _items return _dict @classmethod @@ -97,20 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "events": ( - [ - RegionalDeploymentEvent.from_dict(_item) - for _item in obj["events"] - ] - if obj.get("events") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "events": [RegionalDeploymentEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_regional_deployments_reply.py b/koyeb/api/models/list_regional_deployments_reply.py similarity index 68% rename from koyeb/models/list_regional_deployments_reply.py rename to koyeb/api/models/list_regional_deployments_reply.py index 92943ca2..89a2c444 100644 --- a/koyeb/models/list_regional_deployments_reply.py +++ b/koyeb/api/models/list_regional_deployments_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.regional_deployment_list_item import RegionalDeploymentListItem +from koyeb.api.models.regional_deployment_list_item import RegionalDeploymentListItem from typing import Optional, Set from typing_extensions import Self - class ListRegionalDeploymentsReply(BaseModel): """ ListRegionalDeploymentsReply - """ # noqa: E501 - + """ # noqa: E501 regional_deployments: Optional[List[RegionalDeploymentListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "regional_deployments", - "limit", - "offset", - "count", - "has_next", - ] + __properties: ClassVar[List[str]] = ["regional_deployments", "limit", "offset", "count", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListRegionalDeploymentsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_regional_deployments in self.regional_deployments: if _item_regional_deployments: _items.append(_item_regional_deployments.to_dict()) - _dict["regional_deployments"] = _items + _dict['regional_deployments'] = _items return _dict @classmethod @@ -97,20 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "regional_deployments": ( - [ - RegionalDeploymentListItem.from_dict(_item) - for _item in obj["regional_deployments"] - ] - if obj.get("regional_deployments") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "regional_deployments": [RegionalDeploymentListItem.from_dict(_item) for _item in obj["regional_deployments"]] if obj.get("regional_deployments") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_regions_reply.py b/koyeb/api/models/list_regions_reply.py similarity index 74% rename from koyeb/models/list_regions_reply.py rename to koyeb/api/models/list_regions_reply.py index 41e37fe7..f11cec40 100644 --- a/koyeb/models/list_regions_reply.py +++ b/koyeb/api/models/list_regions_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.region_list_item import RegionListItem +from koyeb.api.models.region_list_item import RegionListItem from typing import Optional, Set from typing_extensions import Self - class ListRegionsReply(BaseModel): """ ListRegionsReply - """ # noqa: E501 - + """ # noqa: E501 regions: Optional[List[RegionListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListRegionsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_regions in self.regions: if _item_regions: _items.append(_item_regions.to_dict()) - _dict["regions"] = _items + _dict['regions'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "regions": ( - [RegionListItem.from_dict(_item) for _item in obj["regions"]] - if obj.get("regions") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "regions": [RegionListItem.from_dict(_item) for _item in obj["regions"]] if obj.get("regions") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_secrets_reply.py b/koyeb/api/models/list_secrets_reply.py similarity index 75% rename from koyeb/models/list_secrets_reply.py rename to koyeb/api/models/list_secrets_reply.py index 7e32d9ad..635d83ac 100644 --- a/koyeb/models/list_secrets_reply.py +++ b/koyeb/api/models/list_secrets_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.secret import Secret +from koyeb.api.models.secret import Secret from typing import Optional, Set from typing_extensions import Self - class ListSecretsReply(BaseModel): """ ListSecretsReply - """ # noqa: E501 - + """ # noqa: E501 secrets: Optional[List[Secret]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListSecretsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_secrets in self.secrets: if _item_secrets: _items.append(_item_secrets.to_dict()) - _dict["secrets"] = _items + _dict['secrets'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secrets": ( - [Secret.from_dict(_item) for _item in obj["secrets"]] - if obj.get("secrets") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "secrets": [Secret.from_dict(_item) for _item in obj["secrets"]] if obj.get("secrets") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_service_events_reply.py b/koyeb/api/models/list_service_events_reply.py similarity index 70% rename from koyeb/models/list_service_events_reply.py rename to koyeb/api/models/list_service_events_reply.py index ba31bdc5..ce24c623 100644 --- a/koyeb/models/list_service_events_reply.py +++ b/koyeb/api/models/list_service_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service_event import ServiceEvent +from koyeb.api.models.service_event import ServiceEvent from typing import Optional, Set from typing_extensions import Self - class ListServiceEventsReply(BaseModel): """ ListServiceEventsReply - """ # noqa: E501 - + """ # noqa: E501 events: Optional[List[ServiceEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "events", - "limit", - "offset", - "order", - "has_next", - ] + __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListServiceEventsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict["events"] = _items + _dict['events'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "events": ( - [ServiceEvent.from_dict(_item) for _item in obj["events"]] - if obj.get("events") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "events": [ServiceEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_services_reply.py b/koyeb/api/models/list_services_reply.py similarity index 70% rename from koyeb/models/list_services_reply.py rename to koyeb/api/models/list_services_reply.py index bee52757..312bba23 100644 --- a/koyeb/models/list_services_reply.py +++ b/koyeb/api/models/list_services_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service_list_item import ServiceListItem +from koyeb.api.models.service_list_item import ServiceListItem from typing import Optional, Set from typing_extensions import Self - class ListServicesReply(BaseModel): """ ListServicesReply - """ # noqa: E501 - + """ # noqa: E501 services: Optional[List[ServiceListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "services", - "limit", - "offset", - "count", - "has_next", - ] + __properties: ClassVar[List[str]] = ["services", "limit", "offset", "count", "has_next"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +40,7 @@ class ListServicesReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict["services"] = _items + _dict['services'] = _items return _dict @classmethod @@ -97,17 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "services": ( - [ServiceListItem.from_dict(_item) for _item in obj["services"]] - if obj.get("services") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "services": [ServiceListItem.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_snapshots_reply.py b/koyeb/api/models/list_snapshots_reply.py similarity index 75% rename from koyeb/models/list_snapshots_reply.py rename to koyeb/api/models/list_snapshots_reply.py index 6fb8d1cc..b3191921 100644 --- a/koyeb/models/list_snapshots_reply.py +++ b/koyeb/api/models/list_snapshots_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.snapshot import Snapshot +from koyeb.api.models.snapshot import Snapshot from typing import Optional, Set from typing_extensions import Self - class ListSnapshotsReply(BaseModel): """ ListSnapshotsReply - """ # noqa: E501 - + """ # noqa: E501 snapshots: Optional[List[Snapshot]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListSnapshotsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_snapshots in self.snapshots: if _item_snapshots: _items.append(_item_snapshots.to_dict()) - _dict["snapshots"] = _items + _dict['snapshots'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "snapshots": ( - [Snapshot.from_dict(_item) for _item in obj["snapshots"]] - if obj.get("snapshots") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "snapshots": [Snapshot.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/list_usage_reply.py b/koyeb/api/models/list_usage_reply.py similarity index 75% rename from koyeb/models/list_usage_reply.py rename to koyeb/api/models/list_usage_reply.py index 4af0a817..3f0f96c8 100644 --- a/koyeb/models/list_usage_reply.py +++ b/koyeb/api/models/list_usage_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.catalog_usage import CatalogUsage +from koyeb.api.models.catalog_usage import CatalogUsage from typing import Optional, Set from typing_extensions import Self - class ListUsageReply(BaseModel): """ ListUsageReply - """ # noqa: E501 - + """ # noqa: E501 usage: Optional[CatalogUsage] = None __properties: ClassVar[List[str]] = ["usage"] @@ -38,6 +36,7 @@ class ListUsageReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of usage if self.usage: - _dict["usage"] = self.usage.to_dict() + _dict['usage'] = self.usage.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "usage": ( - CatalogUsage.from_dict(obj["usage"]) - if obj.get("usage") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "usage": CatalogUsage.from_dict(obj["usage"]) if obj.get("usage") is not None else None + }) return _obj + + diff --git a/koyeb/models/list_user_organization_invitations_reply.py b/koyeb/api/models/list_user_organization_invitations_reply.py similarity index 73% rename from koyeb/models/list_user_organization_invitations_reply.py rename to koyeb/api/models/list_user_organization_invitations_reply.py index d32fea4f..7c0afc0a 100644 --- a/koyeb/models/list_user_organization_invitations_reply.py +++ b/koyeb/api/models/list_user_organization_invitations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class ListUserOrganizationInvitationsReply(BaseModel): """ ListUserOrganizationInvitationsReply - """ # noqa: E501 - + """ # noqa: E501 invitations: Optional[List[OrganizationInvitation]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListUserOrganizationInvitationsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_invitations in self.invitations: if _item_invitations: _items.append(_item_invitations.to_dict()) - _dict["invitations"] = _items + _dict['invitations'] = _items return _dict @classmethod @@ -90,19 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitations": ( - [ - OrganizationInvitation.from_dict(_item) - for _item in obj["invitations"] - ] - if obj.get("invitations") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "invitations": [OrganizationInvitation.from_dict(_item) for _item in obj["invitations"]] if obj.get("invitations") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count") + }) return _obj + + diff --git a/koyeb/models/list_user_organizations_reply.py b/koyeb/api/models/list_user_organizations_reply.py similarity index 74% rename from koyeb/models/list_user_organizations_reply.py rename to koyeb/api/models/list_user_organizations_reply.py index 4428c1c6..efa0161c 100644 --- a/koyeb/models/list_user_organizations_reply.py +++ b/koyeb/api/models/list_user_organizations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class ListUserOrganizationsReply(BaseModel): """ ListUserOrganizationsReply - """ # noqa: E501 - + """ # noqa: E501 organizations: Optional[List[Organization]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -41,6 +39,7 @@ class ListUserOrganizationsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_organizations in self.organizations: if _item_organizations: _items.append(_item_organizations.to_dict()) - _dict["organizations"] = _items + _dict['organizations'] = _items return _dict @classmethod @@ -90,16 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organizations": ( - [Organization.from_dict(_item) for _item in obj["organizations"]] - if obj.get("organizations") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next"), - } - ) + _obj = cls.model_validate({ + "organizations": [Organization.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next") + }) return _obj + + diff --git a/koyeb/models/log_entry.py b/koyeb/api/models/log_entry.py similarity index 79% rename from koyeb/models/log_entry.py rename to koyeb/api/models/log_entry.py index 3c1230c5..7733a9e1 100644 --- a/koyeb/models/log_entry.py +++ b/koyeb/api/models/log_entry.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class LogEntry(BaseModel): """ LogEntry - """ # noqa: E501 - + """ # noqa: E501 msg: Optional[StrictStr] = None created_at: Optional[datetime] = None labels: Optional[Dict[str, Any]] = None @@ -40,6 +38,7 @@ class LogEntry(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,11 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "msg": obj.get("msg"), - "created_at": obj.get("created_at"), - "labels": obj.get("labels"), - } - ) + _obj = cls.model_validate({ + "msg": obj.get("msg"), + "created_at": obj.get("created_at"), + "labels": obj.get("labels") + }) return _obj + + diff --git a/koyeb/models/login_method_reply.py b/koyeb/api/models/login_method_reply.py similarity index 75% rename from koyeb/models/login_method_reply.py rename to koyeb/api/models/login_method_reply.py index 5141d878..3da96b61 100644 --- a/koyeb/models/login_method_reply.py +++ b/koyeb/api/models/login_method_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.login_method_reply_method import LoginMethodReplyMethod +from koyeb.api.models.login_method_reply_method import LoginMethodReplyMethod from typing import Optional, Set from typing_extensions import Self - class LoginMethodReply(BaseModel): """ LoginMethodReply - """ # noqa: E501 - + """ # noqa: E501 method: Optional[LoginMethodReplyMethod] = LoginMethodReplyMethod.KOYEB __properties: ClassVar[List[str]] = ["method"] @@ -38,6 +36,7 @@ class LoginMethodReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,13 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "method": ( - obj.get("method") - if obj.get("method") is not None - else LoginMethodReplyMethod.KOYEB - ) - } - ) + _obj = cls.model_validate({ + "method": obj.get("method") if obj.get("method") is not None else LoginMethodReplyMethod.KOYEB + }) return _obj + + diff --git a/koyeb/models/login_method_reply_method.py b/koyeb/api/models/login_method_reply_method.py similarity index 57% rename from koyeb/models/login_method_reply_method.py rename to koyeb/api/models/login_method_reply_method.py index ae71be68..a27e8297 100644 --- a/koyeb/models/login_method_reply_method.py +++ b/koyeb/api/models/login_method_reply_method.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ class LoginMethodReplyMethod(str, Enum): """ allowed enum values """ - KOYEB = "KOYEB" - WORKOS = "WORKOS" + KOYEB = 'KOYEB' + WORKOS = 'WORKOS' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of LoginMethodReplyMethod from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/login_reply.py b/koyeb/api/models/login_reply.py similarity index 75% rename from koyeb/models/login_reply.py rename to koyeb/api/models/login_reply.py index 01a1a837..0bbf35d0 100644 --- a/koyeb/models/login_reply.py +++ b/koyeb/api/models/login_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.token import Token +from koyeb.api.models.token import Token from typing import Optional, Set from typing_extensions import Self - class LoginReply(BaseModel): """ LoginReply - """ # noqa: E501 - + """ # noqa: E501 token: Optional[Token] = None __properties: ClassVar[List[str]] = ["token"] @@ -38,6 +36,7 @@ class LoginReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of token if self.token: - _dict["token"] = self.token.to_dict() + _dict['token'] = self.token.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "token": ( - Token.from_dict(obj["token"]) - if obj.get("token") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "token": Token.from_dict(obj["token"]) if obj.get("token") is not None else None + }) return _obj + + diff --git a/koyeb/models/login_request.py b/koyeb/api/models/login_request.py similarity index 79% rename from koyeb/models/login_request.py rename to koyeb/api/models/login_request.py index aab9b26b..fb820d76 100644 --- a/koyeb/models/login_request.py +++ b/koyeb/api/models/login_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class LoginRequest(BaseModel): """ LoginRequest - """ # noqa: E501 - + """ # noqa: E501 email: Optional[StrictStr] = None password: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class LoginRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "email": obj.get("email"), - "password": obj.get("password"), - "organization_id": obj.get("organization_id"), - } - ) + _obj = cls.model_validate({ + "email": obj.get("email"), + "password": obj.get("password"), + "organization_id": obj.get("organization_id") + }) return _obj + + diff --git a/koyeb/models/manage_reply.py b/koyeb/api/models/manage_reply.py similarity index 81% rename from koyeb/models/manage_reply.py rename to koyeb/api/models/manage_reply.py index d803618e..bb68ce34 100644 --- a/koyeb/models/manage_reply.py +++ b/koyeb/api/models/manage_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ManageReply(BaseModel): """ ManageReply - """ # noqa: E501 - + """ # noqa: E501 url: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["url"] @@ -37,6 +35,7 @@ class ManageReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"url": obj.get("url")}) + _obj = cls.model_validate({ + "url": obj.get("url") + }) return _obj + + diff --git a/koyeb/models/members_summary.py b/koyeb/api/models/members_summary.py similarity index 80% rename from koyeb/models/members_summary.py rename to koyeb/api/models/members_summary.py index 5048ac70..f73e001b 100644 --- a/koyeb/models/members_summary.py +++ b/koyeb/api/models/members_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class MembersSummary(BaseModel): """ MembersSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None invitations_by_status: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "invitations_by_status"] @@ -38,6 +36,7 @@ class MembersSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,10 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "total": obj.get("total"), - "invitations_by_status": obj.get("invitations_by_status"), - } - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "invitations_by_status": obj.get("invitations_by_status") + }) return _obj + + diff --git a/koyeb/api/models/metric_name.py b/koyeb/api/models/metric_name.py new file mode 100644 index 00000000..34f66cf4 --- /dev/null +++ b/koyeb/api/models/metric_name.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class MetricName(str, Enum): + """ + MetricName + """ + + """ + allowed enum values + """ + UNKNOWN = 'UNKNOWN' + CPU_TOTAL_PERCENT = 'CPU_TOTAL_PERCENT' + MEM_RSS = 'MEM_RSS' + HTTP_THROUGHPUT = 'HTTP_THROUGHPUT' + HTTP_RESPONSE_TIME_50_P = 'HTTP_RESPONSE_TIME_50P' + HTTP_RESPONSE_TIME_90_P = 'HTTP_RESPONSE_TIME_90P' + HTTP_RESPONSE_TIME_99_P = 'HTTP_RESPONSE_TIME_99P' + HTTP_RESPONSE_TIME_MAX = 'HTTP_RESPONSE_TIME_MAX' + PUBLIC_DATA_TRANSFER_IN = 'PUBLIC_DATA_TRANSFER_IN' + PUBLIC_DATA_TRANSFER_OUT = 'PUBLIC_DATA_TRANSFER_OUT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of MetricName from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/neon_postgres_database.py b/koyeb/api/models/neon_postgres_database.py similarity index 64% rename from koyeb/models/neon_postgres_database.py rename to koyeb/api/models/neon_postgres_database.py index 1da07281..f72eea2b 100644 --- a/koyeb/models/neon_postgres_database.py +++ b/koyeb/api/models/neon_postgres_database.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,31 +19,21 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.neon_postgres_database_neon_database import ( - NeonPostgresDatabaseNeonDatabase, -) -from koyeb.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole +from koyeb.api.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase +from koyeb.api.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole from typing import Optional, Set from typing_extensions import Self - class NeonPostgresDatabase(BaseModel): """ NeonPostgresDatabase - """ # noqa: E501 - + """ # noqa: E501 pg_version: Optional[StrictInt] = None region: Optional[StrictStr] = None instance_type: Optional[StrictStr] = None roles: Optional[List[NeonPostgresDatabaseNeonRole]] = None databases: Optional[List[NeonPostgresDatabaseNeonDatabase]] = None - __properties: ClassVar[List[str]] = [ - "pg_version", - "region", - "instance_type", - "roles", - "databases", - ] + __properties: ClassVar[List[str]] = ["pg_version", "region", "instance_type", "roles", "databases"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +41,7 @@ class NeonPostgresDatabase(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,14 +80,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_roles in self.roles: if _item_roles: _items.append(_item_roles.to_dict()) - _dict["roles"] = _items + _dict['roles'] = _items # override the default output from pydantic by calling `to_dict()` of each item in databases (list) _items = [] if self.databases: for _item_databases in self.databases: if _item_databases: _items.append(_item_databases.to_dict()) - _dict["databases"] = _items + _dict['databases'] = _items return _dict @classmethod @@ -107,27 +99,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "pg_version": obj.get("pg_version"), - "region": obj.get("region"), - "instance_type": obj.get("instance_type"), - "roles": ( - [ - NeonPostgresDatabaseNeonRole.from_dict(_item) - for _item in obj["roles"] - ] - if obj.get("roles") is not None - else None - ), - "databases": ( - [ - NeonPostgresDatabaseNeonDatabase.from_dict(_item) - for _item in obj["databases"] - ] - if obj.get("databases") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "pg_version": obj.get("pg_version"), + "region": obj.get("region"), + "instance_type": obj.get("instance_type"), + "roles": [NeonPostgresDatabaseNeonRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None, + "databases": [NeonPostgresDatabaseNeonDatabase.from_dict(_item) for _item in obj["databases"]] if obj.get("databases") is not None else None + }) return _obj + + diff --git a/koyeb/models/neon_postgres_database_deployment_metadata.py b/koyeb/api/models/neon_postgres_database_deployment_metadata.py similarity index 81% rename from koyeb/models/neon_postgres_database_deployment_metadata.py rename to koyeb/api/models/neon_postgres_database_deployment_metadata.py index f1220e99..6426c79f 100644 --- a/koyeb/models/neon_postgres_database_deployment_metadata.py +++ b/koyeb/api/models/neon_postgres_database_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class NeonPostgresDatabaseDeploymentMetadata(BaseModel): """ NeonPostgresDatabaseDeploymentMetadata - """ # noqa: E501 - + """ # noqa: E501 reset_role_passwords: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["reset_role_passwords"] @@ -37,6 +35,7 @@ class NeonPostgresDatabaseDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"reset_role_passwords": obj.get("reset_role_passwords")} - ) + _obj = cls.model_validate({ + "reset_role_passwords": obj.get("reset_role_passwords") + }) return _obj + + diff --git a/koyeb/models/neon_postgres_database_neon_database.py b/koyeb/api/models/neon_postgres_database_neon_database.py similarity index 81% rename from koyeb/models/neon_postgres_database_neon_database.py rename to koyeb/api/models/neon_postgres_database_neon_database.py index d41f7292..af4acdba 100644 --- a/koyeb/models/neon_postgres_database_neon_database.py +++ b/koyeb/api/models/neon_postgres_database_neon_database.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class NeonPostgresDatabaseNeonDatabase(BaseModel): """ NeonPostgresDatabaseNeonDatabase - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None owner: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name", "owner"] @@ -38,6 +36,7 @@ class NeonPostgresDatabaseNeonDatabase(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name"), "owner": obj.get("owner")}) + _obj = cls.model_validate({ + "name": obj.get("name"), + "owner": obj.get("owner") + }) return _obj + + diff --git a/koyeb/models/neon_postgres_database_neon_role.py b/koyeb/api/models/neon_postgres_database_neon_role.py similarity index 81% rename from koyeb/models/neon_postgres_database_neon_role.py rename to koyeb/api/models/neon_postgres_database_neon_role.py index 63ad74b7..eeec93a7 100644 --- a/koyeb/models/neon_postgres_database_neon_role.py +++ b/koyeb/api/models/neon_postgres_database_neon_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class NeonPostgresDatabaseNeonRole(BaseModel): """ NeonPostgresDatabaseNeonRole - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None secret: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name", "secret"] @@ -38,6 +36,7 @@ class NeonPostgresDatabaseNeonRole(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"name": obj.get("name"), "secret": obj.get("secret")} - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "secret": obj.get("secret") + }) return _obj + + diff --git a/koyeb/models/neon_postgres_summary.py b/koyeb/api/models/neon_postgres_summary.py similarity index 80% rename from koyeb/models/neon_postgres_summary.py rename to koyeb/api/models/neon_postgres_summary.py index 3bd24e36..0634bf5e 100644 --- a/koyeb/models/neon_postgres_summary.py +++ b/koyeb/api/models/neon_postgres_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class NeonPostgresSummary(BaseModel): """ NeonPostgresSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None by_instance_type: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "by_instance_type"] @@ -38,6 +36,7 @@ class NeonPostgresSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"total": obj.get("total"), "by_instance_type": obj.get("by_instance_type")} - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "by_instance_type": obj.get("by_instance_type") + }) return _obj + + diff --git a/koyeb/models/next_invoice_reply.py b/koyeb/api/models/next_invoice_reply.py similarity index 69% rename from koyeb/models/next_invoice_reply.py rename to koyeb/api/models/next_invoice_reply.py index 5d187b95..a8909b61 100644 --- a/koyeb/models/next_invoice_reply.py +++ b/koyeb/api/models/next_invoice_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.next_invoice_reply_discount import NextInvoiceReplyDiscount -from koyeb.models.next_invoice_reply_line import NextInvoiceReplyLine +from koyeb.api.models.next_invoice_reply_discount import NextInvoiceReplyDiscount +from koyeb.api.models.next_invoice_reply_line import NextInvoiceReplyLine from typing import Optional, Set from typing_extensions import Self - class NextInvoiceReply(BaseModel): """ NextInvoiceReply - """ # noqa: E501 - + """ # noqa: E501 stripe_invoice: Optional[Dict[str, Any]] = None lines: Optional[List[NextInvoiceReplyLine]] = None discounts: Optional[List[NextInvoiceReplyDiscount]] = None @@ -41,6 +39,7 @@ class NextInvoiceReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,14 +78,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_lines in self.lines: if _item_lines: _items.append(_item_lines.to_dict()) - _dict["lines"] = _items + _dict['lines'] = _items # override the default output from pydantic by calling `to_dict()` of each item in discounts (list) _items = [] if self.discounts: for _item_discounts in self.discounts: if _item_discounts: _items.append(_item_discounts.to_dict()) - _dict["discounts"] = _items + _dict['discounts'] = _items return _dict @classmethod @@ -97,22 +97,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "stripe_invoice": obj.get("stripe_invoice"), - "lines": ( - [NextInvoiceReplyLine.from_dict(_item) for _item in obj["lines"]] - if obj.get("lines") is not None - else None - ), - "discounts": ( - [ - NextInvoiceReplyDiscount.from_dict(_item) - for _item in obj["discounts"] - ] - if obj.get("discounts") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "stripe_invoice": obj.get("stripe_invoice"), + "lines": [NextInvoiceReplyLine.from_dict(_item) for _item in obj["lines"]] if obj.get("lines") is not None else None, + "discounts": [NextInvoiceReplyDiscount.from_dict(_item) for _item in obj["discounts"]] if obj.get("discounts") is not None else None + }) return _obj + + diff --git a/koyeb/models/next_invoice_reply_discount.py b/koyeb/api/models/next_invoice_reply_discount.py similarity index 70% rename from koyeb/models/next_invoice_reply_discount.py rename to koyeb/api/models/next_invoice_reply_discount.py index 033bf3f2..b441734e 100644 --- a/koyeb/models/next_invoice_reply_discount.py +++ b/koyeb/api/models/next_invoice_reply_discount.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,19 +19,15 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType +from koyeb.api.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType from typing import Optional, Set from typing_extensions import Self - class NextInvoiceReplyDiscount(BaseModel): """ NextInvoiceReplyDiscount - """ # noqa: E501 - - type: Optional[NextInvoiceReplyDiscountType] = ( - NextInvoiceReplyDiscountType.PERCENT_OFF - ) + """ # noqa: E501 + type: Optional[NextInvoiceReplyDiscountType] = NextInvoiceReplyDiscountType.PERCENT_OFF name: Optional[StrictStr] = None amount: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["type", "name", "amount"] @@ -42,6 +38,7 @@ class NextInvoiceReplyDiscount(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -84,15 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "type": ( - obj.get("type") - if obj.get("type") is not None - else NextInvoiceReplyDiscountType.PERCENT_OFF - ), - "name": obj.get("name"), - "amount": obj.get("amount"), - } - ) + _obj = cls.model_validate({ + "type": obj.get("type") if obj.get("type") is not None else NextInvoiceReplyDiscountType.PERCENT_OFF, + "name": obj.get("name"), + "amount": obj.get("amount") + }) return _obj + + diff --git a/koyeb/models/next_invoice_reply_discount_type.py b/koyeb/api/models/next_invoice_reply_discount_type.py similarity index 56% rename from koyeb/models/next_invoice_reply_discount_type.py rename to koyeb/api/models/next_invoice_reply_discount_type.py index baad6a52..482f2960 100644 --- a/koyeb/models/next_invoice_reply_discount_type.py +++ b/koyeb/api/models/next_invoice_reply_discount_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ class NextInvoiceReplyDiscountType(str, Enum): """ allowed enum values """ - PERCENT_OFF = "PERCENT_OFF" - AMOUNT_OFF = "AMOUNT_OFF" + PERCENT_OFF = 'PERCENT_OFF' + AMOUNT_OFF = 'AMOUNT_OFF' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of NextInvoiceReplyDiscountType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/next_invoice_reply_line.py b/koyeb/api/models/next_invoice_reply_line.py similarity index 63% rename from koyeb/models/next_invoice_reply_line.py rename to koyeb/api/models/next_invoice_reply_line.py index f09b7b8a..58f9bfd2 100644 --- a/koyeb/models/next_invoice_reply_line.py +++ b/koyeb/api/models/next_invoice_reply_line.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,29 +19,21 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod -from koyeb.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice +from koyeb.api.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod +from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice from typing import Optional, Set from typing_extensions import Self - class NextInvoiceReplyLine(BaseModel): """ NextInvoiceReplyLine - """ # noqa: E501 - + """ # noqa: E501 amount_excluding_tax: Optional[StrictInt] = None period: Optional[NextInvoiceReplyLinePeriod] = None plan_nickname: Optional[StrictStr] = None price: Optional[NextInvoiceReplyLinePrice] = None quantity: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = [ - "amount_excluding_tax", - "period", - "plan_nickname", - "price", - "quantity", - ] + __properties: ClassVar[List[str]] = ["amount_excluding_tax", "period", "plan_nickname", "price", "quantity"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +41,7 @@ class NextInvoiceReplyLine(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,10 +76,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of period if self.period: - _dict["period"] = self.period.to_dict() + _dict['period'] = self.period.to_dict() # override the default output from pydantic by calling `to_dict()` of price if self.price: - _dict["price"] = self.price.to_dict() + _dict['price'] = self.price.to_dict() return _dict @classmethod @@ -97,21 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "amount_excluding_tax": obj.get("amount_excluding_tax"), - "period": ( - NextInvoiceReplyLinePeriod.from_dict(obj["period"]) - if obj.get("period") is not None - else None - ), - "plan_nickname": obj.get("plan_nickname"), - "price": ( - NextInvoiceReplyLinePrice.from_dict(obj["price"]) - if obj.get("price") is not None - else None - ), - "quantity": obj.get("quantity"), - } - ) + _obj = cls.model_validate({ + "amount_excluding_tax": obj.get("amount_excluding_tax"), + "period": NextInvoiceReplyLinePeriod.from_dict(obj["period"]) if obj.get("period") is not None else None, + "plan_nickname": obj.get("plan_nickname"), + "price": NextInvoiceReplyLinePrice.from_dict(obj["price"]) if obj.get("price") is not None else None, + "quantity": obj.get("quantity") + }) return _obj + + diff --git a/koyeb/models/next_invoice_reply_line_period.py b/koyeb/api/models/next_invoice_reply_line_period.py similarity index 81% rename from koyeb/models/next_invoice_reply_line_period.py rename to koyeb/api/models/next_invoice_reply_line_period.py index 30c528a0..b69d2337 100644 --- a/koyeb/models/next_invoice_reply_line_period.py +++ b/koyeb/api/models/next_invoice_reply_line_period.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class NextInvoiceReplyLinePeriod(BaseModel): """ NextInvoiceReplyLinePeriod - """ # noqa: E501 - + """ # noqa: E501 start: Optional[datetime] = None end: Optional[datetime] = None __properties: ClassVar[List[str]] = ["start", "end"] @@ -39,6 +37,7 @@ class NextInvoiceReplyLinePeriod(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,5 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"start": obj.get("start"), "end": obj.get("end")}) + _obj = cls.model_validate({ + "start": obj.get("start"), + "end": obj.get("end") + }) return _obj + + diff --git a/koyeb/models/next_invoice_reply_line_price.py b/koyeb/api/models/next_invoice_reply_line_price.py similarity index 81% rename from koyeb/models/next_invoice_reply_line_price.py rename to koyeb/api/models/next_invoice_reply_line_price.py index b26b1a8c..7f42b898 100644 --- a/koyeb/models/next_invoice_reply_line_price.py +++ b/koyeb/api/models/next_invoice_reply_line_price.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class NextInvoiceReplyLinePrice(BaseModel): """ NextInvoiceReplyLinePrice - """ # noqa: E501 - + """ # noqa: E501 unit_amount_decimal: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["unit_amount_decimal"] @@ -37,6 +35,7 @@ class NextInvoiceReplyLinePrice(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"unit_amount_decimal": obj.get("unit_amount_decimal")} - ) + _obj = cls.model_validate({ + "unit_amount_decimal": obj.get("unit_amount_decimal") + }) return _obj + + diff --git a/koyeb/models/notification.py b/koyeb/api/models/notification.py similarity index 69% rename from koyeb/models/notification.py rename to koyeb/api/models/notification.py index 1cac081c..723664a7 100644 --- a/koyeb/models/notification.py +++ b/koyeb/api/models/notification.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,28 +20,20 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.activity import Activity +from koyeb.api.models.activity import Activity from typing import Optional, Set from typing_extensions import Self - class Notification(BaseModel): """ Notification - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None activity: Optional[Activity] = None is_read: Optional[StrictBool] = None is_seen: Optional[StrictBool] = None created_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "id", - "activity", - "is_read", - "is_seen", - "created_at", - ] + __properties: ClassVar[List[str]] = ["id", "activity", "is_read", "is_seen", "created_at"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +41,7 @@ class Notification(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of activity if self.activity: - _dict["activity"] = self.activity.to_dict() + _dict['activity'] = self.activity.to_dict() return _dict @classmethod @@ -94,17 +88,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "activity": ( - Activity.from_dict(obj["activity"]) - if obj.get("activity") is not None - else None - ), - "is_read": obj.get("is_read"), - "is_seen": obj.get("is_seen"), - "created_at": obj.get("created_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "activity": Activity.from_dict(obj["activity"]) if obj.get("activity") is not None else None, + "is_read": obj.get("is_read"), + "is_seen": obj.get("is_seen"), + "created_at": obj.get("created_at") + }) return _obj + + diff --git a/koyeb/models/notification_list.py b/koyeb/api/models/notification_list.py similarity index 67% rename from koyeb/models/notification_list.py rename to koyeb/api/models/notification_list.py index de478aea..43a0d7b0 100644 --- a/koyeb/models/notification_list.py +++ b/koyeb/api/models/notification_list.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.notification import Notification +from koyeb.api.models.notification import Notification from typing import Optional, Set from typing_extensions import Self - class NotificationList(BaseModel): """ NotificationList - """ # noqa: E501 - + """ # noqa: E501 notifications: Optional[List[Notification]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -37,16 +35,7 @@ class NotificationList(BaseModel): is_seen: Optional[StrictBool] = None unread: Optional[StrictInt] = None unseen: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = [ - "notifications", - "limit", - "offset", - "count", - "is_read", - "is_seen", - "unread", - "unseen", - ] + __properties: ClassVar[List[str]] = ["notifications", "limit", "offset", "count", "is_read", "is_seen", "unread", "unseen"] model_config = ConfigDict( populate_by_name=True, @@ -54,6 +43,7 @@ class NotificationList(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -78,7 +68,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_notifications in self.notifications: if _item_notifications: _items.append(_item_notifications.to_dict()) - _dict["notifications"] = _items + _dict['notifications'] = _items return _dict @classmethod @@ -103,20 +94,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "notifications": ( - [Notification.from_dict(_item) for _item in obj["notifications"]] - if obj.get("notifications") is not None - else None - ), - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "is_read": obj.get("is_read"), - "is_seen": obj.get("is_seen"), - "unread": obj.get("unread"), - "unseen": obj.get("unseen"), - } - ) + _obj = cls.model_validate({ + "notifications": [Notification.from_dict(_item) for _item in obj["notifications"]] if obj.get("notifications") is not None else None, + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "is_read": obj.get("is_read"), + "is_seen": obj.get("is_seen"), + "unread": obj.get("unread"), + "unseen": obj.get("unseen") + }) return _obj + + diff --git a/koyeb/models/o_auth_callback_reply.py b/koyeb/api/models/o_auth_callback_reply.py similarity index 76% rename from koyeb/models/o_auth_callback_reply.py rename to koyeb/api/models/o_auth_callback_reply.py index 078239aa..90e5f334 100644 --- a/koyeb/models/o_auth_callback_reply.py +++ b/koyeb/api/models/o_auth_callback_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.token import Token +from koyeb.api.models.token import Token from typing import Optional, Set from typing_extensions import Self - class OAuthCallbackReply(BaseModel): """ OAuthCallbackReply - """ # noqa: E501 - + """ # noqa: E501 token: Optional[Token] = None __properties: ClassVar[List[str]] = ["token"] @@ -38,6 +36,7 @@ class OAuthCallbackReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of token if self.token: - _dict["token"] = self.token.to_dict() + _dict['token'] = self.token.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "token": ( - Token.from_dict(obj["token"]) - if obj.get("token") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "token": Token.from_dict(obj["token"]) if obj.get("token") is not None else None + }) return _obj + + diff --git a/koyeb/models/o_auth_callback_request.py b/koyeb/api/models/o_auth_callback_request.py similarity index 63% rename from koyeb/models/o_auth_callback_request.py rename to koyeb/api/models/o_auth_callback_request.py index 12e7b97a..f1976db8 100644 --- a/koyeb/models/o_auth_callback_request.py +++ b/koyeb/api/models/o_auth_callback_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,28 +22,15 @@ from typing import Optional, Set from typing_extensions import Self - class OAuthCallbackRequest(BaseModel): """ OAuthCallbackRequest - """ # noqa: E501 - + """ # noqa: E501 state: Optional[StrictStr] = None code: Optional[StrictStr] = None - setup_action: Optional[StrictStr] = Field( - default=None, - description="setup_action is populated in the context of a GitHub app installation request. For logins and signups, it is not set.", - ) - installation_id: Optional[StrictStr] = Field( - default=None, - description="installation_id is populated in the context of a GitHub app installation request. For logins and signups, it is not set.", - ) - __properties: ClassVar[List[str]] = [ - "state", - "code", - "setup_action", - "installation_id", - ] + setup_action: Optional[StrictStr] = Field(default=None, description="setup_action is populated in the context of a GitHub app installation request. For logins and signups, it is not set.") + installation_id: Optional[StrictStr] = Field(default=None, description="installation_id is populated in the context of a GitHub app installation request. For logins and signups, it is not set.") + __properties: ClassVar[List[str]] = ["state", "code", "setup_action", "installation_id"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +38,7 @@ class OAuthCallbackRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -93,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "state": obj.get("state"), - "code": obj.get("code"), - "setup_action": obj.get("setup_action"), - "installation_id": obj.get("installation_id"), - } - ) + _obj = cls.model_validate({ + "state": obj.get("state"), + "code": obj.get("code"), + "setup_action": obj.get("setup_action"), + "installation_id": obj.get("installation_id") + }) return _obj + + diff --git a/koyeb/models/o_auth_provider.py b/koyeb/api/models/o_auth_provider.py similarity index 80% rename from koyeb/models/o_auth_provider.py rename to koyeb/api/models/o_auth_provider.py index 7d569365..0d8e985c 100644 --- a/koyeb/models/o_auth_provider.py +++ b/koyeb/api/models/o_auth_provider.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class OAuthProvider(BaseModel): """ OAuthProvider - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None url: Optional[StrictStr] = None state: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class OAuthProvider(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,7 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"id": obj.get("id"), "url": obj.get("url"), "state": obj.get("state")} - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "url": obj.get("url"), + "state": obj.get("state") + }) return _obj + + diff --git a/koyeb/models/object.py b/koyeb/api/models/object.py similarity index 77% rename from koyeb/models/object.py rename to koyeb/api/models/object.py index aefb5026..f44e75b5 100644 --- a/koyeb/models/object.py +++ b/koyeb/api/models/object.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Object(BaseModel): """ Object - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None type: Optional[StrictStr] = None @@ -41,6 +39,7 @@ class Object(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,13 +83,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "type": obj.get("type"), - "metadata": obj.get("metadata"), - "deleted": obj.get("deleted"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type"), + "metadata": obj.get("metadata"), + "deleted": obj.get("deleted") + }) return _obj + + diff --git a/koyeb/api/models/organization.py b/koyeb/api/models/organization.py new file mode 100644 index 00000000..2bf33861 --- /dev/null +++ b/koyeb/api/models/organization.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.organization_deactivation_reason import OrganizationDeactivationReason +from koyeb.api.models.organization_detailed_status import OrganizationDetailedStatus +from koyeb.api.models.organization_status import OrganizationStatus +from koyeb.api.models.plan import Plan +from typing import Optional, Set +from typing_extensions import Self + +class Organization(BaseModel): + """ + Organization + """ # noqa: E501 + id: Optional[StrictStr] = None + external_id: Optional[StrictStr] = None + address1: Optional[StrictStr] = None + address2: Optional[StrictStr] = None + city: Optional[StrictStr] = None + postal_code: Optional[StrictStr] = None + state: Optional[StrictStr] = None + country: Optional[StrictStr] = None + company: Optional[StrictBool] = None + vat_number: Optional[StrictStr] = None + billing_name: Optional[StrictStr] = None + billing_email: Optional[StrictStr] = None + name: Optional[StrictStr] = None + plan: Optional[Plan] = Plan.HOBBY + plan_updated_at: Optional[datetime] = None + has_payment_method: Optional[StrictBool] = None + subscription_id: Optional[StrictStr] = None + current_subscription_id: Optional[StrictStr] = None + latest_subscription_id: Optional[StrictStr] = None + signup_qualification: Optional[Dict[str, Any]] = None + status: Optional[OrganizationStatus] = OrganizationStatus.WARNING + status_message: Optional[OrganizationDetailedStatus] = OrganizationDetailedStatus.NEW + deactivation_reason: Optional[OrganizationDeactivationReason] = OrganizationDeactivationReason.INVALID + verified: Optional[StrictBool] = None + qualifies_for_hobby23: Optional[StrictBool] = None + reprocess_after: Optional[datetime] = None + trialing: Optional[StrictBool] = None + trial_starts_at: Optional[datetime] = None + trial_ends_at: Optional[datetime] = None + email_domain_allowlist: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["id", "external_id", "address1", "address2", "city", "postal_code", "state", "country", "company", "vat_number", "billing_name", "billing_email", "name", "plan", "plan_updated_at", "has_payment_method", "subscription_id", "current_subscription_id", "latest_subscription_id", "signup_qualification", "status", "status_message", "deactivation_reason", "verified", "qualifies_for_hobby23", "reprocess_after", "trialing", "trial_starts_at", "trial_ends_at", "email_domain_allowlist"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Organization from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Organization from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "external_id": obj.get("external_id"), + "address1": obj.get("address1"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "postal_code": obj.get("postal_code"), + "state": obj.get("state"), + "country": obj.get("country"), + "company": obj.get("company"), + "vat_number": obj.get("vat_number"), + "billing_name": obj.get("billing_name"), + "billing_email": obj.get("billing_email"), + "name": obj.get("name"), + "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY, + "plan_updated_at": obj.get("plan_updated_at"), + "has_payment_method": obj.get("has_payment_method"), + "subscription_id": obj.get("subscription_id"), + "current_subscription_id": obj.get("current_subscription_id"), + "latest_subscription_id": obj.get("latest_subscription_id"), + "signup_qualification": obj.get("signup_qualification"), + "status": obj.get("status") if obj.get("status") is not None else OrganizationStatus.WARNING, + "status_message": obj.get("status_message") if obj.get("status_message") is not None else OrganizationDetailedStatus.NEW, + "deactivation_reason": obj.get("deactivation_reason") if obj.get("deactivation_reason") is not None else OrganizationDeactivationReason.INVALID, + "verified": obj.get("verified"), + "qualifies_for_hobby23": obj.get("qualifies_for_hobby23"), + "reprocess_after": obj.get("reprocess_after"), + "trialing": obj.get("trialing"), + "trial_starts_at": obj.get("trial_starts_at"), + "trial_ends_at": obj.get("trial_ends_at"), + "email_domain_allowlist": obj.get("email_domain_allowlist") + }) + return _obj + + diff --git a/koyeb/api/models/organization_deactivation_reason.py b/koyeb/api/models/organization_deactivation_reason.py new file mode 100644 index 00000000..f7c78f6e --- /dev/null +++ b/koyeb/api/models/organization_deactivation_reason.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class OrganizationDeactivationReason(str, Enum): + """ + OrganizationDeactivationReason + """ + + """ + allowed enum values + """ + INVALID = 'INVALID' + REQUESTED_BY_OWNER = 'REQUESTED_BY_OWNER' + SUBSCRIPTION_TERMINATION = 'SUBSCRIPTION_TERMINATION' + LOCKED_BY_ADMIN = 'LOCKED_BY_ADMIN' + VERIFICATION_FAILED = 'VERIFICATION_FAILED' + TRIAL_DID_NOT_CONVERT = 'TRIAL_DID_NOT_CONVERT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of OrganizationDeactivationReason from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/api/models/organization_detailed_status.py b/koyeb/api/models/organization_detailed_status.py new file mode 100644 index 00000000..18a8ad08 --- /dev/null +++ b/koyeb/api/models/organization_detailed_status.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class OrganizationDetailedStatus(str, Enum): + """ + OrganizationDetailedStatus + """ + + """ + allowed enum values + """ + NEW = 'NEW' + EMAIL_NOT_VALIDATED = 'EMAIL_NOT_VALIDATED' + BILLING_INFO_MISSING = 'BILLING_INFO_MISSING' + LOCKED = 'LOCKED' + PAYMENT_FAILURE = 'PAYMENT_FAILURE' + VALID = 'VALID' + PENDING_VERIFICATION = 'PENDING_VERIFICATION' + VERIFICATION_FAILED = 'VERIFICATION_FAILED' + REVIEWING_ACCOUNT = 'REVIEWING_ACCOUNT' + PLAN_UPGRADE_REQUIRED = 'PLAN_UPGRADE_REQUIRED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of OrganizationDetailedStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/organization_invitation.py b/koyeb/api/models/organization_invitation.py similarity index 53% rename from koyeb/models/organization_invitation.py rename to koyeb/api/models/organization_invitation.py index 3c6cd637..192da45f 100644 --- a/koyeb/models/organization_invitation.py +++ b/koyeb/api/models/organization_invitation.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,25 +20,21 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation_status import OrganizationInvitationStatus -from koyeb.models.public_organization import PublicOrganization -from koyeb.models.public_user import PublicUser -from koyeb.models.user_role_role import UserRoleRole +from koyeb.api.models.organization_invitation_status import OrganizationInvitationStatus +from koyeb.api.models.public_organization import PublicOrganization +from koyeb.api.models.public_user import PublicUser +from koyeb.api.models.user_role_role import UserRoleRole from typing import Optional, Set from typing_extensions import Self - class OrganizationInvitation(BaseModel): """ OrganizationInvitation - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None email: Optional[StrictStr] = None role: Optional[UserRoleRole] = UserRoleRole.INVALID - status: Optional[OrganizationInvitationStatus] = ( - OrganizationInvitationStatus.INVALID - ) + status: Optional[OrganizationInvitationStatus] = OrganizationInvitationStatus.INVALID expires_at: Optional[datetime] = None organization_id: Optional[StrictStr] = None organization: Optional[PublicOrganization] = None @@ -46,19 +42,7 @@ class OrganizationInvitation(BaseModel): invitee: Optional[PublicUser] = None inviter_id: Optional[StrictStr] = None inviter: Optional[PublicUser] = None - __properties: ClassVar[List[str]] = [ - "id", - "email", - "role", - "status", - "expires_at", - "organization_id", - "organization", - "invitee_id", - "invitee", - "inviter_id", - "inviter", - ] + __properties: ClassVar[List[str]] = ["id", "email", "role", "status", "expires_at", "organization_id", "organization", "invitee_id", "invitee", "inviter_id", "inviter"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +50,7 @@ class OrganizationInvitation(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -90,7 +75,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -99,13 +85,13 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() # override the default output from pydantic by calling `to_dict()` of invitee if self.invitee: - _dict["invitee"] = self.invitee.to_dict() + _dict['invitee'] = self.invitee.to_dict() # override the default output from pydantic by calling `to_dict()` of inviter if self.inviter: - _dict["inviter"] = self.inviter.to_dict() + _dict['inviter'] = self.inviter.to_dict() return _dict @classmethod @@ -117,39 +103,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "email": obj.get("email"), - "role": ( - obj.get("role") - if obj.get("role") is not None - else UserRoleRole.INVALID - ), - "status": ( - obj.get("status") - if obj.get("status") is not None - else OrganizationInvitationStatus.INVALID - ), - "expires_at": obj.get("expires_at"), - "organization_id": obj.get("organization_id"), - "organization": ( - PublicOrganization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ), - "invitee_id": obj.get("invitee_id"), - "invitee": ( - PublicUser.from_dict(obj["invitee"]) - if obj.get("invitee") is not None - else None - ), - "inviter_id": obj.get("inviter_id"), - "inviter": ( - PublicUser.from_dict(obj["inviter"]) - if obj.get("inviter") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email"), + "role": obj.get("role") if obj.get("role") is not None else UserRoleRole.INVALID, + "status": obj.get("status") if obj.get("status") is not None else OrganizationInvitationStatus.INVALID, + "expires_at": obj.get("expires_at"), + "organization_id": obj.get("organization_id"), + "organization": PublicOrganization.from_dict(obj["organization"]) if obj.get("organization") is not None else None, + "invitee_id": obj.get("invitee_id"), + "invitee": PublicUser.from_dict(obj["invitee"]) if obj.get("invitee") is not None else None, + "inviter_id": obj.get("inviter_id"), + "inviter": PublicUser.from_dict(obj["inviter"]) if obj.get("inviter") is not None else None + }) return _obj + + diff --git a/koyeb/models/organization_invitation_status.py b/koyeb/api/models/organization_invitation_status.py similarity index 52% rename from koyeb/models/organization_invitation_status.py rename to koyeb/api/models/organization_invitation_status.py index 835730da..256fce22 100644 --- a/koyeb/models/organization_invitation_status.py +++ b/koyeb/api/models/organization_invitation_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,15 @@ class OrganizationInvitationStatus(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - PENDING = "PENDING" - ACCEPTED = "ACCEPTED" - REFUSED = "REFUSED" - EXPIRED = "EXPIRED" + INVALID = 'INVALID' + PENDING = 'PENDING' + ACCEPTED = 'ACCEPTED' + REFUSED = 'REFUSED' + EXPIRED = 'EXPIRED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of OrganizationInvitationStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/organization_member.py b/koyeb/api/models/organization_member.py similarity index 57% rename from koyeb/models/organization_member.py rename to koyeb/api/models/organization_member.py index 2bdec32d..222293ce 100644 --- a/koyeb/models/organization_member.py +++ b/koyeb/api/models/organization_member.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,19 +20,17 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_member_status import OrganizationMemberStatus -from koyeb.models.public_organization import PublicOrganization -from koyeb.models.public_user import PublicUser -from koyeb.models.user_role_role import UserRoleRole +from koyeb.api.models.organization_member_status import OrganizationMemberStatus +from koyeb.api.models.public_organization import PublicOrganization +from koyeb.api.models.public_user import PublicUser +from koyeb.api.models.user_role_role import UserRoleRole from typing import Optional, Set from typing_extensions import Self - class OrganizationMember(BaseModel): """ OrganizationMember - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None user_id: Optional[StrictStr] = None @@ -41,16 +39,7 @@ class OrganizationMember(BaseModel): status: Optional[OrganizationMemberStatus] = OrganizationMemberStatus.INVALID user: Optional[PublicUser] = None organization: Optional[PublicOrganization] = None - __properties: ClassVar[List[str]] = [ - "id", - "organization_id", - "user_id", - "joined_at", - "role", - "status", - "user", - "organization", - ] + __properties: ClassVar[List[str]] = ["id", "organization_id", "user_id", "joined_at", "role", "status", "user", "organization"] model_config = ConfigDict( populate_by_name=True, @@ -58,6 +47,7 @@ class OrganizationMember(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of user if self.user: - _dict["user"] = self.user.to_dict() + _dict['user'] = self.user.to_dict() # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -106,32 +97,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "user_id": obj.get("user_id"), - "joined_at": obj.get("joined_at"), - "role": ( - obj.get("role") - if obj.get("role") is not None - else UserRoleRole.INVALID - ), - "status": ( - obj.get("status") - if obj.get("status") is not None - else OrganizationMemberStatus.INVALID - ), - "user": ( - PublicUser.from_dict(obj["user"]) - if obj.get("user") is not None - else None - ), - "organization": ( - PublicOrganization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "user_id": obj.get("user_id"), + "joined_at": obj.get("joined_at"), + "role": obj.get("role") if obj.get("role") is not None else UserRoleRole.INVALID, + "status": obj.get("status") if obj.get("status") is not None else OrganizationMemberStatus.INVALID, + "user": PublicUser.from_dict(obj["user"]) if obj.get("user") is not None else None, + "organization": PublicOrganization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/organization_member_status.py b/koyeb/api/models/organization_member_status.py similarity index 55% rename from koyeb/models/organization_member_status.py rename to koyeb/api/models/organization_member_status.py index d2cc8fcb..eb1a7f38 100644 --- a/koyeb/models/organization_member_status.py +++ b/koyeb/api/models/organization_member_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class OrganizationMemberStatus(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - ACTIVE = "ACTIVE" - DELETED = "DELETED" + INVALID = 'INVALID' + ACTIVE = 'ACTIVE' + DELETED = 'DELETED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of OrganizationMemberStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/api/models/organization_status.py b/koyeb/api/models/organization_status.py new file mode 100644 index 00000000..b8b6c050 --- /dev/null +++ b/koyeb/api/models/organization_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class OrganizationStatus(str, Enum): + """ + OrganizationStatus + """ + + """ + allowed enum values + """ + WARNING = 'WARNING' + LOCKED = 'LOCKED' + ACTIVE = 'ACTIVE' + DEACTIVATING = 'DEACTIVATING' + DEACTIVATED = 'DEACTIVATED' + DELETING = 'DELETING' + DELETED = 'DELETED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of OrganizationStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/organization_summary.py b/koyeb/api/models/organization_summary.py similarity index 53% rename from koyeb/models/organization_summary.py rename to koyeb/api/models/organization_summary.py index 50df6d72..10ae8a69 100644 --- a/koyeb/models/organization_summary.py +++ b/koyeb/api/models/organization_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,22 +19,20 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.apps_summary import AppsSummary -from koyeb.models.domains_summary import DomainsSummary -from koyeb.models.instances_summary import InstancesSummary -from koyeb.models.members_summary import MembersSummary -from koyeb.models.neon_postgres_summary import NeonPostgresSummary -from koyeb.models.secrets_summary import SecretsSummary -from koyeb.models.service_summary import ServiceSummary +from koyeb.api.models.apps_summary import AppsSummary +from koyeb.api.models.domains_summary import DomainsSummary +from koyeb.api.models.instances_summary import InstancesSummary +from koyeb.api.models.members_summary import MembersSummary +from koyeb.api.models.neon_postgres_summary import NeonPostgresSummary +from koyeb.api.models.secrets_summary import SecretsSummary +from koyeb.api.models.service_summary import ServiceSummary from typing import Optional, Set from typing_extensions import Self - class OrganizationSummary(BaseModel): """ OrganizationSummary - """ # noqa: E501 - + """ # noqa: E501 organization_id: Optional[StrictStr] = None instances: Optional[InstancesSummary] = None apps: Optional[AppsSummary] = None @@ -43,16 +41,7 @@ class OrganizationSummary(BaseModel): secrets: Optional[SecretsSummary] = None neon_postgres: Optional[NeonPostgresSummary] = None members: Optional[MembersSummary] = None - __properties: ClassVar[List[str]] = [ - "organization_id", - "instances", - "apps", - "services", - "domains", - "secrets", - "neon_postgres", - "members", - ] + __properties: ClassVar[List[str]] = ["organization_id", "instances", "apps", "services", "domains", "secrets", "neon_postgres", "members"] model_config = ConfigDict( populate_by_name=True, @@ -60,6 +49,7 @@ class OrganizationSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -84,7 +74,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -93,29 +84,29 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of instances if self.instances: - _dict["instances"] = self.instances.to_dict() + _dict['instances'] = self.instances.to_dict() # override the default output from pydantic by calling `to_dict()` of apps if self.apps: - _dict["apps"] = self.apps.to_dict() + _dict['apps'] = self.apps.to_dict() # override the default output from pydantic by calling `to_dict()` of each value in services (dict) _field_dict = {} if self.services: for _key_services in self.services: if self.services[_key_services]: _field_dict[_key_services] = self.services[_key_services].to_dict() - _dict["services"] = _field_dict + _dict['services'] = _field_dict # override the default output from pydantic by calling `to_dict()` of domains if self.domains: - _dict["domains"] = self.domains.to_dict() + _dict['domains'] = self.domains.to_dict() # override the default output from pydantic by calling `to_dict()` of secrets if self.secrets: - _dict["secrets"] = self.secrets.to_dict() + _dict['secrets'] = self.secrets.to_dict() # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict["neon_postgres"] = self.neon_postgres.to_dict() + _dict['neon_postgres'] = self.neon_postgres.to_dict() # override the default output from pydantic by calling `to_dict()` of members if self.members: - _dict["members"] = self.members.to_dict() + _dict['members'] = self.members.to_dict() return _dict @classmethod @@ -127,47 +118,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization_id": obj.get("organization_id"), - "instances": ( - InstancesSummary.from_dict(obj["instances"]) - if obj.get("instances") is not None - else None - ), - "apps": ( - AppsSummary.from_dict(obj["apps"]) - if obj.get("apps") is not None - else None - ), - "services": ( - dict( - (_k, ServiceSummary.from_dict(_v)) - for _k, _v in obj["services"].items() - ) - if obj.get("services") is not None - else None - ), - "domains": ( - DomainsSummary.from_dict(obj["domains"]) - if obj.get("domains") is not None - else None - ), - "secrets": ( - SecretsSummary.from_dict(obj["secrets"]) - if obj.get("secrets") is not None - else None - ), - "neon_postgres": ( - NeonPostgresSummary.from_dict(obj["neon_postgres"]) - if obj.get("neon_postgres") is not None - else None - ), - "members": ( - MembersSummary.from_dict(obj["members"]) - if obj.get("members") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "organization_id": obj.get("organization_id"), + "instances": InstancesSummary.from_dict(obj["instances"]) if obj.get("instances") is not None else None, + "apps": AppsSummary.from_dict(obj["apps"]) if obj.get("apps") is not None else None, + "services": dict( + (_k, ServiceSummary.from_dict(_v)) + for _k, _v in obj["services"].items() + ) + if obj.get("services") is not None + else None, + "domains": DomainsSummary.from_dict(obj["domains"]) if obj.get("domains") is not None else None, + "secrets": SecretsSummary.from_dict(obj["secrets"]) if obj.get("secrets") is not None else None, + "neon_postgres": NeonPostgresSummary.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None, + "members": MembersSummary.from_dict(obj["members"]) if obj.get("members") is not None else None + }) return _obj + + diff --git a/koyeb/models/payment_method.py b/koyeb/api/models/payment_method.py similarity index 53% rename from koyeb/models/payment_method.py rename to koyeb/api/models/payment_method.py index 52d263fa..53e6c43a 100644 --- a/koyeb/models/payment_method.py +++ b/koyeb/api/models/payment_method.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.payment_method_status import PaymentMethodStatus +from koyeb.api.models.payment_method_status import PaymentMethodStatus from typing import Optional, Set from typing_extensions import Self - class PaymentMethod(BaseModel): """ PaymentMethod - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -51,29 +49,7 @@ class PaymentMethod(BaseModel): card_last_digits: Optional[StrictStr] = None card_expiration_month: Optional[StrictInt] = None card_expiration_year: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "version", - "organization_id", - "type", - "provider", - "status", - "messages", - "stripe_payment_method_id", - "authorization_verified_at", - "authorization_canceled_at", - "authorization_stripe_payment_intent_id", - "authorization_stripe_payment_intent_client_secret", - "card_brand", - "card_country", - "card_funding", - "card_fingerprint", - "card_last_digits", - "card_expiration_month", - "card_expiration_year", - ] + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "version", "organization_id", "type", "provider", "status", "messages", "stripe_payment_method_id", "authorization_verified_at", "authorization_canceled_at", "authorization_stripe_payment_intent_id", "authorization_stripe_payment_intent_client_secret", "card_brand", "card_country", "card_funding", "card_fingerprint", "card_last_digits", "card_expiration_month", "card_expiration_year"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +57,7 @@ class PaymentMethod(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -105,7 +82,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -123,37 +101,29 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "version": obj.get("version"), - "organization_id": obj.get("organization_id"), - "type": obj.get("type"), - "provider": obj.get("provider"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else PaymentMethodStatus.INVALID - ), - "messages": obj.get("messages"), - "stripe_payment_method_id": obj.get("stripe_payment_method_id"), - "authorization_verified_at": obj.get("authorization_verified_at"), - "authorization_canceled_at": obj.get("authorization_canceled_at"), - "authorization_stripe_payment_intent_id": obj.get( - "authorization_stripe_payment_intent_id" - ), - "authorization_stripe_payment_intent_client_secret": obj.get( - "authorization_stripe_payment_intent_client_secret" - ), - "card_brand": obj.get("card_brand"), - "card_country": obj.get("card_country"), - "card_funding": obj.get("card_funding"), - "card_fingerprint": obj.get("card_fingerprint"), - "card_last_digits": obj.get("card_last_digits"), - "card_expiration_month": obj.get("card_expiration_month"), - "card_expiration_year": obj.get("card_expiration_year"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "version": obj.get("version"), + "organization_id": obj.get("organization_id"), + "type": obj.get("type"), + "provider": obj.get("provider"), + "status": obj.get("status") if obj.get("status") is not None else PaymentMethodStatus.INVALID, + "messages": obj.get("messages"), + "stripe_payment_method_id": obj.get("stripe_payment_method_id"), + "authorization_verified_at": obj.get("authorization_verified_at"), + "authorization_canceled_at": obj.get("authorization_canceled_at"), + "authorization_stripe_payment_intent_id": obj.get("authorization_stripe_payment_intent_id"), + "authorization_stripe_payment_intent_client_secret": obj.get("authorization_stripe_payment_intent_client_secret"), + "card_brand": obj.get("card_brand"), + "card_country": obj.get("card_country"), + "card_funding": obj.get("card_funding"), + "card_fingerprint": obj.get("card_fingerprint"), + "card_last_digits": obj.get("card_last_digits"), + "card_expiration_month": obj.get("card_expiration_month"), + "card_expiration_year": obj.get("card_expiration_year") + }) return _obj + + diff --git a/koyeb/api/models/payment_method_status.py b/koyeb/api/models/payment_method_status.py new file mode 100644 index 00000000..bb5f4d84 --- /dev/null +++ b/koyeb/api/models/payment_method_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PaymentMethodStatus(str, Enum): + """ + PaymentMethodStatus + """ + + """ + allowed enum values + """ + INVALID = 'INVALID' + CREATED = 'CREATED' + AUTHORIZED = 'AUTHORIZED' + DECLINED = 'DECLINED' + CANCELED = 'CANCELED' + EXPIRED = 'EXPIRED' + UNCHECKED = 'UNCHECKED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PaymentMethodStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/period_usage.py b/koyeb/api/models/period_usage.py similarity index 75% rename from koyeb/models/period_usage.py rename to koyeb/api/models/period_usage.py index 4d74e435..ffcb2ebd 100644 --- a/koyeb/models/period_usage.py +++ b/koyeb/api/models/period_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app_usage import AppUsage +from koyeb.api.models.app_usage import AppUsage from typing import Optional, Set from typing_extensions import Self - class PeriodUsage(BaseModel): """ PeriodUsage - """ # noqa: E501 - + """ # noqa: E501 starting_time: Optional[datetime] = None ending_time: Optional[datetime] = None apps: Optional[List[AppUsage]] = None @@ -41,6 +39,7 @@ class PeriodUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_apps in self.apps: if _item_apps: _items.append(_item_apps.to_dict()) - _dict["apps"] = _items + _dict['apps'] = _items return _dict @classmethod @@ -90,15 +90,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "starting_time": obj.get("starting_time"), - "ending_time": obj.get("ending_time"), - "apps": ( - [AppUsage.from_dict(_item) for _item in obj["apps"]] - if obj.get("apps") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "starting_time": obj.get("starting_time"), + "ending_time": obj.get("ending_time"), + "apps": [AppUsage.from_dict(_item) for _item in obj["apps"]] if obj.get("apps") is not None else None + }) return _obj + + diff --git a/koyeb/models/persistent_volume.py b/koyeb/api/models/persistent_volume.py similarity index 52% rename from koyeb/models/persistent_volume.py rename to koyeb/api/models/persistent_volume.py index d1e6016b..50e94590 100644 --- a/koyeb/models/persistent_volume.py +++ b/koyeb/api/models/persistent_volume.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume_backing_store import PersistentVolumeBackingStore -from koyeb.models.persistent_volume_status import PersistentVolumeStatus +from koyeb.api.models.persistent_volume_backing_store import PersistentVolumeBackingStore +from koyeb.api.models.persistent_volume_status import PersistentVolumeStatus from typing import Optional, Set from typing_extensions import Self - class PersistentVolume(BaseModel): """ PersistentVolume - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None snapshot_id: Optional[StrictStr] = None @@ -43,28 +41,9 @@ class PersistentVolume(BaseModel): read_only: Optional[StrictBool] = None max_size: Optional[StrictInt] = None cur_size: Optional[StrictInt] = None - status: Optional[PersistentVolumeStatus] = ( - PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID - ) - backing_store: Optional[PersistentVolumeBackingStore] = ( - PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "snapshot_id", - "created_at", - "updated_at", - "deleted_at", - "organization_id", - "service_id", - "region", - "read_only", - "max_size", - "cur_size", - "status", - "backing_store", - ] + status: Optional[PersistentVolumeStatus] = PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID + backing_store: Optional[PersistentVolumeBackingStore] = PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + __properties: ClassVar[List[str]] = ["id", "name", "snapshot_id", "created_at", "updated_at", "deleted_at", "organization_id", "service_id", "region", "read_only", "max_size", "cur_size", "status", "backing_store"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +51,7 @@ class PersistentVolume(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -96,7 +76,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -114,30 +95,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "snapshot_id": obj.get("snapshot_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "deleted_at": obj.get("deleted_at"), - "organization_id": obj.get("organization_id"), - "service_id": obj.get("service_id"), - "region": obj.get("region"), - "read_only": obj.get("read_only"), - "max_size": obj.get("max_size"), - "cur_size": obj.get("cur_size"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID - ), - "backing_store": ( - obj.get("backing_store") - if obj.get("backing_store") is not None - else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "snapshot_id": obj.get("snapshot_id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "deleted_at": obj.get("deleted_at"), + "organization_id": obj.get("organization_id"), + "service_id": obj.get("service_id"), + "region": obj.get("region"), + "read_only": obj.get("read_only"), + "max_size": obj.get("max_size"), + "cur_size": obj.get("cur_size"), + "status": obj.get("status") if obj.get("status") is not None else PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID, + "backing_store": obj.get("backing_store") if obj.get("backing_store") is not None else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + }) return _obj + + diff --git a/koyeb/api/models/persistent_volume_backing_store.py b/koyeb/api/models/persistent_volume_backing_store.py new file mode 100644 index 00000000..9f8a3494 --- /dev/null +++ b/koyeb/api/models/persistent_volume_backing_store.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PersistentVolumeBackingStore(str, Enum): + """ + PersistentVolumeBackingStore + """ + + """ + allowed enum values + """ + PERSISTENT_VOLUME_BACKING_STORE_INVALID = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID' + PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK = 'PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PersistentVolumeBackingStore from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/persistent_volume_event.py b/koyeb/api/models/persistent_volume_event.py similarity index 70% rename from koyeb/models/persistent_volume_event.py rename to koyeb/api/models/persistent_volume_event.py index 52ddcf27..87e70ce4 100644 --- a/koyeb/models/persistent_volume_event.py +++ b/koyeb/api/models/persistent_volume_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class PersistentVolumeEvent(BaseModel): """ PersistentVolumeEvent - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -36,15 +34,7 @@ class PersistentVolumeEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = [ - "id", - "when", - "organization_id", - "persistent_volume_id", - "type", - "message", - "metadata", - ] + __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "persistent_volume_id", "type", "message", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class PersistentVolumeEvent(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "persistent_volume_id": obj.get("persistent_volume_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "persistent_volume_id": obj.get("persistent_volume_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/persistent_volume_quotas.py b/koyeb/api/models/persistent_volume_quotas.py similarity index 62% rename from koyeb/models/persistent_volume_quotas.py rename to koyeb/api/models/persistent_volume_quotas.py index 929e30cc..e274a251 100644 --- a/koyeb/models/persistent_volume_quotas.py +++ b/koyeb/api/models/persistent_volume_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,28 +22,14 @@ from typing import Optional, Set from typing_extensions import Self - class PersistentVolumeQuotas(BaseModel): """ PersistentVolumeQuotas - """ # noqa: E501 - - max_total_size: Optional[StrictInt] = Field( - default=None, - description="MaxTotalSize for all volumes on a region (in Gigabyte / GB).", - ) - max_volume_size: Optional[StrictInt] = Field( - default=None, description="MaxVolumeSize for one volume (in Gigabyte / GB)." - ) - max_per_instance_size: Optional[StrictInt] = Field( - default=None, - description="MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB).", - ) - __properties: ClassVar[List[str]] = [ - "max_total_size", - "max_volume_size", - "max_per_instance_size", - ] + """ # noqa: E501 + max_total_size: Optional[StrictInt] = Field(default=None, description="MaxTotalSize for all volumes on a region (in Gigabyte / GB).") + max_volume_size: Optional[StrictInt] = Field(default=None, description="MaxVolumeSize for one volume (in Gigabyte / GB).") + max_per_instance_size: Optional[StrictInt] = Field(default=None, description="MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB).") + __properties: ClassVar[List[str]] = ["max_total_size", "max_volume_size", "max_per_instance_size"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +37,7 @@ class PersistentVolumeQuotas(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -93,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "max_total_size": obj.get("max_total_size"), - "max_volume_size": obj.get("max_volume_size"), - "max_per_instance_size": obj.get("max_per_instance_size"), - } - ) + _obj = cls.model_validate({ + "max_total_size": obj.get("max_total_size"), + "max_volume_size": obj.get("max_volume_size"), + "max_per_instance_size": obj.get("max_per_instance_size") + }) return _obj + + diff --git a/koyeb/api/models/persistent_volume_status.py b/koyeb/api/models/persistent_volume_status.py new file mode 100644 index 00000000..c9c9de6b --- /dev/null +++ b/koyeb/api/models/persistent_volume_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PersistentVolumeStatus(str, Enum): + """ + PersistentVolumeStatus + """ + + """ + allowed enum values + """ + PERSISTENT_VOLUME_STATUS_INVALID = 'PERSISTENT_VOLUME_STATUS_INVALID' + PERSISTENT_VOLUME_STATUS_ATTACHED = 'PERSISTENT_VOLUME_STATUS_ATTACHED' + PERSISTENT_VOLUME_STATUS_DETACHED = 'PERSISTENT_VOLUME_STATUS_DETACHED' + PERSISTENT_VOLUME_STATUS_DELETING = 'PERSISTENT_VOLUME_STATUS_DELETING' + PERSISTENT_VOLUME_STATUS_DELETED = 'PERSISTENT_VOLUME_STATUS_DELETED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PersistentVolumeStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/api/models/plan.py b/koyeb/api/models/plan.py new file mode 100644 index 00000000..ea762666 --- /dev/null +++ b/koyeb/api/models/plan.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class Plan(str, Enum): + """ + Plan + """ + + """ + allowed enum values + """ + HOBBY = 'hobby' + STARTER = 'starter' + STARTUP = 'startup' + BUSINESS = 'business' + ENTERPRISE = 'enterprise' + INTERNAL = 'internal' + HOBBY23 = 'hobby23' + NO_PLAN = 'no_plan' + PRO = 'pro' + SCALE = 'scale' + PARTNER_CSP = 'partner_csp' + PARTNER_CSP_UNIT = 'partner_csp_unit' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of Plan from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/port.py b/koyeb/api/models/port.py similarity index 80% rename from koyeb/models/port.py rename to koyeb/api/models/port.py index c565a5bd..d1c2687d 100644 --- a/koyeb/models/port.py +++ b/koyeb/api/models/port.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Port(BaseModel): """ Port - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None protocol: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["port", "protocol"] @@ -38,6 +36,7 @@ class Port(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"port": obj.get("port"), "protocol": obj.get("protocol")} - ) + _obj = cls.model_validate({ + "port": obj.get("port"), + "protocol": obj.get("protocol") + }) return _obj + + diff --git a/koyeb/models/private_registry_configuration.py b/koyeb/api/models/private_registry_configuration.py similarity index 80% rename from koyeb/models/private_registry_configuration.py rename to koyeb/api/models/private_registry_configuration.py index f2d71725..ee841506 100644 --- a/koyeb/models/private_registry_configuration.py +++ b/koyeb/api/models/private_registry_configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class PrivateRegistryConfiguration(BaseModel): """ PrivateRegistryConfiguration - """ # noqa: E501 - + """ # noqa: E501 username: Optional[StrictStr] = None password: Optional[StrictStr] = None url: Optional[StrictStr] = None @@ -39,6 +37,7 @@ class PrivateRegistryConfiguration(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "username": obj.get("username"), - "password": obj.get("password"), - "url": obj.get("url"), - } - ) + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password"), + "url": obj.get("url") + }) return _obj + + diff --git a/koyeb/models/proxy_port_protocol.py b/koyeb/api/models/proxy_port_protocol.py similarity index 58% rename from koyeb/models/proxy_port_protocol.py rename to koyeb/api/models/proxy_port_protocol.py index b2a3b2bf..3d253437 100644 --- a/koyeb/models/proxy_port_protocol.py +++ b/koyeb/api/models/proxy_port_protocol.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,9 +26,11 @@ class ProxyPortProtocol(str, Enum): """ allowed enum values """ - TCP = "tcp" + TCP = 'tcp' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ProxyPortProtocol from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/public_organization.py b/koyeb/api/models/public_organization.py similarity index 72% rename from koyeb/models/public_organization.py rename to koyeb/api/models/public_organization.py index 1b1345c2..044d69e6 100644 --- a/koyeb/models/public_organization.py +++ b/koyeb/api/models/public_organization.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_status import OrganizationStatus -from koyeb.models.plan import Plan +from koyeb.api.models.organization_status import OrganizationStatus +from koyeb.api.models.plan import Plan from typing import Optional, Set from typing_extensions import Self - class PublicOrganization(BaseModel): """ PublicOrganization - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None plan: Optional[Plan] = Plan.HOBBY @@ -42,6 +40,7 @@ class PublicOrganization(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -84,16 +84,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY, - "status": ( - obj.get("status") - if obj.get("status") is not None - else OrganizationStatus.WARNING - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY, + "status": obj.get("status") if obj.get("status") is not None else OrganizationStatus.WARNING + }) return _obj + + diff --git a/koyeb/models/public_user.py b/koyeb/api/models/public_user.py similarity index 71% rename from koyeb/models/public_user.py rename to koyeb/api/models/public_user.py index 18831045..1905c848 100644 --- a/koyeb/models/public_user.py +++ b/koyeb/api/models/public_user.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,26 +22,17 @@ from typing import Optional, Set from typing_extensions import Self - class PublicUser(BaseModel): """ PublicUser - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None email: Optional[StrictStr] = None name: Optional[StrictStr] = None avatar_url: Optional[StrictStr] = None github_id: Optional[StrictStr] = None github_user: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "email", - "name", - "avatar_url", - "github_id", - "github_user", - ] + __properties: ClassVar[List[str]] = ["id", "email", "name", "avatar_url", "github_id", "github_user"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +40,7 @@ class PublicUser(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,14 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "email": obj.get("email"), - "name": obj.get("name"), - "avatar_url": obj.get("avatar_url"), - "github_id": obj.get("github_id"), - "github_user": obj.get("github_user"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email"), + "name": obj.get("name"), + "avatar_url": obj.get("avatar_url"), + "github_id": obj.get("github_id"), + "github_user": obj.get("github_user") + }) return _obj + + diff --git a/koyeb/models/query_logs_reply.py b/koyeb/api/models/query_logs_reply.py similarity index 70% rename from koyeb/models/query_logs_reply.py rename to koyeb/api/models/query_logs_reply.py index d909c491..0836d1f5 100644 --- a/koyeb/models/query_logs_reply.py +++ b/koyeb/api/models/query_logs_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.log_entry import LogEntry -from koyeb.models.query_logs_reply_pagination import QueryLogsReplyPagination +from koyeb.api.models.log_entry import LogEntry +from koyeb.api.models.query_logs_reply_pagination import QueryLogsReplyPagination from typing import Optional, Set from typing_extensions import Self - class QueryLogsReply(BaseModel): """ QueryLogsReply - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[LogEntry]] = None pagination: Optional[QueryLogsReplyPagination] = None __properties: ClassVar[List[str]] = ["data", "pagination"] @@ -40,6 +38,7 @@ class QueryLogsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,10 +77,10 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items # override the default output from pydantic by calling `to_dict()` of pagination if self.pagination: - _dict["pagination"] = self.pagination.to_dict() + _dict['pagination'] = self.pagination.to_dict() return _dict @classmethod @@ -92,18 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [LogEntry.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ), - "pagination": ( - QueryLogsReplyPagination.from_dict(obj["pagination"]) - if obj.get("pagination") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "data": [LogEntry.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "pagination": QueryLogsReplyPagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None + }) return _obj + + diff --git a/koyeb/models/query_logs_reply_pagination.py b/koyeb/api/models/query_logs_reply_pagination.py similarity index 79% rename from koyeb/models/query_logs_reply_pagination.py rename to koyeb/api/models/query_logs_reply_pagination.py index 89cb3022..beb868fc 100644 --- a/koyeb/models/query_logs_reply_pagination.py +++ b/koyeb/api/models/query_logs_reply_pagination.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class QueryLogsReplyPagination(BaseModel): """ QueryLogsReplyPagination - """ # noqa: E501 - + """ # noqa: E501 has_more: Optional[StrictBool] = None next_start: Optional[datetime] = None next_end: Optional[datetime] = None @@ -40,6 +38,7 @@ class QueryLogsReplyPagination(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,11 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "has_more": obj.get("has_more"), - "next_start": obj.get("next_start"), - "next_end": obj.get("next_end"), - } - ) + _obj = cls.model_validate({ + "has_more": obj.get("has_more"), + "next_start": obj.get("next_start"), + "next_end": obj.get("next_end") + }) return _obj + + diff --git a/koyeb/models/quotas.py b/koyeb/api/models/quotas.py similarity index 51% rename from koyeb/models/quotas.py rename to koyeb/api/models/quotas.py index d2b080e3..bb9b2375 100644 --- a/koyeb/models/quotas.py +++ b/koyeb/api/models/quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,18 +19,16 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas -from koyeb.models.persistent_volume_quotas import PersistentVolumeQuotas -from koyeb.models.scale_to_zero_quotas import ScaleToZeroQuotas +from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas +from koyeb.api.models.persistent_volume_quotas import PersistentVolumeQuotas +from koyeb.api.models.scale_to_zero_quotas import ScaleToZeroQuotas from typing import Optional, Set from typing_extensions import Self - class Quotas(BaseModel): """ Quotas - """ # noqa: E501 - + """ # noqa: E501 apps: Optional[StrictStr] = None services: Optional[StrictStr] = None domains: Optional[StrictStr] = None @@ -50,27 +48,8 @@ class Quotas(BaseModel): proxy_ports: Optional[StrictInt] = None scale_to_zero: Optional[ScaleToZeroQuotas] = None archives: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "apps", - "services", - "domains", - "services_by_app", - "service_provisioning_concurrency", - "memory_mb", - "instance_types", - "regions", - "max_organization_members", - "max_instances_by_type", - "persistent_volumes_by_region", - "custom_domains", - "domains_load_balancer", - "metrics_retention", - "logs_retention", - "access_reserved_subdomains", - "proxy_ports", - "scale_to_zero", - "archives", - ] + archive_max_size_mb: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["apps", "services", "domains", "services_by_app", "service_provisioning_concurrency", "memory_mb", "instance_types", "regions", "max_organization_members", "max_instances_by_type", "persistent_volumes_by_region", "custom_domains", "domains_load_balancer", "metrics_retention", "logs_retention", "access_reserved_subdomains", "proxy_ports", "scale_to_zero", "archives", "archive_max_size_mb"] model_config = ConfigDict( populate_by_name=True, @@ -78,6 +57,7 @@ class Quotas(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -102,7 +82,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -114,18 +95,14 @@ def to_dict(self) -> Dict[str, Any]: if self.persistent_volumes_by_region: for _key_persistent_volumes_by_region in self.persistent_volumes_by_region: if self.persistent_volumes_by_region[_key_persistent_volumes_by_region]: - _field_dict[_key_persistent_volumes_by_region] = ( - self.persistent_volumes_by_region[ - _key_persistent_volumes_by_region - ].to_dict() - ) - _dict["persistent_volumes_by_region"] = _field_dict + _field_dict[_key_persistent_volumes_by_region] = self.persistent_volumes_by_region[_key_persistent_volumes_by_region].to_dict() + _dict['persistent_volumes_by_region'] = _field_dict # override the default output from pydantic by calling `to_dict()` of domains_load_balancer if self.domains_load_balancer: - _dict["domains_load_balancer"] = self.domains_load_balancer.to_dict() + _dict['domains_load_balancer'] = self.domains_load_balancer.to_dict() # override the default output from pydantic by calling `to_dict()` of scale_to_zero if self.scale_to_zero: - _dict["scale_to_zero"] = self.scale_to_zero.to_dict() + _dict['scale_to_zero'] = self.scale_to_zero.to_dict() return _dict @classmethod @@ -137,44 +114,33 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "apps": obj.get("apps"), - "services": obj.get("services"), - "domains": obj.get("domains"), - "services_by_app": obj.get("services_by_app"), - "service_provisioning_concurrency": obj.get( - "service_provisioning_concurrency" - ), - "memory_mb": obj.get("memory_mb"), - "instance_types": obj.get("instance_types"), - "regions": obj.get("regions"), - "max_organization_members": obj.get("max_organization_members"), - "max_instances_by_type": obj.get("max_instances_by_type"), - "persistent_volumes_by_region": ( - dict( - (_k, PersistentVolumeQuotas.from_dict(_v)) - for _k, _v in obj["persistent_volumes_by_region"].items() - ) - if obj.get("persistent_volumes_by_region") is not None - else None - ), - "custom_domains": obj.get("custom_domains"), - "domains_load_balancer": ( - DomainLoadBalancerQuotas.from_dict(obj["domains_load_balancer"]) - if obj.get("domains_load_balancer") is not None - else None - ), - "metrics_retention": obj.get("metrics_retention"), - "logs_retention": obj.get("logs_retention"), - "access_reserved_subdomains": obj.get("access_reserved_subdomains"), - "proxy_ports": obj.get("proxy_ports"), - "scale_to_zero": ( - ScaleToZeroQuotas.from_dict(obj["scale_to_zero"]) - if obj.get("scale_to_zero") is not None - else None - ), - "archives": obj.get("archives"), - } - ) + _obj = cls.model_validate({ + "apps": obj.get("apps"), + "services": obj.get("services"), + "domains": obj.get("domains"), + "services_by_app": obj.get("services_by_app"), + "service_provisioning_concurrency": obj.get("service_provisioning_concurrency"), + "memory_mb": obj.get("memory_mb"), + "instance_types": obj.get("instance_types"), + "regions": obj.get("regions"), + "max_organization_members": obj.get("max_organization_members"), + "max_instances_by_type": obj.get("max_instances_by_type"), + "persistent_volumes_by_region": dict( + (_k, PersistentVolumeQuotas.from_dict(_v)) + for _k, _v in obj["persistent_volumes_by_region"].items() + ) + if obj.get("persistent_volumes_by_region") is not None + else None, + "custom_domains": obj.get("custom_domains"), + "domains_load_balancer": DomainLoadBalancerQuotas.from_dict(obj["domains_load_balancer"]) if obj.get("domains_load_balancer") is not None else None, + "metrics_retention": obj.get("metrics_retention"), + "logs_retention": obj.get("logs_retention"), + "access_reserved_subdomains": obj.get("access_reserved_subdomains"), + "proxy_ports": obj.get("proxy_ports"), + "scale_to_zero": ScaleToZeroQuotas.from_dict(obj["scale_to_zero"]) if obj.get("scale_to_zero") is not None else None, + "archives": obj.get("archives"), + "archive_max_size_mb": obj.get("archive_max_size_mb") + }) return _obj + + diff --git a/koyeb/models/reactivate_organization_reply.py b/koyeb/api/models/reactivate_organization_reply.py similarity index 75% rename from koyeb/models/reactivate_organization_reply.py rename to koyeb/api/models/reactivate_organization_reply.py index fbe7c11c..14a0dc0b 100644 --- a/koyeb/models/reactivate_organization_reply.py +++ b/koyeb/api/models/reactivate_organization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class ReactivateOrganizationReply(BaseModel): """ ReactivateOrganizationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class ReactivateOrganizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/redeem_coupon_request.py b/koyeb/api/models/redeem_coupon_request.py similarity index 82% rename from koyeb/models/redeem_coupon_request.py rename to koyeb/api/models/redeem_coupon_request.py index 22feee3d..39caa12e 100644 --- a/koyeb/models/redeem_coupon_request.py +++ b/koyeb/api/models/redeem_coupon_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class RedeemCouponRequest(BaseModel): """ RedeemCouponRequest - """ # noqa: E501 - + """ # noqa: E501 code: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["code"] @@ -37,6 +35,7 @@ class RedeemCouponRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"code": obj.get("code")}) + _obj = cls.model_validate({ + "code": obj.get("code") + }) return _obj + + diff --git a/koyeb/models/redeploy_reply.py b/koyeb/api/models/redeploy_reply.py similarity index 75% rename from koyeb/models/redeploy_reply.py rename to koyeb/api/models/redeploy_reply.py index 2d6aa62d..25045c9a 100644 --- a/koyeb/models/redeploy_reply.py +++ b/koyeb/api/models/redeploy_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment import Deployment +from koyeb.api.models.deployment import Deployment from typing import Optional, Set from typing_extensions import Self - class RedeployReply(BaseModel): """ RedeployReply - """ # noqa: E501 - + """ # noqa: E501 deployment: Optional[Deployment] = None __properties: ClassVar[List[str]] = ["deployment"] @@ -38,6 +36,7 @@ class RedeployReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of deployment if self.deployment: - _dict["deployment"] = self.deployment.to_dict() + _dict['deployment'] = self.deployment.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "deployment": ( - Deployment.from_dict(obj["deployment"]) - if obj.get("deployment") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "deployment": Deployment.from_dict(obj["deployment"]) if obj.get("deployment") is not None else None + }) return _obj + + diff --git a/koyeb/models/redeploy_request_info.py b/koyeb/api/models/redeploy_request_info.py similarity index 67% rename from koyeb/models/redeploy_request_info.py rename to koyeb/api/models/redeploy_request_info.py index bdd867ef..6c4c2bc9 100644 --- a/koyeb/models/redeploy_request_info.py +++ b/koyeb/api/models/redeploy_request_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,25 +22,15 @@ from typing import Optional, Set from typing_extensions import Self - class RedeployRequestInfo(BaseModel): """ RedeployRequestInfo - """ # noqa: E501 - + """ # noqa: E501 deployment_group: Optional[StrictStr] = None sha: Optional[StrictStr] = None use_cache: Optional[StrictBool] = None - skip_build: Optional[StrictBool] = Field( - default=None, - description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.", - ) - __properties: ClassVar[List[str]] = [ - "deployment_group", - "sha", - "use_cache", - "skip_build", - ] + skip_build: Optional[StrictBool] = Field(default=None, description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.") + __properties: ClassVar[List[str]] = ["deployment_group", "sha", "use_cache", "skip_build"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +38,7 @@ class RedeployRequestInfo(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -90,12 +82,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "deployment_group": obj.get("deployment_group"), - "sha": obj.get("sha"), - "use_cache": obj.get("use_cache"), - "skip_build": obj.get("skip_build"), - } - ) + _obj = cls.model_validate({ + "deployment_group": obj.get("deployment_group"), + "sha": obj.get("sha"), + "use_cache": obj.get("use_cache"), + "skip_build": obj.get("skip_build") + }) return _obj + + diff --git a/koyeb/models/region.py b/koyeb/api/models/region.py similarity index 66% rename from koyeb/models/region.py rename to koyeb/api/models/region.py index 00bb9aa2..1b687af5 100644 --- a/koyeb/models/region.py +++ b/koyeb/api/models/region.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Region(BaseModel): """ Region - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None coordinates: Optional[List[StrictStr]] = None @@ -35,20 +33,8 @@ class Region(BaseModel): instances: Optional[List[StrictStr]] = None datacenters: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None - scope: Optional[StrictStr] = Field( - default=None, - description="The scope of the region, continent, metropolitan area, etc.", - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "coordinates", - "status", - "instances", - "datacenters", - "volumes_enabled", - "scope", - ] + scope: Optional[StrictStr] = Field(default=None, description="The scope of the region, continent, metropolitan area, etc.") + __properties: ClassVar[List[str]] = ["id", "name", "coordinates", "status", "instances", "datacenters", "volumes_enabled", "scope"] model_config = ConfigDict( populate_by_name=True, @@ -56,6 +42,7 @@ class Region(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -98,16 +86,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "coordinates": obj.get("coordinates"), - "status": obj.get("status"), - "instances": obj.get("instances"), - "datacenters": obj.get("datacenters"), - "volumes_enabled": obj.get("volumes_enabled"), - "scope": obj.get("scope"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "coordinates": obj.get("coordinates"), + "status": obj.get("status"), + "instances": obj.get("instances"), + "datacenters": obj.get("datacenters"), + "volumes_enabled": obj.get("volumes_enabled"), + "scope": obj.get("scope") + }) return _obj + + diff --git a/koyeb/models/region_availability.py b/koyeb/api/models/region_availability.py similarity index 75% rename from koyeb/models/region_availability.py rename to koyeb/api/models/region_availability.py index 1cd845a6..4be6a8a7 100644 --- a/koyeb/models/region_availability.py +++ b/koyeb/api/models/region_availability.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.availability_level import AvailabilityLevel +from koyeb.api.models.availability_level import AvailabilityLevel from typing import Optional, Set from typing_extensions import Self - class RegionAvailability(BaseModel): """ RegionAvailability - """ # noqa: E501 - + """ # noqa: E501 availability: Optional[AvailabilityLevel] = AvailabilityLevel.UNKNOWN __properties: ClassVar[List[str]] = ["availability"] @@ -38,6 +36,7 @@ class RegionAvailability(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,13 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "availability": ( - obj.get("availability") - if obj.get("availability") is not None - else AvailabilityLevel.UNKNOWN - ) - } - ) + _obj = cls.model_validate({ + "availability": obj.get("availability") if obj.get("availability") is not None else AvailabilityLevel.UNKNOWN + }) return _obj + + diff --git a/koyeb/models/region_list_item.py b/koyeb/api/models/region_list_item.py similarity index 66% rename from koyeb/models/region_list_item.py rename to koyeb/api/models/region_list_item.py index b8c189d0..c475016e 100644 --- a/koyeb/models/region_list_item.py +++ b/koyeb/api/models/region_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class RegionListItem(BaseModel): """ RegionListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None coordinates: Optional[List[StrictStr]] = None @@ -35,20 +33,8 @@ class RegionListItem(BaseModel): instances: Optional[List[StrictStr]] = None datacenters: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None - scope: Optional[StrictStr] = Field( - default=None, - description="The scope of the region, continent, metropolitan area, etc.", - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "coordinates", - "status", - "instances", - "datacenters", - "volumes_enabled", - "scope", - ] + scope: Optional[StrictStr] = Field(default=None, description="The scope of the region, continent, metropolitan area, etc.") + __properties: ClassVar[List[str]] = ["id", "name", "coordinates", "status", "instances", "datacenters", "volumes_enabled", "scope"] model_config = ConfigDict( populate_by_name=True, @@ -56,6 +42,7 @@ class RegionListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -98,16 +86,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "coordinates": obj.get("coordinates"), - "status": obj.get("status"), - "instances": obj.get("instances"), - "datacenters": obj.get("datacenters"), - "volumes_enabled": obj.get("volumes_enabled"), - "scope": obj.get("scope"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "coordinates": obj.get("coordinates"), + "status": obj.get("status"), + "instances": obj.get("instances"), + "datacenters": obj.get("datacenters"), + "volumes_enabled": obj.get("volumes_enabled"), + "scope": obj.get("scope") + }) return _obj + + diff --git a/koyeb/models/region_usage.py b/koyeb/api/models/region_usage.py similarity index 72% rename from koyeb/models/region_usage.py rename to koyeb/api/models/region_usage.py index eeb91c88..80344d33 100644 --- a/koyeb/models/region_usage.py +++ b/koyeb/api/models/region_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.instance_usage import InstanceUsage +from koyeb.api.models.instance_usage import InstanceUsage from typing import Optional, Set from typing_extensions import Self - class RegionUsage(BaseModel): """ RegionUsage - """ # noqa: E501 - + """ # noqa: E501 instances: Optional[Dict[str, InstanceUsage]] = None __properties: ClassVar[List[str]] = ["instances"] @@ -38,6 +36,7 @@ class RegionUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,8 @@ def to_dict(self) -> Dict[str, Any]: if self.instances: for _key_instances in self.instances: if self.instances[_key_instances]: - _field_dict[_key_instances] = self.instances[ - _key_instances - ].to_dict() - _dict["instances"] = _field_dict + _field_dict[_key_instances] = self.instances[_key_instances].to_dict() + _dict['instances'] = _field_dict return _dict @classmethod @@ -89,16 +87,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "instances": ( - dict( - (_k, InstanceUsage.from_dict(_v)) - for _k, _v in obj["instances"].items() - ) - if obj.get("instances") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "instances": dict( + (_k, InstanceUsage.from_dict(_v)) + for _k, _v in obj["instances"].items() + ) + if obj.get("instances") is not None + else None + }) return _obj + + diff --git a/koyeb/models/regional_deployment.py b/koyeb/api/models/regional_deployment.py similarity index 50% rename from koyeb/models/regional_deployment.py rename to koyeb/api/models/regional_deployment.py index f787af6c..4bbdfb58 100644 --- a/koyeb/models/regional_deployment.py +++ b/koyeb/api/models/regional_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,19 +20,17 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_provisioning_info import DeploymentProvisioningInfo -from koyeb.models.regional_deployment_definition import RegionalDeploymentDefinition -from koyeb.models.regional_deployment_role import RegionalDeploymentRole -from koyeb.models.regional_deployment_status import RegionalDeploymentStatus +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo +from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition +from koyeb.api.models.regional_deployment_role import RegionalDeploymentRole +from koyeb.api.models.regional_deployment_status import RegionalDeploymentStatus from typing import Optional, Set from typing_extensions import Self - class RegionalDeployment(BaseModel): """ RegionalDeployment - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -57,32 +55,7 @@ class RegionalDeployment(BaseModel): version: Optional[StrictStr] = None deployment_group: Optional[StrictStr] = None deployment_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "scheduled_at", - "allocated_at", - "started_at", - "succeeded_at", - "terminated_at", - "organization_id", - "app_id", - "service_id", - "region", - "parent_id", - "child_id", - "status", - "messages", - "definition", - "datacenters", - "metadata", - "provisioning_info", - "role", - "version", - "deployment_group", - "deployment_id", - ] + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "scheduled_at", "allocated_at", "started_at", "succeeded_at", "terminated_at", "organization_id", "app_id", "service_id", "region", "parent_id", "child_id", "status", "messages", "definition", "datacenters", "metadata", "provisioning_info", "role", "version", "deployment_group", "deployment_id"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +63,7 @@ class RegionalDeployment(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -114,7 +88,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -123,10 +98,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict["definition"] = self.definition.to_dict() + _dict['definition'] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of provisioning_info if self.provisioning_info: - _dict["provisioning_info"] = self.provisioning_info.to_dict() + _dict['provisioning_info'] = self.provisioning_info.to_dict() return _dict @classmethod @@ -138,48 +113,32 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "scheduled_at": obj.get("scheduled_at"), - "allocated_at": obj.get("allocated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "region": obj.get("region"), - "parent_id": obj.get("parent_id"), - "child_id": obj.get("child_id"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else RegionalDeploymentStatus.PENDING - ), - "messages": obj.get("messages"), - "definition": ( - RegionalDeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ), - "datacenters": obj.get("datacenters"), - "metadata": obj.get("metadata"), - "provisioning_info": ( - DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) - if obj.get("provisioning_info") is not None - else None - ), - "role": ( - obj.get("role") - if obj.get("role") is not None - else RegionalDeploymentRole.INVALID - ), - "version": obj.get("version"), - "deployment_group": obj.get("deployment_group"), - "deployment_id": obj.get("deployment_id"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "scheduled_at": obj.get("scheduled_at"), + "allocated_at": obj.get("allocated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "region": obj.get("region"), + "parent_id": obj.get("parent_id"), + "child_id": obj.get("child_id"), + "status": obj.get("status") if obj.get("status") is not None else RegionalDeploymentStatus.PENDING, + "messages": obj.get("messages"), + "definition": RegionalDeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, + "datacenters": obj.get("datacenters"), + "metadata": obj.get("metadata"), + "provisioning_info": DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) if obj.get("provisioning_info") is not None else None, + "role": obj.get("role") if obj.get("role") is not None else RegionalDeploymentRole.INVALID, + "version": obj.get("version"), + "deployment_group": obj.get("deployment_group"), + "deployment_id": obj.get("deployment_id") + }) return _obj + + diff --git a/koyeb/models/regional_deployment_definition.py b/koyeb/api/models/regional_deployment_definition.py similarity index 50% rename from koyeb/models/regional_deployment_definition.py rename to koyeb/api/models/regional_deployment_definition.py index ec568dc6..ee8f0209 100644 --- a/koyeb/models/regional_deployment_definition.py +++ b/koyeb/api/models/regional_deployment_definition.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,33 +19,27 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.archive_source import ArchiveSource -from koyeb.models.config_file import ConfigFile -from koyeb.models.deployment_health_check import DeploymentHealthCheck -from koyeb.models.deployment_strategy import DeploymentStrategy -from koyeb.models.docker_source import DockerSource -from koyeb.models.env import Env -from koyeb.models.git_source import GitSource -from koyeb.models.port import Port -from koyeb.models.regional_deployment_definition_type import ( - RegionalDeploymentDefinitionType, -) -from koyeb.models.regional_deployment_volume import RegionalDeploymentVolume -from koyeb.models.route import Route -from koyeb.models.scaling import Scaling +from koyeb.api.models.archive_source import ArchiveSource +from koyeb.api.models.config_file import ConfigFile +from koyeb.api.models.deployment_health_check import DeploymentHealthCheck +from koyeb.api.models.deployment_strategy import DeploymentStrategy +from koyeb.api.models.docker_source import DockerSource +from koyeb.api.models.env import Env +from koyeb.api.models.git_source import GitSource +from koyeb.api.models.port import Port +from koyeb.api.models.regional_deployment_definition_type import RegionalDeploymentDefinitionType +from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume +from koyeb.api.models.route import Route +from koyeb.api.models.scaling import Scaling from typing import Optional, Set from typing_extensions import Self - class RegionalDeploymentDefinition(BaseModel): """ RegionalDeploymentDefinition - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None - type: Optional[RegionalDeploymentDefinitionType] = ( - RegionalDeploymentDefinitionType.INVALID - ) + type: Optional[RegionalDeploymentDefinitionType] = RegionalDeploymentDefinitionType.INVALID strategy: Optional[DeploymentStrategy] = None routes: Optional[List[Route]] = None ports: Optional[List[Port]] = None @@ -61,25 +55,7 @@ class RegionalDeploymentDefinition(BaseModel): docker: Optional[DockerSource] = None git: Optional[GitSource] = None archive: Optional[ArchiveSource] = None - __properties: ClassVar[List[str]] = [ - "name", - "type", - "strategy", - "routes", - "ports", - "env", - "region", - "scaling", - "instance_type", - "deployment_group", - "health_checks", - "volumes", - "config_files", - "skip_cache", - "docker", - "git", - "archive", - ] + __properties: ClassVar[List[str]] = ["name", "type", "strategy", "routes", "ports", "env", "region", "scaling", "instance_type", "deployment_group", "health_checks", "volumes", "config_files", "skip_cache", "docker", "git", "archive"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +63,7 @@ class RegionalDeploymentDefinition(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -111,7 +88,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,61 +98,61 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of strategy if self.strategy: - _dict["strategy"] = self.strategy.to_dict() + _dict['strategy'] = self.strategy.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in routes (list) _items = [] if self.routes: for _item_routes in self.routes: if _item_routes: _items.append(_item_routes.to_dict()) - _dict["routes"] = _items + _dict['routes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in ports (list) _items = [] if self.ports: for _item_ports in self.ports: if _item_ports: _items.append(_item_ports.to_dict()) - _dict["ports"] = _items + _dict['ports'] = _items # override the default output from pydantic by calling `to_dict()` of each item in env (list) _items = [] if self.env: for _item_env in self.env: if _item_env: _items.append(_item_env.to_dict()) - _dict["env"] = _items + _dict['env'] = _items # override the default output from pydantic by calling `to_dict()` of scaling if self.scaling: - _dict["scaling"] = self.scaling.to_dict() + _dict['scaling'] = self.scaling.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in health_checks (list) _items = [] if self.health_checks: for _item_health_checks in self.health_checks: if _item_health_checks: _items.append(_item_health_checks.to_dict()) - _dict["health_checks"] = _items + _dict['health_checks'] = _items # override the default output from pydantic by calling `to_dict()` of each item in volumes (list) _items = [] if self.volumes: for _item_volumes in self.volumes: if _item_volumes: _items.append(_item_volumes.to_dict()) - _dict["volumes"] = _items + _dict['volumes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in config_files (list) _items = [] if self.config_files: for _item_config_files in self.config_files: if _item_config_files: _items.append(_item_config_files.to_dict()) - _dict["config_files"] = _items + _dict['config_files'] = _items # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict["docker"] = self.docker.to_dict() + _dict['docker'] = self.docker.to_dict() # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict["git"] = self.git.to_dict() + _dict['git'] = self.git.to_dict() # override the default output from pydantic by calling `to_dict()` of archive if self.archive: - _dict["archive"] = self.archive.to_dict() + _dict['archive'] = self.archive.to_dict() return _dict @classmethod @@ -186,79 +164,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else RegionalDeploymentDefinitionType.INVALID - ), - "strategy": ( - DeploymentStrategy.from_dict(obj["strategy"]) - if obj.get("strategy") is not None - else None - ), - "routes": ( - [Route.from_dict(_item) for _item in obj["routes"]] - if obj.get("routes") is not None - else None - ), - "ports": ( - [Port.from_dict(_item) for _item in obj["ports"]] - if obj.get("ports") is not None - else None - ), - "env": ( - [Env.from_dict(_item) for _item in obj["env"]] - if obj.get("env") is not None - else None - ), - "region": obj.get("region"), - "scaling": ( - Scaling.from_dict(obj["scaling"]) - if obj.get("scaling") is not None - else None - ), - "instance_type": obj.get("instance_type"), - "deployment_group": obj.get("deployment_group"), - "health_checks": ( - [ - DeploymentHealthCheck.from_dict(_item) - for _item in obj["health_checks"] - ] - if obj.get("health_checks") is not None - else None - ), - "volumes": ( - [ - RegionalDeploymentVolume.from_dict(_item) - for _item in obj["volumes"] - ] - if obj.get("volumes") is not None - else None - ), - "config_files": ( - [ConfigFile.from_dict(_item) for _item in obj["config_files"]] - if obj.get("config_files") is not None - else None - ), - "skip_cache": obj.get("skip_cache"), - "docker": ( - DockerSource.from_dict(obj["docker"]) - if obj.get("docker") is not None - else None - ), - "git": ( - GitSource.from_dict(obj["git"]) - if obj.get("git") is not None - else None - ), - "archive": ( - ArchiveSource.from_dict(obj["archive"]) - if obj.get("archive") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else RegionalDeploymentDefinitionType.INVALID, + "strategy": DeploymentStrategy.from_dict(obj["strategy"]) if obj.get("strategy") is not None else None, + "routes": [Route.from_dict(_item) for _item in obj["routes"]] if obj.get("routes") is not None else None, + "ports": [Port.from_dict(_item) for _item in obj["ports"]] if obj.get("ports") is not None else None, + "env": [Env.from_dict(_item) for _item in obj["env"]] if obj.get("env") is not None else None, + "region": obj.get("region"), + "scaling": Scaling.from_dict(obj["scaling"]) if obj.get("scaling") is not None else None, + "instance_type": obj.get("instance_type"), + "deployment_group": obj.get("deployment_group"), + "health_checks": [DeploymentHealthCheck.from_dict(_item) for _item in obj["health_checks"]] if obj.get("health_checks") is not None else None, + "volumes": [RegionalDeploymentVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None, + "config_files": [ConfigFile.from_dict(_item) for _item in obj["config_files"]] if obj.get("config_files") is not None else None, + "skip_cache": obj.get("skip_cache"), + "docker": DockerSource.from_dict(obj["docker"]) if obj.get("docker") is not None else None, + "git": GitSource.from_dict(obj["git"]) if obj.get("git") is not None else None, + "archive": ArchiveSource.from_dict(obj["archive"]) if obj.get("archive") is not None else None + }) return _obj + + diff --git a/koyeb/models/regional_deployment_definition_type.py b/koyeb/api/models/regional_deployment_definition_type.py similarity index 57% rename from koyeb/models/regional_deployment_definition_type.py rename to koyeb/api/models/regional_deployment_definition_type.py index 2bc3e7be..c1624920 100644 --- a/koyeb/models/regional_deployment_definition_type.py +++ b/koyeb/api/models/regional_deployment_definition_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class RegionalDeploymentDefinitionType(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - WEB = "WEB" - WORKER = "WORKER" + INVALID = 'INVALID' + WEB = 'WEB' + WORKER = 'WORKER' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of RegionalDeploymentDefinitionType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/regional_deployment_event.py b/koyeb/api/models/regional_deployment_event.py similarity index 70% rename from koyeb/models/regional_deployment_event.py rename to koyeb/api/models/regional_deployment_event.py index bcd23e99..e9af1ab2 100644 --- a/koyeb/models/regional_deployment_event.py +++ b/koyeb/api/models/regional_deployment_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class RegionalDeploymentEvent(BaseModel): """ RegionalDeploymentEvent - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -36,15 +34,7 @@ class RegionalDeploymentEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = [ - "id", - "when", - "organization_id", - "regional_deployment_id", - "type", - "message", - "metadata", - ] + __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "regional_deployment_id", "type", "message", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class RegionalDeploymentEvent(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/regional_deployment_list_item.py b/koyeb/api/models/regional_deployment_list_item.py similarity index 63% rename from koyeb/models/regional_deployment_list_item.py rename to koyeb/api/models/regional_deployment_list_item.py index f0a97744..281e1183 100644 --- a/koyeb/models/regional_deployment_list_item.py +++ b/koyeb/api/models/regional_deployment_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.regional_deployment_definition import RegionalDeploymentDefinition -from koyeb.models.regional_deployment_status import RegionalDeploymentStatus +from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition +from koyeb.api.models.regional_deployment_status import RegionalDeploymentStatus from typing import Optional, Set from typing_extensions import Self - class RegionalDeploymentListItem(BaseModel): """ RegionalDeploymentListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -38,15 +36,7 @@ class RegionalDeploymentListItem(BaseModel): status: Optional[RegionalDeploymentStatus] = RegionalDeploymentStatus.PENDING messages: Optional[List[StrictStr]] = None definition: Optional[RegionalDeploymentDefinition] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "region", - "status", - "messages", - "definition", - ] + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "region", "status", "messages", "definition"] model_config = ConfigDict( populate_by_name=True, @@ -54,6 +44,7 @@ class RegionalDeploymentListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -78,7 +69,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict["definition"] = self.definition.to_dict() + _dict['definition'] = self.definition.to_dict() return _dict @classmethod @@ -99,23 +91,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "region": obj.get("region"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else RegionalDeploymentStatus.PENDING - ), - "messages": obj.get("messages"), - "definition": ( - RegionalDeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "region": obj.get("region"), + "status": obj.get("status") if obj.get("status") is not None else RegionalDeploymentStatus.PENDING, + "messages": obj.get("messages"), + "definition": RegionalDeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None + }) return _obj + + diff --git a/koyeb/models/regional_deployment_role.py b/koyeb/api/models/regional_deployment_role.py similarity index 53% rename from koyeb/models/regional_deployment_role.py rename to koyeb/api/models/regional_deployment_role.py index dfa5e2ad..1a17b3e3 100644 --- a/koyeb/models/regional_deployment_role.py +++ b/koyeb/api/models/regional_deployment_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class RegionalDeploymentRole(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - ACTIVE = "ACTIVE" - UPCOMING = "UPCOMING" - CURRENT = "CURRENT" + INVALID = 'INVALID' + ACTIVE = 'ACTIVE' + UPCOMING = 'UPCOMING' + CURRENT = 'CURRENT' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of RegionalDeploymentRole from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/api/models/regional_deployment_status.py b/koyeb/api/models/regional_deployment_status.py new file mode 100644 index 00000000..fc0a3635 --- /dev/null +++ b/koyeb/api/models/regional_deployment_status.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class RegionalDeploymentStatus(str, Enum): + """ + RegionalDeploymentStatus + """ + + """ + allowed enum values + """ + PENDING = 'PENDING' + PROVISIONING = 'PROVISIONING' + SCHEDULED = 'SCHEDULED' + CANCELING = 'CANCELING' + CANCELED = 'CANCELED' + ALLOCATING = 'ALLOCATING' + STARTING = 'STARTING' + HEALTHY = 'HEALTHY' + DEGRADED = 'DEGRADED' + UNHEALTHY = 'UNHEALTHY' + STOPPING = 'STOPPING' + STOPPED = 'STOPPED' + ERRORING = 'ERRORING' + ERROR = 'ERROR' + SLEEPING = 'SLEEPING' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of RegionalDeploymentStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/regional_deployment_volume.py b/koyeb/api/models/regional_deployment_volume.py similarity index 80% rename from koyeb/models/regional_deployment_volume.py rename to koyeb/api/models/regional_deployment_volume.py index 11a96845..c2eb190c 100644 --- a/koyeb/models/regional_deployment_volume.py +++ b/koyeb/api/models/regional_deployment_volume.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class RegionalDeploymentVolume(BaseModel): """ RegionalDeploymentVolume - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None path: Optional[StrictStr] = None replica_index: Optional[StrictInt] = None @@ -39,6 +37,7 @@ class RegionalDeploymentVolume(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,11 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "path": obj.get("path"), - "replica_index": obj.get("replica_index"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "path": obj.get("path"), + "replica_index": obj.get("replica_index") + }) return _obj + + diff --git a/koyeb/models/remove_organization_member_reply.py b/koyeb/api/models/remove_organization_member_reply.py similarity index 75% rename from koyeb/models/remove_organization_member_reply.py rename to koyeb/api/models/remove_organization_member_reply.py index fa87836c..bf656798 100644 --- a/koyeb/models/remove_organization_member_reply.py +++ b/koyeb/api/models/remove_organization_member_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_member import OrganizationMember +from koyeb.api.models.organization_member import OrganizationMember from typing import Optional, Set from typing_extensions import Self - class RemoveOrganizationMemberReply(BaseModel): """ RemoveOrganizationMemberReply - """ # noqa: E501 - + """ # noqa: E501 member: Optional[OrganizationMember] = None __properties: ClassVar[List[str]] = ["member"] @@ -38,6 +36,7 @@ class RemoveOrganizationMemberReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of member if self.member: - _dict["member"] = self.member.to_dict() + _dict['member'] = self.member.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "member": ( - OrganizationMember.from_dict(obj["member"]) - if obj.get("member") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "member": OrganizationMember.from_dict(obj["member"]) if obj.get("member") is not None else None + }) return _obj + + diff --git a/koyeb/models/resend_organization_invitation_reply.py b/koyeb/api/models/resend_organization_invitation_reply.py similarity index 74% rename from koyeb/models/resend_organization_invitation_reply.py rename to koyeb/api/models/resend_organization_invitation_reply.py index 51609ed5..2b4b587a 100644 --- a/koyeb/models/resend_organization_invitation_reply.py +++ b/koyeb/api/models/resend_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_invitation import OrganizationInvitation +from koyeb.api.models.organization_invitation import OrganizationInvitation from typing import Optional, Set from typing_extensions import Self - class ResendOrganizationInvitationReply(BaseModel): """ ResendOrganizationInvitationReply - """ # noqa: E501 - + """ # noqa: E501 invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -38,6 +36,7 @@ class ResendOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of invitation if self.invitation: - _dict["invitation"] = self.invitation.to_dict() + _dict['invitation'] = self.invitation.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "invitation": ( - OrganizationInvitation.from_dict(obj["invitation"]) - if obj.get("invitation") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "invitation": OrganizationInvitation.from_dict(obj["invitation"]) if obj.get("invitation") is not None else None + }) return _obj + + diff --git a/koyeb/models/reset_password_request.py b/koyeb/api/models/reset_password_request.py similarity index 81% rename from koyeb/models/reset_password_request.py rename to koyeb/api/models/reset_password_request.py index db029043..350b65e9 100644 --- a/koyeb/models/reset_password_request.py +++ b/koyeb/api/models/reset_password_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ResetPasswordRequest(BaseModel): """ ResetPasswordRequest - """ # noqa: E501 - + """ # noqa: E501 email: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["email"] @@ -37,6 +35,7 @@ class ResetPasswordRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"email": obj.get("email")}) + _obj = cls.model_validate({ + "email": obj.get("email") + }) return _obj + + diff --git a/koyeb/models/reveal_secret_reply.py b/koyeb/api/models/reveal_secret_reply.py similarity index 81% rename from koyeb/models/reveal_secret_reply.py rename to koyeb/api/models/reveal_secret_reply.py index 1cec0282..c663f88c 100644 --- a/koyeb/models/reveal_secret_reply.py +++ b/koyeb/api/models/reveal_secret_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class RevealSecretReply(BaseModel): """ RevealSecretReply - """ # noqa: E501 - + """ # noqa: E501 value: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = ["value"] @@ -37,6 +35,7 @@ class RevealSecretReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"value": obj.get("value")}) + _obj = cls.model_validate({ + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/review_organization_capacity_reply.py b/koyeb/api/models/review_organization_capacity_reply.py similarity index 81% rename from koyeb/models/review_organization_capacity_reply.py rename to koyeb/api/models/review_organization_capacity_reply.py index a6d51f5d..f351911c 100644 --- a/koyeb/models/review_organization_capacity_reply.py +++ b/koyeb/api/models/review_organization_capacity_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ReviewOrganizationCapacityReply(BaseModel): """ ReviewOrganizationCapacityReply - """ # noqa: E501 - + """ # noqa: E501 has_capacity: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["has_capacity"] @@ -37,6 +35,7 @@ class ReviewOrganizationCapacityReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"has_capacity": obj.get("has_capacity")}) + _obj = cls.model_validate({ + "has_capacity": obj.get("has_capacity") + }) return _obj + + diff --git a/koyeb/models/review_organization_capacity_request.py b/koyeb/api/models/review_organization_capacity_request.py similarity index 81% rename from koyeb/models/review_organization_capacity_request.py rename to koyeb/api/models/review_organization_capacity_request.py index d79a3cd4..2c8632cb 100644 --- a/koyeb/models/review_organization_capacity_request.py +++ b/koyeb/api/models/review_organization_capacity_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ReviewOrganizationCapacityRequest(BaseModel): """ ReviewOrganizationCapacityRequest - """ # noqa: E501 - + """ # noqa: E501 plan: Optional[StrictStr] = None trialing: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["plan", "trialing"] @@ -38,6 +36,7 @@ class ReviewOrganizationCapacityRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"plan": obj.get("plan"), "trialing": obj.get("trialing")} - ) + _obj = cls.model_validate({ + "plan": obj.get("plan"), + "trialing": obj.get("trialing") + }) return _obj + + diff --git a/koyeb/models/route.py b/koyeb/api/models/route.py similarity index 80% rename from koyeb/models/route.py rename to koyeb/api/models/route.py index 1472a07e..c0eb7e45 100644 --- a/koyeb/models/route.py +++ b/koyeb/api/models/route.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Route(BaseModel): """ Route - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None path: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["port", "path"] @@ -38,6 +36,7 @@ class Route(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"port": obj.get("port"), "path": obj.get("path")}) + _obj = cls.model_validate({ + "port": obj.get("port"), + "path": obj.get("path") + }) return _obj + + diff --git a/koyeb/models/sample.py b/koyeb/api/models/sample.py similarity index 80% rename from koyeb/models/sample.py rename to koyeb/api/models/sample.py index 6ba1f284..43d6fb1f 100644 --- a/koyeb/models/sample.py +++ b/koyeb/api/models/sample.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class Sample(BaseModel): """ Sample - """ # noqa: E501 - + """ # noqa: E501 timestamp: Optional[StrictStr] = None value: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["timestamp", "value"] @@ -38,6 +36,7 @@ class Sample(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"timestamp": obj.get("timestamp"), "value": obj.get("value")} - ) + _obj = cls.model_validate({ + "timestamp": obj.get("timestamp"), + "value": obj.get("value") + }) return _obj + + diff --git a/koyeb/models/scale_to_zero_quotas.py b/koyeb/api/models/scale_to_zero_quotas.py similarity index 66% rename from koyeb/models/scale_to_zero_quotas.py rename to koyeb/api/models/scale_to_zero_quotas.py index ad114f00..faf8bc3a 100644 --- a/koyeb/models/scale_to_zero_quotas.py +++ b/koyeb/api/models/scale_to_zero_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,26 +22,17 @@ from typing import Optional, Set from typing_extensions import Self - class ScaleToZeroQuotas(BaseModel): """ ScaleToZeroQuotas - """ # noqa: E501 - + """ # noqa: E501 is_deep_sleep_enabled: Optional[StrictBool] = None deep_sleep_idle_delay_min: Optional[StrictInt] = None deep_sleep_idle_delay_max: Optional[StrictInt] = None is_light_sleep_enabled: Optional[StrictBool] = None light_sleep_idle_delay_min: Optional[StrictInt] = None light_sleep_idle_delay_max: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = [ - "is_deep_sleep_enabled", - "deep_sleep_idle_delay_min", - "deep_sleep_idle_delay_max", - "is_light_sleep_enabled", - "light_sleep_idle_delay_min", - "light_sleep_idle_delay_max", - ] + __properties: ClassVar[List[str]] = ["is_deep_sleep_enabled", "deep_sleep_idle_delay_min", "deep_sleep_idle_delay_max", "is_light_sleep_enabled", "light_sleep_idle_delay_min", "light_sleep_idle_delay_max"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +40,7 @@ class ScaleToZeroQuotas(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,14 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "is_deep_sleep_enabled": obj.get("is_deep_sleep_enabled"), - "deep_sleep_idle_delay_min": obj.get("deep_sleep_idle_delay_min"), - "deep_sleep_idle_delay_max": obj.get("deep_sleep_idle_delay_max"), - "is_light_sleep_enabled": obj.get("is_light_sleep_enabled"), - "light_sleep_idle_delay_min": obj.get("light_sleep_idle_delay_min"), - "light_sleep_idle_delay_max": obj.get("light_sleep_idle_delay_max"), - } - ) + _obj = cls.model_validate({ + "is_deep_sleep_enabled": obj.get("is_deep_sleep_enabled"), + "deep_sleep_idle_delay_min": obj.get("deep_sleep_idle_delay_min"), + "deep_sleep_idle_delay_max": obj.get("deep_sleep_idle_delay_max"), + "is_light_sleep_enabled": obj.get("is_light_sleep_enabled"), + "light_sleep_idle_delay_min": obj.get("light_sleep_idle_delay_min"), + "light_sleep_idle_delay_max": obj.get("light_sleep_idle_delay_max") + }) return _obj + + diff --git a/koyeb/models/scaling.py b/koyeb/api/models/scaling.py similarity index 73% rename from koyeb/models/scaling.py rename to koyeb/api/models/scaling.py index 34abaded..1ca041ec 100644 --- a/koyeb/models/scaling.py +++ b/koyeb/api/models/scaling.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_scaling_target import DeploymentScalingTarget +from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget from typing import Optional, Set from typing_extensions import Self - class Scaling(BaseModel): """ Scaling - """ # noqa: E501 - + """ # noqa: E501 min: Optional[StrictInt] = None max: Optional[StrictInt] = None targets: Optional[List[DeploymentScalingTarget]] = None @@ -40,6 +38,7 @@ class Scaling(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_targets in self.targets: if _item_targets: _items.append(_item_targets.to_dict()) - _dict["targets"] = _items + _dict['targets'] = _items return _dict @classmethod @@ -89,18 +89,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "min": obj.get("min"), - "max": obj.get("max"), - "targets": ( - [ - DeploymentScalingTarget.from_dict(_item) - for _item in obj["targets"] - ] - if obj.get("targets") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "min": obj.get("min"), + "max": obj.get("max"), + "targets": [DeploymentScalingTarget.from_dict(_item) for _item in obj["targets"]] if obj.get("targets") is not None else None + }) return _obj + + diff --git a/koyeb/api/models/secret.py b/koyeb/api/models/secret.py new file mode 100644 index 00000000..4f83b6c0 --- /dev/null +++ b/koyeb/api/models/secret.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration +from koyeb.api.models.database_role_password import DatabaseRolePassword +from koyeb.api.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration +from koyeb.api.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration +from koyeb.api.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration +from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration +from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration +from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration +from koyeb.api.models.secret_type import SecretType +from typing import Optional, Set +from typing_extensions import Self + +class Secret(BaseModel): + """ + Secret + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + organization_id: Optional[StrictStr] = None + type: Optional[SecretType] = SecretType.SIMPLE + updated_at: Optional[datetime] = None + created_at: Optional[datetime] = None + value: Optional[StrictStr] = None + docker_hub_registry: Optional[DockerHubRegistryConfiguration] = None + private_registry: Optional[PrivateRegistryConfiguration] = None + digital_ocean_registry: Optional[DigitalOceanRegistryConfiguration] = None + github_registry: Optional[GitHubRegistryConfiguration] = None + gitlab_registry: Optional[GitLabRegistryConfiguration] = None + gcp_container_registry: Optional[GCPContainerRegistryConfiguration] = None + azure_container_registry: Optional[AzureContainerRegistryConfiguration] = None + database_role_password: Optional[DatabaseRolePassword] = None + __properties: ClassVar[List[str]] = ["id", "name", "organization_id", "type", "updated_at", "created_at", "value", "docker_hub_registry", "private_registry", "digital_ocean_registry", "github_registry", "gitlab_registry", "gcp_container_registry", "azure_container_registry", "database_role_password"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Secret from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of docker_hub_registry + if self.docker_hub_registry: + _dict['docker_hub_registry'] = self.docker_hub_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of private_registry + if self.private_registry: + _dict['private_registry'] = self.private_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of digital_ocean_registry + if self.digital_ocean_registry: + _dict['digital_ocean_registry'] = self.digital_ocean_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of github_registry + if self.github_registry: + _dict['github_registry'] = self.github_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of gitlab_registry + if self.gitlab_registry: + _dict['gitlab_registry'] = self.gitlab_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of gcp_container_registry + if self.gcp_container_registry: + _dict['gcp_container_registry'] = self.gcp_container_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of azure_container_registry + if self.azure_container_registry: + _dict['azure_container_registry'] = self.azure_container_registry.to_dict() + # override the default output from pydantic by calling `to_dict()` of database_role_password + if self.database_role_password: + _dict['database_role_password'] = self.database_role_password.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Secret from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "organization_id": obj.get("organization_id"), + "type": obj.get("type") if obj.get("type") is not None else SecretType.SIMPLE, + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "value": obj.get("value"), + "docker_hub_registry": DockerHubRegistryConfiguration.from_dict(obj["docker_hub_registry"]) if obj.get("docker_hub_registry") is not None else None, + "private_registry": PrivateRegistryConfiguration.from_dict(obj["private_registry"]) if obj.get("private_registry") is not None else None, + "digital_ocean_registry": DigitalOceanRegistryConfiguration.from_dict(obj["digital_ocean_registry"]) if obj.get("digital_ocean_registry") is not None else None, + "github_registry": GitHubRegistryConfiguration.from_dict(obj["github_registry"]) if obj.get("github_registry") is not None else None, + "gitlab_registry": GitLabRegistryConfiguration.from_dict(obj["gitlab_registry"]) if obj.get("gitlab_registry") is not None else None, + "gcp_container_registry": GCPContainerRegistryConfiguration.from_dict(obj["gcp_container_registry"]) if obj.get("gcp_container_registry") is not None else None, + "azure_container_registry": AzureContainerRegistryConfiguration.from_dict(obj["azure_container_registry"]) if obj.get("azure_container_registry") is not None else None, + "database_role_password": DatabaseRolePassword.from_dict(obj["database_role_password"]) if obj.get("database_role_password") is not None else None + }) + return _obj + + diff --git a/koyeb/models/secret_type.py b/koyeb/api/models/secret_type.py similarity index 53% rename from koyeb/models/secret_type.py rename to koyeb/api/models/secret_type.py index bd981586..241aca98 100644 --- a/koyeb/models/secret_type.py +++ b/koyeb/api/models/secret_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class SecretType(str, Enum): """ allowed enum values """ - SIMPLE = "SIMPLE" - REGISTRY = "REGISTRY" - MANAGED = "MANAGED" + SIMPLE = 'SIMPLE' + REGISTRY = 'REGISTRY' + MANAGED = 'MANAGED' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of SecretType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/secrets_summary.py b/koyeb/api/models/secrets_summary.py similarity index 80% rename from koyeb/models/secrets_summary.py rename to koyeb/api/models/secrets_summary.py index 6a09084e..f4f05185 100644 --- a/koyeb/models/secrets_summary.py +++ b/koyeb/api/models/secrets_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class SecretsSummary(BaseModel): """ SecretsSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None by_type: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "by_type"] @@ -38,6 +36,7 @@ class SecretsSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"total": obj.get("total"), "by_type": obj.get("by_type")} - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "by_type": obj.get("by_type") + }) return _obj + + diff --git a/koyeb/models/service.py b/koyeb/api/models/service.py similarity index 53% rename from koyeb/models/service.py rename to koyeb/api/models/service.py index 99318d69..164256ce 100644 --- a/koyeb/models/service.py +++ b/koyeb/api/models/service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,16 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service_state import ServiceState -from koyeb.models.service_status import ServiceStatus -from koyeb.models.service_type import ServiceType +from koyeb.api.models.service_state import ServiceState +from koyeb.api.models.service_status import ServiceStatus +from koyeb.api.models.service_type import ServiceType from typing import Optional, Set from typing_extensions import Self - class Service(BaseModel): """ Service - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -51,27 +49,7 @@ class Service(BaseModel): latest_deployment_id: Optional[StrictStr] = None last_provisioned_deployment_id: Optional[StrictStr] = None state: Optional[ServiceState] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "started_at", - "succeeded_at", - "paused_at", - "resumed_at", - "terminated_at", - "name", - "type", - "organization_id", - "app_id", - "status", - "messages", - "version", - "active_deployment_id", - "latest_deployment_id", - "last_provisioned_deployment_id", - "state", - ] + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "started_at", "succeeded_at", "paused_at", "resumed_at", "terminated_at", "name", "type", "organization_id", "app_id", "status", "messages", "version", "active_deployment_id", "latest_deployment_id", "last_provisioned_deployment_id", "state"] model_config = ConfigDict( populate_by_name=True, @@ -79,6 +57,7 @@ class Service(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -103,7 +82,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -112,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of state if self.state: - _dict["state"] = self.state.to_dict() + _dict['state'] = self.state.to_dict() return _dict @classmethod @@ -124,41 +104,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "paused_at": obj.get("paused_at"), - "resumed_at": obj.get("resumed_at"), - "terminated_at": obj.get("terminated_at"), - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else ServiceType.INVALID_TYPE - ), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else ServiceStatus.STARTING - ), - "messages": obj.get("messages"), - "version": obj.get("version"), - "active_deployment_id": obj.get("active_deployment_id"), - "latest_deployment_id": obj.get("latest_deployment_id"), - "last_provisioned_deployment_id": obj.get( - "last_provisioned_deployment_id" - ), - "state": ( - ServiceState.from_dict(obj["state"]) - if obj.get("state") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "paused_at": obj.get("paused_at"), + "resumed_at": obj.get("resumed_at"), + "terminated_at": obj.get("terminated_at"), + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else ServiceType.INVALID_TYPE, + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "status": obj.get("status") if obj.get("status") is not None else ServiceStatus.STARTING, + "messages": obj.get("messages"), + "version": obj.get("version"), + "active_deployment_id": obj.get("active_deployment_id"), + "latest_deployment_id": obj.get("latest_deployment_id"), + "last_provisioned_deployment_id": obj.get("last_provisioned_deployment_id"), + "state": ServiceState.from_dict(obj["state"]) if obj.get("state") is not None else None + }) return _obj + + diff --git a/koyeb/models/service_event.py b/koyeb/api/models/service_event.py similarity index 71% rename from koyeb/models/service_event.py rename to koyeb/api/models/service_event.py index 68d2c5e2..27facaa7 100644 --- a/koyeb/models/service_event.py +++ b/koyeb/api/models/service_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ServiceEvent(BaseModel): """ ServiceEvent - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -36,15 +34,7 @@ class ServiceEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = [ - "id", - "when", - "organization_id", - "service_id", - "type", - "message", - "metadata", - ] + __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "service_id", "type", "message", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class ServiceEvent(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "service_id": obj.get("service_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "service_id": obj.get("service_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata") + }) return _obj + + diff --git a/koyeb/models/service_list_item.py b/koyeb/api/models/service_list_item.py similarity index 57% rename from koyeb/models/service_list_item.py rename to koyeb/api/models/service_list_item.py index 617ce078..df76848b 100644 --- a/koyeb/models/service_list_item.py +++ b/koyeb/api/models/service_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,16 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service_state import ServiceState -from koyeb.models.service_status import ServiceStatus -from koyeb.models.service_type import ServiceType +from koyeb.api.models.service_state import ServiceState +from koyeb.api.models.service_status import ServiceStatus +from koyeb.api.models.service_type import ServiceType from typing import Optional, Set from typing_extensions import Self - class ServiceListItem(BaseModel): """ ServiceListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None type: Optional[ServiceType] = ServiceType.INVALID_TYPE @@ -45,21 +43,7 @@ class ServiceListItem(BaseModel): state: Optional[ServiceState] = None active_deployment_id: Optional[StrictStr] = None latest_deployment_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "name", - "type", - "organization_id", - "app_id", - "updated_at", - "created_at", - "status", - "messages", - "version", - "state", - "active_deployment_id", - "latest_deployment_id", - ] + __properties: ClassVar[List[str]] = ["id", "name", "type", "organization_id", "app_id", "updated_at", "created_at", "status", "messages", "version", "state", "active_deployment_id", "latest_deployment_id"] model_config = ConfigDict( populate_by_name=True, @@ -67,6 +51,7 @@ class ServiceListItem(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -91,7 +76,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -100,7 +86,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of state if self.state: - _dict["state"] = self.state.to_dict() + _dict['state'] = self.state.to_dict() return _dict @classmethod @@ -112,33 +98,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else ServiceType.INVALID_TYPE - ), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else ServiceStatus.STARTING - ), - "messages": obj.get("messages"), - "version": obj.get("version"), - "state": ( - ServiceState.from_dict(obj["state"]) - if obj.get("state") is not None - else None - ), - "active_deployment_id": obj.get("active_deployment_id"), - "latest_deployment_id": obj.get("latest_deployment_id"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else ServiceType.INVALID_TYPE, + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "status": obj.get("status") if obj.get("status") is not None else ServiceStatus.STARTING, + "messages": obj.get("messages"), + "version": obj.get("version"), + "state": ServiceState.from_dict(obj["state"]) if obj.get("state") is not None else None, + "active_deployment_id": obj.get("active_deployment_id"), + "latest_deployment_id": obj.get("latest_deployment_id") + }) return _obj + + diff --git a/koyeb/models/service_state.py b/koyeb/api/models/service_state.py similarity index 68% rename from koyeb/models/service_state.py rename to koyeb/api/models/service_state.py index 2e722e90..73decf17 100644 --- a/koyeb/models/service_state.py +++ b/koyeb/api/models/service_state.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.auto_release import AutoRelease -from koyeb.models.desired_deployment import DesiredDeployment +from koyeb.api.models.auto_release import AutoRelease +from koyeb.api.models.desired_deployment import DesiredDeployment from typing import Optional, Set from typing_extensions import Self - class ServiceState(BaseModel): """ ServiceState - """ # noqa: E501 - + """ # noqa: E501 desired_deployment: Optional[DesiredDeployment] = None auto_release: Optional[AutoRelease] = None __properties: ClassVar[List[str]] = ["desired_deployment", "auto_release"] @@ -40,6 +38,7 @@ class ServiceState(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of desired_deployment if self.desired_deployment: - _dict["desired_deployment"] = self.desired_deployment.to_dict() + _dict['desired_deployment'] = self.desired_deployment.to_dict() # override the default output from pydantic by calling `to_dict()` of auto_release if self.auto_release: - _dict["auto_release"] = self.auto_release.to_dict() + _dict['auto_release'] = self.auto_release.to_dict() return _dict @classmethod @@ -88,18 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "desired_deployment": ( - DesiredDeployment.from_dict(obj["desired_deployment"]) - if obj.get("desired_deployment") is not None - else None - ), - "auto_release": ( - AutoRelease.from_dict(obj["auto_release"]) - if obj.get("auto_release") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "desired_deployment": DesiredDeployment.from_dict(obj["desired_deployment"]) if obj.get("desired_deployment") is not None else None, + "auto_release": AutoRelease.from_dict(obj["auto_release"]) if obj.get("auto_release") is not None else None + }) return _obj + + diff --git a/koyeb/api/models/service_status.py b/koyeb/api/models/service_status.py new file mode 100644 index 00000000..f0f5bfb1 --- /dev/null +++ b/koyeb/api/models/service_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ServiceStatus(str, Enum): + """ + ServiceStatus + """ + + """ + allowed enum values + """ + STARTING = 'STARTING' + HEALTHY = 'HEALTHY' + DEGRADED = 'DEGRADED' + UNHEALTHY = 'UNHEALTHY' + DELETING = 'DELETING' + DELETED = 'DELETED' + PAUSING = 'PAUSING' + PAUSED = 'PAUSED' + RESUMING = 'RESUMING' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ServiceStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/service_summary.py b/koyeb/api/models/service_summary.py similarity index 80% rename from koyeb/models/service_summary.py rename to koyeb/api/models/service_summary.py index a9792d7f..4931b705 100644 --- a/koyeb/models/service_summary.py +++ b/koyeb/api/models/service_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class ServiceSummary(BaseModel): """ ServiceSummary - """ # noqa: E501 - + """ # noqa: E501 total: Optional[StrictStr] = None by_status: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["total", "by_status"] @@ -38,6 +36,7 @@ class ServiceSummary(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"total": obj.get("total"), "by_status": obj.get("by_status")} - ) + _obj = cls.model_validate({ + "total": obj.get("total"), + "by_status": obj.get("by_status") + }) return _obj + + diff --git a/koyeb/models/service_type.py b/koyeb/api/models/service_type.py similarity index 51% rename from koyeb/models/service_type.py rename to koyeb/api/models/service_type.py index 91829e13..cade14be 100644 --- a/koyeb/models/service_type.py +++ b/koyeb/api/models/service_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class ServiceType(str, Enum): """ allowed enum values """ - INVALID_TYPE = "INVALID_TYPE" - WEB = "WEB" - WORKER = "WORKER" - DATABASE = "DATABASE" + INVALID_TYPE = 'INVALID_TYPE' + WEB = 'WEB' + WORKER = 'WORKER' + DATABASE = 'DATABASE' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ServiceType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/service_usage.py b/koyeb/api/models/service_usage.py similarity index 73% rename from koyeb/models/service_usage.py rename to koyeb/api/models/service_usage.py index c7c6b130..3297852e 100644 --- a/koyeb/models/service_usage.py +++ b/koyeb/api/models/service_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.region_usage import RegionUsage +from koyeb.api.models.region_usage import RegionUsage from typing import Optional, Set from typing_extensions import Self - class ServiceUsage(BaseModel): """ ServiceUsage - """ # noqa: E501 - + """ # noqa: E501 service_id: Optional[StrictStr] = None service_name: Optional[StrictStr] = None regions: Optional[Dict[str, RegionUsage]] = None @@ -40,6 +38,7 @@ class ServiceUsage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_regions in self.regions: if self.regions[_key_regions]: _field_dict[_key_regions] = self.regions[_key_regions].to_dict() - _dict["regions"] = _field_dict + _dict['regions'] = _field_dict return _dict @classmethod @@ -89,18 +89,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "regions": ( - dict( - (_k, RegionUsage.from_dict(_v)) - for _k, _v in obj["regions"].items() - ) - if obj.get("regions") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "regions": dict( + (_k, RegionUsage.from_dict(_v)) + for _k, _v in obj["regions"].items() + ) + if obj.get("regions") is not None + else None + }) return _obj + + diff --git a/koyeb/models/snapshot.py b/koyeb/api/models/snapshot.py similarity index 61% rename from koyeb/models/snapshot.py rename to koyeb/api/models/snapshot.py index 76135a73..fc9bc7ba 100644 --- a/koyeb/models/snapshot.py +++ b/koyeb/api/models/snapshot.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.snapshot_status import SnapshotStatus -from koyeb.models.snapshot_type import SnapshotType +from koyeb.api.models.snapshot_status import SnapshotStatus +from koyeb.api.models.snapshot_type import SnapshotType from typing import Optional, Set from typing_extensions import Self - class Snapshot(BaseModel): """ The object that represents a snapshot. It can either be local, on a node, or remote, in a cold storage. - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None size: Optional[StrictInt] = None @@ -42,19 +40,7 @@ class Snapshot(BaseModel): region: Optional[StrictStr] = None status: Optional[SnapshotStatus] = SnapshotStatus.SNAPSHOT_STATUS_INVALID type: Optional[SnapshotType] = SnapshotType.SNAPSHOT_TYPE_INVALID - __properties: ClassVar[List[str]] = [ - "id", - "name", - "size", - "created_at", - "updated_at", - "deleted_at", - "organization_id", - "parent_volume_id", - "region", - "status", - "type", - ] + __properties: ClassVar[List[str]] = ["id", "name", "size", "created_at", "updated_at", "deleted_at", "organization_id", "parent_volume_id", "region", "status", "type"] model_config = ConfigDict( populate_by_name=True, @@ -62,6 +48,7 @@ class Snapshot(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -86,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -104,27 +92,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "size": obj.get("size"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "deleted_at": obj.get("deleted_at"), - "organization_id": obj.get("organization_id"), - "parent_volume_id": obj.get("parent_volume_id"), - "region": obj.get("region"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else SnapshotStatus.SNAPSHOT_STATUS_INVALID - ), - "type": ( - obj.get("type") - if obj.get("type") is not None - else SnapshotType.SNAPSHOT_TYPE_INVALID - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "size": obj.get("size"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "deleted_at": obj.get("deleted_at"), + "organization_id": obj.get("organization_id"), + "parent_volume_id": obj.get("parent_volume_id"), + "region": obj.get("region"), + "status": obj.get("status") if obj.get("status") is not None else SnapshotStatus.SNAPSHOT_STATUS_INVALID, + "type": obj.get("type") if obj.get("type") is not None else SnapshotType.SNAPSHOT_TYPE_INVALID + }) return _obj + + diff --git a/koyeb/api/models/snapshot_status.py b/koyeb/api/models/snapshot_status.py new file mode 100644 index 00000000..ec7f810c --- /dev/null +++ b/koyeb/api/models/snapshot_status.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SnapshotStatus(str, Enum): + """ + SnapshotStatus + """ + + """ + allowed enum values + """ + SNAPSHOT_STATUS_INVALID = 'SNAPSHOT_STATUS_INVALID' + SNAPSHOT_STATUS_CREATING = 'SNAPSHOT_STATUS_CREATING' + SNAPSHOT_STATUS_AVAILABLE = 'SNAPSHOT_STATUS_AVAILABLE' + SNAPSHOT_STATUS_MIGRATING = 'SNAPSHOT_STATUS_MIGRATING' + SNAPSHOT_STATUS_DELETING = 'SNAPSHOT_STATUS_DELETING' + SNAPSHOT_STATUS_DELETED = 'SNAPSHOT_STATUS_DELETED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SnapshotStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/api/models/snapshot_type.py b/koyeb/api/models/snapshot_type.py new file mode 100644 index 00000000..bbe3f47a --- /dev/null +++ b/koyeb/api/models/snapshot_type.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SnapshotType(str, Enum): + """ + SnapshotType + """ + + """ + allowed enum values + """ + SNAPSHOT_TYPE_INVALID = 'SNAPSHOT_TYPE_INVALID' + SNAPSHOT_TYPE_LOCAL = 'SNAPSHOT_TYPE_LOCAL' + SNAPSHOT_TYPE_REMOTE = 'SNAPSHOT_TYPE_REMOTE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SnapshotType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/stream_result_of_exec_command_reply.py b/koyeb/api/models/stream_result_of_exec_command_reply.py similarity index 70% rename from koyeb/models/stream_result_of_exec_command_reply.py rename to koyeb/api/models/stream_result_of_exec_command_reply.py index fd1033c7..4842b4b2 100644 --- a/koyeb/models/stream_result_of_exec_command_reply.py +++ b/koyeb/api/models/stream_result_of_exec_command_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.exec_command_reply import ExecCommandReply -from koyeb.models.google_rpc_status import GoogleRpcStatus +from koyeb.api.models.exec_command_reply import ExecCommandReply +from koyeb.api.models.google_rpc_status import GoogleRpcStatus from typing import Optional, Set from typing_extensions import Self - class StreamResultOfExecCommandReply(BaseModel): """ StreamResultOfExecCommandReply - """ # noqa: E501 - + """ # noqa: E501 result: Optional[ExecCommandReply] = None error: Optional[GoogleRpcStatus] = None __properties: ClassVar[List[str]] = ["result", "error"] @@ -40,6 +38,7 @@ class StreamResultOfExecCommandReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of result if self.result: - _dict["result"] = self.result.to_dict() + _dict['result'] = self.result.to_dict() # override the default output from pydantic by calling `to_dict()` of error if self.error: - _dict["error"] = self.error.to_dict() + _dict['error'] = self.error.to_dict() return _dict @classmethod @@ -88,18 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "result": ( - ExecCommandReply.from_dict(obj["result"]) - if obj.get("result") is not None - else None - ), - "error": ( - GoogleRpcStatus.from_dict(obj["error"]) - if obj.get("error") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "result": ExecCommandReply.from_dict(obj["result"]) if obj.get("result") is not None else None, + "error": GoogleRpcStatus.from_dict(obj["error"]) if obj.get("error") is not None else None + }) return _obj + + diff --git a/koyeb/models/stream_result_of_log_entry.py b/koyeb/api/models/stream_result_of_log_entry.py similarity index 70% rename from koyeb/models/stream_result_of_log_entry.py rename to koyeb/api/models/stream_result_of_log_entry.py index 0f694095..09dd065c 100644 --- a/koyeb/models/stream_result_of_log_entry.py +++ b/koyeb/api/models/stream_result_of_log_entry.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.google_rpc_status import GoogleRpcStatus -from koyeb.models.log_entry import LogEntry +from koyeb.api.models.google_rpc_status import GoogleRpcStatus +from koyeb.api.models.log_entry import LogEntry from typing import Optional, Set from typing_extensions import Self - class StreamResultOfLogEntry(BaseModel): """ StreamResultOfLogEntry - """ # noqa: E501 - + """ # noqa: E501 result: Optional[LogEntry] = None error: Optional[GoogleRpcStatus] = None __properties: ClassVar[List[str]] = ["result", "error"] @@ -40,6 +38,7 @@ class StreamResultOfLogEntry(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of result if self.result: - _dict["result"] = self.result.to_dict() + _dict['result'] = self.result.to_dict() # override the default output from pydantic by calling `to_dict()` of error if self.error: - _dict["error"] = self.error.to_dict() + _dict['error'] = self.error.to_dict() return _dict @classmethod @@ -88,18 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "result": ( - LogEntry.from_dict(obj["result"]) - if obj.get("result") is not None - else None - ), - "error": ( - GoogleRpcStatus.from_dict(obj["error"]) - if obj.get("error") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "result": LogEntry.from_dict(obj["result"]) if obj.get("result") is not None else None, + "error": GoogleRpcStatus.from_dict(obj["error"]) if obj.get("error") is not None else None + }) return _obj + + diff --git a/koyeb/models/subscription.py b/koyeb/api/models/subscription.py similarity index 52% rename from koyeb/models/subscription.py rename to koyeb/api/models/subscription.py index 7e17f9c2..b9b06196 100644 --- a/koyeb/models/subscription.py +++ b/koyeb/api/models/subscription.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,15 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.subscription_payment_failure import SubscriptionPaymentFailure -from koyeb.models.subscription_status import SubscriptionStatus +from koyeb.api.models.subscription_payment_failure import SubscriptionPaymentFailure +from koyeb.api.models.subscription_status import SubscriptionStatus from typing import Optional, Set from typing_extensions import Self - class Subscription(BaseModel): """ Subscription - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -55,32 +53,7 @@ class Subscription(BaseModel): trial_ends_at: Optional[datetime] = None trial_max_spend: Optional[StrictStr] = None current_spend: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "version", - "organization_id", - "stripe_subscription_id", - "status", - "messages", - "has_pending_update", - "stripe_pending_invoice_id", - "terminate_at", - "canceled_at", - "terminated_at", - "current_period_start", - "current_period_end", - "currency", - "amount_payable", - "amount_paid", - "amount_remaining", - "payment_failure", - "trialing", - "trial_ends_at", - "trial_max_spend", - "current_spend", - ] + __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "version", "organization_id", "stripe_subscription_id", "status", "messages", "has_pending_update", "stripe_pending_invoice_id", "terminate_at", "canceled_at", "terminated_at", "current_period_start", "current_period_end", "currency", "amount_payable", "amount_paid", "amount_remaining", "payment_failure", "trialing", "trial_ends_at", "trial_max_spend", "current_spend"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +61,7 @@ class Subscription(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -112,7 +86,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -121,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_failure if self.payment_failure: - _dict["payment_failure"] = self.payment_failure.to_dict() + _dict['payment_failure'] = self.payment_failure.to_dict() return _dict @classmethod @@ -133,40 +108,32 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "version": obj.get("version"), - "organization_id": obj.get("organization_id"), - "stripe_subscription_id": obj.get("stripe_subscription_id"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else SubscriptionStatus.INVALID - ), - "messages": obj.get("messages"), - "has_pending_update": obj.get("has_pending_update"), - "stripe_pending_invoice_id": obj.get("stripe_pending_invoice_id"), - "terminate_at": obj.get("terminate_at"), - "canceled_at": obj.get("canceled_at"), - "terminated_at": obj.get("terminated_at"), - "current_period_start": obj.get("current_period_start"), - "current_period_end": obj.get("current_period_end"), - "currency": obj.get("currency"), - "amount_payable": obj.get("amount_payable"), - "amount_paid": obj.get("amount_paid"), - "amount_remaining": obj.get("amount_remaining"), - "payment_failure": ( - SubscriptionPaymentFailure.from_dict(obj["payment_failure"]) - if obj.get("payment_failure") is not None - else None - ), - "trialing": obj.get("trialing"), - "trial_ends_at": obj.get("trial_ends_at"), - "trial_max_spend": obj.get("trial_max_spend"), - "current_spend": obj.get("current_spend"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "version": obj.get("version"), + "organization_id": obj.get("organization_id"), + "stripe_subscription_id": obj.get("stripe_subscription_id"), + "status": obj.get("status") if obj.get("status") is not None else SubscriptionStatus.INVALID, + "messages": obj.get("messages"), + "has_pending_update": obj.get("has_pending_update"), + "stripe_pending_invoice_id": obj.get("stripe_pending_invoice_id"), + "terminate_at": obj.get("terminate_at"), + "canceled_at": obj.get("canceled_at"), + "terminated_at": obj.get("terminated_at"), + "current_period_start": obj.get("current_period_start"), + "current_period_end": obj.get("current_period_end"), + "currency": obj.get("currency"), + "amount_payable": obj.get("amount_payable"), + "amount_paid": obj.get("amount_paid"), + "amount_remaining": obj.get("amount_remaining"), + "payment_failure": SubscriptionPaymentFailure.from_dict(obj["payment_failure"]) if obj.get("payment_failure") is not None else None, + "trialing": obj.get("trialing"), + "trial_ends_at": obj.get("trial_ends_at"), + "trial_max_spend": obj.get("trial_max_spend"), + "current_spend": obj.get("current_spend") + }) return _obj + + diff --git a/koyeb/models/subscription_payment_failure.py b/koyeb/api/models/subscription_payment_failure.py similarity index 62% rename from koyeb/models/subscription_payment_failure.py rename to koyeb/api/models/subscription_payment_failure.py index 5c6a3f3c..41caeb58 100644 --- a/koyeb/models/subscription_payment_failure.py +++ b/koyeb/api/models/subscription_payment_failure.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.subscription_payment_failure_stripe_sdk import ( - SubscriptionPaymentFailureStripeSDK, -) +from koyeb.api.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK from typing import Optional, Set from typing_extensions import Self - class SubscriptionPaymentFailure(BaseModel): """ SubscriptionPaymentFailure - """ # noqa: E501 - + """ # noqa: E501 failed_at: Optional[datetime] = None next_attempt: Optional[datetime] = None attempt_count: Optional[StrictStr] = None @@ -42,18 +38,7 @@ class SubscriptionPaymentFailure(BaseModel): payment_method_required: Optional[StrictBool] = None redirect_url: Optional[StrictStr] = None stripe_sdk: Optional[SubscriptionPaymentFailureStripeSDK] = None - __properties: ClassVar[List[str]] = [ - "failed_at", - "next_attempt", - "attempt_count", - "error_code", - "error_reason", - "error_type", - "error_message", - "payment_method_required", - "redirect_url", - "stripe_sdk", - ] + __properties: ClassVar[List[str]] = ["failed_at", "next_attempt", "attempt_count", "error_code", "error_reason", "error_type", "error_message", "payment_method_required", "redirect_url", "stripe_sdk"] model_config = ConfigDict( populate_by_name=True, @@ -61,6 +46,7 @@ class SubscriptionPaymentFailure(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -85,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of stripe_sdk if self.stripe_sdk: - _dict["stripe_sdk"] = self.stripe_sdk.to_dict() + _dict['stripe_sdk'] = self.stripe_sdk.to_dict() return _dict @classmethod @@ -106,22 +93,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "failed_at": obj.get("failed_at"), - "next_attempt": obj.get("next_attempt"), - "attempt_count": obj.get("attempt_count"), - "error_code": obj.get("error_code"), - "error_reason": obj.get("error_reason"), - "error_type": obj.get("error_type"), - "error_message": obj.get("error_message"), - "payment_method_required": obj.get("payment_method_required"), - "redirect_url": obj.get("redirect_url"), - "stripe_sdk": ( - SubscriptionPaymentFailureStripeSDK.from_dict(obj["stripe_sdk"]) - if obj.get("stripe_sdk") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "failed_at": obj.get("failed_at"), + "next_attempt": obj.get("next_attempt"), + "attempt_count": obj.get("attempt_count"), + "error_code": obj.get("error_code"), + "error_reason": obj.get("error_reason"), + "error_type": obj.get("error_type"), + "error_message": obj.get("error_message"), + "payment_method_required": obj.get("payment_method_required"), + "redirect_url": obj.get("redirect_url"), + "stripe_sdk": SubscriptionPaymentFailureStripeSDK.from_dict(obj["stripe_sdk"]) if obj.get("stripe_sdk") is not None else None + }) return _obj + + diff --git a/koyeb/models/subscription_payment_failure_stripe_sdk.py b/koyeb/api/models/subscription_payment_failure_stripe_sdk.py similarity index 80% rename from koyeb/models/subscription_payment_failure_stripe_sdk.py rename to koyeb/api/models/subscription_payment_failure_stripe_sdk.py index a4a4d6a3..717cd0e5 100644 --- a/koyeb/models/subscription_payment_failure_stripe_sdk.py +++ b/koyeb/api/models/subscription_payment_failure_stripe_sdk.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class SubscriptionPaymentFailureStripeSDK(BaseModel): """ SubscriptionPaymentFailureStripeSDK - """ # noqa: E501 - + """ # noqa: E501 client_secret_key: Optional[StrictStr] = None raw_json: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["client_secret_key", "raw_json"] @@ -38,6 +36,7 @@ class SubscriptionPaymentFailureStripeSDK(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,10 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "client_secret_key": obj.get("client_secret_key"), - "raw_json": obj.get("raw_json"), - } - ) + _obj = cls.model_validate({ + "client_secret_key": obj.get("client_secret_key"), + "raw_json": obj.get("raw_json") + }) return _obj + + diff --git a/koyeb/api/models/subscription_status.py b/koyeb/api/models/subscription_status.py new file mode 100644 index 00000000..486f6efa --- /dev/null +++ b/koyeb/api/models/subscription_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SubscriptionStatus(str, Enum): + """ + SubscriptionStatus + """ + + """ + allowed enum values + """ + INVALID = 'INVALID' + CREATED = 'CREATED' + ACTIVE = 'ACTIVE' + WARNING = 'WARNING' + URGENT = 'URGENT' + CANCELING = 'CANCELING' + CANCELED = 'CANCELED' + TERMINATING = 'TERMINATING' + TERMINATED = 'TERMINATED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SubscriptionStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/tcp_health_check.py b/koyeb/api/models/tcp_health_check.py similarity index 81% rename from koyeb/models/tcp_health_check.py rename to koyeb/api/models/tcp_health_check.py index 998c850f..fbda9889 100644 --- a/koyeb/models/tcp_health_check.py +++ b/koyeb/api/models/tcp_health_check.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class TCPHealthCheck(BaseModel): """ TCPHealthCheck - """ # noqa: E501 - + """ # noqa: E501 port: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["port"] @@ -37,6 +35,7 @@ class TCPHealthCheck(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"port": obj.get("port")}) + _obj = cls.model_validate({ + "port": obj.get("port") + }) return _obj + + diff --git a/koyeb/models/token.py b/koyeb/api/models/token.py similarity index 74% rename from koyeb/models/token.py rename to koyeb/api/models/token.py index ee8a37db..bc3778a2 100644 --- a/koyeb/models/token.py +++ b/koyeb/api/models/token.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,22 +23,15 @@ from typing import Optional, Set from typing_extensions import Self - class Token(BaseModel): """ Token - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None user_id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None expires_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "id", - "user_id", - "organization_id", - "expires_at", - ] + __properties: ClassVar[List[str]] = ["id", "user_id", "organization_id", "expires_at"] model_config = ConfigDict( populate_by_name=True, @@ -46,6 +39,7 @@ class Token(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,12 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "user_id": obj.get("user_id"), - "organization_id": obj.get("organization_id"), - "expires_at": obj.get("expires_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "user_id": obj.get("user_id"), + "organization_id": obj.get("organization_id"), + "expires_at": obj.get("expires_at") + }) return _obj + + diff --git a/koyeb/models/trigger_deployment_metadata.py b/koyeb/api/models/trigger_deployment_metadata.py similarity index 57% rename from koyeb/models/trigger_deployment_metadata.py rename to koyeb/api/models/trigger_deployment_metadata.py index a04e00bb..f7603d35 100644 --- a/koyeb/models/trigger_deployment_metadata.py +++ b/koyeb/api/models/trigger_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,28 +19,18 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.trigger_deployment_metadata_actor_type import ( - TriggerDeploymentMetadataActorType, -) -from koyeb.models.trigger_deployment_metadata_trigger_type import ( - TriggerDeploymentMetadataTriggerType, -) -from koyeb.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata +from koyeb.api.models.trigger_deployment_metadata_actor_type import TriggerDeploymentMetadataActorType +from koyeb.api.models.trigger_deployment_metadata_trigger_type import TriggerDeploymentMetadataTriggerType +from koyeb.api.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata from typing import Optional, Set from typing_extensions import Self - class TriggerDeploymentMetadata(BaseModel): """ TriggerDeploymentMetadata - """ # noqa: E501 - - type: Optional[TriggerDeploymentMetadataTriggerType] = ( - TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE - ) - actor: Optional[TriggerDeploymentMetadataActorType] = ( - TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR - ) + """ # noqa: E501 + type: Optional[TriggerDeploymentMetadataTriggerType] = TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE + actor: Optional[TriggerDeploymentMetadataActorType] = TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR git: Optional[TriggerGitDeploymentMetadata] = None __properties: ClassVar[List[str]] = ["type", "actor", "git"] @@ -50,6 +40,7 @@ class TriggerDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -74,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict["git"] = self.git.to_dict() + _dict['git'] = self.git.to_dict() return _dict @classmethod @@ -95,23 +87,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "type": ( - obj.get("type") - if obj.get("type") is not None - else TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE - ), - "actor": ( - obj.get("actor") - if obj.get("actor") is not None - else TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR - ), - "git": ( - TriggerGitDeploymentMetadata.from_dict(obj["git"]) - if obj.get("git") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "type": obj.get("type") if obj.get("type") is not None else TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE, + "actor": obj.get("actor") if obj.get("actor") is not None else TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR, + "git": TriggerGitDeploymentMetadata.from_dict(obj["git"]) if obj.get("git") is not None else None + }) return _obj + + diff --git a/koyeb/models/trigger_deployment_metadata_actor_type.py b/koyeb/api/models/trigger_deployment_metadata_actor_type.py similarity index 56% rename from koyeb/models/trigger_deployment_metadata_actor_type.py rename to koyeb/api/models/trigger_deployment_metadata_actor_type.py index efb6e32f..a74aa835 100644 --- a/koyeb/models/trigger_deployment_metadata_actor_type.py +++ b/koyeb/api/models/trigger_deployment_metadata_actor_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,13 @@ class TriggerDeploymentMetadataActorType(str, Enum): """ allowed enum values """ - UNKNOWN_ACTOR = "UNKNOWN_ACTOR" - USER = "USER" - SYSTEM = "SYSTEM" + UNKNOWN_ACTOR = 'UNKNOWN_ACTOR' + USER = 'USER' + SYSTEM = 'SYSTEM' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of TriggerDeploymentMetadataActorType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/trigger_deployment_metadata_trigger_type.py b/koyeb/api/models/trigger_deployment_metadata_trigger_type.py similarity index 54% rename from koyeb/models/trigger_deployment_metadata_trigger_type.py rename to koyeb/api/models/trigger_deployment_metadata_trigger_type.py index a6a25aac..3aac8381 100644 --- a/koyeb/models/trigger_deployment_metadata_trigger_type.py +++ b/koyeb/api/models/trigger_deployment_metadata_trigger_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,14 @@ class TriggerDeploymentMetadataTriggerType(str, Enum): """ allowed enum values """ - UNKNOWN_TYPE = "UNKNOWN_TYPE" - GIT = "GIT" - RESUME = "RESUME" - DATABASE_SYNC = "DATABASE_SYNC" + UNKNOWN_TYPE = 'UNKNOWN_TYPE' + GIT = 'GIT' + RESUME = 'RESUME' + DATABASE_SYNC = 'DATABASE_SYNC' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of TriggerDeploymentMetadataTriggerType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/trigger_git_deployment_metadata.py b/koyeb/api/models/trigger_git_deployment_metadata.py similarity index 61% rename from koyeb/models/trigger_git_deployment_metadata.py rename to koyeb/api/models/trigger_git_deployment_metadata.py index 64d1a557..93502700 100644 --- a/koyeb/models/trigger_git_deployment_metadata.py +++ b/koyeb/api/models/trigger_git_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,21 +19,15 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.trigger_git_deployment_metadata_provider import ( - TriggerGitDeploymentMetadataProvider, -) +from koyeb.api.models.trigger_git_deployment_metadata_provider import TriggerGitDeploymentMetadataProvider from typing import Optional, Set from typing_extensions import Self - class TriggerGitDeploymentMetadata(BaseModel): """ TriggerGitDeploymentMetadata - """ # noqa: E501 - - provider: Optional[TriggerGitDeploymentMetadataProvider] = ( - TriggerGitDeploymentMetadataProvider.UNKNOWN - ) + """ # noqa: E501 + provider: Optional[TriggerGitDeploymentMetadataProvider] = TriggerGitDeploymentMetadataProvider.UNKNOWN repository: Optional[StrictStr] = None branch: Optional[StrictStr] = None sha: Optional[StrictStr] = None @@ -41,16 +35,7 @@ class TriggerGitDeploymentMetadata(BaseModel): sender_username: Optional[StrictStr] = None sender_avatar_url: Optional[StrictStr] = None sender_profile_url: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "provider", - "repository", - "branch", - "sha", - "message", - "sender_username", - "sender_avatar_url", - "sender_profile_url", - ] + __properties: ClassVar[List[str]] = ["provider", "repository", "branch", "sha", "message", "sender_username", "sender_avatar_url", "sender_profile_url"] model_config = ConfigDict( populate_by_name=True, @@ -58,6 +43,7 @@ class TriggerGitDeploymentMetadata(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,7 +68,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -100,20 +87,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "provider": ( - obj.get("provider") - if obj.get("provider") is not None - else TriggerGitDeploymentMetadataProvider.UNKNOWN - ), - "repository": obj.get("repository"), - "branch": obj.get("branch"), - "sha": obj.get("sha"), - "message": obj.get("message"), - "sender_username": obj.get("sender_username"), - "sender_avatar_url": obj.get("sender_avatar_url"), - "sender_profile_url": obj.get("sender_profile_url"), - } - ) + _obj = cls.model_validate({ + "provider": obj.get("provider") if obj.get("provider") is not None else TriggerGitDeploymentMetadataProvider.UNKNOWN, + "repository": obj.get("repository"), + "branch": obj.get("branch"), + "sha": obj.get("sha"), + "message": obj.get("message"), + "sender_username": obj.get("sender_username"), + "sender_avatar_url": obj.get("sender_avatar_url"), + "sender_profile_url": obj.get("sender_profile_url") + }) return _obj + + diff --git a/koyeb/models/trigger_git_deployment_metadata_provider.py b/koyeb/api/models/trigger_git_deployment_metadata_provider.py similarity index 59% rename from koyeb/models/trigger_git_deployment_metadata_provider.py rename to koyeb/api/models/trigger_git_deployment_metadata_provider.py index d6cdda4d..c2f10198 100644 --- a/koyeb/models/trigger_git_deployment_metadata_provider.py +++ b/koyeb/api/models/trigger_git_deployment_metadata_provider.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ class TriggerGitDeploymentMetadataProvider(str, Enum): """ allowed enum values """ - UNKNOWN = "UNKNOWN" - GITHUB = "GITHUB" + UNKNOWN = 'UNKNOWN' + GITHUB = 'GITHUB' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of TriggerGitDeploymentMetadataProvider from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/update_app.py b/koyeb/api/models/update_app.py similarity index 81% rename from koyeb/models/update_app.py rename to koyeb/api/models/update_app.py index f43ca8f1..1a1cfcdf 100644 --- a/koyeb/models/update_app.py +++ b/koyeb/api/models/update_app.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class UpdateApp(BaseModel): """ UpdateApp - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name"] @@ -37,6 +35,7 @@ class UpdateApp(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name")}) + _obj = cls.model_validate({ + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/update_app_reply.py b/koyeb/api/models/update_app_reply.py similarity index 78% rename from koyeb/models/update_app_reply.py rename to koyeb/api/models/update_app_reply.py index 4fa4b673..636b0f4a 100644 --- a/koyeb/models/update_app_reply.py +++ b/koyeb/api/models/update_app_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.app import App +from koyeb.api.models.app import App from typing import Optional, Set from typing_extensions import Self - class UpdateAppReply(BaseModel): """ UpdateAppReply - """ # noqa: E501 - + """ # noqa: E501 app: Optional[App] = None __properties: ClassVar[List[str]] = ["app"] @@ -38,6 +36,7 @@ class UpdateAppReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict["app"] = self.app.to_dict() + _dict['app'] = self.app.to_dict() return _dict @classmethod @@ -83,7 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"app": App.from_dict(obj["app"]) if obj.get("app") is not None else None} - ) + _obj = cls.model_validate({ + "app": App.from_dict(obj["app"]) if obj.get("app") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_budget_reply.py b/koyeb/api/models/update_budget_reply.py similarity index 75% rename from koyeb/models/update_budget_reply.py rename to koyeb/api/models/update_budget_reply.py index e1ee3cd0..f7f1ebbf 100644 --- a/koyeb/models/update_budget_reply.py +++ b/koyeb/api/models/update_budget_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.budget import Budget +from koyeb.api.models.budget import Budget from typing import Optional, Set from typing_extensions import Self - class UpdateBudgetReply(BaseModel): """ UpdateBudgetReply - """ # noqa: E501 - + """ # noqa: E501 budget: Optional[Budget] = None __properties: ClassVar[List[str]] = ["budget"] @@ -38,6 +36,7 @@ class UpdateBudgetReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of budget if self.budget: - _dict["budget"] = self.budget.to_dict() + _dict['budget'] = self.budget.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "budget": ( - Budget.from_dict(obj["budget"]) - if obj.get("budget") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "budget": Budget.from_dict(obj["budget"]) if obj.get("budget") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_budget_request.py b/koyeb/api/models/update_budget_request.py similarity index 82% rename from koyeb/models/update_budget_request.py rename to koyeb/api/models/update_budget_request.py index e494b082..427c0e8a 100644 --- a/koyeb/models/update_budget_request.py +++ b/koyeb/api/models/update_budget_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class UpdateBudgetRequest(BaseModel): """ UpdateBudgetRequest - """ # noqa: E501 - + """ # noqa: E501 amount: Optional[StrictStr] = Field(default=None, description="In cents.") __properties: ClassVar[List[str]] = ["amount"] @@ -37,6 +35,7 @@ class UpdateBudgetRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"amount": obj.get("amount")}) + _obj = cls.model_validate({ + "amount": obj.get("amount") + }) return _obj + + diff --git a/koyeb/models/update_credential_reply.py b/koyeb/api/models/update_credential_reply.py similarity index 75% rename from koyeb/models/update_credential_reply.py rename to koyeb/api/models/update_credential_reply.py index 6936c490..25364912 100644 --- a/koyeb/models/update_credential_reply.py +++ b/koyeb/api/models/update_credential_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.credential import Credential +from koyeb.api.models.credential import Credential from typing import Optional, Set from typing_extensions import Self - class UpdateCredentialReply(BaseModel): """ UpdateCredentialReply - """ # noqa: E501 - + """ # noqa: E501 credential: Optional[Credential] = None __properties: ClassVar[List[str]] = ["credential"] @@ -38,6 +36,7 @@ class UpdateCredentialReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of credential if self.credential: - _dict["credential"] = self.credential.to_dict() + _dict['credential'] = self.credential.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "credential": ( - Credential.from_dict(obj["credential"]) - if obj.get("credential") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "credential": Credential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_domain.py b/koyeb/api/models/update_domain.py similarity index 73% rename from koyeb/models/update_domain.py rename to koyeb/api/models/update_domain.py index 3d21dc08..0ba886c7 100644 --- a/koyeb/models/update_domain.py +++ b/koyeb/api/models/update_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,18 +22,12 @@ from typing import Optional, Set from typing_extensions import Self - class UpdateDomain(BaseModel): """ UpdateDomain - """ # noqa: E501 - - app_id: Optional[StrictStr] = Field( - default=None, description="To attach or detach from an app for custom domain." - ) - subdomain: Optional[StrictStr] = Field( - default=None, description="To change subdomain for auto-assigned domain." - ) + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="To attach or detach from an app for custom domain.") + subdomain: Optional[StrictStr] = Field(default=None, description="To change subdomain for auto-assigned domain.") __properties: ClassVar[List[str]] = ["app_id", "subdomain"] model_config = ConfigDict( @@ -42,6 +36,7 @@ class UpdateDomain(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -84,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"app_id": obj.get("app_id"), "subdomain": obj.get("subdomain")} - ) + _obj = cls.model_validate({ + "app_id": obj.get("app_id"), + "subdomain": obj.get("subdomain") + }) return _obj + + diff --git a/koyeb/models/update_domain_reply.py b/koyeb/api/models/update_domain_reply.py similarity index 75% rename from koyeb/models/update_domain_reply.py rename to koyeb/api/models/update_domain_reply.py index eb0d5742..d9795dad 100644 --- a/koyeb/models/update_domain_reply.py +++ b/koyeb/api/models/update_domain_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.domain import Domain +from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self - class UpdateDomainReply(BaseModel): """ UpdateDomainReply - """ # noqa: E501 - + """ # noqa: E501 domain: Optional[Domain] = None __properties: ClassVar[List[str]] = ["domain"] @@ -38,6 +36,7 @@ class UpdateDomainReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of domain if self.domain: - _dict["domain"] = self.domain.to_dict() + _dict['domain'] = self.domain.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "domain": ( - Domain.from_dict(obj["domain"]) - if obj.get("domain") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "domain": Domain.from_dict(obj["domain"]) if obj.get("domain") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_organization_plan_reply.py b/koyeb/api/models/update_organization_plan_reply.py similarity index 75% rename from koyeb/models/update_organization_plan_reply.py rename to koyeb/api/models/update_organization_plan_reply.py index 185b5036..a3990e2b 100644 --- a/koyeb/models/update_organization_plan_reply.py +++ b/koyeb/api/models/update_organization_plan_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class UpdateOrganizationPlanReply(BaseModel): """ UpdateOrganizationPlanReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class UpdateOrganizationPlanReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_organization_plan_request.py b/koyeb/api/models/update_organization_plan_request.py similarity index 79% rename from koyeb/models/update_organization_plan_request.py rename to koyeb/api/models/update_organization_plan_request.py index 7556f27a..5273e803 100644 --- a/koyeb/models/update_organization_plan_request.py +++ b/koyeb/api/models/update_organization_plan_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.plan import Plan +from koyeb.api.models.plan import Plan from typing import Optional, Set from typing_extensions import Self - class UpdateOrganizationPlanRequest(BaseModel): """ UpdateOrganizationPlanRequest - """ # noqa: E501 - + """ # noqa: E501 plan: Optional[Plan] = Plan.HOBBY __properties: ClassVar[List[str]] = ["plan"] @@ -38,6 +36,7 @@ class UpdateOrganizationPlanRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY} - ) + _obj = cls.model_validate({ + "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY + }) return _obj + + diff --git a/koyeb/models/update_organization_reply.py b/koyeb/api/models/update_organization_reply.py similarity index 75% rename from koyeb/models/update_organization_reply.py rename to koyeb/api/models/update_organization_reply.py index 07a2bbe4..55125f48 100644 --- a/koyeb/models/update_organization_reply.py +++ b/koyeb/api/models/update_organization_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class UpdateOrganizationReply(BaseModel): """ UpdateOrganizationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class UpdateOrganizationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_password_request.py b/koyeb/api/models/update_password_request.py similarity index 81% rename from koyeb/models/update_password_request.py rename to koyeb/api/models/update_password_request.py index ceea9493..d37ffcf1 100644 --- a/koyeb/models/update_password_request.py +++ b/koyeb/api/models/update_password_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class UpdatePasswordRequest(BaseModel): """ UpdatePasswordRequest - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None password: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "password"] @@ -38,6 +36,7 @@ class UpdatePasswordRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"id": obj.get("id"), "password": obj.get("password")} - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "password": obj.get("password") + }) return _obj + + diff --git a/koyeb/models/update_persistent_volume_reply.py b/koyeb/api/models/update_persistent_volume_reply.py similarity index 75% rename from koyeb/models/update_persistent_volume_reply.py rename to koyeb/api/models/update_persistent_volume_reply.py index d08dfe8f..4c2bf197 100644 --- a/koyeb/models/update_persistent_volume_reply.py +++ b/koyeb/api/models/update_persistent_volume_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.persistent_volume import PersistentVolume +from koyeb.api.models.persistent_volume import PersistentVolume from typing import Optional, Set from typing_extensions import Self - class UpdatePersistentVolumeReply(BaseModel): """ UpdatePersistentVolumeReply - """ # noqa: E501 - + """ # noqa: E501 volume: Optional[PersistentVolume] = None __properties: ClassVar[List[str]] = ["volume"] @@ -38,6 +36,7 @@ class UpdatePersistentVolumeReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of volume if self.volume: - _dict["volume"] = self.volume.to_dict() + _dict['volume'] = self.volume.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "volume": ( - PersistentVolume.from_dict(obj["volume"]) - if obj.get("volume") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "volume": PersistentVolume.from_dict(obj["volume"]) if obj.get("volume") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_persistent_volume_request.py b/koyeb/api/models/update_persistent_volume_request.py similarity index 81% rename from koyeb/models/update_persistent_volume_request.py rename to koyeb/api/models/update_persistent_volume_request.py index 70065649..a8dd514d 100644 --- a/koyeb/models/update_persistent_volume_request.py +++ b/koyeb/api/models/update_persistent_volume_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class UpdatePersistentVolumeRequest(BaseModel): """ UpdatePersistentVolumeRequest - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None max_size: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["name", "max_size"] @@ -38,6 +36,7 @@ class UpdatePersistentVolumeRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,7 +80,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"name": obj.get("name"), "max_size": obj.get("max_size")} - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "max_size": obj.get("max_size") + }) return _obj + + diff --git a/koyeb/models/update_secret_reply.py b/koyeb/api/models/update_secret_reply.py similarity index 75% rename from koyeb/models/update_secret_reply.py rename to koyeb/api/models/update_secret_reply.py index 44be35a4..2283f392 100644 --- a/koyeb/models/update_secret_reply.py +++ b/koyeb/api/models/update_secret_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.secret import Secret +from koyeb.api.models.secret import Secret from typing import Optional, Set from typing_extensions import Self - class UpdateSecretReply(BaseModel): """ UpdateSecretReply - """ # noqa: E501 - + """ # noqa: E501 secret: Optional[Secret] = None __properties: ClassVar[List[str]] = ["secret"] @@ -38,6 +36,7 @@ class UpdateSecretReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of secret if self.secret: - _dict["secret"] = self.secret.to_dict() + _dict['secret'] = self.secret.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "secret": ( - Secret.from_dict(obj["secret"]) - if obj.get("secret") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "secret": Secret.from_dict(obj["secret"]) if obj.get("secret") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_service.py b/koyeb/api/models/update_service.py similarity index 59% rename from koyeb/models/update_service.py rename to koyeb/api/models/update_service.py index 6ebe99ed..c0f10be6 100644 --- a/koyeb/models/update_service.py +++ b/koyeb/api/models/update_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,30 +19,20 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_definition import DeploymentDefinition -from koyeb.models.deployment_metadata import DeploymentMetadata +from koyeb.api.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.deployment_metadata import DeploymentMetadata from typing import Optional, Set from typing_extensions import Self - class UpdateService(BaseModel): """ UpdateService - """ # noqa: E501 - + """ # noqa: E501 definition: Optional[DeploymentDefinition] = None metadata: Optional[DeploymentMetadata] = None - skip_build: Optional[StrictBool] = Field( - default=None, - description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.", - ) + skip_build: Optional[StrictBool] = Field(default=None, description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.") save_only: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "definition", - "metadata", - "skip_build", - "save_only", - ] + __properties: ClassVar[List[str]] = ["definition", "metadata", "skip_build", "save_only"] model_config = ConfigDict( populate_by_name=True, @@ -50,6 +40,7 @@ class UpdateService(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -74,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,10 +75,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict["definition"] = self.definition.to_dict() + _dict['definition'] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of metadata if self.metadata: - _dict["metadata"] = self.metadata.to_dict() + _dict['metadata'] = self.metadata.to_dict() return _dict @classmethod @@ -98,20 +90,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "definition": ( - DeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ), - "metadata": ( - DeploymentMetadata.from_dict(obj["metadata"]) - if obj.get("metadata") is not None - else None - ), - "skip_build": obj.get("skip_build"), - "save_only": obj.get("save_only"), - } - ) + _obj = cls.model_validate({ + "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, + "metadata": DeploymentMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "skip_build": obj.get("skip_build"), + "save_only": obj.get("save_only") + }) return _obj + + diff --git a/koyeb/models/update_service_reply.py b/koyeb/api/models/update_service_reply.py similarity index 75% rename from koyeb/models/update_service_reply.py rename to koyeb/api/models/update_service_reply.py index d86774c1..e2785537 100644 --- a/koyeb/models/update_service_reply.py +++ b/koyeb/api/models/update_service_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.service import Service +from koyeb.api.models.service import Service from typing import Optional, Set from typing_extensions import Self - class UpdateServiceReply(BaseModel): """ UpdateServiceReply - """ # noqa: E501 - + """ # noqa: E501 service: Optional[Service] = None __properties: ClassVar[List[str]] = ["service"] @@ -38,6 +36,7 @@ class UpdateServiceReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of service if self.service: - _dict["service"] = self.service.to_dict() + _dict['service'] = self.service.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "service": ( - Service.from_dict(obj["service"]) - if obj.get("service") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "service": Service.from_dict(obj["service"]) if obj.get("service") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_snapshot_reply.py b/koyeb/api/models/update_snapshot_reply.py similarity index 75% rename from koyeb/models/update_snapshot_reply.py rename to koyeb/api/models/update_snapshot_reply.py index 285a32ed..b9e510e0 100644 --- a/koyeb/models/update_snapshot_reply.py +++ b/koyeb/api/models/update_snapshot_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.snapshot import Snapshot +from koyeb.api.models.snapshot import Snapshot from typing import Optional, Set from typing_extensions import Self - class UpdateSnapshotReply(BaseModel): """ UpdateSnapshotReply - """ # noqa: E501 - + """ # noqa: E501 snapshot: Optional[Snapshot] = None __properties: ClassVar[List[str]] = ["snapshot"] @@ -38,6 +36,7 @@ class UpdateSnapshotReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of snapshot if self.snapshot: - _dict["snapshot"] = self.snapshot.to_dict() + _dict['snapshot'] = self.snapshot.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "snapshot": ( - Snapshot.from_dict(obj["snapshot"]) - if obj.get("snapshot") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "snapshot": Snapshot.from_dict(obj["snapshot"]) if obj.get("snapshot") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_snapshot_request.py b/koyeb/api/models/update_snapshot_request.py similarity index 82% rename from koyeb/models/update_snapshot_request.py rename to koyeb/api/models/update_snapshot_request.py index 9dd4ac6b..55ecbe95 100644 --- a/koyeb/models/update_snapshot_request.py +++ b/koyeb/api/models/update_snapshot_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class UpdateSnapshotRequest(BaseModel): """ UpdateSnapshotRequest - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name"] @@ -37,6 +35,7 @@ class UpdateSnapshotRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,5 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name")}) + _obj = cls.model_validate({ + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/update_user_request_user_update_body.py b/koyeb/api/models/update_user_request_user_update_body.py similarity index 71% rename from koyeb/models/update_user_request_user_update_body.py rename to koyeb/api/models/update_user_request_user_update_body.py index 2240dd4c..60beb530 100644 --- a/koyeb/models/update_user_request_user_update_body.py +++ b/koyeb/api/models/update_user_request_user_update_body.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,26 +22,17 @@ from typing import Optional, Set from typing_extensions import Self - class UpdateUserRequestUserUpdateBody(BaseModel): """ UpdateUserRequestUserUpdateBody - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None email: Optional[StrictStr] = None current_password: Optional[StrictStr] = None password: Optional[StrictStr] = None newsletter_subscribed: Optional[StrictBool] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "email", - "current_password", - "password", - "newsletter_subscribed", - "name", - ] + __properties: ClassVar[List[str]] = ["id", "email", "current_password", "password", "newsletter_subscribed", "name"] model_config = ConfigDict( populate_by_name=True, @@ -49,6 +40,7 @@ class UpdateUserRequestUserUpdateBody(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -91,14 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "email": obj.get("email"), - "current_password": obj.get("current_password"), - "password": obj.get("password"), - "newsletter_subscribed": obj.get("newsletter_subscribed"), - "name": obj.get("name"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email"), + "current_password": obj.get("current_password"), + "password": obj.get("password"), + "newsletter_subscribed": obj.get("newsletter_subscribed"), + "name": obj.get("name") + }) return _obj + + diff --git a/koyeb/models/update_user_settings_reply.py b/koyeb/api/models/update_user_settings_reply.py similarity index 75% rename from koyeb/models/update_user_settings_reply.py rename to koyeb/api/models/update_user_settings_reply.py index 81b824bb..3f62b885 100644 --- a/koyeb/models/update_user_settings_reply.py +++ b/koyeb/api/models/update_user_settings_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.user_settings import UserSettings +from koyeb.api.models.user_settings import UserSettings from typing import Optional, Set from typing_extensions import Self - class UpdateUserSettingsReply(BaseModel): """ UpdateUserSettingsReply - """ # noqa: E501 - + """ # noqa: E501 settings: Optional[UserSettings] = None __properties: ClassVar[List[str]] = ["settings"] @@ -38,6 +36,7 @@ class UpdateUserSettingsReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of settings if self.settings: - _dict["settings"] = self.settings.to_dict() + _dict['settings'] = self.settings.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "settings": ( - UserSettings.from_dict(obj["settings"]) - if obj.get("settings") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "settings": UserSettings.from_dict(obj["settings"]) if obj.get("settings") is not None else None + }) return _obj + + diff --git a/koyeb/models/update_user_settings_request.py b/koyeb/api/models/update_user_settings_request.py similarity index 76% rename from koyeb/models/update_user_settings_request.py rename to koyeb/api/models/update_user_settings_request.py index f71b7620..3ece7969 100644 --- a/koyeb/models/update_user_settings_request.py +++ b/koyeb/api/models/update_user_settings_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,16 +22,11 @@ from typing import Optional, Set from typing_extensions import Self - class UpdateUserSettingsRequest(BaseModel): """ UpdateUserSettingsRequest - """ # noqa: E501 - - failed_deployment_email_notification: Optional[StrictBool] = Field( - default=None, - description="(Optional) Toggle failed deployment email notification.", - ) + """ # noqa: E501 + failed_deployment_email_notification: Optional[StrictBool] = Field(default=None, description="(Optional) Toggle failed deployment email notification.") __properties: ClassVar[List[str]] = ["failed_deployment_email_notification"] model_config = ConfigDict( @@ -40,6 +35,7 @@ class UpdateUserSettingsRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,11 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "failed_deployment_email_notification": obj.get( - "failed_deployment_email_notification" - ) - } - ) + _obj = cls.model_validate({ + "failed_deployment_email_notification": obj.get("failed_deployment_email_notification") + }) return _obj + + diff --git a/koyeb/models/upsert_signup_qualification_reply.py b/koyeb/api/models/upsert_signup_qualification_reply.py similarity index 75% rename from koyeb/models/upsert_signup_qualification_reply.py rename to koyeb/api/models/upsert_signup_qualification_reply.py index d44ef83b..b029fa5f 100644 --- a/koyeb/models/upsert_signup_qualification_reply.py +++ b/koyeb/api/models/upsert_signup_qualification_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization import Organization +from koyeb.api.models.organization import Organization from typing import Optional, Set from typing_extensions import Self - class UpsertSignupQualificationReply(BaseModel): """ UpsertSignupQualificationReply - """ # noqa: E501 - + """ # noqa: E501 organization: Optional[Organization] = None __properties: ClassVar[List[str]] = ["organization"] @@ -38,6 +36,7 @@ class UpsertSignupQualificationReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict["organization"] = self.organization.to_dict() + _dict['organization'] = self.organization.to_dict() return _dict @classmethod @@ -83,13 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization": ( - Organization.from_dict(obj["organization"]) - if obj.get("organization") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "organization": Organization.from_dict(obj["organization"]) if obj.get("organization") is not None else None + }) return _obj + + diff --git a/koyeb/models/upsert_signup_qualification_request.py b/koyeb/api/models/upsert_signup_qualification_request.py similarity index 81% rename from koyeb/models/upsert_signup_qualification_request.py rename to koyeb/api/models/upsert_signup_qualification_request.py index 7e3c96a7..14f7392a 100644 --- a/koyeb/models/upsert_signup_qualification_request.py +++ b/koyeb/api/models/upsert_signup_qualification_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,10 @@ from typing import Optional, Set from typing_extensions import Self - class UpsertSignupQualificationRequest(BaseModel): """ UpsertSignupQualificationRequest - """ # noqa: E501 - + """ # noqa: E501 signup_qualification: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = ["signup_qualification"] @@ -37,6 +35,7 @@ class UpsertSignupQualificationRequest(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,7 +60,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"signup_qualification": obj.get("signup_qualification")} - ) + _obj = cls.model_validate({ + "signup_qualification": obj.get("signup_qualification") + }) return _obj + + diff --git a/koyeb/models/usage.py b/koyeb/api/models/usage.py similarity index 73% rename from koyeb/models/usage.py rename to koyeb/api/models/usage.py index 9933dc4f..02d8874b 100644 --- a/koyeb/models/usage.py +++ b/koyeb/api/models/usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.period_usage import PeriodUsage +from koyeb.api.models.period_usage import PeriodUsage from typing import Optional, Set from typing_extensions import Self - class Usage(BaseModel): """ Usage - """ # noqa: E501 - + """ # noqa: E501 organization_id: Optional[StrictStr] = None periods: Optional[Dict[str, PeriodUsage]] = None __properties: ClassVar[List[str]] = ["organization_id", "periods"] @@ -39,6 +37,7 @@ class Usage(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_periods in self.periods: if self.periods[_key_periods]: _field_dict[_key_periods] = self.periods[_key_periods].to_dict() - _dict["periods"] = _field_dict + _dict['periods'] = _field_dict return _dict @classmethod @@ -88,17 +88,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization_id": obj.get("organization_id"), - "periods": ( - dict( - (_k, PeriodUsage.from_dict(_v)) - for _k, _v in obj["periods"].items() - ) - if obj.get("periods") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "organization_id": obj.get("organization_id"), + "periods": dict( + (_k, PeriodUsage.from_dict(_v)) + for _k, _v in obj["periods"].items() + ) + if obj.get("periods") is not None + else None + }) return _obj + + diff --git a/koyeb/models/usage_details.py b/koyeb/api/models/usage_details.py similarity index 63% rename from koyeb/models/usage_details.py rename to koyeb/api/models/usage_details.py index baafe744..c643f86d 100644 --- a/koyeb/models/usage_details.py +++ b/koyeb/api/models/usage_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class UsageDetails(BaseModel): """ UsageDetails - """ # noqa: E501 - + """ # noqa: E501 organization_id: Optional[StrictStr] = None instance_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None @@ -42,21 +40,7 @@ class UsageDetails(BaseModel): duration_seconds: Optional[StrictInt] = None started_at: Optional[datetime] = None terminated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = [ - "organization_id", - "instance_id", - "app_id", - "app_name", - "service_id", - "service_name", - "regional_deployment_id", - "region", - "deployment_id", - "instance_type", - "duration_seconds", - "started_at", - "terminated_at", - ] + __properties: ClassVar[List[str]] = ["organization_id", "instance_id", "app_id", "app_name", "service_id", "service_name", "regional_deployment_id", "region", "deployment_id", "instance_type", "duration_seconds", "started_at", "terminated_at"] model_config = ConfigDict( populate_by_name=True, @@ -64,6 +48,7 @@ class UsageDetails(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -88,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -106,21 +92,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "organization_id": obj.get("organization_id"), - "instance_id": obj.get("instance_id"), - "app_id": obj.get("app_id"), - "app_name": obj.get("app_name"), - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "region": obj.get("region"), - "deployment_id": obj.get("deployment_id"), - "instance_type": obj.get("instance_type"), - "duration_seconds": obj.get("duration_seconds"), - "started_at": obj.get("started_at"), - "terminated_at": obj.get("terminated_at"), - } - ) + _obj = cls.model_validate({ + "organization_id": obj.get("organization_id"), + "instance_id": obj.get("instance_id"), + "app_id": obj.get("app_id"), + "app_name": obj.get("app_name"), + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "region": obj.get("region"), + "deployment_id": obj.get("deployment_id"), + "instance_type": obj.get("instance_type"), + "duration_seconds": obj.get("duration_seconds"), + "started_at": obj.get("started_at"), + "terminated_at": obj.get("terminated_at") + }) return _obj + + diff --git a/koyeb/models/user.py b/koyeb/api/models/user.py similarity index 61% rename from koyeb/models/user.py rename to koyeb/api/models/user.py index f6030139..87d300fe 100644 --- a/koyeb/models/user.py +++ b/koyeb/api/models/user.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.user_flags import UserFlags +from koyeb.api.models.user_flags import UserFlags from typing import Optional, Set from typing_extensions import Self - class User(BaseModel): """ User - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None email: Optional[StrictStr] = None avatar_url: Optional[StrictStr] = None @@ -45,23 +43,7 @@ class User(BaseModel): name: Optional[StrictStr] = None email_validated: Optional[StrictBool] = None trialed: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "id", - "email", - "avatar_url", - "two_factor_authentication", - "last_login", - "last_login_ip", - "updated_at", - "created_at", - "newsletter_subscribed", - "github_id", - "github_user", - "flags", - "name", - "email_validated", - "trialed", - ] + __properties: ClassVar[List[str]] = ["id", "email", "avatar_url", "two_factor_authentication", "last_login", "last_login_ip", "updated_at", "created_at", "newsletter_subscribed", "github_id", "github_user", "flags", "name", "email_validated", "trialed"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +51,7 @@ class User(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -93,7 +76,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -111,23 +95,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "email": obj.get("email"), - "avatar_url": obj.get("avatar_url"), - "two_factor_authentication": obj.get("two_factor_authentication"), - "last_login": obj.get("last_login"), - "last_login_ip": obj.get("last_login_ip"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "newsletter_subscribed": obj.get("newsletter_subscribed"), - "github_id": obj.get("github_id"), - "github_user": obj.get("github_user"), - "flags": obj.get("flags"), - "name": obj.get("name"), - "email_validated": obj.get("email_validated"), - "trialed": obj.get("trialed"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email"), + "avatar_url": obj.get("avatar_url"), + "two_factor_authentication": obj.get("two_factor_authentication"), + "last_login": obj.get("last_login"), + "last_login_ip": obj.get("last_login_ip"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "newsletter_subscribed": obj.get("newsletter_subscribed"), + "github_id": obj.get("github_id"), + "github_user": obj.get("github_user"), + "flags": obj.get("flags"), + "name": obj.get("name"), + "email_validated": obj.get("email_validated"), + "trialed": obj.get("trialed") + }) return _obj + + diff --git a/koyeb/api/models/user_flags.py b/koyeb/api/models/user_flags.py new file mode 100644 index 00000000..4a31b7c9 --- /dev/null +++ b/koyeb/api/models/user_flags.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class UserFlags(str, Enum): + """ + UserFlags + """ + + """ + allowed enum values + """ + ADMIN = 'ADMIN' + TEST = 'TEST' + RESTRICTED = 'RESTRICTED' + ACTIVE = 'ACTIVE' + BETA = 'BETA' + MAX_ORGANIZATIONS_25 = 'MAX_ORGANIZATIONS_25' + MAX_ORGANIZATIONS_100 = 'MAX_ORGANIZATIONS_100' + MAX_ORGANIZATIONS_1000 = 'MAX_ORGANIZATIONS_1000' + MAX_ORGANIZATIONS_10000 = 'MAX_ORGANIZATIONS_10000' + MAX_ORGANIZATIONS_100000 = 'MAX_ORGANIZATIONS_100000' + MAX_ORGANIZATIONS_1000000 = 'MAX_ORGANIZATIONS_1000000' + PARTNER_CSP = 'PARTNER_CSP' + IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX = 'IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of UserFlags from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/koyeb/models/user_reply.py b/koyeb/api/models/user_reply.py similarity index 78% rename from koyeb/models/user_reply.py rename to koyeb/api/models/user_reply.py index a0e563c1..e297b953 100644 --- a/koyeb/models/user_reply.py +++ b/koyeb/api/models/user_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,16 +19,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.user import User +from koyeb.api.models.user import User from typing import Optional, Set from typing_extensions import Self - class UserReply(BaseModel): """ UserReply - """ # noqa: E501 - + """ # noqa: E501 user: Optional[User] = None __properties: ClassVar[List[str]] = ["user"] @@ -38,6 +36,7 @@ class UserReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of user if self.user: - _dict["user"] = self.user.to_dict() + _dict['user'] = self.user.to_dict() return _dict @classmethod @@ -83,11 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "user": ( - User.from_dict(obj["user"]) if obj.get("user") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "user": User.from_dict(obj["user"]) if obj.get("user") is not None else None + }) return _obj + + diff --git a/koyeb/models/user_role_role.py b/koyeb/api/models/user_role_role.py similarity index 55% rename from koyeb/models/user_role_role.py rename to koyeb/api/models/user_role_role.py index 966994e7..f964e609 100644 --- a/koyeb/models/user_role_role.py +++ b/koyeb/api/models/user_role_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ class UserRoleRole(str, Enum): """ allowed enum values """ - INVALID = "INVALID" - OWNER = "OWNER" + INVALID = 'INVALID' + OWNER = 'OWNER' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of UserRoleRole from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/models/user_settings.py b/koyeb/api/models/user_settings.py similarity index 73% rename from koyeb/models/user_settings.py rename to koyeb/api/models/user_settings.py index cc7463b9..7bb700a2 100644 --- a/koyeb/models/user_settings.py +++ b/koyeb/api/models/user_settings.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,20 +22,14 @@ from typing import Optional, Set from typing_extensions import Self - class UserSettings(BaseModel): """ UserSettings - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = None user_id: Optional[StrictStr] = None failed_deployment_email_notification: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "id", - "user_id", - "failed_deployment_email_notification", - ] + __properties: ClassVar[List[str]] = ["id", "user_id", "failed_deployment_email_notification"] model_config = ConfigDict( populate_by_name=True, @@ -43,6 +37,7 @@ class UserSettings(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,13 +81,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "user_id": obj.get("user_id"), - "failed_deployment_email_notification": obj.get( - "failed_deployment_email_notification" - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "user_id": obj.get("user_id"), + "failed_deployment_email_notification": obj.get("failed_deployment_email_notification") + }) return _obj + + diff --git a/koyeb/models/verify_docker_image_reply.py b/koyeb/api/models/verify_docker_image_reply.py similarity index 70% rename from koyeb/models/verify_docker_image_reply.py rename to koyeb/api/models/verify_docker_image_reply.py index d29fca20..393f02b8 100644 --- a/koyeb/models/verify_docker_image_reply.py +++ b/koyeb/api/models/verify_docker_image_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,23 +19,17 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.verify_docker_image_reply_err_code import ( - VerifyDockerImageReplyErrCode, -) +from koyeb.api.models.verify_docker_image_reply_err_code import VerifyDockerImageReplyErrCode from typing import Optional, Set from typing_extensions import Self - class VerifyDockerImageReply(BaseModel): """ VerifyDockerImageReply - """ # noqa: E501 - + """ # noqa: E501 success: Optional[StrictBool] = None reason: Optional[StrictStr] = None - code: Optional[VerifyDockerImageReplyErrCode] = ( - VerifyDockerImageReplyErrCode.UNKNOWN - ) + code: Optional[VerifyDockerImageReplyErrCode] = VerifyDockerImageReplyErrCode.UNKNOWN __properties: ClassVar[List[str]] = ["success", "reason", "code"] model_config = ConfigDict( @@ -44,6 +38,7 @@ class VerifyDockerImageReply(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -86,15 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "success": obj.get("success"), - "reason": obj.get("reason"), - "code": ( - obj.get("code") - if obj.get("code") is not None - else VerifyDockerImageReplyErrCode.UNKNOWN - ), - } - ) + _obj = cls.model_validate({ + "success": obj.get("success"), + "reason": obj.get("reason"), + "code": obj.get("code") if obj.get("code") is not None else VerifyDockerImageReplyErrCode.UNKNOWN + }) return _obj + + diff --git a/koyeb/models/verify_docker_image_reply_err_code.py b/koyeb/api/models/verify_docker_image_reply_err_code.py similarity index 62% rename from koyeb/models/verify_docker_image_reply_err_code.py rename to koyeb/api/models/verify_docker_image_reply_err_code.py index 9dedc7d2..fb4d4ae6 100644 --- a/koyeb/models/verify_docker_image_reply_err_code.py +++ b/koyeb/api/models/verify_docker_image_reply_err_code.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,21 +26,23 @@ class VerifyDockerImageReplyErrCode(str, Enum): """ allowed enum values """ - UNKNOWN = "UNKNOWN" - AUTH_ACCESS_DENIED = "AUTH_ACCESS_DENIED" - ANON_ACCESS_DENIED = "ANON_ACCESS_DENIED" - AUTH_NOT_FOUND = "AUTH_NOT_FOUND" - ANON_NOT_FOUND = "ANON_NOT_FOUND" - REGISTRY_ERROR = "REGISTRY_ERROR" - TIMEOUT = "TIMEOUT" - DNS = "DNS" - MALFORMED = "MALFORMED" - INVALID_OS = "INVALID_OS" - INVALID_ARCH = "INVALID_ARCH" - INVALID_SCHEME = "INVALID_SCHEME" - GENERIC = "GENERIC" + UNKNOWN = 'UNKNOWN' + AUTH_ACCESS_DENIED = 'AUTH_ACCESS_DENIED' + ANON_ACCESS_DENIED = 'ANON_ACCESS_DENIED' + AUTH_NOT_FOUND = 'AUTH_NOT_FOUND' + ANON_NOT_FOUND = 'ANON_NOT_FOUND' + REGISTRY_ERROR = 'REGISTRY_ERROR' + TIMEOUT = 'TIMEOUT' + DNS = 'DNS' + MALFORMED = 'MALFORMED' + INVALID_OS = 'INVALID_OS' + INVALID_ARCH = 'INVALID_ARCH' + INVALID_SCHEME = 'INVALID_SCHEME' + GENERIC = 'GENERIC' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of VerifyDockerImageReplyErrCode from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/koyeb/rest.py b/koyeb/api/rest.py similarity index 78% rename from koyeb/rest.py rename to koyeb/api/rest.py index a7fc7061..fe4ae0da 100644 --- a/koyeb/rest.py +++ b/koyeb/api/rest.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,7 +19,7 @@ import urllib3 -from koyeb.exceptions import ApiException, ApiValueError +from koyeb.api.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse @@ -79,19 +79,22 @@ def __init__(self, configuration) -> None: "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: - pool_args["assert_hostname"] = configuration.assert_hostname + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) if configuration.retries is not None: - pool_args["retries"] = configuration.retries + pool_args['retries'] = configuration.retries if configuration.tls_server_name: - pool_args["server_hostname"] = configuration.tls_server_name + pool_args['server_hostname'] = configuration.tls_server_name + if configuration.socket_options is not None: - pool_args["socket_options"] = configuration.socket_options + pool_args['socket_options'] = configuration.socket_options if configuration.connection_pool_maxsize is not None: - pool_args["maxsize"] = configuration.connection_pool_maxsize + pool_args['maxsize'] = configuration.connection_pool_maxsize # https pool manager self.pool_manager: urllib3.PoolManager @@ -99,7 +102,6 @@ def __init__(self, configuration) -> None: if configuration.proxy: if is_socks_proxy_url(configuration.proxy): from urllib3.contrib.socks import SOCKSProxyManager - pool_args["proxy_url"] = configuration.proxy pool_args["headers"] = configuration.proxy_headers self.pool_manager = SOCKSProxyManager(**pool_args) @@ -117,7 +119,7 @@ def request( headers=None, body=None, post_params=None, - _request_timeout=None, + _request_timeout=None ): """Perform requests. @@ -134,7 +136,15 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] if post_params and body: raise ApiValueError( @@ -148,18 +158,25 @@ def request( if _request_timeout: if isinstance(_request_timeout, (int, float)): timeout = urllib3.Timeout(total=_request_timeout) - elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1] + connect=_request_timeout[0], + read=_request_timeout[1] ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: # no content type provided or payload is json - content_type = headers.get("Content-Type") - if not content_type or re.search("json", content_type, re.IGNORECASE): + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): request_body = None if body is not None: request_body = json.dumps(body) @@ -169,9 +186,9 @@ def request( body=request_body, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif content_type == "application/x-www-form-urlencoded": + elif content_type == 'application/x-www-form-urlencoded': r = self.pool_manager.request( method, url, @@ -179,18 +196,15 @@ def request( encode_multipart=False, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif content_type == "multipart/form-data": + elif content_type == 'multipart/form-data': # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers["Content-Type"] + del headers['Content-Type'] # Ensures that dict objects are serialized - post_params = [ - (a, json.dumps(b)) if isinstance(b, dict) else (a, b) - for a, b in post_params - ] + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] r = self.pool_manager.request( method, url, @@ -198,7 +212,7 @@ def request( encode_multipart=True, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) # Pass a `string` parameter directly in the body to support # other content types than JSON when `body` argument is @@ -210,11 +224,9 @@ def request( body=body, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif headers["Content-Type"].startswith("text/") and isinstance( - body, bool - ): + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, @@ -222,8 +234,7 @@ def request( body=request_body, preload_content=False, timeout=timeout, - headers=headers, - ) + headers=headers) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -238,7 +249,7 @@ def request( fields={}, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) except urllib3.exceptions.SSLError as e: msg = "\n".join([type(e).__name__, str(e)]) diff --git a/koyeb/test/__init__.py b/koyeb/api/test/__init__.py similarity index 100% rename from koyeb/test/__init__.py rename to koyeb/api/test/__init__.py diff --git a/koyeb/test/test_accept_organization_invitation_reply.py b/koyeb/api/test/test_accept_organization_invitation_reply.py similarity index 67% rename from koyeb/test/test_accept_organization_invitation_reply.py rename to koyeb/api/test/test_accept_organization_invitation_reply.py index 0486f5c9..efdfd6b4 100644 --- a/koyeb/test/test_accept_organization_invitation_reply.py +++ b/koyeb/api/test/test_accept_organization_invitation_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.accept_organization_invitation_reply import ( - AcceptOrganizationInvitationReply, -) - +from koyeb.api.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply class TestAcceptOrganizationInvitationReply(unittest.TestCase): """AcceptOrganizationInvitationReply unit test stubs""" @@ -30,27 +27,27 @@ def tearDown(self): def make_instance(self, include_optional) -> AcceptOrganizationInvitationReply: """Test AcceptOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AcceptOrganizationInvitationReply` """ model = AcceptOrganizationInvitationReply() if include_optional: return AcceptOrganizationInvitationReply( - invitation = koyeb.models.organization_invitation.OrganizationInvitation( + invitation = koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -58,7 +55,7 @@ def make_instance(self, include_optional) -> AcceptOrganizationInvitationReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -76,6 +73,5 @@ def testAcceptOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_action.py b/koyeb/api/test/test_action.py new file mode 100644 index 00000000..ad285006 --- /dev/null +++ b/koyeb/api/test/test_action.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.action import Action + +class TestAction(unittest.TestCase): + """Action unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAction(self): + """Test Action""" + # inst = Action() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_activity.py b/koyeb/api/test/test_activity.py similarity index 60% rename from koyeb/test/test_activity.py rename to koyeb/api/test/test_activity.py index 8924d95c..152bf7c6 100644 --- a/koyeb/test/test_activity.py +++ b/koyeb/api/test/test_activity.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.activity import Activity - +from koyeb.api.models.activity import Activity class TestActivity(unittest.TestCase): """Activity unit test stubs""" @@ -28,26 +27,26 @@ def tearDown(self): def make_instance(self, include_optional) -> Activity: """Test Activity - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Activity` """ model = Activity() if include_optional: return Activity( id = '', - actor = koyeb.models.object.Object( + actor = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), - object = koyeb.models.object.Object( + object = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), verb = '', metadata = None, @@ -63,6 +62,5 @@ def testActivity(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_activity_api.py b/koyeb/api/test/test_activity_api.py similarity index 58% rename from koyeb/test/test_activity_api.py rename to koyeb/api/test/test_activity_api.py index 899be8de..3e12ff8d 100644 --- a/koyeb/test/test_activity_api.py +++ b/koyeb/api/test/test_activity_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.activity_api import ActivityApi +from koyeb.api.api.activity_api import ActivityApi class TestActivityApi(unittest.TestCase): @@ -27,7 +27,9 @@ def tearDown(self) -> None: pass def test_get_account_activities(self) -> None: - """Test case for get_account_activities""" + """Test case for get_account_activities + + """ pass def test_list_activities(self) -> None: @@ -45,5 +47,5 @@ def test_list_notifications(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_activity_list.py b/koyeb/api/test/test_activity_list.py similarity index 60% rename from koyeb/test/test_activity_list.py rename to koyeb/api/test/test_activity_list.py index 25ce5a9b..803f103b 100644 --- a/koyeb/test/test_activity_list.py +++ b/koyeb/api/test/test_activity_list.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.activity_list import ActivityList - +from koyeb.api.models.activity_list import ActivityList class TestActivityList(unittest.TestCase): """ActivityList unit test stubs""" @@ -28,31 +27,31 @@ def tearDown(self): def make_instance(self, include_optional) -> ActivityList: """Test ActivityList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ActivityList` """ model = ActivityList() if include_optional: return ActivityList( activities = [ - koyeb.models.activity.Activity( + koyeb.api.models.activity.Activity( id = '', - actor = koyeb.models.object.Object( + actor = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), - object = koyeb.models.object.Object( + object = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), verb = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], limit = 56, @@ -69,6 +68,5 @@ def testActivityList(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_app.py b/koyeb/api/test/test_app.py similarity index 76% rename from koyeb/test/test_app.py rename to koyeb/api/test/test_app.py index da8fd69a..9d053289 100644 --- a/koyeb/test/test_app.py +++ b/koyeb/api/test/test_app.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.app import App - +from koyeb.api.models.app import App class TestApp(unittest.TestCase): """App unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> App: """Test App - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `App` """ model = App() @@ -52,7 +51,7 @@ def make_instance(self, include_optional) -> App: ], version = '', domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -68,8 +67,8 @@ def make_instance(self, include_optional) -> App: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ] ) @@ -83,6 +82,5 @@ def testApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_app_event.py b/koyeb/api/test/test_app_event.py similarity index 65% rename from koyeb/test/test_app_event.py rename to koyeb/api/test/test_app_event.py index 600604cd..4e9aba52 100644 --- a/koyeb/test/test_app_event.py +++ b/koyeb/api/test/test_app_event.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.app_event import AppEvent - +from koyeb.api.models.app_event import AppEvent class TestAppEvent(unittest.TestCase): """AppEvent unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppEvent: """Test AppEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AppEvent` """ model = AppEvent() @@ -54,6 +53,5 @@ def testAppEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_app_list_item.py b/koyeb/api/test/test_app_list_item.py similarity index 72% rename from koyeb/test/test_app_list_item.py rename to koyeb/api/test/test_app_list_item.py index 0e05d6b2..29216f93 100644 --- a/koyeb/test/test_app_list_item.py +++ b/koyeb/api/test/test_app_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.app_list_item import AppListItem - +from koyeb.api.models.app_list_item import AppListItem class TestAppListItem(unittest.TestCase): """AppListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppListItem: """Test AppListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AppListItem` """ model = AppListItem() @@ -42,7 +41,7 @@ def make_instance(self, include_optional) -> AppListItem: updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -58,8 +57,8 @@ def make_instance(self, include_optional) -> AppListItem: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], status = 'STARTING', @@ -77,6 +76,5 @@ def testAppListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_app_status.py b/koyeb/api/test/test_app_status.py new file mode 100644 index 00000000..cf4dcee9 --- /dev/null +++ b/koyeb/api/test/test_app_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.app_status import AppStatus + +class TestAppStatus(unittest.TestCase): + """AppStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppStatus(self): + """Test AppStatus""" + # inst = AppStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_app_usage.py b/koyeb/api/test/test_app_usage.py similarity index 62% rename from koyeb/test/test_app_usage.py rename to koyeb/api/test/test_app_usage.py index 8039e01f..c6823f8b 100644 --- a/koyeb/test/test_app_usage.py +++ b/koyeb/api/test/test_app_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.app_usage import AppUsage - +from koyeb.api.models.app_usage import AppUsage class TestAppUsage(unittest.TestCase): """AppUsage unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppUsage: """Test AppUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AppUsage` """ model = AppUsage() @@ -39,19 +38,19 @@ def make_instance(self, include_optional) -> AppUsage: app_id = '', app_name = '', services = [ - koyeb.models.service_usage.ServiceUsage( + koyeb.api.models.service_usage.ServiceUsage( service_id = '', service_name = '', regions = { - 'key' : koyeb.models.region_usage.RegionUsage( + 'key' : koyeb.api.models.region_usage.RegionUsage( instances = { - 'key' : koyeb.models.instance_usage.InstanceUsage( + 'key' : koyeb.api.models.instance_usage.InstanceUsage( duration_seconds = 56, ) }, ) }, ) ], databases = [ - koyeb.models.database_usage.DatabaseUsage( + koyeb.api.models.database_usage.DatabaseUsage( service_id = '', service_name = '', compute_time_seconds = 56, @@ -68,6 +67,5 @@ def testAppUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_apps_api.py b/koyeb/api/test/test_apps_api.py similarity index 78% rename from koyeb/test/test_apps_api.py rename to koyeb/api/test/test_apps_api.py index 5ca92bbc..65cb8fad 100644 --- a/koyeb/test/test_apps_api.py +++ b/koyeb/api/test/test_apps_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.apps_api import AppsApi +from koyeb.api.api.apps_api import AppsApi class TestAppsApi(unittest.TestCase): @@ -90,5 +90,5 @@ def test_update_app2(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_apps_summary.py b/koyeb/api/test/test_apps_summary.py similarity index 61% rename from koyeb/test/test_apps_summary.py rename to koyeb/api/test/test_apps_summary.py index 25fb6078..545c343b 100644 --- a/koyeb/test/test_apps_summary.py +++ b/koyeb/api/test/test_apps_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.apps_summary import AppsSummary - +from koyeb.api.models.apps_summary import AppsSummary class TestAppsSummary(unittest.TestCase): """AppsSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppsSummary: """Test AppsSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AppsSummary` """ model = AppsSummary() @@ -51,6 +50,5 @@ def testAppsSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_archive.py b/koyeb/api/test/test_archive.py similarity index 66% rename from koyeb/test/test_archive.py rename to koyeb/api/test/test_archive.py index 3b8ba38a..dbe65ef6 100644 --- a/koyeb/test/test_archive.py +++ b/koyeb/api/test/test_archive.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.archive import Archive - +from koyeb.api.models.archive import Archive class TestArchive(unittest.TestCase): """Archive unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Archive: """Test Archive - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Archive` """ model = Archive() @@ -53,6 +52,5 @@ def testArchive(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_archive_deployment_metadata.py b/koyeb/api/test/test_archive_deployment_metadata.py similarity index 62% rename from koyeb/test/test_archive_deployment_metadata.py rename to koyeb/api/test/test_archive_deployment_metadata.py index e09d3152..fd1f1890 100644 --- a/koyeb/test/test_archive_deployment_metadata.py +++ b/koyeb/api/test/test_archive_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.archive_deployment_metadata import ArchiveDeploymentMetadata - +from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata class TestArchiveDeploymentMetadata(unittest.TestCase): """ArchiveDeploymentMetadata unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ArchiveDeploymentMetadata: """Test ArchiveDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ArchiveDeploymentMetadata` """ model = ArchiveDeploymentMetadata() @@ -48,6 +47,5 @@ def testArchiveDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_archive_source.py b/koyeb/api/test/test_archive_source.py similarity index 64% rename from koyeb/test/test_archive_source.py rename to koyeb/api/test/test_archive_source.py index bb2962c1..2abaa112 100644 --- a/koyeb/test/test_archive_source.py +++ b/koyeb/api/test/test_archive_source.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.archive_source import ArchiveSource - +from koyeb.api.models.archive_source import ArchiveSource class TestArchiveSource(unittest.TestCase): """ArchiveSource unit test stubs""" @@ -28,20 +27,20 @@ def tearDown(self): def make_instance(self, include_optional) -> ArchiveSource: """Test ArchiveSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ArchiveSource` """ model = ArchiveSource() if include_optional: return ArchiveSource( id = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), - docker = koyeb.models.docker_builder.DockerBuilder( + docker = koyeb.api.models.docker_builder.DockerBuilder( dockerfile = '', entrypoint = [ '' @@ -63,6 +62,5 @@ def testArchiveSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_archives_api.py b/koyeb/api/test/test_archives_api.py similarity index 51% rename from koyeb/test/test_archives_api.py rename to koyeb/api/test/test_archives_api.py index 8a10d955..c21c2c0c 100644 --- a/koyeb/test/test_archives_api.py +++ b/koyeb/api/test/test_archives_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.archives_api import ArchivesApi +from koyeb.api.api.archives_api import ArchivesApi class TestArchivesApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_create_archive(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_auto_release.py b/koyeb/api/test/test_auto_release.py similarity index 57% rename from koyeb/test/test_auto_release.py rename to koyeb/api/test/test_auto_release.py index 2f940660..f4ae6a38 100644 --- a/koyeb/test/test_auto_release.py +++ b/koyeb/api/test/test_auto_release.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.auto_release import AutoRelease - +from koyeb.api.models.auto_release import AutoRelease class TestAutoRelease(unittest.TestCase): """AutoRelease unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> AutoRelease: """Test AutoRelease - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AutoRelease` """ model = AutoRelease() if include_optional: return AutoRelease( groups = [ - koyeb.models.configuration_extracted_from_the_latest_deployment_in_this_deployment_group.Configuration extracted from the latest deployment in this deployment_group( + koyeb.api.models.configuration_extracted_from_the_latest_deployment_in_this_deployment_group.Configuration extracted from the latest deployment in this deployment_group( name = '', repository = '', git_ref = '', @@ -54,6 +53,5 @@ def testAutoRelease(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_auto_release_group.py b/koyeb/api/test/test_auto_release_group.py similarity index 62% rename from koyeb/test/test_auto_release_group.py rename to koyeb/api/test/test_auto_release_group.py index b36fc6bf..c3aa40b2 100644 --- a/koyeb/test/test_auto_release_group.py +++ b/koyeb/api/test/test_auto_release_group.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.auto_release_group import AutoReleaseGroup - +from koyeb.api.models.auto_release_group import AutoReleaseGroup class TestAutoReleaseGroup(unittest.TestCase): """AutoReleaseGroup unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AutoReleaseGroup: """Test AutoReleaseGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AutoReleaseGroup` """ model = AutoReleaseGroup() @@ -51,6 +50,5 @@ def testAutoReleaseGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_autocomplete_reply.py b/koyeb/api/test/test_autocomplete_reply.py similarity index 65% rename from koyeb/test/test_autocomplete_reply.py rename to koyeb/api/test/test_autocomplete_reply.py index f2ba12a2..ffb682c7 100644 --- a/koyeb/test/test_autocomplete_reply.py +++ b/koyeb/api/test/test_autocomplete_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.autocomplete_reply import AutocompleteReply - +from koyeb.api.models.autocomplete_reply import AutocompleteReply class TestAutocompleteReply(unittest.TestCase): """AutocompleteReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AutocompleteReply: """Test AutocompleteReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AutocompleteReply` """ model = AutocompleteReply() @@ -56,6 +55,5 @@ def testAutocompleteReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_autocomplete_request.py b/koyeb/api/test/test_autocomplete_request.py similarity index 61% rename from koyeb/test/test_autocomplete_request.py rename to koyeb/api/test/test_autocomplete_request.py index 15d3a081..111233fa 100644 --- a/koyeb/test/test_autocomplete_request.py +++ b/koyeb/api/test/test_autocomplete_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.autocomplete_request import AutocompleteRequest - +from koyeb.api.models.autocomplete_request import AutocompleteRequest class TestAutocompleteRequest(unittest.TestCase): """AutocompleteRequest unit test stubs""" @@ -28,35 +27,35 @@ def tearDown(self): def make_instance(self, include_optional) -> AutocompleteRequest: """Test AutocompleteRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AutocompleteRequest` """ model = AutocompleteRequest() if include_optional: return AutocompleteRequest( - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -68,63 +67,63 @@ def make_instance(self, include_optional) -> AutocompleteRequest: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -135,7 +134,7 @@ def make_instance(self, include_optional) -> AutocompleteRequest: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -144,26 +143,26 @@ def make_instance(self, include_optional) -> AutocompleteRequest: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ) ) else: @@ -176,6 +175,5 @@ def testAutocompleteRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_availability_level.py b/koyeb/api/test/test_availability_level.py new file mode 100644 index 00000000..5ba9f7f9 --- /dev/null +++ b/koyeb/api/test/test_availability_level.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.availability_level import AvailabilityLevel + +class TestAvailabilityLevel(unittest.TestCase): + """AvailabilityLevel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAvailabilityLevel(self): + """Test AvailabilityLevel""" + # inst = AvailabilityLevel() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_azure_container_registry_configuration.py b/koyeb/api/test/test_azure_container_registry_configuration.py similarity index 64% rename from koyeb/test/test_azure_container_registry_configuration.py rename to koyeb/api/test/test_azure_container_registry_configuration.py index e2712003..4c2bb050 100644 --- a/koyeb/test/test_azure_container_registry_configuration.py +++ b/koyeb/api/test/test_azure_container_registry_configuration.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.azure_container_registry_configuration import ( - AzureContainerRegistryConfiguration, -) - +from koyeb.api.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration class TestAzureContainerRegistryConfiguration(unittest.TestCase): """AzureContainerRegistryConfiguration unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AzureContainerRegistryConfiguration: """Test AzureContainerRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `AzureContainerRegistryConfiguration` """ model = AzureContainerRegistryConfiguration() @@ -52,6 +49,5 @@ def testAzureContainerRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_billing_api.py b/koyeb/api/test/test_billing_api.py similarity index 59% rename from koyeb/test/test_billing_api.py rename to koyeb/api/test/test_billing_api.py index 76c2b7dd..6a12982d 100644 --- a/koyeb/test/test_billing_api.py +++ b/koyeb/api/test/test_billing_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.billing_api import BillingApi +from koyeb.api.api.billing_api import BillingApi class TestBillingApi(unittest.TestCase): @@ -34,7 +34,9 @@ def test_has_unpaid_invoices(self) -> None: pass def test_manage(self) -> None: - """Test case for manage""" + """Test case for manage + + """ pass def test_next_invoice(self) -> None: @@ -45,5 +47,5 @@ def test_next_invoice(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_budget.py b/koyeb/api/test/test_budget.py similarity index 60% rename from koyeb/test/test_budget.py rename to koyeb/api/test/test_budget.py index 7148b94d..ff73c3a5 100644 --- a/koyeb/test/test_budget.py +++ b/koyeb/api/test/test_budget.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.budget import Budget - +from koyeb.api.models.budget import Budget class TestBudget(unittest.TestCase): """Budget unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Budget: """Test Budget - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Budget` """ model = Budget() @@ -51,6 +50,5 @@ def testBudget(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_buildpack_builder.py b/koyeb/api/test/test_buildpack_builder.py similarity index 62% rename from koyeb/test/test_buildpack_builder.py rename to koyeb/api/test/test_buildpack_builder.py index 9907d68d..b8dfbad4 100644 --- a/koyeb/test/test_buildpack_builder.py +++ b/koyeb/api/test/test_buildpack_builder.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.buildpack_builder import BuildpackBuilder - +from koyeb.api.models.buildpack_builder import BuildpackBuilder class TestBuildpackBuilder(unittest.TestCase): """BuildpackBuilder unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> BuildpackBuilder: """Test BuildpackBuilder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `BuildpackBuilder` """ model = BuildpackBuilder() @@ -50,6 +49,5 @@ def testBuildpackBuilder(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_canny_auth_reply.py b/koyeb/api/test/test_canny_auth_reply.py similarity index 59% rename from koyeb/test/test_canny_auth_reply.py rename to koyeb/api/test/test_canny_auth_reply.py index 7cb6825f..62cc9b6c 100644 --- a/koyeb/test/test_canny_auth_reply.py +++ b/koyeb/api/test/test_canny_auth_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.canny_auth_reply import CannyAuthReply - +from koyeb.api.models.canny_auth_reply import CannyAuthReply class TestCannyAuthReply(unittest.TestCase): """CannyAuthReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CannyAuthReply: """Test CannyAuthReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CannyAuthReply` """ model = CannyAuthReply() @@ -48,6 +47,5 @@ def testCannyAuthReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_catalog_datacenters_api.py b/koyeb/api/test/test_catalog_datacenters_api.py similarity index 52% rename from koyeb/test/test_catalog_datacenters_api.py rename to koyeb/api/test/test_catalog_datacenters_api.py index 4fb683aa..169bdc70 100644 --- a/koyeb/test/test_catalog_datacenters_api.py +++ b/koyeb/api/test/test_catalog_datacenters_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.catalog_datacenters_api import CatalogDatacentersApi +from koyeb.api.api.catalog_datacenters_api import CatalogDatacentersApi class TestCatalogDatacentersApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_list_datacenters(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_catalog_gpu_details.py b/koyeb/api/test/test_catalog_gpu_details.py similarity index 62% rename from koyeb/test/test_catalog_gpu_details.py rename to koyeb/api/test/test_catalog_gpu_details.py index d0ccc31f..f8db8c3b 100644 --- a/koyeb/test/test_catalog_gpu_details.py +++ b/koyeb/api/test/test_catalog_gpu_details.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.catalog_gpu_details import CatalogGPUDetails - +from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails class TestCatalogGPUDetails(unittest.TestCase): """CatalogGPUDetails unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogGPUDetails: """Test CatalogGPUDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CatalogGPUDetails` """ model = CatalogGPUDetails() @@ -51,6 +50,5 @@ def testCatalogGPUDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_catalog_instance.py b/koyeb/api/test/test_catalog_instance.py similarity index 72% rename from koyeb/test/test_catalog_instance.py rename to koyeb/api/test/test_catalog_instance.py index c6e2add5..bb9d4189 100644 --- a/koyeb/test/test_catalog_instance.py +++ b/koyeb/api/test/test_catalog_instance.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.catalog_instance import CatalogInstance - +from koyeb.api.models.catalog_instance import CatalogInstance class TestCatalogInstance(unittest.TestCase): """CatalogInstance unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogInstance: """Test CatalogInstance - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CatalogInstance` """ model = CatalogInstance() @@ -57,7 +56,7 @@ def make_instance(self, include_optional) -> CatalogInstance: '' ], type = '', - gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails( + gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails( count = 56, brand = '', memory = '', @@ -78,6 +77,5 @@ def testCatalogInstance(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_catalog_instance_list_item.py b/koyeb/api/test/test_catalog_instance_list_item.py similarity index 73% rename from koyeb/test/test_catalog_instance_list_item.py rename to koyeb/api/test/test_catalog_instance_list_item.py index ec04ac74..f124d4e3 100644 --- a/koyeb/test/test_catalog_instance_list_item.py +++ b/koyeb/api/test/test_catalog_instance_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.catalog_instance_list_item import CatalogInstanceListItem - +from koyeb.api.models.catalog_instance_list_item import CatalogInstanceListItem class TestCatalogInstanceListItem(unittest.TestCase): """CatalogInstanceListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogInstanceListItem: """Test CatalogInstanceListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CatalogInstanceListItem` """ model = CatalogInstanceListItem() @@ -57,7 +56,7 @@ def make_instance(self, include_optional) -> CatalogInstanceListItem: '' ], type = '', - gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails( + gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails( count = 56, brand = '', memory = '', @@ -78,6 +77,5 @@ def testCatalogInstanceListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_catalog_instance_usage_api.py b/koyeb/api/test/test_catalog_instance_usage_api.py new file mode 100644 index 00000000..aa0e2d29 --- /dev/null +++ b/koyeb/api/test/test_catalog_instance_usage_api.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.api.catalog_instance_usage_api import CatalogInstanceUsageApi + + +class TestCatalogInstanceUsageApi(unittest.TestCase): + """CatalogInstanceUsageApi unit test stubs""" + + def setUp(self) -> None: + self.api = CatalogInstanceUsageApi() + + def tearDown(self) -> None: + pass + + def test_list_usage(self) -> None: + """Test case for list_usage + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_catalog_instances_api.py b/koyeb/api/test/test_catalog_instances_api.py similarity index 59% rename from koyeb/test/test_catalog_instances_api.py rename to koyeb/api/test/test_catalog_instances_api.py index fb7624df..2a015896 100644 --- a/koyeb/test/test_catalog_instances_api.py +++ b/koyeb/api/test/test_catalog_instances_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.catalog_instances_api import CatalogInstancesApi +from koyeb.api.api.catalog_instances_api import CatalogInstancesApi class TestCatalogInstancesApi(unittest.TestCase): @@ -41,5 +41,5 @@ def test_list_catalog_instances(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_catalog_regions_api.py b/koyeb/api/test/test_catalog_regions_api.py similarity index 57% rename from koyeb/test/test_catalog_regions_api.py rename to koyeb/api/test/test_catalog_regions_api.py index b00d2bdb..a60fafa3 100644 --- a/koyeb/test/test_catalog_regions_api.py +++ b/koyeb/api/test/test_catalog_regions_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.catalog_regions_api import CatalogRegionsApi +from koyeb.api.api.catalog_regions_api import CatalogRegionsApi class TestCatalogRegionsApi(unittest.TestCase): @@ -41,5 +41,5 @@ def test_list_regions(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_catalog_usage.py b/koyeb/api/test/test_catalog_usage.py similarity index 58% rename from koyeb/test/test_catalog_usage.py rename to koyeb/api/test/test_catalog_usage.py index 48b0e555..9fd487a4 100644 --- a/koyeb/test/test_catalog_usage.py +++ b/koyeb/api/test/test_catalog_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.catalog_usage import CatalogUsage - +from koyeb.api.models.catalog_usage import CatalogUsage class TestCatalogUsage(unittest.TestCase): """CatalogUsage unit test stubs""" @@ -28,18 +27,18 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogUsage: """Test CatalogUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CatalogUsage` """ model = CatalogUsage() if include_optional: return CatalogUsage( instances = { - 'key' : koyeb.models.instance_availability.InstanceAvailability( + 'key' : koyeb.api.models.instance_availability.InstanceAvailability( regions = { - 'key' : koyeb.models.region_availability.RegionAvailability( + 'key' : koyeb.api.models.region_availability.RegionAvailability( availability = 'UNKNOWN', ) }, availability = 'UNKNOWN', ) @@ -55,6 +54,5 @@ def testCatalogUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_clear_idenfy_verification_result_request.py b/koyeb/api/test/test_clear_idenfy_verification_result_request.py similarity index 64% rename from koyeb/test/test_clear_idenfy_verification_result_request.py rename to koyeb/api/test/test_clear_idenfy_verification_result_request.py index 3ff5b5f0..3c579c66 100644 --- a/koyeb/test/test_clear_idenfy_verification_result_request.py +++ b/koyeb/api/test/test_clear_idenfy_verification_result_request.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.clear_idenfy_verification_result_request import ( - ClearIdenfyVerificationResultRequest, -) - +from koyeb.api.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest class TestClearIdenfyVerificationResultRequest(unittest.TestCase): """ClearIdenfyVerificationResultRequest unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ClearIdenfyVerificationResultRequest: """Test ClearIdenfyVerificationResultRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ClearIdenfyVerificationResultRequest` """ model = ClearIdenfyVerificationResultRequest() @@ -51,6 +48,5 @@ def testClearIdenfyVerificationResultRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_compose_api.py b/koyeb/api/test/test_compose_api.py similarity index 51% rename from koyeb/test/test_compose_api.py rename to koyeb/api/test/test_compose_api.py index d9c571bd..7937480d 100644 --- a/koyeb/test/test_compose_api.py +++ b/koyeb/api/test/test_compose_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.compose_api import ComposeApi +from koyeb.api.api.compose_api import ComposeApi class TestComposeApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_compose(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_compose_reply.py b/koyeb/api/test/test_compose_reply.py similarity index 76% rename from koyeb/test/test_compose_reply.py rename to koyeb/api/test/test_compose_reply.py index 36d77c65..0b859788 100644 --- a/koyeb/test/test_compose_reply.py +++ b/koyeb/api/test/test_compose_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.compose_reply import ComposeReply - +from koyeb.api.models.compose_reply import ComposeReply class TestComposeReply(unittest.TestCase): """ComposeReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> ComposeReply: """Test ComposeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ComposeReply` """ model = ComposeReply() if include_optional: return ComposeReply( - app = koyeb.models.app.App( + app = koyeb.api.models.app.App( id = '', name = '', organization_id = '', @@ -53,7 +52,7 @@ def make_instance(self, include_optional) -> ComposeReply: ], version = '', domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -65,12 +64,12 @@ def make_instance(self, include_optional) -> ComposeReply: verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), intended_cname = '', version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], ), services = [ - koyeb.models.service.Service( + koyeb.api.models.service.Service( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -91,16 +90,16 @@ def make_instance(self, include_optional) -> ComposeReply: active_deployment_id = '', latest_deployment_id = '', last_provisioned_deployment_id = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ), ) + auto_release = koyeb.api.models.auto_release.AutoRelease(), ), ) ] ) else: @@ -113,6 +112,5 @@ def testComposeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_config_file.py b/koyeb/api/test/test_config_file.py similarity index 61% rename from koyeb/test/test_config_file.py rename to koyeb/api/test/test_config_file.py index cf1331bb..6e0f71e7 100644 --- a/koyeb/test/test_config_file.py +++ b/koyeb/api/test/test_config_file.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.config_file import ConfigFile - +from koyeb.api.models.config_file import ConfigFile class TestConfigFile(unittest.TestCase): """ConfigFile unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigFile: """Test ConfigFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ConfigFile` """ model = ConfigFile() @@ -50,6 +49,5 @@ def testConfigFile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_confirm_payment_authorization_reply.py b/koyeb/api/test/test_confirm_payment_authorization_reply.py similarity index 77% rename from koyeb/test/test_confirm_payment_authorization_reply.py rename to koyeb/api/test/test_confirm_payment_authorization_reply.py index df299c6b..291407d4 100644 --- a/koyeb/test/test_confirm_payment_authorization_reply.py +++ b/koyeb/api/test/test_confirm_payment_authorization_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.confirm_payment_authorization_reply import ( - ConfirmPaymentAuthorizationReply, -) - +from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply class TestConfirmPaymentAuthorizationReply(unittest.TestCase): """ConfirmPaymentAuthorizationReply unit test stubs""" @@ -30,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfirmPaymentAuthorizationReply: """Test ConfirmPaymentAuthorizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ConfirmPaymentAuthorizationReply` """ model = ConfirmPaymentAuthorizationReply() if include_optional: return ConfirmPaymentAuthorizationReply( - payment_method = koyeb.models.payment_method.PaymentMethod( + payment_method = koyeb.api.models.payment_method.PaymentMethod( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -73,6 +70,5 @@ def testConfirmPaymentAuthorizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_coupons_api.py b/koyeb/api/test/test_coupons_api.py similarity index 51% rename from koyeb/test/test_coupons_api.py rename to koyeb/api/test/test_coupons_api.py index 81fec805..7c31e0be 100644 --- a/koyeb/test/test_coupons_api.py +++ b/koyeb/api/test/test_coupons_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.coupons_api import CouponsApi +from koyeb.api.api.coupons_api import CouponsApi class TestCouponsApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_redeem_coupon(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_access_token_reply.py b/koyeb/api/test/test_create_access_token_reply.py similarity index 61% rename from koyeb/test/test_create_access_token_reply.py rename to koyeb/api/test/test_create_access_token_reply.py index 93a2878d..446b8b32 100644 --- a/koyeb/test/test_create_access_token_reply.py +++ b/koyeb/api/test/test_create_access_token_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_access_token_reply import CreateAccessTokenReply - +from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply class TestCreateAccessTokenReply(unittest.TestCase): """CreateAccessTokenReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAccessTokenReply: """Test CreateAccessTokenReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateAccessTokenReply` """ model = CreateAccessTokenReply() @@ -48,6 +47,5 @@ def testCreateAccessTokenReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_access_token_request.py b/koyeb/api/test/test_create_access_token_request.py similarity index 61% rename from koyeb/test/test_create_access_token_request.py rename to koyeb/api/test/test_create_access_token_request.py index 8086ae0d..29569315 100644 --- a/koyeb/test/test_create_access_token_request.py +++ b/koyeb/api/test/test_create_access_token_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_access_token_request import CreateAccessTokenRequest - +from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest class TestCreateAccessTokenRequest(unittest.TestCase): """CreateAccessTokenRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAccessTokenRequest: """Test CreateAccessTokenRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateAccessTokenRequest` """ model = CreateAccessTokenRequest() @@ -48,6 +47,5 @@ def testCreateAccessTokenRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_account_request.py b/koyeb/api/test/test_create_account_request.py similarity index 64% rename from koyeb/test/test_create_account_request.py rename to koyeb/api/test/test_create_account_request.py index fe9f9fe9..07623ad9 100644 --- a/koyeb/test/test_create_account_request.py +++ b/koyeb/api/test/test_create_account_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_account_request import CreateAccountRequest - +from koyeb.api.models.create_account_request import CreateAccountRequest class TestCreateAccountRequest(unittest.TestCase): """CreateAccountRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAccountRequest: """Test CreateAccountRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateAccountRequest` """ model = CreateAccountRequest() @@ -53,6 +52,5 @@ def testCreateAccountRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_app.py b/koyeb/api/test/test_create_app.py similarity index 58% rename from koyeb/test/test_create_app.py rename to koyeb/api/test/test_create_app.py index 0bcd2113..efb4dc74 100644 --- a/koyeb/test/test_create_app.py +++ b/koyeb/api/test/test_create_app.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_app import CreateApp - +from koyeb.api.models.create_app import CreateApp class TestCreateApp(unittest.TestCase): """CreateApp unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateApp: """Test CreateApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateApp` """ model = CreateApp() @@ -48,6 +47,5 @@ def testCreateApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_app_reply.py b/koyeb/api/test/test_create_app_reply.py similarity index 75% rename from koyeb/test/test_create_app_reply.py rename to koyeb/api/test/test_create_app_reply.py index b52aac53..9088c010 100644 --- a/koyeb/test/test_create_app_reply.py +++ b/koyeb/api/test/test_create_app_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_app_reply import CreateAppReply - +from koyeb.api.models.create_app_reply import CreateAppReply class TestCreateAppReply(unittest.TestCase): """CreateAppReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAppReply: """Test CreateAppReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateAppReply` """ model = CreateAppReply() if include_optional: return CreateAppReply( - app = koyeb.models.app.App( + app = koyeb.api.models.app.App( id = '', name = '', organization_id = '', @@ -53,7 +52,7 @@ def make_instance(self, include_optional) -> CreateAppReply: ], version = '', domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -65,8 +64,8 @@ def make_instance(self, include_optional) -> CreateAppReply: verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), intended_cname = '', version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], ) ) @@ -80,6 +79,5 @@ def testCreateAppReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_archive.py b/koyeb/api/test/test_create_archive.py similarity index 59% rename from koyeb/test/test_create_archive.py rename to koyeb/api/test/test_create_archive.py index 48c5db65..f759d6f1 100644 --- a/koyeb/test/test_create_archive.py +++ b/koyeb/api/test/test_create_archive.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_archive import CreateArchive - +from koyeb.api.models.create_archive import CreateArchive class TestCreateArchive(unittest.TestCase): """CreateArchive unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateArchive: """Test CreateArchive - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateArchive` """ model = CreateArchive() @@ -48,6 +47,5 @@ def testCreateArchive(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_archive_reply.py b/koyeb/api/test/test_create_archive_reply.py similarity index 66% rename from koyeb/test/test_create_archive_reply.py rename to koyeb/api/test/test_create_archive_reply.py index cc9a7f52..415ab0fb 100644 --- a/koyeb/test/test_create_archive_reply.py +++ b/koyeb/api/test/test_create_archive_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_archive_reply import CreateArchiveReply - +from koyeb.api.models.create_archive_reply import CreateArchiveReply class TestCreateArchiveReply(unittest.TestCase): """CreateArchiveReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateArchiveReply: """Test CreateArchiveReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateArchiveReply` """ model = CreateArchiveReply() if include_optional: return CreateArchiveReply( - archive = koyeb.models.archive.Archive( + archive = koyeb.api.models.archive.Archive( id = '', organization_id = '', upload_url = '', @@ -54,6 +53,5 @@ def testCreateArchiveReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_budget_reply.py b/koyeb/api/test/test_create_budget_reply.py similarity index 60% rename from koyeb/test/test_create_budget_reply.py rename to koyeb/api/test/test_create_budget_reply.py index be8a0b1b..e6516a92 100644 --- a/koyeb/test/test_create_budget_reply.py +++ b/koyeb/api/test/test_create_budget_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_budget_reply import CreateBudgetReply - +from koyeb.api.models.create_budget_reply import CreateBudgetReply class TestCreateBudgetReply(unittest.TestCase): """CreateBudgetReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateBudgetReply: """Test CreateBudgetReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateBudgetReply` """ model = CreateBudgetReply() if include_optional: return CreateBudgetReply( - budget = koyeb.models.budget.Budget( + budget = koyeb.api.models.budget.Budget( amount = '', thresholds = [ '' @@ -52,6 +51,5 @@ def testCreateBudgetReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_compose.py b/koyeb/api/test/test_create_compose.py similarity index 64% rename from koyeb/test/test_create_compose.py rename to koyeb/api/test/test_create_compose.py index 62cb5d0b..b7e8cc33 100644 --- a/koyeb/test/test_create_compose.py +++ b/koyeb/api/test/test_create_compose.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_compose import CreateCompose - +from koyeb.api.models.create_compose import CreateCompose class TestCreateCompose(unittest.TestCase): """CreateCompose unit test stubs""" @@ -28,40 +27,40 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateCompose: """Test CreateCompose - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateCompose` """ model = CreateCompose() if include_optional: return CreateCompose( - app = koyeb.models.create_app.CreateApp( + app = koyeb.api.models.create_app.CreateApp( name = '', ), services = [ - koyeb.models.create_service.CreateService( + koyeb.api.models.create_service.CreateService( app_id = '', - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -73,63 +72,63 @@ def make_instance(self, include_optional) -> CreateCompose: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -140,7 +139,7 @@ def make_instance(self, include_optional) -> CreateCompose: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -149,26 +148,26 @@ def make_instance(self, include_optional) -> CreateCompose: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), ) ] ) @@ -182,6 +181,5 @@ def testCreateCompose(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_credential.py b/koyeb/api/test/test_create_credential.py similarity index 63% rename from koyeb/test/test_create_credential.py rename to koyeb/api/test/test_create_credential.py index 5b9db494..3ec87117 100644 --- a/koyeb/test/test_create_credential.py +++ b/koyeb/api/test/test_create_credential.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_credential import CreateCredential - +from koyeb.api.models.create_credential import CreateCredential class TestCreateCredential(unittest.TestCase): """CreateCredential unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateCredential: """Test CreateCredential - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateCredential` """ model = CreateCredential() @@ -51,6 +50,5 @@ def testCreateCredential(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_credential_reply.py b/koyeb/api/test/test_create_credential_reply.py similarity index 69% rename from koyeb/test/test_create_credential_reply.py rename to koyeb/api/test/test_create_credential_reply.py index e7f77fb9..790c5e81 100644 --- a/koyeb/test/test_create_credential_reply.py +++ b/koyeb/api/test/test_create_credential_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_credential_reply import CreateCredentialReply - +from koyeb.api.models.create_credential_reply import CreateCredentialReply class TestCreateCredentialReply(unittest.TestCase): """CreateCredentialReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateCredentialReply: """Test CreateCredentialReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateCredentialReply` """ model = CreateCredentialReply() if include_optional: return CreateCredentialReply( - credential = koyeb.models.credential.Credential( + credential = koyeb.api.models.credential.Credential( id = '', type = 'INVALID', name = '', @@ -58,6 +57,5 @@ def testCreateCredentialReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_domain.py b/koyeb/api/test/test_create_domain.py similarity index 55% rename from koyeb/test/test_create_domain.py rename to koyeb/api/test/test_create_domain.py index 53f13c21..b9257372 100644 --- a/koyeb/test/test_create_domain.py +++ b/koyeb/api/test/test_create_domain.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_domain import CreateDomain - +from koyeb.api.models.create_domain import CreateDomain class TestCreateDomain(unittest.TestCase): """CreateDomain unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateDomain: """Test CreateDomain - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateDomain` """ model = CreateDomain() @@ -39,8 +38,8 @@ def make_instance(self, include_optional) -> CreateDomain: name = '', type = 'AUTOASSIGNED', app_id = '', - cloudflare = None, - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ) ) else: @@ -53,6 +52,5 @@ def testCreateDomain(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_domain_reply.py b/koyeb/api/test/test_create_domain_reply.py similarity index 66% rename from koyeb/test/test_create_domain_reply.py rename to koyeb/api/test/test_create_domain_reply.py index d2744096..9f8e68a3 100644 --- a/koyeb/test/test_create_domain_reply.py +++ b/koyeb/api/test/test_create_domain_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_domain_reply import CreateDomainReply - +from koyeb.api.models.create_domain_reply import CreateDomainReply class TestCreateDomainReply(unittest.TestCase): """CreateDomainReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateDomainReply: """Test CreateDomainReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateDomainReply` """ model = CreateDomainReply() if include_optional: return CreateDomainReply( - domain = koyeb.models.domain.Domain( + domain = koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -52,8 +51,8 @@ def make_instance(self, include_optional) -> CreateDomainReply: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ) else: @@ -66,6 +65,5 @@ def testCreateDomainReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_organization_invitation_reply.py b/koyeb/api/test/test_create_organization_invitation_reply.py similarity index 67% rename from koyeb/test/test_create_organization_invitation_reply.py rename to koyeb/api/test/test_create_organization_invitation_reply.py index 75e6244c..2ef72f42 100644 --- a/koyeb/test/test_create_organization_invitation_reply.py +++ b/koyeb/api/test/test_create_organization_invitation_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_organization_invitation_reply import ( - CreateOrganizationInvitationReply, -) - +from koyeb.api.models.create_organization_invitation_reply import CreateOrganizationInvitationReply class TestCreateOrganizationInvitationReply(unittest.TestCase): """CreateOrganizationInvitationReply unit test stubs""" @@ -30,27 +27,27 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationInvitationReply: """Test CreateOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateOrganizationInvitationReply` """ model = CreateOrganizationInvitationReply() if include_optional: return CreateOrganizationInvitationReply( - invitation = koyeb.models.organization_invitation.OrganizationInvitation( + invitation = koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -58,7 +55,7 @@ def make_instance(self, include_optional) -> CreateOrganizationInvitationReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -76,6 +73,5 @@ def testCreateOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_organization_invitation_request.py b/koyeb/api/test/test_create_organization_invitation_request.py similarity index 63% rename from koyeb/test/test_create_organization_invitation_request.py rename to koyeb/api/test/test_create_organization_invitation_request.py index 974db650..d2b1642d 100644 --- a/koyeb/test/test_create_organization_invitation_request.py +++ b/koyeb/api/test/test_create_organization_invitation_request.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_organization_invitation_request import ( - CreateOrganizationInvitationRequest, -) - +from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest class TestCreateOrganizationInvitationRequest(unittest.TestCase): """CreateOrganizationInvitationRequest unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationInvitationRequest: """Test CreateOrganizationInvitationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateOrganizationInvitationRequest` """ model = CreateOrganizationInvitationRequest() @@ -50,6 +47,5 @@ def testCreateOrganizationInvitationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_organization_reply.py b/koyeb/api/test/test_create_organization_reply.py similarity index 74% rename from koyeb/test/test_create_organization_reply.py rename to koyeb/api/test/test_create_organization_reply.py index 8e26db31..c171ac7c 100644 --- a/koyeb/test/test_create_organization_reply.py +++ b/koyeb/api/test/test_create_organization_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_organization_reply import CreateOrganizationReply - +from koyeb.api.models.create_organization_reply import CreateOrganizationReply class TestCreateOrganizationReply(unittest.TestCase): """CreateOrganizationReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationReply: """Test CreateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateOrganizationReply` """ model = CreateOrganizationReply() if include_optional: return CreateOrganizationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> CreateOrganizationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testCreateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_organization_request.py b/koyeb/api/test/test_create_organization_request.py similarity index 61% rename from koyeb/test/test_create_organization_request.py rename to koyeb/api/test/test_create_organization_request.py index 7e741014..2b6fe6c9 100644 --- a/koyeb/test/test_create_organization_request.py +++ b/koyeb/api/test/test_create_organization_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_organization_request import CreateOrganizationRequest - +from koyeb.api.models.create_organization_request import CreateOrganizationRequest class TestCreateOrganizationRequest(unittest.TestCase): """CreateOrganizationRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationRequest: """Test CreateOrganizationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateOrganizationRequest` """ model = CreateOrganizationRequest() @@ -48,6 +47,5 @@ def testCreateOrganizationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_payment_authorization_reply.py b/koyeb/api/test/test_create_payment_authorization_reply.py similarity index 77% rename from koyeb/test/test_create_payment_authorization_reply.py rename to koyeb/api/test/test_create_payment_authorization_reply.py index bed942c9..96620eaf 100644 --- a/koyeb/test/test_create_payment_authorization_reply.py +++ b/koyeb/api/test/test_create_payment_authorization_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_payment_authorization_reply import ( - CreatePaymentAuthorizationReply, -) - +from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply class TestCreatePaymentAuthorizationReply(unittest.TestCase): """CreatePaymentAuthorizationReply unit test stubs""" @@ -30,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreatePaymentAuthorizationReply: """Test CreatePaymentAuthorizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreatePaymentAuthorizationReply` """ model = CreatePaymentAuthorizationReply() if include_optional: return CreatePaymentAuthorizationReply( - payment_method = koyeb.models.payment_method.PaymentMethod( + payment_method = koyeb.api.models.payment_method.PaymentMethod( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -73,6 +70,5 @@ def testCreatePaymentAuthorizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_persistent_volume_reply.py b/koyeb/api/test/test_create_persistent_volume_reply.py similarity index 69% rename from koyeb/test/test_create_persistent_volume_reply.py rename to koyeb/api/test/test_create_persistent_volume_reply.py index 57470ea8..7da95a02 100644 --- a/koyeb/test/test_create_persistent_volume_reply.py +++ b/koyeb/api/test/test_create_persistent_volume_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_persistent_volume_reply import CreatePersistentVolumeReply - +from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply class TestCreatePersistentVolumeReply(unittest.TestCase): """CreatePersistentVolumeReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreatePersistentVolumeReply: """Test CreatePersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreatePersistentVolumeReply` """ model = CreatePersistentVolumeReply() if include_optional: return CreatePersistentVolumeReply( - volume = koyeb.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( + volume = koyeb.api.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( id = '', name = '', snapshot_id = '', @@ -62,6 +61,5 @@ def testCreatePersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_persistent_volume_request.py b/koyeb/api/test/test_create_persistent_volume_request.py similarity index 66% rename from koyeb/test/test_create_persistent_volume_request.py rename to koyeb/api/test/test_create_persistent_volume_request.py index e8b8d0c9..84c834ae 100644 --- a/koyeb/test/test_create_persistent_volume_request.py +++ b/koyeb/api/test/test_create_persistent_volume_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_persistent_volume_request import CreatePersistentVolumeRequest - +from koyeb.api.models.create_persistent_volume_request import CreatePersistentVolumeRequest class TestCreatePersistentVolumeRequest(unittest.TestCase): """CreatePersistentVolumeRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreatePersistentVolumeRequest: """Test CreatePersistentVolumeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreatePersistentVolumeRequest` """ model = CreatePersistentVolumeRequest() @@ -53,6 +52,5 @@ def testCreatePersistentVolumeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_secret.py b/koyeb/api/test/test_create_secret.py similarity index 51% rename from koyeb/test/test_create_secret.py rename to koyeb/api/test/test_create_secret.py index 1df81c82..5fc98045 100644 --- a/koyeb/test/test_create_secret.py +++ b/koyeb/api/test/test_create_secret.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_secret import CreateSecret - +from koyeb.api.models.create_secret import CreateSecret class TestCreateSecret(unittest.TestCase): """CreateSecret unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSecret: """Test CreateSecret - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateSecret` """ model = CreateSecret() @@ -39,26 +38,26 @@ def make_instance(self, include_optional) -> CreateSecret: name = '', type = 'SIMPLE', value = '', - docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( + docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( username = '', password = '', ), - private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration( + private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration( username = '', password = '', url = '', ), - digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( + digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( username = '', password = '', ), - github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration( + github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration( username = '', password = '', ), - gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration( + gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration( username = '', password = '', ), - gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( + gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( keyfile_content = '', url = '', ), - azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( + azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( registry_name = '', username = '', password = '', ) @@ -73,6 +72,5 @@ def testCreateSecret(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_secret_reply.py b/koyeb/api/test/test_create_secret_reply.py similarity index 55% rename from koyeb/test/test_create_secret_reply.py rename to koyeb/api/test/test_create_secret_reply.py index bf105ef9..88c021d9 100644 --- a/koyeb/test/test_create_secret_reply.py +++ b/koyeb/api/test/test_create_secret_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_secret_reply import CreateSecretReply - +from koyeb.api.models.create_secret_reply import CreateSecretReply class TestCreateSecretReply(unittest.TestCase): """CreateSecretReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSecretReply: """Test CreateSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateSecretReply` """ model = CreateSecretReply() if include_optional: return CreateSecretReply( - secret = koyeb.models.secret.Secret( + secret = koyeb.api.models.secret.Secret( id = '', name = '', organization_id = '', @@ -44,30 +43,30 @@ def make_instance(self, include_optional) -> CreateSecretReply: updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), value = '', - docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( + docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( username = '', password = '', ), - private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration( + private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration( username = '', password = '', url = '', ), - digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( + digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( username = '', password = '', ), - github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration( + github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration( username = '', password = '', ), - gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration( + gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration( username = '', password = '', ), - gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( + gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( keyfile_content = '', url = '', ), - azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( + azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( registry_name = '', username = '', password = '', ), - database_role_password = koyeb.models.database_role_password.DatabaseRolePassword( + database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword( username = '', password = '', ), ) ) @@ -81,6 +80,5 @@ def testCreateSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_service.py b/koyeb/api/test/test_create_service.py similarity index 61% rename from koyeb/test/test_create_service.py rename to koyeb/api/test/test_create_service.py index 521df07d..3595e55d 100644 --- a/koyeb/test/test_create_service.py +++ b/koyeb/api/test/test_create_service.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_service import CreateService - +from koyeb.api.models.create_service import CreateService class TestCreateService(unittest.TestCase): """CreateService unit test stubs""" @@ -28,36 +27,36 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateService: """Test CreateService - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateService` """ model = CreateService() if include_optional: return CreateService( app_id = '', - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -69,63 +68,63 @@ def make_instance(self, include_optional) -> CreateService: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -136,7 +135,7 @@ def make_instance(self, include_optional) -> CreateService: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -145,26 +144,26 @@ def make_instance(self, include_optional) -> CreateService: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ) ) else: @@ -177,6 +176,5 @@ def testCreateService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_service_reply.py b/koyeb/api/test/test_create_service_reply.py similarity index 70% rename from koyeb/test/test_create_service_reply.py rename to koyeb/api/test/test_create_service_reply.py index 52efcc37..4e228455 100644 --- a/koyeb/test/test_create_service_reply.py +++ b/koyeb/api/test/test_create_service_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_service_reply import CreateServiceReply - +from koyeb.api.models.create_service_reply import CreateServiceReply class TestCreateServiceReply(unittest.TestCase): """CreateServiceReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateServiceReply: """Test CreateServiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateServiceReply` """ model = CreateServiceReply() if include_optional: return CreateServiceReply( - service = koyeb.models.service.Service( + service = koyeb.api.models.service.Service( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -57,16 +56,16 @@ def make_instance(self, include_optional) -> CreateServiceReply: active_deployment_id = '', latest_deployment_id = '', last_provisioned_deployment_id = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ), ) + auto_release = koyeb.api.models.auto_release.AutoRelease(), ), ) ) else: return CreateServiceReply( @@ -78,6 +77,5 @@ def testCreateServiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_snapshot_reply.py b/koyeb/api/test/test_create_snapshot_reply.py similarity index 70% rename from koyeb/test/test_create_snapshot_reply.py rename to koyeb/api/test/test_create_snapshot_reply.py index 779a6daa..830d9d9e 100644 --- a/koyeb/test/test_create_snapshot_reply.py +++ b/koyeb/api/test/test_create_snapshot_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_snapshot_reply import CreateSnapshotReply - +from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply class TestCreateSnapshotReply(unittest.TestCase): """CreateSnapshotReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSnapshotReply: """Test CreateSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateSnapshotReply` """ model = CreateSnapshotReply() if include_optional: return CreateSnapshotReply( - snapshot = koyeb.models.snapshot.Snapshot( + snapshot = koyeb.api.models.snapshot.Snapshot( id = '', name = '', size = 56, @@ -59,6 +58,5 @@ def testCreateSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_snapshot_request.py b/koyeb/api/test/test_create_snapshot_request.py similarity index 62% rename from koyeb/test/test_create_snapshot_request.py rename to koyeb/api/test/test_create_snapshot_request.py index bc6327ee..c5fb8c87 100644 --- a/koyeb/test/test_create_snapshot_request.py +++ b/koyeb/api/test/test_create_snapshot_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_snapshot_request import CreateSnapshotRequest - +from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest class TestCreateSnapshotRequest(unittest.TestCase): """CreateSnapshotRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSnapshotRequest: """Test CreateSnapshotRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateSnapshotRequest` """ model = CreateSnapshotRequest() @@ -49,6 +48,5 @@ def testCreateSnapshotRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_create_stage_attempt_request.py b/koyeb/api/test/test_create_stage_attempt_request.py similarity index 67% rename from koyeb/test/test_create_stage_attempt_request.py rename to koyeb/api/test/test_create_stage_attempt_request.py index 6cef2c74..4a1c68ad 100644 --- a/koyeb/test/test_create_stage_attempt_request.py +++ b/koyeb/api/test/test_create_stage_attempt_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.create_stage_attempt_request import CreateStageAttemptRequest - +from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest class TestCreateStageAttemptRequest(unittest.TestCase): """CreateStageAttemptRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateStageAttemptRequest: """Test CreateStageAttemptRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CreateStageAttemptRequest` """ model = CreateStageAttemptRequest() @@ -56,6 +55,5 @@ def testCreateStageAttemptRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_credential.py b/koyeb/api/test/test_credential.py similarity index 70% rename from koyeb/test/test_credential.py rename to koyeb/api/test/test_credential.py index 610da3cc..16a71779 100644 --- a/koyeb/test/test_credential.py +++ b/koyeb/api/test/test_credential.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.credential import Credential - +from koyeb.api.models.credential import Credential class TestCredential(unittest.TestCase): """Credential unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Credential: """Test Credential - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Credential` """ model = Credential() @@ -57,6 +56,5 @@ def testCredential(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_credential_type.py b/koyeb/api/test/test_credential_type.py new file mode 100644 index 00000000..493a1d59 --- /dev/null +++ b/koyeb/api/test/test_credential_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.credential_type import CredentialType + +class TestCredentialType(unittest.TestCase): + """CredentialType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCredentialType(self): + """Test CredentialType""" + # inst = CredentialType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_credentials_api.py b/koyeb/api/test/test_credentials_api.py similarity index 74% rename from koyeb/test/test_credentials_api.py rename to koyeb/api/test/test_credentials_api.py index 864cf878..7b8c04c1 100644 --- a/koyeb/test/test_credentials_api.py +++ b/koyeb/api/test/test_credentials_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.credentials_api import CredentialsApi +from koyeb.api.api.credentials_api import CredentialsApi class TestCredentialsApi(unittest.TestCase): @@ -69,5 +69,5 @@ def test_update_credential2(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_database_deployment_metadata.py b/koyeb/api/test/test_database_deployment_metadata.py similarity index 59% rename from koyeb/test/test_database_deployment_metadata.py rename to koyeb/api/test/test_database_deployment_metadata.py index 95b72873..bdcc3d23 100644 --- a/koyeb/test/test_database_deployment_metadata.py +++ b/koyeb/api/test/test_database_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.database_deployment_metadata import DatabaseDeploymentMetadata - +from koyeb.api.models.database_deployment_metadata import DatabaseDeploymentMetadata class TestDatabaseDeploymentMetadata(unittest.TestCase): """DatabaseDeploymentMetadata unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseDeploymentMetadata: """Test DatabaseDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DatabaseDeploymentMetadata` """ model = DatabaseDeploymentMetadata() if include_optional: return DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ) @@ -51,6 +50,5 @@ def testDatabaseDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_database_role_password.py b/koyeb/api/test/test_database_role_password.py similarity index 61% rename from koyeb/test/test_database_role_password.py rename to koyeb/api/test/test_database_role_password.py index 37259c14..40f2b9ac 100644 --- a/koyeb/test/test_database_role_password.py +++ b/koyeb/api/test/test_database_role_password.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.database_role_password import DatabaseRolePassword - +from koyeb.api.models.database_role_password import DatabaseRolePassword class TestDatabaseRolePassword(unittest.TestCase): """DatabaseRolePassword unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseRolePassword: """Test DatabaseRolePassword - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DatabaseRolePassword` """ model = DatabaseRolePassword() @@ -49,6 +48,5 @@ def testDatabaseRolePassword(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_database_source.py b/koyeb/api/test/test_database_source.py similarity index 58% rename from koyeb/test/test_database_source.py rename to koyeb/api/test/test_database_source.py index 7b3924ee..f3a1ad95 100644 --- a/koyeb/test/test_database_source.py +++ b/koyeb/api/test/test_database_source.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.database_source import DatabaseSource - +from koyeb.api.models.database_source import DatabaseSource class TestDatabaseSource(unittest.TestCase): """DatabaseSource unit test stubs""" @@ -28,25 +27,25 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseSource: """Test DatabaseSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DatabaseSource` """ model = DatabaseSource() if include_optional: return DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ) @@ -61,6 +60,5 @@ def testDatabaseSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_database_usage.py b/koyeb/api/test/test_database_usage.py similarity index 63% rename from koyeb/test/test_database_usage.py rename to koyeb/api/test/test_database_usage.py index e031fc6f..59a95827 100644 --- a/koyeb/test/test_database_usage.py +++ b/koyeb/api/test/test_database_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.database_usage import DatabaseUsage - +from koyeb.api.models.database_usage import DatabaseUsage class TestDatabaseUsage(unittest.TestCase): """DatabaseUsage unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseUsage: """Test DatabaseUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DatabaseUsage` """ model = DatabaseUsage() @@ -51,6 +50,5 @@ def testDatabaseUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_database_usage_details.py b/koyeb/api/test/test_database_usage_details.py similarity index 70% rename from koyeb/test/test_database_usage_details.py rename to koyeb/api/test/test_database_usage_details.py index cd3fef2e..c03b54cf 100644 --- a/koyeb/test/test_database_usage_details.py +++ b/koyeb/api/test/test_database_usage_details.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.database_usage_details import DatabaseUsageDetails - +from koyeb.api.models.database_usage_details import DatabaseUsageDetails class TestDatabaseUsageDetails(unittest.TestCase): """DatabaseUsageDetails unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseUsageDetails: """Test DatabaseUsageDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DatabaseUsageDetails` """ model = DatabaseUsageDetails() @@ -56,6 +55,5 @@ def testDatabaseUsageDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_datacenter_list_item.py b/koyeb/api/test/test_datacenter_list_item.py similarity index 66% rename from koyeb/test/test_datacenter_list_item.py rename to koyeb/api/test/test_datacenter_list_item.py index e4ab8812..2bf7b104 100644 --- a/koyeb/test/test_datacenter_list_item.py +++ b/koyeb/api/test/test_datacenter_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.datacenter_list_item import DatacenterListItem - +from koyeb.api.models.datacenter_list_item import DatacenterListItem class TestDatacenterListItem(unittest.TestCase): """DatacenterListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatacenterListItem: """Test DatacenterListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DatacenterListItem` """ model = DatacenterListItem() @@ -57,6 +56,5 @@ def testDatacenterListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deactivate_organization_reply.py b/koyeb/api/test/test_deactivate_organization_reply.py similarity index 74% rename from koyeb/test/test_deactivate_organization_reply.py rename to koyeb/api/test/test_deactivate_organization_reply.py index ab8dd731..482478d1 100644 --- a/koyeb/test/test_deactivate_organization_reply.py +++ b/koyeb/api/test/test_deactivate_organization_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deactivate_organization_reply import DeactivateOrganizationReply - +from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply class TestDeactivateOrganizationReply(unittest.TestCase): """DeactivateOrganizationReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> DeactivateOrganizationReply: """Test DeactivateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeactivateOrganizationReply` """ model = DeactivateOrganizationReply() if include_optional: return DeactivateOrganizationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> DeactivateOrganizationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testDeactivateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deactivate_organization_request.py b/koyeb/api/test/test_deactivate_organization_request.py similarity index 62% rename from koyeb/test/test_deactivate_organization_request.py rename to koyeb/api/test/test_deactivate_organization_request.py index 836555c0..3e701bf9 100644 --- a/koyeb/test/test_deactivate_organization_request.py +++ b/koyeb/api/test/test_deactivate_organization_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deactivate_organization_request import DeactivateOrganizationRequest - +from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest class TestDeactivateOrganizationRequest(unittest.TestCase): """DeactivateOrganizationRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeactivateOrganizationRequest: """Test DeactivateOrganizationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeactivateOrganizationRequest` """ model = DeactivateOrganizationRequest() @@ -48,6 +47,5 @@ def testDeactivateOrganizationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_declare_stage_progress_request.py b/koyeb/api/test/test_declare_stage_progress_request.py similarity index 69% rename from koyeb/test/test_declare_stage_progress_request.py rename to koyeb/api/test/test_declare_stage_progress_request.py index 5c07d994..5c527b85 100644 --- a/koyeb/test/test_declare_stage_progress_request.py +++ b/koyeb/api/test/test_declare_stage_progress_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.declare_stage_progress_request import DeclareStageProgressRequest - +from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest class TestDeclareStageProgressRequest(unittest.TestCase): """DeclareStageProgressRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeclareStageProgressRequest: """Test DeclareStageProgressRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeclareStageProgressRequest` """ model = DeclareStageProgressRequest() @@ -56,6 +55,5 @@ def testDeclareStageProgressRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_declare_step_progress_request.py b/koyeb/api/test/test_declare_step_progress_request.py similarity index 68% rename from koyeb/test/test_declare_step_progress_request.py rename to koyeb/api/test/test_declare_step_progress_request.py index 70f5e24b..f6258594 100644 --- a/koyeb/test/test_declare_step_progress_request.py +++ b/koyeb/api/test/test_declare_step_progress_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.declare_step_progress_request import DeclareStepProgressRequest - +from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest class TestDeclareStepProgressRequest(unittest.TestCase): """DeclareStepProgressRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeclareStepProgressRequest: """Test DeclareStepProgressRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeclareStepProgressRequest` """ model = DeclareStepProgressRequest() @@ -54,6 +53,5 @@ def testDeclareStepProgressRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_decline_organization_invitation_reply.py b/koyeb/api/test/test_decline_organization_invitation_reply.py similarity index 67% rename from koyeb/test/test_decline_organization_invitation_reply.py rename to koyeb/api/test/test_decline_organization_invitation_reply.py index 72374438..132c49f5 100644 --- a/koyeb/test/test_decline_organization_invitation_reply.py +++ b/koyeb/api/test/test_decline_organization_invitation_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.decline_organization_invitation_reply import ( - DeclineOrganizationInvitationReply, -) - +from koyeb.api.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply class TestDeclineOrganizationInvitationReply(unittest.TestCase): """DeclineOrganizationInvitationReply unit test stubs""" @@ -30,27 +27,27 @@ def tearDown(self): def make_instance(self, include_optional) -> DeclineOrganizationInvitationReply: """Test DeclineOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeclineOrganizationInvitationReply` """ model = DeclineOrganizationInvitationReply() if include_optional: return DeclineOrganizationInvitationReply( - invitation = koyeb.models.organization_invitation.OrganizationInvitation( + invitation = koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -58,7 +55,7 @@ def make_instance(self, include_optional) -> DeclineOrganizationInvitationReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -76,6 +73,5 @@ def testDeclineOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_delete_organization_reply.py b/koyeb/api/test/test_delete_organization_reply.py similarity index 74% rename from koyeb/test/test_delete_organization_reply.py rename to koyeb/api/test/test_delete_organization_reply.py index c20c0029..7ed7944e 100644 --- a/koyeb/test/test_delete_organization_reply.py +++ b/koyeb/api/test/test_delete_organization_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.delete_organization_reply import DeleteOrganizationReply - +from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply class TestDeleteOrganizationReply(unittest.TestCase): """DeleteOrganizationReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> DeleteOrganizationReply: """Test DeleteOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeleteOrganizationReply` """ model = DeleteOrganizationReply() if include_optional: return DeleteOrganizationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> DeleteOrganizationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testDeleteOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_delete_persistent_volume_reply.py b/koyeb/api/test/test_delete_persistent_volume_reply.py similarity index 69% rename from koyeb/test/test_delete_persistent_volume_reply.py rename to koyeb/api/test/test_delete_persistent_volume_reply.py index 8f1d0efe..112083d9 100644 --- a/koyeb/test/test_delete_persistent_volume_reply.py +++ b/koyeb/api/test/test_delete_persistent_volume_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.delete_persistent_volume_reply import DeletePersistentVolumeReply - +from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply class TestDeletePersistentVolumeReply(unittest.TestCase): """DeletePersistentVolumeReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> DeletePersistentVolumeReply: """Test DeletePersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeletePersistentVolumeReply` """ model = DeletePersistentVolumeReply() if include_optional: return DeletePersistentVolumeReply( - volume = koyeb.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( + volume = koyeb.api.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( id = '', name = '', snapshot_id = '', @@ -62,6 +61,5 @@ def testDeletePersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_delete_snapshot_reply.py b/koyeb/api/test/test_delete_snapshot_reply.py similarity index 70% rename from koyeb/test/test_delete_snapshot_reply.py rename to koyeb/api/test/test_delete_snapshot_reply.py index 9338e8dd..3655ddc3 100644 --- a/koyeb/test/test_delete_snapshot_reply.py +++ b/koyeb/api/test/test_delete_snapshot_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.delete_snapshot_reply import DeleteSnapshotReply - +from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply class TestDeleteSnapshotReply(unittest.TestCase): """DeleteSnapshotReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> DeleteSnapshotReply: """Test DeleteSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeleteSnapshotReply` """ model = DeleteSnapshotReply() if include_optional: return DeleteSnapshotReply( - snapshot = koyeb.models.snapshot.Snapshot( + snapshot = koyeb.api.models.snapshot.Snapshot( id = '', name = '', size = 56, @@ -59,6 +58,5 @@ def testDeleteSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_delete_user_reply.py b/koyeb/api/test/test_delete_user_reply.py similarity index 68% rename from koyeb/test/test_delete_user_reply.py rename to koyeb/api/test/test_delete_user_reply.py index b0d65e85..576b7fa8 100644 --- a/koyeb/test/test_delete_user_reply.py +++ b/koyeb/api/test/test_delete_user_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.delete_user_reply import DeleteUserReply - +from koyeb.api.models.delete_user_reply import DeleteUserReply class TestDeleteUserReply(unittest.TestCase): """DeleteUserReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeleteUserReply: """Test DeleteUserReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeleteUserReply` """ model = DeleteUserReply() @@ -48,6 +47,5 @@ def testDeleteUserReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment.py b/koyeb/api/test/test_deployment.py similarity index 65% rename from koyeb/test/test_deployment.py rename to koyeb/api/test/test_deployment.py index 8a3bd3fd..53addad9 100644 --- a/koyeb/test/test_deployment.py +++ b/koyeb/api/test/test_deployment.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment import Deployment - +from koyeb.api.models.deployment import Deployment class TestDeployment(unittest.TestCase): """Deployment unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Deployment: """Test Deployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Deployment` """ model = Deployment() @@ -49,11 +48,11 @@ def make_instance(self, include_optional) -> Deployment: parent_id = '', child_id = '', status = 'PENDING', - metadata = koyeb.models.deployment_metadata.DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -62,47 +61,47 @@ def make_instance(self, include_optional) -> Deployment: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, protocol = 'tcp', ) ], ), - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -114,63 +113,63 @@ def make_instance(self, include_optional) -> Deployment: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -181,7 +180,7 @@ def make_instance(self, include_optional) -> Deployment: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -190,35 +189,35 @@ def make_instance(self, include_optional) -> Deployment: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), messages = [ '' ], - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', status = 'UNKNOWN', messages = [ @@ -227,12 +226,12 @@ def make_instance(self, include_optional) -> Deployment: started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -243,8 +242,8 @@ def make_instance(self, include_optional) -> Deployment: wait_completion = True, ) ], ) ], ), - database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo( - neon_postgres = koyeb.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo( + database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo( + neon_postgres = koyeb.api.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo( active_time_seconds = '', compute_time_seconds = '', written_data_bytes = '', @@ -259,7 +258,7 @@ def make_instance(self, include_optional) -> Deployment: default_branch_state = '', default_branch_logical_size = '', roles = [ - koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( + koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( name = '', secret_id = '', ) ], ), ), @@ -278,6 +277,5 @@ def testDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_database_info.py b/koyeb/api/test/test_deployment_database_info.py similarity index 67% rename from koyeb/test/test_deployment_database_info.py rename to koyeb/api/test/test_deployment_database_info.py index e93a9255..978dcc09 100644 --- a/koyeb/test/test_deployment_database_info.py +++ b/koyeb/api/test/test_deployment_database_info.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_database_info import DeploymentDatabaseInfo - +from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo class TestDeploymentDatabaseInfo(unittest.TestCase): """DeploymentDatabaseInfo unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentDatabaseInfo: """Test DeploymentDatabaseInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentDatabaseInfo` """ model = DeploymentDatabaseInfo() if include_optional: return DeploymentDatabaseInfo( - neon_postgres = koyeb.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo( + neon_postgres = koyeb.api.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo( active_time_seconds = '', compute_time_seconds = '', written_data_bytes = '', @@ -51,7 +50,7 @@ def make_instance(self, include_optional) -> DeploymentDatabaseInfo: default_branch_state = '', default_branch_logical_size = '', roles = [ - koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( + koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( name = '', secret_id = '', ) ], ) @@ -66,6 +65,5 @@ def testDeploymentDatabaseInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_definition.py b/koyeb/api/test/test_deployment_definition.py similarity index 51% rename from koyeb/test/test_deployment_definition.py rename to koyeb/api/test/test_deployment_definition.py index fcb841f1..9fe77672 100644 --- a/koyeb/test/test_deployment_definition.py +++ b/koyeb/api/test/test_deployment_definition.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_definition import DeploymentDefinition - +from koyeb.api.models.deployment_definition import DeploymentDefinition class TestDeploymentDefinition(unittest.TestCase): """DeploymentDefinition unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentDefinition: """Test DeploymentDefinition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentDefinition` """ model = DeploymentDefinition() @@ -38,25 +37,25 @@ def make_instance(self, include_optional) -> DeploymentDefinition: return DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy( + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy( type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID', ), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -68,58 +67,58 @@ def make_instance(self, include_optional) -> DeploymentDefinition: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( scopes = [ '' ], min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType( + koyeb.api.models.deployment_instance_type.DeploymentInstanceType( scopes = [ '' ], type = '', ) ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, @@ -128,13 +127,13 @@ def make_instance(self, include_optional) -> DeploymentDefinition: ], ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -145,7 +144,7 @@ def make_instance(self, include_optional) -> DeploymentDefinition: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -154,11 +153,11 @@ def make_instance(self, include_optional) -> DeploymentDefinition: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), - docker = koyeb.models.docker_builder.DockerBuilder( + docker = koyeb.api.models.docker_builder.DockerBuilder( dockerfile = '', entrypoint = [ '' @@ -169,28 +168,28 @@ def make_instance(self, include_optional) -> DeploymentDefinition: ], target = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), - docker = koyeb.models.docker_builder.DockerBuilder( + docker = koyeb.api.models.docker_builder.DockerBuilder( dockerfile = '', entrypoint = [ '' @@ -204,43 +203,6 @@ def make_instance(self, include_optional) -> DeploymentDefinition: ) else: return DeploymentDefinition( - type = 'INVALID', - regions = [ - '' - ], - scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( - scopes = [ - '' - ], - min = 56, - max = 56, - targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( - value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( - value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( - value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( - value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( - value = 56, - quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( - value = 56, - deep_sleep_value = 56, - light_sleep_value = 56, ), ) - ], ) - ], - instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType( - scopes = [ - '' - ], - type = '', ) - ], ) """ @@ -249,6 +211,5 @@ def testDeploymentDefinition(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_deployment_definition_type.py b/koyeb/api/test/test_deployment_definition_type.py new file mode 100644 index 00000000..0034d7eb --- /dev/null +++ b/koyeb/api/test/test_deployment_definition_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.deployment_definition_type import DeploymentDefinitionType + +class TestDeploymentDefinitionType(unittest.TestCase): + """DeploymentDefinitionType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeploymentDefinitionType(self): + """Test DeploymentDefinitionType""" + # inst = DeploymentDefinitionType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_deployment_env.py b/koyeb/api/test/test_deployment_env.py similarity index 63% rename from koyeb/test/test_deployment_env.py rename to koyeb/api/test/test_deployment_env.py index 1a25b745..40757d71 100644 --- a/koyeb/test/test_deployment_env.py +++ b/koyeb/api/test/test_deployment_env.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_env import DeploymentEnv - +from koyeb.api.models.deployment_env import DeploymentEnv class TestDeploymentEnv(unittest.TestCase): """DeploymentEnv unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentEnv: """Test DeploymentEnv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentEnv` """ model = DeploymentEnv() @@ -53,6 +52,5 @@ def testDeploymentEnv(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_event.py b/koyeb/api/test/test_deployment_event.py similarity index 66% rename from koyeb/test/test_deployment_event.py rename to koyeb/api/test/test_deployment_event.py index 4095bb37..dffc1de1 100644 --- a/koyeb/test/test_deployment_event.py +++ b/koyeb/api/test/test_deployment_event.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_event import DeploymentEvent - +from koyeb.api.models.deployment_event import DeploymentEvent class TestDeploymentEvent(unittest.TestCase): """DeploymentEvent unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentEvent: """Test DeploymentEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentEvent` """ model = DeploymentEvent() @@ -54,6 +53,5 @@ def testDeploymentEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_health_check.py b/koyeb/api/test/test_deployment_health_check.py similarity index 62% rename from koyeb/test/test_deployment_health_check.py rename to koyeb/api/test/test_deployment_health_check.py index 1979ab7a..2db52fba 100644 --- a/koyeb/test/test_deployment_health_check.py +++ b/koyeb/api/test/test_deployment_health_check.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_health_check import DeploymentHealthCheck - +from koyeb.api.models.deployment_health_check import DeploymentHealthCheck class TestDeploymentHealthCheck(unittest.TestCase): """DeploymentHealthCheck unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentHealthCheck: """Test DeploymentHealthCheck - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentHealthCheck` """ model = DeploymentHealthCheck() @@ -40,14 +39,14 @@ def make_instance(self, include_optional) -> DeploymentHealthCheck: interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ) @@ -62,6 +61,5 @@ def testDeploymentHealthCheck(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_instance_type.py b/koyeb/api/test/test_deployment_instance_type.py similarity index 63% rename from koyeb/test/test_deployment_instance_type.py rename to koyeb/api/test/test_deployment_instance_type.py index 8ed70e68..b4916853 100644 --- a/koyeb/test/test_deployment_instance_type.py +++ b/koyeb/api/test/test_deployment_instance_type.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_instance_type import DeploymentInstanceType - +from koyeb.api.models.deployment_instance_type import DeploymentInstanceType class TestDeploymentInstanceType(unittest.TestCase): """DeploymentInstanceType unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentInstanceType: """Test DeploymentInstanceType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentInstanceType` """ model = DeploymentInstanceType() @@ -51,6 +50,5 @@ def testDeploymentInstanceType(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_list_item.py b/koyeb/api/test/test_deployment_list_item.py similarity index 65% rename from koyeb/test/test_deployment_list_item.py rename to koyeb/api/test/test_deployment_list_item.py index ebf6b9c3..e62f545a 100644 --- a/koyeb/test/test_deployment_list_item.py +++ b/koyeb/api/test/test_deployment_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_list_item import DeploymentListItem - +from koyeb.api.models.deployment_list_item import DeploymentListItem class TestDeploymentListItem(unittest.TestCase): """DeploymentListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentListItem: """Test DeploymentListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentListItem` """ model = DeploymentListItem() @@ -49,11 +48,11 @@ def make_instance(self, include_optional) -> DeploymentListItem: parent_id = '', child_id = '', status = 'PENDING', - metadata = koyeb.models.deployment_metadata.DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -62,47 +61,47 @@ def make_instance(self, include_optional) -> DeploymentListItem: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, protocol = 'tcp', ) ], ), - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -114,63 +113,63 @@ def make_instance(self, include_optional) -> DeploymentListItem: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -181,7 +180,7 @@ def make_instance(self, include_optional) -> DeploymentListItem: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -190,35 +189,35 @@ def make_instance(self, include_optional) -> DeploymentListItem: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), messages = [ '' ], - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', status = 'UNKNOWN', messages = [ @@ -227,12 +226,12 @@ def make_instance(self, include_optional) -> DeploymentListItem: started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -243,8 +242,8 @@ def make_instance(self, include_optional) -> DeploymentListItem: wait_completion = True, ) ], ) ], ), - database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo( - neon_postgres = koyeb.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo( + database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo( + neon_postgres = koyeb.api.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo( active_time_seconds = '', compute_time_seconds = '', written_data_bytes = '', @@ -259,7 +258,7 @@ def make_instance(self, include_optional) -> DeploymentListItem: default_branch_state = '', default_branch_logical_size = '', roles = [ - koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( + koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( name = '', secret_id = '', ) ], ), ), @@ -276,6 +275,5 @@ def testDeploymentListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_metadata.py b/koyeb/api/test/test_deployment_metadata.py similarity index 57% rename from koyeb/test/test_deployment_metadata.py rename to koyeb/api/test/test_deployment_metadata.py index e257d0c5..836e40b2 100644 --- a/koyeb/test/test_deployment_metadata.py +++ b/koyeb/api/test/test_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_metadata import DeploymentMetadata - +from koyeb.api.models.deployment_metadata import DeploymentMetadata class TestDeploymentMetadata(unittest.TestCase): """DeploymentMetadata unit test stubs""" @@ -28,18 +27,18 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentMetadata: """Test DeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentMetadata` """ model = DeploymentMetadata() if include_optional: return DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -48,21 +47,21 @@ def make_instance(self, include_optional) -> DeploymentMetadata: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, @@ -79,6 +78,5 @@ def testDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_neon_postgres_database_info.py b/koyeb/api/test/test_deployment_neon_postgres_database_info.py similarity index 70% rename from koyeb/test/test_deployment_neon_postgres_database_info.py rename to koyeb/api/test/test_deployment_neon_postgres_database_info.py index 661e22ff..54a781d9 100644 --- a/koyeb/test/test_deployment_neon_postgres_database_info.py +++ b/koyeb/api/test/test_deployment_neon_postgres_database_info.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_neon_postgres_database_info import ( - DeploymentNeonPostgresDatabaseInfo, -) - +from koyeb.api.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo class TestDeploymentNeonPostgresDatabaseInfo(unittest.TestCase): """DeploymentNeonPostgresDatabaseInfo unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentNeonPostgresDatabaseInfo: """Test DeploymentNeonPostgresDatabaseInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfo` """ model = DeploymentNeonPostgresDatabaseInfo() @@ -52,7 +49,7 @@ def make_instance(self, include_optional) -> DeploymentNeonPostgresDatabaseInfo: default_branch_state = '', default_branch_logical_size = '', roles = [ - koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( + koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole( name = '', secret_id = '', ) ] @@ -67,6 +64,5 @@ def testDeploymentNeonPostgresDatabaseInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_neon_postgres_database_info_role.py b/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py similarity index 64% rename from koyeb/test/test_deployment_neon_postgres_database_info_role.py rename to koyeb/api/test/test_deployment_neon_postgres_database_info_role.py index 6877bca8..c82176fa 100644 --- a/koyeb/test/test_deployment_neon_postgres_database_info_role.py +++ b/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_neon_postgres_database_info_role import ( - DeploymentNeonPostgresDatabaseInfoRole, -) - +from koyeb.api.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole class TestDeploymentNeonPostgresDatabaseInfoRole(unittest.TestCase): """DeploymentNeonPostgresDatabaseInfoRole unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentNeonPostgresDatabaseInfoRole: """Test DeploymentNeonPostgresDatabaseInfoRole - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfoRole` """ model = DeploymentNeonPostgresDatabaseInfoRole() @@ -51,6 +48,5 @@ def testDeploymentNeonPostgresDatabaseInfoRole(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_port.py b/koyeb/api/test/test_deployment_port.py similarity index 60% rename from koyeb/test/test_deployment_port.py rename to koyeb/api/test/test_deployment_port.py index e092f0c1..933ec5a3 100644 --- a/koyeb/test/test_deployment_port.py +++ b/koyeb/api/test/test_deployment_port.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_port import DeploymentPort - +from koyeb.api.models.deployment_port import DeploymentPort class TestDeploymentPort(unittest.TestCase): """DeploymentPort unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentPort: """Test DeploymentPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentPort` """ model = DeploymentPort() @@ -49,6 +48,5 @@ def testDeploymentPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_provisioning_info.py b/koyeb/api/test/test_deployment_provisioning_info.py similarity index 70% rename from koyeb/test/test_deployment_provisioning_info.py rename to koyeb/api/test/test_deployment_provisioning_info.py index 5c55197b..2c7a2e31 100644 --- a/koyeb/test/test_deployment_provisioning_info.py +++ b/koyeb/api/test/test_deployment_provisioning_info.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_provisioning_info import DeploymentProvisioningInfo - +from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo class TestDeploymentProvisioningInfo(unittest.TestCase): """DeploymentProvisioningInfo unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProvisioningInfo: """Test DeploymentProvisioningInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentProvisioningInfo` """ model = DeploymentProvisioningInfo() @@ -39,7 +38,7 @@ def make_instance(self, include_optional) -> DeploymentProvisioningInfo: sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', status = 'UNKNOWN', messages = [ @@ -48,12 +47,12 @@ def make_instance(self, include_optional) -> DeploymentProvisioningInfo: started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -75,6 +74,5 @@ def testDeploymentProvisioningInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_provisioning_info_stage.py b/koyeb/api/test/test_deployment_provisioning_info_stage.py similarity index 72% rename from koyeb/test/test_deployment_provisioning_info_stage.py rename to koyeb/api/test/test_deployment_provisioning_info_stage.py index 2ccd3598..bc7e0549 100644 --- a/koyeb/test/test_deployment_provisioning_info_stage.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_provisioning_info_stage import ( - DeploymentProvisioningInfoStage, -) - +from koyeb.api.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage class TestDeploymentProvisioningInfoStage(unittest.TestCase): """DeploymentProvisioningInfoStage unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProvisioningInfoStage: """Test DeploymentProvisioningInfoStage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentProvisioningInfoStage` """ model = DeploymentProvisioningInfoStage() @@ -46,7 +43,7 @@ def make_instance(self, include_optional) -> DeploymentProvisioningInfoStage: started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, status = 'UNKNOWN', messages = [ @@ -55,7 +52,7 @@ def make_instance(self, include_optional) -> DeploymentProvisioningInfoStage: started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -76,6 +73,5 @@ def testDeploymentProvisioningInfoStage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_provisioning_info_stage_build_attempt.py b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py similarity index 69% rename from koyeb/test/test_deployment_provisioning_info_stage_build_attempt.py rename to koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py index 95a5344b..823493eb 100644 --- a/koyeb/test/test_deployment_provisioning_info_stage_build_attempt.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_provisioning_info_stage_build_attempt import ( - DeploymentProvisioningInfoStageBuildAttempt, -) - +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt class TestDeploymentProvisioningInfoStageBuildAttempt(unittest.TestCase): """DeploymentProvisioningInfoStageBuildAttempt unit test stubs""" @@ -28,13 +25,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> DeploymentProvisioningInfoStageBuildAttempt: + def make_instance(self, include_optional) -> DeploymentProvisioningInfoStageBuildAttempt: """Test DeploymentProvisioningInfoStageBuildAttempt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttempt` """ model = DeploymentProvisioningInfoStageBuildAttempt() @@ -48,7 +43,7 @@ def make_instance( started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', status = 'UNKNOWN', messages = [ @@ -72,6 +67,5 @@ def testDeploymentProvisioningInfoStageBuildAttempt(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py similarity index 65% rename from koyeb/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py rename to koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py index 28b2599f..480ab67c 100644 --- a/koyeb/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_provisioning_info_stage_build_attempt_build_step import ( - DeploymentProvisioningInfoStageBuildAttemptBuildStep, -) - +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep class TestDeploymentProvisioningInfoStageBuildAttemptBuildStep(unittest.TestCase): """DeploymentProvisioningInfoStageBuildAttemptBuildStep unit test stubs""" @@ -28,13 +25,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> DeploymentProvisioningInfoStageBuildAttemptBuildStep: + def make_instance(self, include_optional) -> DeploymentProvisioningInfoStageBuildAttemptBuildStep: """Test DeploymentProvisioningInfoStageBuildAttemptBuildStep - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttemptBuildStep` """ model = DeploymentProvisioningInfoStageBuildAttemptBuildStep() @@ -58,6 +53,5 @@ def testDeploymentProvisioningInfoStageBuildAttemptBuildStep(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_provisioning_info_stage_status.py b/koyeb/api/test/test_deployment_provisioning_info_stage_status.py similarity index 51% rename from koyeb/test/test_deployment_provisioning_info_stage_status.py rename to koyeb/api/test/test_deployment_provisioning_info_stage_status.py index a857e911..9398ccbc 100644 --- a/koyeb/test/test_deployment_provisioning_info_stage_status.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage_status.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) - +from koyeb.api.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus class TestDeploymentProvisioningInfoStageStatus(unittest.TestCase): """DeploymentProvisioningInfoStageStatus unit test stubs""" @@ -32,6 +29,5 @@ def testDeploymentProvisioningInfoStageStatus(self): """Test DeploymentProvisioningInfoStageStatus""" # inst = DeploymentProvisioningInfoStageStatus() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_proxy_port.py b/koyeb/api/test/test_deployment_proxy_port.py similarity index 61% rename from koyeb/test/test_deployment_proxy_port.py rename to koyeb/api/test/test_deployment_proxy_port.py index aa592af3..7482bc9f 100644 --- a/koyeb/test/test_deployment_proxy_port.py +++ b/koyeb/api/test/test_deployment_proxy_port.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_proxy_port import DeploymentProxyPort - +from koyeb.api.models.deployment_proxy_port import DeploymentProxyPort class TestDeploymentProxyPort(unittest.TestCase): """DeploymentProxyPort unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProxyPort: """Test DeploymentProxyPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentProxyPort` """ model = DeploymentProxyPort() @@ -49,6 +48,5 @@ def testDeploymentProxyPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_proxy_port_metadata.py b/koyeb/api/test/test_deployment_proxy_port_metadata.py similarity index 64% rename from koyeb/test/test_deployment_proxy_port_metadata.py rename to koyeb/api/test/test_deployment_proxy_port_metadata.py index b3dd474f..f85dc388 100644 --- a/koyeb/test/test_deployment_proxy_port_metadata.py +++ b/koyeb/api/test/test_deployment_proxy_port_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata - +from koyeb.api.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata class TestDeploymentProxyPortMetadata(unittest.TestCase): """DeploymentProxyPortMetadata unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProxyPortMetadata: """Test DeploymentProxyPortMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentProxyPortMetadata` """ model = DeploymentProxyPortMetadata() @@ -51,6 +50,5 @@ def testDeploymentProxyPortMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_deployment_role.py b/koyeb/api/test/test_deployment_role.py new file mode 100644 index 00000000..f716a71d --- /dev/null +++ b/koyeb/api/test/test_deployment_role.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.deployment_role import DeploymentRole + +class TestDeploymentRole(unittest.TestCase): + """DeploymentRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeploymentRole(self): + """Test DeploymentRole""" + # inst = DeploymentRole() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_deployment_route.py b/koyeb/api/test/test_deployment_route.py similarity index 60% rename from koyeb/test/test_deployment_route.py rename to koyeb/api/test/test_deployment_route.py index 23568719..85d91d46 100644 --- a/koyeb/test/test_deployment_route.py +++ b/koyeb/api/test/test_deployment_route.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_route import DeploymentRoute - +from koyeb.api.models.deployment_route import DeploymentRoute class TestDeploymentRoute(unittest.TestCase): """DeploymentRoute unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentRoute: """Test DeploymentRoute - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentRoute` """ model = DeploymentRoute() @@ -49,6 +48,5 @@ def testDeploymentRoute(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling.py b/koyeb/api/test/test_deployment_scaling.py new file mode 100644 index 00000000..a9295c48 --- /dev/null +++ b/koyeb/api/test/test_deployment_scaling.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.deployment_scaling import DeploymentScaling + +class TestDeploymentScaling(unittest.TestCase): + """DeploymentScaling unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeploymentScaling: + """Test DeploymentScaling + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeploymentScaling` + """ + model = DeploymentScaling() + if include_optional: + return DeploymentScaling( + scopes = [ + '' + ], + min = 56, + max = 56, + targets = [ + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + value = 56, ), + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + value = 56, ), + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + value = 56, ), + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + value = 56, ), + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + value = 56, + quantile = 56, ), + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + value = 56, + deep_sleep_value = 56, + light_sleep_value = 56, ), ) + ] + ) + else: + return DeploymentScaling( + ) + """ + + def testDeploymentScaling(self): + """Test DeploymentScaling""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target.py b/koyeb/api/test/test_deployment_scaling_target.py new file mode 100644 index 00000000..99299973 --- /dev/null +++ b/koyeb/api/test/test_deployment_scaling_target.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget + +class TestDeploymentScalingTarget(unittest.TestCase): + """DeploymentScalingTarget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeploymentScalingTarget: + """Test DeploymentScalingTarget + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeploymentScalingTarget` + """ + model = DeploymentScalingTarget() + if include_optional: + return DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + value = 56, ), + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + value = 56, ), + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + value = 56, ), + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + value = 56, ), + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + value = 56, + quantile = 56, ), + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + value = 56, + deep_sleep_value = 56, + light_sleep_value = 56, ) + ) + else: + return DeploymentScalingTarget( + ) + """ + + def testDeploymentScalingTarget(self): + """Test DeploymentScalingTarget""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target_average_cpu.py b/koyeb/api/test/test_deployment_scaling_target_average_cpu.py similarity index 63% rename from koyeb/test/test_deployment_scaling_target_average_cpu.py rename to koyeb/api/test/test_deployment_scaling_target_average_cpu.py index 52c6a74a..d37b4b92 100644 --- a/koyeb/test/test_deployment_scaling_target_average_cpu.py +++ b/koyeb/api/test/test_deployment_scaling_target_average_cpu.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_scaling_target_average_cpu import ( - DeploymentScalingTargetAverageCPU, -) - +from koyeb.api.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU class TestDeploymentScalingTargetAverageCPU(unittest.TestCase): """DeploymentScalingTargetAverageCPU unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentScalingTargetAverageCPU: """Test DeploymentScalingTargetAverageCPU - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentScalingTargetAverageCPU` """ model = DeploymentScalingTargetAverageCPU() @@ -50,6 +47,5 @@ def testDeploymentScalingTargetAverageCPU(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target_average_mem.py b/koyeb/api/test/test_deployment_scaling_target_average_mem.py similarity index 63% rename from koyeb/test/test_deployment_scaling_target_average_mem.py rename to koyeb/api/test/test_deployment_scaling_target_average_mem.py index 2fc40e50..609d7305 100644 --- a/koyeb/test/test_deployment_scaling_target_average_mem.py +++ b/koyeb/api/test/test_deployment_scaling_target_average_mem.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_scaling_target_average_mem import ( - DeploymentScalingTargetAverageMem, -) - +from koyeb.api.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem class TestDeploymentScalingTargetAverageMem(unittest.TestCase): """DeploymentScalingTargetAverageMem unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentScalingTargetAverageMem: """Test DeploymentScalingTargetAverageMem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentScalingTargetAverageMem` """ model = DeploymentScalingTargetAverageMem() @@ -50,6 +47,5 @@ def testDeploymentScalingTargetAverageMem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target_concurrent_requests.py b/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py similarity index 58% rename from koyeb/test/test_deployment_scaling_target_concurrent_requests.py rename to koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py index 7ea98428..f0027da8 100644 --- a/koyeb/test/test_deployment_scaling_target_concurrent_requests.py +++ b/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_scaling_target_concurrent_requests import ( - DeploymentScalingTargetConcurrentRequests, -) - +from koyeb.api.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests class TestDeploymentScalingTargetConcurrentRequests(unittest.TestCase): """DeploymentScalingTargetConcurrentRequests unit test stubs""" @@ -28,13 +25,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> DeploymentScalingTargetConcurrentRequests: + def make_instance(self, include_optional) -> DeploymentScalingTargetConcurrentRequests: """Test DeploymentScalingTargetConcurrentRequests - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentScalingTargetConcurrentRequests` """ model = DeploymentScalingTargetConcurrentRequests() @@ -52,6 +47,5 @@ def testDeploymentScalingTargetConcurrentRequests(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target_requests_per_second.py b/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py similarity index 58% rename from koyeb/test/test_deployment_scaling_target_requests_per_second.py rename to koyeb/api/test/test_deployment_scaling_target_requests_per_second.py index f4dcf662..8c9a25fa 100644 --- a/koyeb/test/test_deployment_scaling_target_requests_per_second.py +++ b/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_scaling_target_requests_per_second import ( - DeploymentScalingTargetRequestsPerSecond, -) - +from koyeb.api.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond class TestDeploymentScalingTargetRequestsPerSecond(unittest.TestCase): """DeploymentScalingTargetRequestsPerSecond unit test stubs""" @@ -28,13 +25,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> DeploymentScalingTargetRequestsPerSecond: + def make_instance(self, include_optional) -> DeploymentScalingTargetRequestsPerSecond: """Test DeploymentScalingTargetRequestsPerSecond - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentScalingTargetRequestsPerSecond` """ model = DeploymentScalingTargetRequestsPerSecond() @@ -52,6 +47,5 @@ def testDeploymentScalingTargetRequestsPerSecond(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target_requests_response_time.py b/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py similarity index 59% rename from koyeb/test/test_deployment_scaling_target_requests_response_time.py rename to koyeb/api/test/test_deployment_scaling_target_requests_response_time.py index 28ab6441..76fc93a2 100644 --- a/koyeb/test/test_deployment_scaling_target_requests_response_time.py +++ b/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_scaling_target_requests_response_time import ( - DeploymentScalingTargetRequestsResponseTime, -) - +from koyeb.api.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime class TestDeploymentScalingTargetRequestsResponseTime(unittest.TestCase): """DeploymentScalingTargetRequestsResponseTime unit test stubs""" @@ -28,13 +25,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> DeploymentScalingTargetRequestsResponseTime: + def make_instance(self, include_optional) -> DeploymentScalingTargetRequestsResponseTime: """Test DeploymentScalingTargetRequestsResponseTime - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentScalingTargetRequestsResponseTime` """ model = DeploymentScalingTargetRequestsResponseTime() @@ -53,6 +48,5 @@ def testDeploymentScalingTargetRequestsResponseTime(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target_sleep_idle_delay.py b/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py similarity index 65% rename from koyeb/test/test_deployment_scaling_target_sleep_idle_delay.py rename to koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py index 0f0ec399..87a030f2 100644 --- a/koyeb/test/test_deployment_scaling_target_sleep_idle_delay.py +++ b/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_scaling_target_sleep_idle_delay import ( - DeploymentScalingTargetSleepIdleDelay, -) - +from koyeb.api.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay class TestDeploymentScalingTargetSleepIdleDelay(unittest.TestCase): """DeploymentScalingTargetSleepIdleDelay unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentScalingTargetSleepIdleDelay: """Test DeploymentScalingTargetSleepIdleDelay - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentScalingTargetSleepIdleDelay` """ model = DeploymentScalingTargetSleepIdleDelay() @@ -52,6 +49,5 @@ def testDeploymentScalingTargetSleepIdleDelay(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_deployment_status.py b/koyeb/api/test/test_deployment_status.py new file mode 100644 index 00000000..c7e342bd --- /dev/null +++ b/koyeb/api/test/test_deployment_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.deployment_status import DeploymentStatus + +class TestDeploymentStatus(unittest.TestCase): + """DeploymentStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeploymentStatus(self): + """Test DeploymentStatus""" + # inst = DeploymentStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_deployment_strategy.py b/koyeb/api/test/test_deployment_strategy.py similarity index 61% rename from koyeb/test/test_deployment_strategy.py rename to koyeb/api/test/test_deployment_strategy.py index 1cd3619e..0189c030 100644 --- a/koyeb/test/test_deployment_strategy.py +++ b/koyeb/api/test/test_deployment_strategy.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_strategy import DeploymentStrategy - +from koyeb.api.models.deployment_strategy import DeploymentStrategy class TestDeploymentStrategy(unittest.TestCase): """DeploymentStrategy unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentStrategy: """Test DeploymentStrategy - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentStrategy` """ model = DeploymentStrategy() @@ -48,6 +47,5 @@ def testDeploymentStrategy(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_deployment_strategy_type.py b/koyeb/api/test/test_deployment_strategy_type.py new file mode 100644 index 00000000..fa39bc4a --- /dev/null +++ b/koyeb/api/test/test_deployment_strategy_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.deployment_strategy_type import DeploymentStrategyType + +class TestDeploymentStrategyType(unittest.TestCase): + """DeploymentStrategyType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeploymentStrategyType(self): + """Test DeploymentStrategyType""" + # inst = DeploymentStrategyType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_deployment_volume.py b/koyeb/api/test/test_deployment_volume.py similarity index 63% rename from koyeb/test/test_deployment_volume.py rename to koyeb/api/test/test_deployment_volume.py index 857dd3a2..4bcc1f88 100644 --- a/koyeb/test/test_deployment_volume.py +++ b/koyeb/api/test/test_deployment_volume.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.deployment_volume import DeploymentVolume - +from koyeb.api.models.deployment_volume import DeploymentVolume class TestDeploymentVolume(unittest.TestCase): """DeploymentVolume unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentVolume: """Test DeploymentVolume - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DeploymentVolume` """ model = DeploymentVolume() @@ -53,6 +52,5 @@ def testDeploymentVolume(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_deployments_api.py b/koyeb/api/test/test_deployments_api.py similarity index 72% rename from koyeb/test/test_deployments_api.py rename to koyeb/api/test/test_deployments_api.py index ca0c37d0..096640a7 100644 --- a/koyeb/test/test_deployments_api.py +++ b/koyeb/api/test/test_deployments_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.deployments_api import DeploymentsApi +from koyeb.api.api.deployments_api import DeploymentsApi class TestDeploymentsApi(unittest.TestCase): @@ -62,5 +62,5 @@ def test_list_deployments(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_desired_deployment.py b/koyeb/api/test/test_desired_deployment.py similarity index 61% rename from koyeb/test/test_desired_deployment.py rename to koyeb/api/test/test_desired_deployment.py index 7e815278..7188a6ee 100644 --- a/koyeb/test/test_desired_deployment.py +++ b/koyeb/api/test/test_desired_deployment.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.desired_deployment import DesiredDeployment - +from koyeb.api.models.desired_deployment import DesiredDeployment class TestDesiredDeployment(unittest.TestCase): """DesiredDeployment unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> DesiredDeployment: """Test DesiredDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DesiredDeployment` """ model = DesiredDeployment() if include_optional: return DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' @@ -54,6 +53,5 @@ def testDesiredDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_desired_deployment_group.py b/koyeb/api/test/test_desired_deployment_group.py similarity index 63% rename from koyeb/test/test_desired_deployment_group.py rename to koyeb/api/test/test_desired_deployment_group.py index b1913205..d5ce9559 100644 --- a/koyeb/test/test_desired_deployment_group.py +++ b/koyeb/api/test/test_desired_deployment_group.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.desired_deployment_group import DesiredDeploymentGroup - +from koyeb.api.models.desired_deployment_group import DesiredDeploymentGroup class TestDesiredDeploymentGroup(unittest.TestCase): """DesiredDeploymentGroup unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DesiredDeploymentGroup: """Test DesiredDeploymentGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DesiredDeploymentGroup` """ model = DesiredDeploymentGroup() @@ -51,6 +50,5 @@ def testDesiredDeploymentGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_digital_ocean_registry_configuration.py b/koyeb/api/test/test_digital_ocean_registry_configuration.py similarity index 63% rename from koyeb/test/test_digital_ocean_registry_configuration.py rename to koyeb/api/test/test_digital_ocean_registry_configuration.py index d329da45..073a570e 100644 --- a/koyeb/test/test_digital_ocean_registry_configuration.py +++ b/koyeb/api/test/test_digital_ocean_registry_configuration.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.digital_ocean_registry_configuration import ( - DigitalOceanRegistryConfiguration, -) - +from koyeb.api.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration class TestDigitalOceanRegistryConfiguration(unittest.TestCase): """DigitalOceanRegistryConfiguration unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DigitalOceanRegistryConfiguration: """Test DigitalOceanRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DigitalOceanRegistryConfiguration` """ model = DigitalOceanRegistryConfiguration() @@ -51,6 +48,5 @@ def testDigitalOceanRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_discourse_auth_reply.py b/koyeb/api/test/test_discourse_auth_reply.py similarity index 61% rename from koyeb/test/test_discourse_auth_reply.py rename to koyeb/api/test/test_discourse_auth_reply.py index 975b6875..f9be9d69 100644 --- a/koyeb/test/test_discourse_auth_reply.py +++ b/koyeb/api/test/test_discourse_auth_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.discourse_auth_reply import DiscourseAuthReply - +from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply class TestDiscourseAuthReply(unittest.TestCase): """DiscourseAuthReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscourseAuthReply: """Test DiscourseAuthReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DiscourseAuthReply` """ model = DiscourseAuthReply() @@ -49,6 +48,5 @@ def testDiscourseAuthReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_discourse_auth_request.py b/koyeb/api/test/test_discourse_auth_request.py similarity index 61% rename from koyeb/test/test_discourse_auth_request.py rename to koyeb/api/test/test_discourse_auth_request.py index 73f0486d..036fd652 100644 --- a/koyeb/test/test_discourse_auth_request.py +++ b/koyeb/api/test/test_discourse_auth_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.discourse_auth_request import DiscourseAuthRequest - +from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest class TestDiscourseAuthRequest(unittest.TestCase): """DiscourseAuthRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscourseAuthRequest: """Test DiscourseAuthRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DiscourseAuthRequest` """ model = DiscourseAuthRequest() @@ -49,6 +48,5 @@ def testDiscourseAuthRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_docker_builder.py b/koyeb/api/test/test_docker_builder.py similarity index 65% rename from koyeb/test/test_docker_builder.py rename to koyeb/api/test/test_docker_builder.py index 1a7a562e..748926f2 100644 --- a/koyeb/test/test_docker_builder.py +++ b/koyeb/api/test/test_docker_builder.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.docker_builder import DockerBuilder - +from koyeb.api.models.docker_builder import DockerBuilder class TestDockerBuilder(unittest.TestCase): """DockerBuilder unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DockerBuilder: """Test DockerBuilder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DockerBuilder` """ model = DockerBuilder() @@ -57,6 +56,5 @@ def testDockerBuilder(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_docker_helper_api.py b/koyeb/api/test/test_docker_helper_api.py similarity index 52% rename from koyeb/test/test_docker_helper_api.py rename to koyeb/api/test/test_docker_helper_api.py index 836a8c46..b93ba981 100644 --- a/koyeb/test/test_docker_helper_api.py +++ b/koyeb/api/test/test_docker_helper_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.docker_helper_api import DockerHelperApi +from koyeb.api.api.docker_helper_api import DockerHelperApi class TestDockerHelperApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_verify_docker_image(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_docker_hub_registry_configuration.py b/koyeb/api/test/test_docker_hub_registry_configuration.py similarity index 63% rename from koyeb/test/test_docker_hub_registry_configuration.py rename to koyeb/api/test/test_docker_hub_registry_configuration.py index 28f488c3..88533154 100644 --- a/koyeb/test/test_docker_hub_registry_configuration.py +++ b/koyeb/api/test/test_docker_hub_registry_configuration.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.docker_hub_registry_configuration import ( - DockerHubRegistryConfiguration, -) - +from koyeb.api.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration class TestDockerHubRegistryConfiguration(unittest.TestCase): """DockerHubRegistryConfiguration unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DockerHubRegistryConfiguration: """Test DockerHubRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DockerHubRegistryConfiguration` """ model = DockerHubRegistryConfiguration() @@ -51,6 +48,5 @@ def testDockerHubRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_docker_source.py b/koyeb/api/test/test_docker_source.py similarity index 65% rename from koyeb/test/test_docker_source.py rename to koyeb/api/test/test_docker_source.py index 31f37a89..d5c88002 100644 --- a/koyeb/test/test_docker_source.py +++ b/koyeb/api/test/test_docker_source.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.docker_source import DockerSource - +from koyeb.api.models.docker_source import DockerSource class TestDockerSource(unittest.TestCase): """DockerSource unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DockerSource: """Test DockerSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DockerSource` """ model = DockerSource() @@ -57,6 +56,5 @@ def testDockerSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_domain.py b/koyeb/api/test/test_domain.py similarity index 66% rename from koyeb/test/test_domain.py rename to koyeb/api/test/test_domain.py index 3549373c..faff203a 100644 --- a/koyeb/test/test_domain.py +++ b/koyeb/api/test/test_domain.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.domain import Domain - +from koyeb.api.models.domain import Domain class TestDomain(unittest.TestCase): """Domain unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Domain: """Test Domain - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Domain` """ model = Domain() @@ -51,8 +50,8 @@ def make_instance(self, include_optional) -> Domain: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ) ) else: @@ -65,6 +64,5 @@ def testDomain(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_domain_load_balancer_koyeb.py b/koyeb/api/test/test_domain_load_balancer_koyeb.py similarity index 62% rename from koyeb/test/test_domain_load_balancer_koyeb.py rename to koyeb/api/test/test_domain_load_balancer_koyeb.py index 5b64c95e..89ea0e1a 100644 --- a/koyeb/test/test_domain_load_balancer_koyeb.py +++ b/koyeb/api/test/test_domain_load_balancer_koyeb.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb - +from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb class TestDomainLoadBalancerKoyeb(unittest.TestCase): """DomainLoadBalancerKoyeb unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DomainLoadBalancerKoyeb: """Test DomainLoadBalancerKoyeb - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DomainLoadBalancerKoyeb` """ model = DomainLoadBalancerKoyeb() @@ -48,6 +47,5 @@ def testDomainLoadBalancerKoyeb(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_domain_load_balancer_quotas.py b/koyeb/api/test/test_domain_load_balancer_quotas.py similarity index 61% rename from koyeb/test/test_domain_load_balancer_quotas.py rename to koyeb/api/test/test_domain_load_balancer_quotas.py index 52082936..d3b59b10 100644 --- a/koyeb/test/test_domain_load_balancer_quotas.py +++ b/koyeb/api/test/test_domain_load_balancer_quotas.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas - +from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas class TestDomainLoadBalancerQuotas(unittest.TestCase): """DomainLoadBalancerQuotas unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DomainLoadBalancerQuotas: """Test DomainLoadBalancerQuotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DomainLoadBalancerQuotas` """ model = DomainLoadBalancerQuotas() @@ -48,6 +47,5 @@ def testDomainLoadBalancerQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_domain_status.py b/koyeb/api/test/test_domain_status.py new file mode 100644 index 00000000..b448f2b2 --- /dev/null +++ b/koyeb/api/test/test_domain_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.domain_status import DomainStatus + +class TestDomainStatus(unittest.TestCase): + """DomainStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDomainStatus(self): + """Test DomainStatus""" + # inst = DomainStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/api/test/test_domain_type.py b/koyeb/api/test/test_domain_type.py new file mode 100644 index 00000000..b2d4a4f7 --- /dev/null +++ b/koyeb/api/test/test_domain_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.domain_type import DomainType + +class TestDomainType(unittest.TestCase): + """DomainType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDomainType(self): + """Test DomainType""" + # inst = DomainType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_domains_api.py b/koyeb/api/test/test_domains_api.py similarity index 73% rename from koyeb/test/test_domains_api.py rename to koyeb/api/test/test_domains_api.py index ec8ce77f..916931c6 100644 --- a/koyeb/test/test_domains_api.py +++ b/koyeb/api/test/test_domains_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.domains_api import DomainsApi +from koyeb.api.api.domains_api import DomainsApi class TestDomainsApi(unittest.TestCase): @@ -69,5 +69,5 @@ def test_update_domain(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_domains_summary.py b/koyeb/api/test/test_domains_summary.py similarity index 62% rename from koyeb/test/test_domains_summary.py rename to koyeb/api/test/test_domains_summary.py index 0b535ccd..5baa9c91 100644 --- a/koyeb/test/test_domains_summary.py +++ b/koyeb/api/test/test_domains_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.domains_summary import DomainsSummary - +from koyeb.api.models.domains_summary import DomainsSummary class TestDomainsSummary(unittest.TestCase): """DomainsSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DomainsSummary: """Test DomainsSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `DomainsSummary` """ model = DomainsSummary() @@ -51,6 +50,5 @@ def testDomainsSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_env.py b/koyeb/api/test/test_env.py similarity index 59% rename from koyeb/test/test_env.py rename to koyeb/api/test/test_env.py index fdcbec29..af8bb55f 100644 --- a/koyeb/test/test_env.py +++ b/koyeb/api/test/test_env.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.env import Env - +from koyeb.api.models.env import Env class TestEnv(unittest.TestCase): """Env unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Env: """Test Env - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Env` """ model = Env() @@ -50,6 +49,5 @@ def testEnv(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_error.py b/koyeb/api/test/test_error.py similarity index 59% rename from koyeb/test/test_error.py rename to koyeb/api/test/test_error.py index 6149d39a..cb21c03d 100644 --- a/koyeb/test/test_error.py +++ b/koyeb/api/test/test_error.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.error import Error - +from koyeb.api.models.error import Error class TestError(unittest.TestCase): """Error unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Error: """Test Error - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Error` """ model = Error() @@ -50,6 +49,5 @@ def testError(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_error_field.py b/koyeb/api/test/test_error_field.py similarity index 60% rename from koyeb/test/test_error_field.py rename to koyeb/api/test/test_error_field.py index 1ac8509a..34550bf5 100644 --- a/koyeb/test/test_error_field.py +++ b/koyeb/api/test/test_error_field.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.error_field import ErrorField - +from koyeb.api.models.error_field import ErrorField class TestErrorField(unittest.TestCase): """ErrorField unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ErrorField: """Test ErrorField - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ErrorField` """ model = ErrorField() @@ -49,6 +48,5 @@ def testErrorField(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_error_with_fields.py b/koyeb/api/test/test_error_with_fields.py similarity index 62% rename from koyeb/test/test_error_with_fields.py rename to koyeb/api/test/test_error_with_fields.py index 1ceb2066..cce8f2d4 100644 --- a/koyeb/test/test_error_with_fields.py +++ b/koyeb/api/test/test_error_with_fields.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.error_with_fields import ErrorWithFields - +from koyeb.api.models.error_with_fields import ErrorWithFields class TestErrorWithFields(unittest.TestCase): """ErrorWithFields unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ErrorWithFields: """Test ErrorWithFields - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ErrorWithFields` """ model = ErrorWithFields() @@ -40,7 +39,7 @@ def make_instance(self, include_optional) -> ErrorWithFields: code = '', message = '', fields = [ - koyeb.models.error_field.ErrorField( + koyeb.api.models.error_field.ErrorField( field = '', description = '', ) ] @@ -55,6 +54,5 @@ def testErrorWithFields(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_exec_command_io.py b/koyeb/api/test/test_exec_command_io.py similarity index 60% rename from koyeb/test/test_exec_command_io.py rename to koyeb/api/test/test_exec_command_io.py index b9998e73..e44b7301 100644 --- a/koyeb/test/test_exec_command_io.py +++ b/koyeb/api/test/test_exec_command_io.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.exec_command_io import ExecCommandIO - +from koyeb.api.models.exec_command_io import ExecCommandIO class TestExecCommandIO(unittest.TestCase): """ExecCommandIO unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandIO: """Test ExecCommandIO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ExecCommandIO` """ model = ExecCommandIO() @@ -49,6 +48,5 @@ def testExecCommandIO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_exec_command_reply.py b/koyeb/api/test/test_exec_command_reply.py similarity index 59% rename from koyeb/test/test_exec_command_reply.py rename to koyeb/api/test/test_exec_command_reply.py index a90e62bc..9876281c 100644 --- a/koyeb/test/test_exec_command_reply.py +++ b/koyeb/api/test/test_exec_command_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.exec_command_reply import ExecCommandReply - +from koyeb.api.models.exec_command_reply import ExecCommandReply class TestExecCommandReply(unittest.TestCase): """ExecCommandReply unit test stubs""" @@ -28,18 +27,18 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandReply: """Test ExecCommandReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ExecCommandReply` """ model = ExecCommandReply() if include_optional: return ExecCommandReply( - stdout = koyeb.models.exec_command_io.ExecCommandIO( + stdout = koyeb.api.models.exec_command_io.ExecCommandIO( data = 'YQ==', close = True, ), - stderr = koyeb.models.exec_command_io.ExecCommandIO( + stderr = koyeb.api.models.exec_command_io.ExecCommandIO( data = 'YQ==', close = True, ), exited = True, @@ -55,6 +54,5 @@ def testExecCommandReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_exec_command_request_body.py b/koyeb/api/test/test_exec_command_request_body.py similarity index 60% rename from koyeb/test/test_exec_command_request_body.py rename to koyeb/api/test/test_exec_command_request_body.py index 28281c17..df1b097a 100644 --- a/koyeb/test/test_exec_command_request_body.py +++ b/koyeb/api/test/test_exec_command_request_body.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.exec_command_request_body import ExecCommandRequestBody - +from koyeb.api.models.exec_command_request_body import ExecCommandRequestBody class TestExecCommandRequestBody(unittest.TestCase): """ExecCommandRequestBody unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandRequestBody: """Test ExecCommandRequestBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ExecCommandRequestBody` """ model = ExecCommandRequestBody() @@ -39,10 +38,10 @@ def make_instance(self, include_optional) -> ExecCommandRequestBody: command = [ '' ], - tty_size = koyeb.models.exec_command_request/terminal_size.ExecCommandRequest.TerminalSize( + tty_size = koyeb.api.models.exec_command_request/terminal_size.ExecCommandRequest.TerminalSize( height = 56, width = 56, ), - stdin = koyeb.models.exec_command_io.ExecCommandIO( + stdin = koyeb.api.models.exec_command_io.ExecCommandIO( data = 'YQ==', close = True, ), disable_tty = True @@ -57,6 +56,5 @@ def testExecCommandRequestBody(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_exec_command_request_id_type.py b/koyeb/api/test/test_exec_command_request_id_type.py new file mode 100644 index 00000000..c1a7e916 --- /dev/null +++ b/koyeb/api/test/test_exec_command_request_id_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.exec_command_request_id_type import ExecCommandRequestIdType + +class TestExecCommandRequestIdType(unittest.TestCase): + """ExecCommandRequestIdType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExecCommandRequestIdType(self): + """Test ExecCommandRequestIdType""" + # inst = ExecCommandRequestIdType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_exec_command_request_terminal_size.py b/koyeb/api/test/test_exec_command_request_terminal_size.py similarity index 63% rename from koyeb/test/test_exec_command_request_terminal_size.py rename to koyeb/api/test/test_exec_command_request_terminal_size.py index 3c9cc303..a97f7ff4 100644 --- a/koyeb/test/test_exec_command_request_terminal_size.py +++ b/koyeb/api/test/test_exec_command_request_terminal_size.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.exec_command_request_terminal_size import ( - ExecCommandRequestTerminalSize, -) - +from koyeb.api.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize class TestExecCommandRequestTerminalSize(unittest.TestCase): """ExecCommandRequestTerminalSize unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandRequestTerminalSize: """Test ExecCommandRequestTerminalSize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ExecCommandRequestTerminalSize` """ model = ExecCommandRequestTerminalSize() @@ -51,6 +48,5 @@ def testExecCommandRequestTerminalSize(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_gcp_container_registry_configuration.py b/koyeb/api/test/test_gcp_container_registry_configuration.py similarity index 63% rename from koyeb/test/test_gcp_container_registry_configuration.py rename to koyeb/api/test/test_gcp_container_registry_configuration.py index 19e49dc1..1a456250 100644 --- a/koyeb/test/test_gcp_container_registry_configuration.py +++ b/koyeb/api/test/test_gcp_container_registry_configuration.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.gcp_container_registry_configuration import ( - GCPContainerRegistryConfiguration, -) - +from koyeb.api.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration class TestGCPContainerRegistryConfiguration(unittest.TestCase): """GCPContainerRegistryConfiguration unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GCPContainerRegistryConfiguration: """Test GCPContainerRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GCPContainerRegistryConfiguration` """ model = GCPContainerRegistryConfiguration() @@ -51,6 +48,5 @@ def testGCPContainerRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_app_reply.py b/koyeb/api/test/test_get_app_reply.py similarity index 75% rename from koyeb/test/test_get_app_reply.py rename to koyeb/api/test/test_get_app_reply.py index 9edd8598..19745f42 100644 --- a/koyeb/test/test_get_app_reply.py +++ b/koyeb/api/test/test_get_app_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_app_reply import GetAppReply - +from koyeb.api.models.get_app_reply import GetAppReply class TestGetAppReply(unittest.TestCase): """GetAppReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetAppReply: """Test GetAppReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetAppReply` """ model = GetAppReply() if include_optional: return GetAppReply( - app = koyeb.models.app.App( + app = koyeb.api.models.app.App( id = '', name = '', organization_id = '', @@ -53,7 +52,7 @@ def make_instance(self, include_optional) -> GetAppReply: ], version = '', domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -65,8 +64,8 @@ def make_instance(self, include_optional) -> GetAppReply: verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), intended_cname = '', version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], ) ) @@ -80,6 +79,5 @@ def testGetAppReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_budget_reply.py b/koyeb/api/test/test_get_budget_reply.py similarity index 60% rename from koyeb/test/test_get_budget_reply.py rename to koyeb/api/test/test_get_budget_reply.py index d851f9b1..13dc234a 100644 --- a/koyeb/test/test_get_budget_reply.py +++ b/koyeb/api/test/test_get_budget_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_budget_reply import GetBudgetReply - +from koyeb.api.models.get_budget_reply import GetBudgetReply class TestGetBudgetReply(unittest.TestCase): """GetBudgetReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetBudgetReply: """Test GetBudgetReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetBudgetReply` """ model = GetBudgetReply() if include_optional: return GetBudgetReply( - budget = koyeb.models.budget.Budget( + budget = koyeb.api.models.budget.Budget( amount = '', thresholds = [ '' @@ -52,6 +51,5 @@ def testGetBudgetReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_catalog_instance_reply.py b/koyeb/api/test/test_get_catalog_instance_reply.py similarity index 72% rename from koyeb/test/test_get_catalog_instance_reply.py rename to koyeb/api/test/test_get_catalog_instance_reply.py index bb5dc1d5..966e3c92 100644 --- a/koyeb/test/test_get_catalog_instance_reply.py +++ b/koyeb/api/test/test_get_catalog_instance_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_catalog_instance_reply import GetCatalogInstanceReply - +from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply class TestGetCatalogInstanceReply(unittest.TestCase): """GetCatalogInstanceReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetCatalogInstanceReply: """Test GetCatalogInstanceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetCatalogInstanceReply` """ model = GetCatalogInstanceReply() if include_optional: return GetCatalogInstanceReply( - instance = koyeb.models.catalog_instance.CatalogInstance( + instance = koyeb.api.models.catalog_instance.CatalogInstance( id = '', description = '', vcpu = 56, @@ -58,7 +57,7 @@ def make_instance(self, include_optional) -> GetCatalogInstanceReply: '' ], type = '', - gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails( + gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails( count = 56, brand = '', memory = '', @@ -79,6 +78,5 @@ def testGetCatalogInstanceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_credential_reply.py b/koyeb/api/test/test_get_credential_reply.py similarity index 69% rename from koyeb/test/test_get_credential_reply.py rename to koyeb/api/test/test_get_credential_reply.py index 9fa468c5..725eaf6a 100644 --- a/koyeb/test/test_get_credential_reply.py +++ b/koyeb/api/test/test_get_credential_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_credential_reply import GetCredentialReply - +from koyeb.api.models.get_credential_reply import GetCredentialReply class TestGetCredentialReply(unittest.TestCase): """GetCredentialReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetCredentialReply: """Test GetCredentialReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetCredentialReply` """ model = GetCredentialReply() if include_optional: return GetCredentialReply( - credential = koyeb.models.credential.Credential( + credential = koyeb.api.models.credential.Credential( id = '', type = 'INVALID', name = '', @@ -58,6 +57,5 @@ def testGetCredentialReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_deployment_reply.py b/koyeb/api/test/test_get_deployment_reply.py similarity index 65% rename from koyeb/test/test_get_deployment_reply.py rename to koyeb/api/test/test_get_deployment_reply.py index 599ed0b1..c6625e37 100644 --- a/koyeb/test/test_get_deployment_reply.py +++ b/koyeb/api/test/test_get_deployment_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_deployment_reply import GetDeploymentReply - +from koyeb.api.models.get_deployment_reply import GetDeploymentReply class TestGetDeploymentReply(unittest.TestCase): """GetDeploymentReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetDeploymentReply: """Test GetDeploymentReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetDeploymentReply` """ model = GetDeploymentReply() if include_optional: return GetDeploymentReply( - deployment = koyeb.models.deployment.Deployment( + deployment = koyeb.api.models.deployment.Deployment( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -50,11 +49,11 @@ def make_instance(self, include_optional) -> GetDeploymentReply: parent_id = '', child_id = '', status = 'PENDING', - metadata = koyeb.models.deployment_metadata.DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -63,41 +62,40 @@ def make_instance(self, include_optional) -> GetDeploymentReply: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, protocol = 'tcp', ) ], ), - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', - type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -109,63 +107,63 @@ def make_instance(self, include_optional) -> GetDeploymentReply: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -179,21 +177,21 @@ def make_instance(self, include_optional) -> GetDeploymentReply: messages = [ '' ], - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -204,7 +202,7 @@ def make_instance(self, include_optional) -> GetDeploymentReply: wait_completion = True, ) ], ) ], ), - database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(), + database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo(), skip_build = True, role = 'INVALID', version = '', @@ -220,6 +218,5 @@ def testGetDeploymentReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_deployment_scaling_reply.py b/koyeb/api/test/test_get_deployment_scaling_reply.py similarity index 77% rename from koyeb/test/test_get_deployment_scaling_reply.py rename to koyeb/api/test/test_get_deployment_scaling_reply.py index 961149b0..8780cd82 100644 --- a/koyeb/test/test_get_deployment_scaling_reply.py +++ b/koyeb/api/test/test_get_deployment_scaling_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_deployment_scaling_reply import GetDeploymentScalingReply - +from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply class TestGetDeploymentScalingReply(unittest.TestCase): """GetDeploymentScalingReply unit test stubs""" @@ -28,20 +27,20 @@ def tearDown(self): def make_instance(self, include_optional) -> GetDeploymentScalingReply: """Test GetDeploymentScalingReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetDeploymentScalingReply` """ model = GetDeploymentScalingReply() if include_optional: return GetDeploymentScalingReply( replicas = [ - koyeb.models.get_deployment_scaling_reply_item.GetDeploymentScalingReplyItem( + koyeb.api.models.get_deployment_scaling_reply_item.GetDeploymentScalingReplyItem( region = '', replica_index = 56, instances = [ - koyeb.models.instance.Instance( + koyeb.api.models.instance.Instance( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -76,6 +75,5 @@ def testGetDeploymentScalingReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_deployment_scaling_reply_item.py b/koyeb/api/test/test_get_deployment_scaling_reply_item.py similarity index 78% rename from koyeb/test/test_get_deployment_scaling_reply_item.py rename to koyeb/api/test/test_get_deployment_scaling_reply_item.py index 4cb95b6e..1e141ae1 100644 --- a/koyeb/test/test_get_deployment_scaling_reply_item.py +++ b/koyeb/api/test/test_get_deployment_scaling_reply_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem - +from koyeb.api.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem class TestGetDeploymentScalingReplyItem(unittest.TestCase): """GetDeploymentScalingReplyItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetDeploymentScalingReplyItem: """Test GetDeploymentScalingReplyItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetDeploymentScalingReplyItem` """ model = GetDeploymentScalingReplyItem() @@ -39,7 +38,7 @@ def make_instance(self, include_optional) -> GetDeploymentScalingReplyItem: region = '', replica_index = 56, instances = [ - koyeb.models.instance.Instance( + koyeb.api.models.instance.Instance( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -73,6 +72,5 @@ def testGetDeploymentScalingReplyItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_domain_reply.py b/koyeb/api/test/test_get_domain_reply.py similarity index 66% rename from koyeb/test/test_get_domain_reply.py rename to koyeb/api/test/test_get_domain_reply.py index 0caa39f8..ad137805 100644 --- a/koyeb/test/test_get_domain_reply.py +++ b/koyeb/api/test/test_get_domain_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_domain_reply import GetDomainReply - +from koyeb.api.models.get_domain_reply import GetDomainReply class TestGetDomainReply(unittest.TestCase): """GetDomainReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetDomainReply: """Test GetDomainReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetDomainReply` """ model = GetDomainReply() if include_optional: return GetDomainReply( - domain = koyeb.models.domain.Domain( + domain = koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -52,8 +51,8 @@ def make_instance(self, include_optional) -> GetDomainReply: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ) else: @@ -66,6 +65,5 @@ def testGetDomainReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_github_installation_reply.py b/koyeb/api/test/test_get_github_installation_reply.py similarity index 71% rename from koyeb/test/test_get_github_installation_reply.py rename to koyeb/api/test/test_get_github_installation_reply.py index f30654e5..41bce9ed 100644 --- a/koyeb/test/test_get_github_installation_reply.py +++ b/koyeb/api/test/test_get_github_installation_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_github_installation_reply import GetGithubInstallationReply - +from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply class TestGetGithubInstallationReply(unittest.TestCase): """GetGithubInstallationReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetGithubInstallationReply: """Test GetGithubInstallationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetGithubInstallationReply` """ model = GetGithubInstallationReply() @@ -57,6 +56,5 @@ def testGetGithubInstallationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_idenfy_token_reply.py b/koyeb/api/test/test_get_idenfy_token_reply.py similarity index 61% rename from koyeb/test/test_get_idenfy_token_reply.py rename to koyeb/api/test/test_get_idenfy_token_reply.py index 524578d1..123bff94 100644 --- a/koyeb/test/test_get_idenfy_token_reply.py +++ b/koyeb/api/test/test_get_idenfy_token_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_idenfy_token_reply import GetIdenfyTokenReply - +from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply class TestGetIdenfyTokenReply(unittest.TestCase): """GetIdenfyTokenReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetIdenfyTokenReply: """Test GetIdenfyTokenReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetIdenfyTokenReply` """ model = GetIdenfyTokenReply() @@ -48,6 +47,5 @@ def testGetIdenfyTokenReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_instance_reply.py b/koyeb/api/test/test_get_instance_reply.py similarity index 76% rename from koyeb/test/test_get_instance_reply.py rename to koyeb/api/test/test_get_instance_reply.py index 9e7ef781..11d38f97 100644 --- a/koyeb/test/test_get_instance_reply.py +++ b/koyeb/api/test/test_get_instance_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_instance_reply import GetInstanceReply - +from koyeb.api.models.get_instance_reply import GetInstanceReply class TestGetInstanceReply(unittest.TestCase): """GetInstanceReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetInstanceReply: """Test GetInstanceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetInstanceReply` """ model = GetInstanceReply() if include_optional: return GetInstanceReply( - instance = koyeb.models.instance.Instance( + instance = koyeb.api.models.instance.Instance( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -69,6 +68,5 @@ def testGetInstanceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_intercom_profile_reply.py b/koyeb/api/test/test_get_intercom_profile_reply.py similarity index 61% rename from koyeb/test/test_get_intercom_profile_reply.py rename to koyeb/api/test/test_get_intercom_profile_reply.py index 2421f906..7d8d97b8 100644 --- a/koyeb/test/test_get_intercom_profile_reply.py +++ b/koyeb/api/test/test_get_intercom_profile_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_intercom_profile_reply import GetIntercomProfileReply - +from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply class TestGetIntercomProfileReply(unittest.TestCase): """GetIntercomProfileReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetIntercomProfileReply: """Test GetIntercomProfileReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetIntercomProfileReply` """ model = GetIntercomProfileReply() @@ -48,6 +47,5 @@ def testGetIntercomProfileReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_metrics_reply.py b/koyeb/api/test/test_get_metrics_reply.py similarity index 61% rename from koyeb/test/test_get_metrics_reply.py rename to koyeb/api/test/test_get_metrics_reply.py index b816e087..37ec2186 100644 --- a/koyeb/test/test_get_metrics_reply.py +++ b/koyeb/api/test/test_get_metrics_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_metrics_reply import GetMetricsReply - +from koyeb.api.models.get_metrics_reply import GetMetricsReply class TestGetMetricsReply(unittest.TestCase): """GetMetricsReply unit test stubs""" @@ -28,21 +27,21 @@ def tearDown(self): def make_instance(self, include_optional) -> GetMetricsReply: """Test GetMetricsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetMetricsReply` """ model = GetMetricsReply() if include_optional: return GetMetricsReply( metrics = [ - koyeb.models.get_metrics_reply/metric.GetMetricsReply.Metric( + koyeb.api.models.get_metrics_reply/metric.GetMetricsReply.Metric( labels = { 'key' : '' }, samples = [ - koyeb.models.sample.Sample( + koyeb.api.models.sample.Sample( timestamp = '', value = 1.337, ) ], ) @@ -58,6 +57,5 @@ def testGetMetricsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_metrics_reply_metric.py b/koyeb/api/test/test_get_metrics_reply_metric.py similarity index 63% rename from koyeb/test/test_get_metrics_reply_metric.py rename to koyeb/api/test/test_get_metrics_reply_metric.py index 772b2ce9..c91e8ef2 100644 --- a/koyeb/test/test_get_metrics_reply_metric.py +++ b/koyeb/api/test/test_get_metrics_reply_metric.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_metrics_reply_metric import GetMetricsReplyMetric - +from koyeb.api.models.get_metrics_reply_metric import GetMetricsReplyMetric class TestGetMetricsReplyMetric(unittest.TestCase): """GetMetricsReplyMetric unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetMetricsReplyMetric: """Test GetMetricsReplyMetric - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetMetricsReplyMetric` """ model = GetMetricsReplyMetric() @@ -40,7 +39,7 @@ def make_instance(self, include_optional) -> GetMetricsReplyMetric: 'key' : '' }, samples = [ - koyeb.models.sample.Sample( + koyeb.api.models.sample.Sample( timestamp = '', value = 1.337, ) ] @@ -55,6 +54,5 @@ def testGetMetricsReplyMetric(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_o_auth_options_reply.py b/koyeb/api/test/test_get_o_auth_options_reply.py similarity index 61% rename from koyeb/test/test_get_o_auth_options_reply.py rename to koyeb/api/test/test_get_o_auth_options_reply.py index 8a8fa0eb..cbec87e7 100644 --- a/koyeb/test/test_get_o_auth_options_reply.py +++ b/koyeb/api/test/test_get_o_auth_options_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_o_auth_options_reply import GetOAuthOptionsReply - +from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply class TestGetOAuthOptionsReply(unittest.TestCase): """GetOAuthOptionsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOAuthOptionsReply: """Test GetOAuthOptionsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetOAuthOptionsReply` """ model = GetOAuthOptionsReply() if include_optional: return GetOAuthOptionsReply( oauth_providers = [ - koyeb.models.o_auth_provider.OAuthProvider( + koyeb.api.models.o_auth_provider.OAuthProvider( id = '', url = '', state = '', ) @@ -53,6 +52,5 @@ def testGetOAuthOptionsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_organization_invitation_reply.py b/koyeb/api/test/test_get_organization_invitation_reply.py similarity index 67% rename from koyeb/test/test_get_organization_invitation_reply.py rename to koyeb/api/test/test_get_organization_invitation_reply.py index 068164bd..6c5759ed 100644 --- a/koyeb/test/test_get_organization_invitation_reply.py +++ b/koyeb/api/test/test_get_organization_invitation_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_organization_invitation_reply import ( - GetOrganizationInvitationReply, -) - +from koyeb.api.models.get_organization_invitation_reply import GetOrganizationInvitationReply class TestGetOrganizationInvitationReply(unittest.TestCase): """GetOrganizationInvitationReply unit test stubs""" @@ -30,27 +27,27 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationInvitationReply: """Test GetOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetOrganizationInvitationReply` """ model = GetOrganizationInvitationReply() if include_optional: return GetOrganizationInvitationReply( - invitation = koyeb.models.organization_invitation.OrganizationInvitation( + invitation = koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -58,7 +55,7 @@ def make_instance(self, include_optional) -> GetOrganizationInvitationReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -76,6 +73,5 @@ def testGetOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_organization_reply.py b/koyeb/api/test/test_get_organization_reply.py similarity index 74% rename from koyeb/test/test_get_organization_reply.py rename to koyeb/api/test/test_get_organization_reply.py index e13f9dac..dda1c4d2 100644 --- a/koyeb/test/test_get_organization_reply.py +++ b/koyeb/api/test/test_get_organization_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_organization_reply import GetOrganizationReply - +from koyeb.api.models.get_organization_reply import GetOrganizationReply class TestGetOrganizationReply(unittest.TestCase): """GetOrganizationReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationReply: """Test GetOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetOrganizationReply` """ model = GetOrganizationReply() if include_optional: return GetOrganizationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> GetOrganizationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testGetOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_organization_summary_reply.py b/koyeb/api/test/test_get_organization_summary_reply.py similarity index 63% rename from koyeb/test/test_get_organization_summary_reply.py rename to koyeb/api/test/test_get_organization_summary_reply.py index 7884d4be..1356df4d 100644 --- a/koyeb/test/test_get_organization_summary_reply.py +++ b/koyeb/api/test/test_get_organization_summary_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_organization_summary_reply import GetOrganizationSummaryReply - +from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply class TestGetOrganizationSummaryReply(unittest.TestCase): """GetOrganizationSummaryReply unit test stubs""" @@ -28,49 +27,49 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationSummaryReply: """Test GetOrganizationSummaryReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetOrganizationSummaryReply` """ model = GetOrganizationSummaryReply() if include_optional: return GetOrganizationSummaryReply( - summary = koyeb.models.organization_summary.OrganizationSummary( + summary = koyeb.api.models.organization_summary.OrganizationSummary( organization_id = '', - instances = koyeb.models.instances_summary.InstancesSummary( + instances = koyeb.api.models.instances_summary.InstancesSummary( total = '', by_type = { 'key' : '' }, ), - apps = koyeb.models.apps_summary.AppsSummary( + apps = koyeb.api.models.apps_summary.AppsSummary( total = '', by_status = { 'key' : '' }, ), services = { - 'key' : koyeb.models.service_summary.ServiceSummary( + 'key' : koyeb.api.models.service_summary.ServiceSummary( total = '', by_status = { 'key' : '' }, ) }, - domains = koyeb.models.domains_summary.DomainsSummary( + domains = koyeb.api.models.domains_summary.DomainsSummary( total = '', by_status = { 'key' : '' }, ), - secrets = koyeb.models.secrets_summary.SecretsSummary( + secrets = koyeb.api.models.secrets_summary.SecretsSummary( total = '', by_type = { 'key' : '' }, ), - neon_postgres = koyeb.models.neon_postgres_summary.NeonPostgresSummary( + neon_postgres = koyeb.api.models.neon_postgres_summary.NeonPostgresSummary( total = '', by_instance_type = { 'key' : '' }, ), - members = koyeb.models.members_summary.MembersSummary( + members = koyeb.api.models.members_summary.MembersSummary( total = '', invitations_by_status = { 'key' : '' @@ -86,6 +85,5 @@ def testGetOrganizationSummaryReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_organization_usage_details_reply.py b/koyeb/api/test/test_get_organization_usage_details_reply.py similarity index 77% rename from koyeb/test/test_get_organization_usage_details_reply.py rename to koyeb/api/test/test_get_organization_usage_details_reply.py index 02c612b4..f800ce5a 100644 --- a/koyeb/test/test_get_organization_usage_details_reply.py +++ b/koyeb/api/test/test_get_organization_usage_details_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_organization_usage_details_reply import ( - GetOrganizationUsageDetailsReply, -) - +from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply class TestGetOrganizationUsageDetailsReply(unittest.TestCase): """GetOrganizationUsageDetailsReply unit test stubs""" @@ -30,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationUsageDetailsReply: """Test GetOrganizationUsageDetailsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetOrganizationUsageDetailsReply` """ model = GetOrganizationUsageDetailsReply() if include_optional: return GetOrganizationUsageDetailsReply( usage_details = [ - koyeb.models.usage_details.UsageDetails( + koyeb.api.models.usage_details.UsageDetails( organization_id = '', instance_id = '', app_id = '', @@ -55,7 +52,7 @@ def make_instance(self, include_optional) -> GetOrganizationUsageDetailsReply: terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], database_details = [ - koyeb.models.database_usage_details.DatabaseUsageDetails( + koyeb.api.models.database_usage_details.DatabaseUsageDetails( organization_id = '', app_id = '', app_name = '', @@ -81,6 +78,5 @@ def testGetOrganizationUsageDetailsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_organization_usage_reply.py b/koyeb/api/test/test_get_organization_usage_reply.py similarity index 68% rename from koyeb/test/test_get_organization_usage_reply.py rename to koyeb/api/test/test_get_organization_usage_reply.py index 9da5fa9c..12649952 100644 --- a/koyeb/test/test_get_organization_usage_reply.py +++ b/koyeb/api/test/test_get_organization_usage_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_organization_usage_reply import GetOrganizationUsageReply - +from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply class TestGetOrganizationUsageReply(unittest.TestCase): """GetOrganizationUsageReply unit test stubs""" @@ -28,38 +27,38 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationUsageReply: """Test GetOrganizationUsageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetOrganizationUsageReply` """ model = GetOrganizationUsageReply() if include_optional: return GetOrganizationUsageReply( - usage = koyeb.models.usage.Usage( + usage = koyeb.api.models.usage.Usage( organization_id = '', periods = { - 'key' : koyeb.models.period_usage.PeriodUsage( + 'key' : koyeb.api.models.period_usage.PeriodUsage( starting_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ending_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), apps = [ - koyeb.models.app_usage.AppUsage( + koyeb.api.models.app_usage.AppUsage( app_id = '', app_name = '', services = [ - koyeb.models.service_usage.ServiceUsage( + koyeb.api.models.service_usage.ServiceUsage( service_id = '', service_name = '', regions = { - 'key' : koyeb.models.region_usage.RegionUsage( + 'key' : koyeb.api.models.region_usage.RegionUsage( instances = { - 'key' : koyeb.models.instance_usage.InstanceUsage( + 'key' : koyeb.api.models.instance_usage.InstanceUsage( duration_seconds = 56, ) }, ) }, ) ], databases = [ - koyeb.models.database_usage.DatabaseUsage( + koyeb.api.models.database_usage.DatabaseUsage( service_id = '', service_name = '', compute_time_seconds = 56, @@ -78,6 +77,5 @@ def testGetOrganizationUsageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_payment_method_reply.py b/koyeb/api/test/test_get_payment_method_reply.py similarity index 76% rename from koyeb/test/test_get_payment_method_reply.py rename to koyeb/api/test/test_get_payment_method_reply.py index 8a127244..90c8f0d8 100644 --- a/koyeb/test/test_get_payment_method_reply.py +++ b/koyeb/api/test/test_get_payment_method_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_payment_method_reply import GetPaymentMethodReply - +from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply class TestGetPaymentMethodReply(unittest.TestCase): """GetPaymentMethodReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetPaymentMethodReply: """Test GetPaymentMethodReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetPaymentMethodReply` """ model = GetPaymentMethodReply() if include_optional: return GetPaymentMethodReply( - payment_method = koyeb.models.payment_method.PaymentMethod( + payment_method = koyeb.api.models.payment_method.PaymentMethod( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -71,6 +70,5 @@ def testGetPaymentMethodReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_persistent_volume_reply.py b/koyeb/api/test/test_get_persistent_volume_reply.py similarity index 69% rename from koyeb/test/test_get_persistent_volume_reply.py rename to koyeb/api/test/test_get_persistent_volume_reply.py index 1e701cce..fa90d662 100644 --- a/koyeb/test/test_get_persistent_volume_reply.py +++ b/koyeb/api/test/test_get_persistent_volume_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_persistent_volume_reply import GetPersistentVolumeReply - +from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply class TestGetPersistentVolumeReply(unittest.TestCase): """GetPersistentVolumeReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetPersistentVolumeReply: """Test GetPersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetPersistentVolumeReply` """ model = GetPersistentVolumeReply() if include_optional: return GetPersistentVolumeReply( - volume = koyeb.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( + volume = koyeb.api.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( id = '', name = '', snapshot_id = '', @@ -62,6 +61,5 @@ def testGetPersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_quotas_reply.py b/koyeb/api/test/test_get_quotas_reply.py similarity index 69% rename from koyeb/test/test_get_quotas_reply.py rename to koyeb/api/test/test_get_quotas_reply.py index 02711d72..46e88848 100644 --- a/koyeb/test/test_get_quotas_reply.py +++ b/koyeb/api/test/test_get_quotas_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_quotas_reply import GetQuotasReply - +from koyeb.api.models.get_quotas_reply import GetQuotasReply class TestGetQuotasReply(unittest.TestCase): """GetQuotasReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetQuotasReply: """Test GetQuotasReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetQuotasReply` """ model = GetQuotasReply() if include_optional: return GetQuotasReply( - quotas = koyeb.models.quotas.Quotas( + quotas = koyeb.api.models.quotas.Quotas( apps = '', services = '', domains = '', @@ -54,13 +53,13 @@ def make_instance(self, include_optional) -> GetQuotasReply: 'key' : '' }, persistent_volumes_by_region = { - 'key' : koyeb.models.persistent_volume_quotas.PersistentVolumeQuotas( + 'key' : koyeb.api.models.persistent_volume_quotas.PersistentVolumeQuotas( max_total_size = 56, max_volume_size = 56, max_per_instance_size = 56, ) }, custom_domains = '', - domains_load_balancer = koyeb.models.domain_load_balancer_quotas.DomainLoadBalancerQuotas( + domains_load_balancer = koyeb.api.models.domain_load_balancer_quotas.DomainLoadBalancerQuotas( max_koyeb = 56, ), metrics_retention = 56, logs_retention = 56, @@ -68,14 +67,15 @@ def make_instance(self, include_optional) -> GetQuotasReply: '' ], proxy_ports = 56, - scale_to_zero = koyeb.models.scale_to_zero_quotas.ScaleToZeroQuotas( + scale_to_zero = koyeb.api.models.scale_to_zero_quotas.ScaleToZeroQuotas( is_deep_sleep_enabled = True, deep_sleep_idle_delay_min = 56, deep_sleep_idle_delay_max = 56, is_light_sleep_enabled = True, light_sleep_idle_delay_min = 56, light_sleep_idle_delay_max = 56, ), - archives = '', ) + archives = '', + archive_max_size_mb = '', ) ) else: return GetQuotasReply( @@ -87,6 +87,5 @@ def testGetQuotasReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_region_reply.py b/koyeb/api/test/test_get_region_reply.py similarity index 67% rename from koyeb/test/test_get_region_reply.py rename to koyeb/api/test/test_get_region_reply.py index 7034ddc2..f5898eb4 100644 --- a/koyeb/test/test_get_region_reply.py +++ b/koyeb/api/test/test_get_region_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_region_reply import GetRegionReply - +from koyeb.api.models.get_region_reply import GetRegionReply class TestGetRegionReply(unittest.TestCase): """GetRegionReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetRegionReply: """Test GetRegionReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetRegionReply` """ model = GetRegionReply() if include_optional: return GetRegionReply( - region = koyeb.models.region.Region( + region = koyeb.api.models.region.Region( id = '', name = '', coordinates = [ @@ -62,6 +61,5 @@ def testGetRegionReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_regional_deployment_reply.py b/koyeb/api/test/test_get_regional_deployment_reply.py similarity index 68% rename from koyeb/test/test_get_regional_deployment_reply.py rename to koyeb/api/test/test_get_regional_deployment_reply.py index c3402ea0..1b7f5fb4 100644 --- a/koyeb/test/test_get_regional_deployment_reply.py +++ b/koyeb/api/test/test_get_regional_deployment_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_regional_deployment_reply import GetRegionalDeploymentReply - +from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply class TestGetRegionalDeploymentReply(unittest.TestCase): """GetRegionalDeploymentReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetRegionalDeploymentReply: """Test GetRegionalDeploymentReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetRegionalDeploymentReply` """ model = GetRegionalDeploymentReply() if include_optional: return GetRegionalDeploymentReply( - regional_deployment = koyeb.models.regional_deployment.RegionalDeployment( + regional_deployment = koyeb.api.models.regional_deployment.RegionalDeployment( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -55,44 +54,44 @@ def make_instance(self, include_optional) -> GetRegionalDeploymentReply: messages = [ '' ], - definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition( + definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.route.Route( + koyeb.api.models.route.Route( port = 56, path = '', ) ], ports = [ - koyeb.models.port.Port( + koyeb.api.models.port.Port( port = 56, protocol = '', ) ], env = [ - koyeb.models.env.Env( + koyeb.api.models.env.Env( key = '', value = '', secret = '', ) ], region = '', - scaling = koyeb.models.scaling.Scaling( + scaling = koyeb.api.models.scaling.Scaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) @@ -100,37 +99,37 @@ def make_instance(self, include_optional) -> GetRegionalDeploymentReply: instance_type = '', deployment_group = '', health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.regional_deployment_volume.RegionalDeploymentVolume( + koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -141,7 +140,7 @@ def make_instance(self, include_optional) -> GetRegionalDeploymentReply: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -150,31 +149,31 @@ def make_instance(self, include_optional) -> GetRegionalDeploymentReply: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), datacenters = [ '' ], - metadata = koyeb.models.regional_deployment_metadata.RegionalDeploymentMetadata(), - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + metadata = koyeb.api.models.regional_deployment_metadata.RegionalDeploymentMetadata(), + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -200,6 +199,5 @@ def testGetRegionalDeploymentReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_secret_reply.py b/koyeb/api/test/test_get_secret_reply.py similarity index 54% rename from koyeb/test/test_get_secret_reply.py rename to koyeb/api/test/test_get_secret_reply.py index 48a5f668..8348d5fc 100644 --- a/koyeb/test/test_get_secret_reply.py +++ b/koyeb/api/test/test_get_secret_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_secret_reply import GetSecretReply - +from koyeb.api.models.get_secret_reply import GetSecretReply class TestGetSecretReply(unittest.TestCase): """GetSecretReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetSecretReply: """Test GetSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetSecretReply` """ model = GetSecretReply() if include_optional: return GetSecretReply( - secret = koyeb.models.secret.Secret( + secret = koyeb.api.models.secret.Secret( id = '', name = '', organization_id = '', @@ -44,30 +43,30 @@ def make_instance(self, include_optional) -> GetSecretReply: updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), value = '', - docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( + docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( username = '', password = '', ), - private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration( + private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration( username = '', password = '', url = '', ), - digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( + digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( username = '', password = '', ), - github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration( + github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration( username = '', password = '', ), - gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration( + gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration( username = '', password = '', ), - gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( + gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( keyfile_content = '', url = '', ), - azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( + azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( registry_name = '', username = '', password = '', ), - database_role_password = koyeb.models.database_role_password.DatabaseRolePassword( + database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword( username = '', password = '', ), ) ) @@ -81,6 +80,5 @@ def testGetSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_service_reply.py b/koyeb/api/test/test_get_service_reply.py similarity index 70% rename from koyeb/test/test_get_service_reply.py rename to koyeb/api/test/test_get_service_reply.py index 017347eb..65f69106 100644 --- a/koyeb/test/test_get_service_reply.py +++ b/koyeb/api/test/test_get_service_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_service_reply import GetServiceReply - +from koyeb.api.models.get_service_reply import GetServiceReply class TestGetServiceReply(unittest.TestCase): """GetServiceReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetServiceReply: """Test GetServiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetServiceReply` """ model = GetServiceReply() if include_optional: return GetServiceReply( - service = koyeb.models.service.Service( + service = koyeb.api.models.service.Service( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -57,16 +56,16 @@ def make_instance(self, include_optional) -> GetServiceReply: active_deployment_id = '', latest_deployment_id = '', last_provisioned_deployment_id = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ), ) + auto_release = koyeb.api.models.auto_release.AutoRelease(), ), ) ) else: return GetServiceReply( @@ -78,6 +77,5 @@ def testGetServiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_snapshot_reply.py b/koyeb/api/test/test_get_snapshot_reply.py similarity index 70% rename from koyeb/test/test_get_snapshot_reply.py rename to koyeb/api/test/test_get_snapshot_reply.py index a2dbbf0d..b4ec36d0 100644 --- a/koyeb/test/test_get_snapshot_reply.py +++ b/koyeb/api/test/test_get_snapshot_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_snapshot_reply import GetSnapshotReply - +from koyeb.api.models.get_snapshot_reply import GetSnapshotReply class TestGetSnapshotReply(unittest.TestCase): """GetSnapshotReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetSnapshotReply: """Test GetSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetSnapshotReply` """ model = GetSnapshotReply() if include_optional: return GetSnapshotReply( - snapshot = koyeb.models.snapshot.Snapshot( + snapshot = koyeb.api.models.snapshot.Snapshot( id = '', name = '', size = 56, @@ -59,6 +58,5 @@ def testGetSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_subscription_reply.py b/koyeb/api/test/test_get_subscription_reply.py similarity index 77% rename from koyeb/test/test_get_subscription_reply.py rename to koyeb/api/test/test_get_subscription_reply.py index 1f8d51ac..ab11b455 100644 --- a/koyeb/test/test_get_subscription_reply.py +++ b/koyeb/api/test/test_get_subscription_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_subscription_reply import GetSubscriptionReply - +from koyeb.api.models.get_subscription_reply import GetSubscriptionReply class TestGetSubscriptionReply(unittest.TestCase): """GetSubscriptionReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetSubscriptionReply: """Test GetSubscriptionReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetSubscriptionReply` """ model = GetSubscriptionReply() if include_optional: return GetSubscriptionReply( - subscription = koyeb.models.subscription.Subscription( + subscription = koyeb.api.models.subscription.Subscription( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -58,7 +57,7 @@ def make_instance(self, include_optional) -> GetSubscriptionReply: amount_payable = '', amount_paid = '', amount_remaining = '', - payment_failure = koyeb.models.subscription/payment_failure.Subscription.PaymentFailure( + payment_failure = koyeb.api.models.subscription/payment_failure.Subscription.PaymentFailure( failed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), next_attempt = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), attempt_count = '', @@ -68,7 +67,7 @@ def make_instance(self, include_optional) -> GetSubscriptionReply: error_message = '', payment_method_required = True, redirect_url = '', - stripe_sdk = koyeb.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK( + stripe_sdk = koyeb.api.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK( client_secret_key = '', raw_json = '', ), ), trialing = True, @@ -86,6 +85,5 @@ def testGetSubscriptionReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_user_organization_invitation_reply.py b/koyeb/api/test/test_get_user_organization_invitation_reply.py similarity index 67% rename from koyeb/test/test_get_user_organization_invitation_reply.py rename to koyeb/api/test/test_get_user_organization_invitation_reply.py index f498a070..308b3151 100644 --- a/koyeb/test/test_get_user_organization_invitation_reply.py +++ b/koyeb/api/test/test_get_user_organization_invitation_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_user_organization_invitation_reply import ( - GetUserOrganizationInvitationReply, -) - +from koyeb.api.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply class TestGetUserOrganizationInvitationReply(unittest.TestCase): """GetUserOrganizationInvitationReply unit test stubs""" @@ -30,27 +27,27 @@ def tearDown(self): def make_instance(self, include_optional) -> GetUserOrganizationInvitationReply: """Test GetUserOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetUserOrganizationInvitationReply` """ model = GetUserOrganizationInvitationReply() if include_optional: return GetUserOrganizationInvitationReply( - invitation = koyeb.models.organization_invitation.OrganizationInvitation( + invitation = koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -58,7 +55,7 @@ def make_instance(self, include_optional) -> GetUserOrganizationInvitationReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -76,6 +73,5 @@ def testGetUserOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_get_user_settings_reply.py b/koyeb/api/test/test_get_user_settings_reply.py similarity index 60% rename from koyeb/test/test_get_user_settings_reply.py rename to koyeb/api/test/test_get_user_settings_reply.py index f6e93fdf..8648bc2a 100644 --- a/koyeb/test/test_get_user_settings_reply.py +++ b/koyeb/api/test/test_get_user_settings_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.get_user_settings_reply import GetUserSettingsReply - +from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply class TestGetUserSettingsReply(unittest.TestCase): """GetUserSettingsReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> GetUserSettingsReply: """Test GetUserSettingsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GetUserSettingsReply` """ model = GetUserSettingsReply() if include_optional: return GetUserSettingsReply( - settings = koyeb.models.user_settings.UserSettings( + settings = koyeb.api.models.user_settings.UserSettings( id = '', user_id = '', failed_deployment_email_notification = True, ) @@ -51,6 +50,5 @@ def testGetUserSettingsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_git_deployment_metadata.py b/koyeb/api/test/test_git_deployment_metadata.py similarity index 61% rename from koyeb/test/test_git_deployment_metadata.py rename to koyeb/api/test/test_git_deployment_metadata.py index 85c55b7d..4310edb1 100644 --- a/koyeb/test/test_git_deployment_metadata.py +++ b/koyeb/api/test/test_git_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.git_deployment_metadata import GitDeploymentMetadata - +from koyeb.api.models.git_deployment_metadata import GitDeploymentMetadata class TestGitDeploymentMetadata(unittest.TestCase): """GitDeploymentMetadata unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> GitDeploymentMetadata: """Test GitDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GitDeploymentMetadata` """ model = GitDeploymentMetadata() if include_optional: return GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ) @@ -52,6 +51,5 @@ def testGitDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_git_env_deployment_metadata.py b/koyeb/api/test/test_git_env_deployment_metadata.py similarity index 63% rename from koyeb/test/test_git_env_deployment_metadata.py rename to koyeb/api/test/test_git_env_deployment_metadata.py index 15ab5561..948c92d2 100644 --- a/koyeb/test/test_git_env_deployment_metadata.py +++ b/koyeb/api/test/test_git_env_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.git_env_deployment_metadata import GitEnvDeploymentMetadata - +from koyeb.api.models.git_env_deployment_metadata import GitEnvDeploymentMetadata class TestGitEnvDeploymentMetadata(unittest.TestCase): """GitEnvDeploymentMetadata unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitEnvDeploymentMetadata: """Test GitEnvDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GitEnvDeploymentMetadata` """ model = GitEnvDeploymentMetadata() @@ -50,6 +49,5 @@ def testGitEnvDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_git_hub_registry_configuration.py b/koyeb/api/test/test_git_hub_registry_configuration.py similarity index 63% rename from koyeb/test/test_git_hub_registry_configuration.py rename to koyeb/api/test/test_git_hub_registry_configuration.py index 91718876..a577f85d 100644 --- a/koyeb/test/test_git_hub_registry_configuration.py +++ b/koyeb/api/test/test_git_hub_registry_configuration.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.git_hub_registry_configuration import GitHubRegistryConfiguration - +from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration class TestGitHubRegistryConfiguration(unittest.TestCase): """GitHubRegistryConfiguration unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitHubRegistryConfiguration: """Test GitHubRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GitHubRegistryConfiguration` """ model = GitHubRegistryConfiguration() @@ -49,6 +48,5 @@ def testGitHubRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_git_lab_registry_configuration.py b/koyeb/api/test/test_git_lab_registry_configuration.py similarity index 63% rename from koyeb/test/test_git_lab_registry_configuration.py rename to koyeb/api/test/test_git_lab_registry_configuration.py index d1e4ba8b..69c63f3b 100644 --- a/koyeb/test/test_git_lab_registry_configuration.py +++ b/koyeb/api/test/test_git_lab_registry_configuration.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.git_lab_registry_configuration import GitLabRegistryConfiguration - +from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration class TestGitLabRegistryConfiguration(unittest.TestCase): """GitLabRegistryConfiguration unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitLabRegistryConfiguration: """Test GitLabRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GitLabRegistryConfiguration` """ model = GitLabRegistryConfiguration() @@ -49,6 +48,5 @@ def testGitLabRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_git_source.py b/koyeb/api/test/test_git_source.py similarity index 67% rename from koyeb/test/test_git_source.py rename to koyeb/api/test/test_git_source.py index 7f5a51bc..6ecf081b 100644 --- a/koyeb/test/test_git_source.py +++ b/koyeb/api/test/test_git_source.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.git_source import GitSource - +from koyeb.api.models.git_source import GitSource class TestGitSource(unittest.TestCase): """GitSource unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitSource: """Test GitSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GitSource` """ model = GitSource() @@ -44,11 +43,11 @@ def make_instance(self, include_optional) -> GitSource: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), - docker = koyeb.models.docker_builder.DockerBuilder( + docker = koyeb.api.models.docker_builder.DockerBuilder( dockerfile = '', entrypoint = [ '' @@ -70,6 +69,5 @@ def testGitSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_github_installation_reply.py b/koyeb/api/test/test_github_installation_reply.py similarity index 63% rename from koyeb/test/test_github_installation_reply.py rename to koyeb/api/test/test_github_installation_reply.py index a34536b9..a7c1f710 100644 --- a/koyeb/test/test_github_installation_reply.py +++ b/koyeb/api/test/test_github_installation_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.github_installation_reply import GithubInstallationReply - +from koyeb.api.models.github_installation_reply import GithubInstallationReply class TestGithubInstallationReply(unittest.TestCase): """GithubInstallationReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GithubInstallationReply: """Test GithubInstallationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GithubInstallationReply` """ model = GithubInstallationReply() @@ -51,6 +50,5 @@ def testGithubInstallationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_github_installation_request.py b/koyeb/api/test/test_github_installation_request.py similarity index 62% rename from koyeb/test/test_github_installation_request.py rename to koyeb/api/test/test_github_installation_request.py index 5d92a778..0013a069 100644 --- a/koyeb/test/test_github_installation_request.py +++ b/koyeb/api/test/test_github_installation_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.github_installation_request import GithubInstallationRequest - +from koyeb.api.models.github_installation_request import GithubInstallationRequest class TestGithubInstallationRequest(unittest.TestCase): """GithubInstallationRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GithubInstallationRequest: """Test GithubInstallationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GithubInstallationRequest` """ model = GithubInstallationRequest() @@ -48,6 +47,5 @@ def testGithubInstallationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_google_protobuf_any.py b/koyeb/api/test/test_google_protobuf_any.py similarity index 60% rename from koyeb/test/test_google_protobuf_any.py rename to koyeb/api/test/test_google_protobuf_any.py index b8f56080..f6b00e52 100644 --- a/koyeb/test/test_google_protobuf_any.py +++ b/koyeb/api/test/test_google_protobuf_any.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.google_protobuf_any import GoogleProtobufAny - +from koyeb.api.models.google_protobuf_any import GoogleProtobufAny class TestGoogleProtobufAny(unittest.TestCase): """GoogleProtobufAny unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GoogleProtobufAny: """Test GoogleProtobufAny - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GoogleProtobufAny` """ model = GoogleProtobufAny() @@ -48,6 +47,5 @@ def testGoogleProtobufAny(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_google_protobuf_null_value.py b/koyeb/api/test/test_google_protobuf_null_value.py new file mode 100644 index 00000000..bf12fd53 --- /dev/null +++ b/koyeb/api/test/test_google_protobuf_null_value.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.google_protobuf_null_value import GoogleProtobufNullValue + +class TestGoogleProtobufNullValue(unittest.TestCase): + """GoogleProtobufNullValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGoogleProtobufNullValue(self): + """Test GoogleProtobufNullValue""" + # inst = GoogleProtobufNullValue() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_google_rpc_status.py b/koyeb/api/test/test_google_rpc_status.py similarity index 64% rename from koyeb/test/test_google_rpc_status.py rename to koyeb/api/test/test_google_rpc_status.py index 4b0719d8..2d965688 100644 --- a/koyeb/test/test_google_rpc_status.py +++ b/koyeb/api/test/test_google_rpc_status.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.google_rpc_status import GoogleRpcStatus - +from koyeb.api.models.google_rpc_status import GoogleRpcStatus class TestGoogleRpcStatus(unittest.TestCase): """GoogleRpcStatus unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GoogleRpcStatus: """Test GoogleRpcStatus - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GoogleRpcStatus` """ model = GoogleRpcStatus() @@ -54,6 +53,5 @@ def testGoogleRpcStatus(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_has_unpaid_invoices_reply.py b/koyeb/api/test/test_has_unpaid_invoices_reply.py similarity index 61% rename from koyeb/test/test_has_unpaid_invoices_reply.py rename to koyeb/api/test/test_has_unpaid_invoices_reply.py index c8875b1b..bdd4c4dc 100644 --- a/koyeb/test/test_has_unpaid_invoices_reply.py +++ b/koyeb/api/test/test_has_unpaid_invoices_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply - +from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply class TestHasUnpaidInvoicesReply(unittest.TestCase): """HasUnpaidInvoicesReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HasUnpaidInvoicesReply: """Test HasUnpaidInvoicesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HasUnpaidInvoicesReply` """ model = HasUnpaidInvoicesReply() @@ -48,6 +47,5 @@ def testHasUnpaidInvoicesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_http_header.py b/koyeb/api/test/test_http_header.py similarity index 59% rename from koyeb/test/test_http_header.py rename to koyeb/api/test/test_http_header.py index cf08af81..603e3890 100644 --- a/koyeb/test/test_http_header.py +++ b/koyeb/api/test/test_http_header.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.http_header import HTTPHeader - +from koyeb.api.models.http_header import HTTPHeader class TestHTTPHeader(unittest.TestCase): """HTTPHeader unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HTTPHeader: """Test HTTPHeader - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HTTPHeader` """ model = HTTPHeader() @@ -49,6 +48,5 @@ def testHTTPHeader(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_http_health_check.py b/koyeb/api/test/test_http_health_check.py similarity index 62% rename from koyeb/test/test_http_health_check.py rename to koyeb/api/test/test_http_health_check.py index 2b1d30cf..4aaa6398 100644 --- a/koyeb/test/test_http_health_check.py +++ b/koyeb/api/test/test_http_health_check.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.http_health_check import HTTPHealthCheck - +from koyeb.api.models.http_health_check import HTTPHealthCheck class TestHTTPHealthCheck(unittest.TestCase): """HTTPHealthCheck unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HTTPHealthCheck: """Test HTTPHealthCheck - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HTTPHealthCheck` """ model = HTTPHealthCheck() @@ -40,7 +39,7 @@ def make_instance(self, include_optional) -> HTTPHealthCheck: path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ] @@ -55,6 +54,5 @@ def testHTTPHealthCheck(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_instance.py b/koyeb/api/test/test_instance.py similarity index 76% rename from koyeb/test/test_instance.py rename to koyeb/api/test/test_instance.py index 3786d172..daca168d 100644 --- a/koyeb/test/test_instance.py +++ b/koyeb/api/test/test_instance.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.instance import Instance - +from koyeb.api.models.instance import Instance class TestInstance(unittest.TestCase): """Instance unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Instance: """Test Instance - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Instance` """ model = Instance() @@ -68,6 +67,5 @@ def testInstance(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_instance_availability.py b/koyeb/api/test/test_instance_availability.py similarity index 60% rename from koyeb/test/test_instance_availability.py rename to koyeb/api/test/test_instance_availability.py index e5b54c65..acfedae9 100644 --- a/koyeb/test/test_instance_availability.py +++ b/koyeb/api/test/test_instance_availability.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.instance_availability import InstanceAvailability - +from koyeb.api.models.instance_availability import InstanceAvailability class TestInstanceAvailability(unittest.TestCase): """InstanceAvailability unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceAvailability: """Test InstanceAvailability - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `InstanceAvailability` """ model = InstanceAvailability() if include_optional: return InstanceAvailability( regions = { - 'key' : koyeb.models.region_availability.RegionAvailability( + 'key' : koyeb.api.models.region_availability.RegionAvailability( availability = 'UNKNOWN', ) }, availability = 'UNKNOWN' @@ -52,6 +51,5 @@ def testInstanceAvailability(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_instance_event.py b/koyeb/api/test/test_instance_event.py similarity index 66% rename from koyeb/test/test_instance_event.py rename to koyeb/api/test/test_instance_event.py index 21dda714..90d2546d 100644 --- a/koyeb/test/test_instance_event.py +++ b/koyeb/api/test/test_instance_event.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.instance_event import InstanceEvent - +from koyeb.api.models.instance_event import InstanceEvent class TestInstanceEvent(unittest.TestCase): """InstanceEvent unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceEvent: """Test InstanceEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `InstanceEvent` """ model = InstanceEvent() @@ -54,6 +53,5 @@ def testInstanceEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_instance_list_item.py b/koyeb/api/test/test_instance_list_item.py similarity index 73% rename from koyeb/test/test_instance_list_item.py rename to koyeb/api/test/test_instance_list_item.py index 94cd9d1f..19c34fd9 100644 --- a/koyeb/test/test_instance_list_item.py +++ b/koyeb/api/test/test_instance_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.instance_list_item import InstanceListItem - +from koyeb.api.models.instance_list_item import InstanceListItem class TestInstanceListItem(unittest.TestCase): """InstanceListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceListItem: """Test InstanceListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `InstanceListItem` """ model = InstanceListItem() @@ -64,6 +63,5 @@ def testInstanceListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_instance_status.py b/koyeb/api/test/test_instance_status.py new file mode 100644 index 00000000..32924969 --- /dev/null +++ b/koyeb/api/test/test_instance_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.instance_status import InstanceStatus + +class TestInstanceStatus(unittest.TestCase): + """InstanceStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInstanceStatus(self): + """Test InstanceStatus""" + # inst = InstanceStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_instance_usage.py b/koyeb/api/test/test_instance_usage.py similarity index 60% rename from koyeb/test/test_instance_usage.py rename to koyeb/api/test/test_instance_usage.py index 16e72794..b815bb1f 100644 --- a/koyeb/test/test_instance_usage.py +++ b/koyeb/api/test/test_instance_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.instance_usage import InstanceUsage - +from koyeb.api.models.instance_usage import InstanceUsage class TestInstanceUsage(unittest.TestCase): """InstanceUsage unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceUsage: """Test InstanceUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `InstanceUsage` """ model = InstanceUsage() @@ -48,6 +47,5 @@ def testInstanceUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_instances_api.py b/koyeb/api/test/test_instances_api.py similarity index 68% rename from koyeb/test/test_instances_api.py rename to koyeb/api/test/test_instances_api.py index 1ad5cd90..87bd71fd 100644 --- a/koyeb/test/test_instances_api.py +++ b/koyeb/api/test/test_instances_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.instances_api import InstancesApi +from koyeb.api.api.instances_api import InstancesApi class TestInstancesApi(unittest.TestCase): @@ -55,5 +55,5 @@ def test_list_instances(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_instances_summary.py b/koyeb/api/test/test_instances_summary.py similarity index 62% rename from koyeb/test/test_instances_summary.py rename to koyeb/api/test/test_instances_summary.py index ccec83b0..f10e7802 100644 --- a/koyeb/test/test_instances_summary.py +++ b/koyeb/api/test/test_instances_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.instances_summary import InstancesSummary - +from koyeb.api.models.instances_summary import InstancesSummary class TestInstancesSummary(unittest.TestCase): """InstancesSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstancesSummary: """Test InstancesSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `InstancesSummary` """ model = InstancesSummary() @@ -51,6 +50,5 @@ def testInstancesSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_intercom_api.py b/koyeb/api/test/test_intercom_api.py similarity index 52% rename from koyeb/test/test_intercom_api.py rename to koyeb/api/test/test_intercom_api.py index cf14be22..e6d679cd 100644 --- a/koyeb/test/test_intercom_api.py +++ b/koyeb/api/test/test_intercom_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.intercom_api import IntercomApi +from koyeb.api.api.intercom_api import IntercomApi class TestIntercomApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_get_intercom_profile(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_invite_api.py b/koyeb/api/test/test_invite_api.py new file mode 100644 index 00000000..9dc842ea --- /dev/null +++ b/koyeb/api/test/test_invite_api.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.api.invite_api import InviteApi + + +class TestInviteApi(unittest.TestCase): + """InviteApi unit test stubs""" + + def setUp(self) -> None: + self.api = InviteApi() + + def tearDown(self) -> None: + pass + + def test_create_invite(self) -> None: + """Test case for create_invite + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_invite_user_request.py b/koyeb/api/test/test_invite_user_request.py similarity index 62% rename from koyeb/test/test_invite_user_request.py rename to koyeb/api/test/test_invite_user_request.py index 1d933a84..5c9dc090 100644 --- a/koyeb/test/test_invite_user_request.py +++ b/koyeb/api/test/test_invite_user_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.invite_user_request import InviteUserRequest - +from koyeb.api.models.invite_user_request import InviteUserRequest class TestInviteUserRequest(unittest.TestCase): """InviteUserRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InviteUserRequest: """Test InviteUserRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `InviteUserRequest` """ model = InviteUserRequest() @@ -50,6 +49,5 @@ def testInviteUserRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_kgitproxy_branch.py b/koyeb/api/test/test_kgitproxy_branch.py similarity index 65% rename from koyeb/test/test_kgitproxy_branch.py rename to koyeb/api/test/test_kgitproxy_branch.py index 601af212..86d3822d 100644 --- a/koyeb/test/test_kgitproxy_branch.py +++ b/koyeb/api/test/test_kgitproxy_branch.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.kgitproxy_branch import KgitproxyBranch - +from koyeb.api.models.kgitproxy_branch import KgitproxyBranch class TestKgitproxyBranch(unittest.TestCase): """KgitproxyBranch unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyBranch: """Test KgitproxyBranch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KgitproxyBranch` """ model = KgitproxyBranch() @@ -54,6 +53,5 @@ def testKgitproxyBranch(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_kgitproxy_git_hub_repository.py b/koyeb/api/test/test_kgitproxy_git_hub_repository.py similarity index 62% rename from koyeb/test/test_kgitproxy_git_hub_repository.py rename to koyeb/api/test/test_kgitproxy_git_hub_repository.py index 8336e990..675196ef 100644 --- a/koyeb/test/test_kgitproxy_git_hub_repository.py +++ b/koyeb/api/test/test_kgitproxy_git_hub_repository.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository - +from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository class TestKgitproxyGitHubRepository(unittest.TestCase): """KgitproxyGitHubRepository unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyGitHubRepository: """Test KgitproxyGitHubRepository - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KgitproxyGitHubRepository` """ model = KgitproxyGitHubRepository() @@ -48,6 +47,5 @@ def testKgitproxyGitHubRepository(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_kgitproxy_github_installation_status.py b/koyeb/api/test/test_kgitproxy_github_installation_status.py similarity index 50% rename from koyeb/test/test_kgitproxy_github_installation_status.py rename to koyeb/api/test/test_kgitproxy_github_installation_status.py index dc4cf153..7e28cf25 100644 --- a/koyeb/test/test_kgitproxy_github_installation_status.py +++ b/koyeb/api/test/test_kgitproxy_github_installation_status.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.kgitproxy_github_installation_status import ( - KgitproxyGithubInstallationStatus, -) - +from koyeb.api.models.kgitproxy_github_installation_status import KgitproxyGithubInstallationStatus class TestKgitproxyGithubInstallationStatus(unittest.TestCase): """KgitproxyGithubInstallationStatus unit test stubs""" @@ -32,6 +29,5 @@ def testKgitproxyGithubInstallationStatus(self): """Test KgitproxyGithubInstallationStatus""" # inst = KgitproxyGithubInstallationStatus() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_indexing_status.py b/koyeb/api/test/test_kgitproxy_indexing_status.py new file mode 100644 index 00000000..f2bc2d36 --- /dev/null +++ b/koyeb/api/test/test_kgitproxy_indexing_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.kgitproxy_indexing_status import KgitproxyIndexingStatus + +class TestKgitproxyIndexingStatus(unittest.TestCase): + """KgitproxyIndexingStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKgitproxyIndexingStatus(self): + """Test KgitproxyIndexingStatus""" + # inst = KgitproxyIndexingStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_kgitproxy_list_branches_reply.py b/koyeb/api/test/test_kgitproxy_list_branches_reply.py similarity index 67% rename from koyeb/test/test_kgitproxy_list_branches_reply.py rename to koyeb/api/test/test_kgitproxy_list_branches_reply.py index d389c085..9c0a9223 100644 --- a/koyeb/test/test_kgitproxy_list_branches_reply.py +++ b/koyeb/api/test/test_kgitproxy_list_branches_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply - +from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply class TestKgitproxyListBranchesReply(unittest.TestCase): """KgitproxyListBranchesReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyListBranchesReply: """Test KgitproxyListBranchesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KgitproxyListBranchesReply` """ model = KgitproxyListBranchesReply() if include_optional: return KgitproxyListBranchesReply( branches = [ - koyeb.models.kgitproxy/branch.kgitproxy.Branch( + koyeb.api.models.kgitproxy/branch.kgitproxy.Branch( id = '', organization_id = '', repository_id = '', @@ -60,6 +59,5 @@ def testKgitproxyListBranchesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_kgitproxy_list_repositories_reply.py b/koyeb/api/test/test_kgitproxy_list_repositories_reply.py similarity index 68% rename from koyeb/test/test_kgitproxy_list_repositories_reply.py rename to koyeb/api/test/test_kgitproxy_list_repositories_reply.py index 6f51bf34..878b4750 100644 --- a/koyeb/test/test_kgitproxy_list_repositories_reply.py +++ b/koyeb/api/test/test_kgitproxy_list_repositories_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.kgitproxy_list_repositories_reply import ( - KgitproxyListRepositoriesReply, -) - +from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply class TestKgitproxyListRepositoriesReply(unittest.TestCase): """KgitproxyListRepositoriesReply unit test stubs""" @@ -30,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyListRepositoriesReply: """Test KgitproxyListRepositoriesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KgitproxyListRepositoriesReply` """ model = KgitproxyListRepositoriesReply() if include_optional: return KgitproxyListRepositoriesReply( repositories = [ - koyeb.models.kgitproxy/repository.kgitproxy.Repository( + koyeb.api.models.kgitproxy/repository.kgitproxy.Repository( id = '', organization_id = '', name = '', @@ -50,7 +47,7 @@ def make_instance(self, include_optional) -> KgitproxyListRepositoriesReply: default_branch = '', provider = 'INVALID_PROVIDER', last_push_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - github = koyeb.models.kgitproxy/git_hub_repository.kgitproxy.GitHubRepository( + github = koyeb.api.models.kgitproxy/git_hub_repository.kgitproxy.GitHubRepository( github_id = '', ), ) ], limit = 56, @@ -67,6 +64,5 @@ def testKgitproxyListRepositoriesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_kgitproxy_repository.py b/koyeb/api/test/test_kgitproxy_repository.py similarity index 66% rename from koyeb/test/test_kgitproxy_repository.py rename to koyeb/api/test/test_kgitproxy_repository.py index 637065f4..152f610e 100644 --- a/koyeb/test/test_kgitproxy_repository.py +++ b/koyeb/api/test/test_kgitproxy_repository.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.kgitproxy_repository import KgitproxyRepository - +from koyeb.api.models.kgitproxy_repository import KgitproxyRepository class TestKgitproxyRepository(unittest.TestCase): """KgitproxyRepository unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyRepository: """Test KgitproxyRepository - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KgitproxyRepository` """ model = KgitproxyRepository() @@ -46,7 +45,7 @@ def make_instance(self, include_optional) -> KgitproxyRepository: default_branch = '', provider = 'INVALID_PROVIDER', last_push_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - github = koyeb.models.kgitproxy/git_hub_repository.kgitproxy.GitHubRepository( + github = koyeb.api.models.kgitproxy/git_hub_repository.kgitproxy.GitHubRepository( github_id = '', ) ) else: @@ -59,6 +58,5 @@ def testKgitproxyRepository(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_repository_provider.py b/koyeb/api/test/test_kgitproxy_repository_provider.py new file mode 100644 index 00000000..43555eac --- /dev/null +++ b/koyeb/api/test/test_kgitproxy_repository_provider.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider + +class TestKgitproxyRepositoryProvider(unittest.TestCase): + """KgitproxyRepositoryProvider unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKgitproxyRepositoryProvider(self): + """Test KgitproxyRepositoryProvider""" + # inst = KgitproxyRepositoryProvider() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_ksearch_app.py b/koyeb/api/test/test_ksearch_app.py similarity index 60% rename from koyeb/test/test_ksearch_app.py rename to koyeb/api/test/test_ksearch_app.py index f18bdbba..326aab6d 100644 --- a/koyeb/test/test_ksearch_app.py +++ b/koyeb/api/test/test_ksearch_app.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_app import KsearchApp - +from koyeb.api.models.ksearch_app import KsearchApp class TestKsearchApp(unittest.TestCase): """KsearchApp unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchApp: """Test KsearchApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchApp` """ model = KsearchApp() @@ -50,6 +49,5 @@ def testKsearchApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_global_deployment.py b/koyeb/api/test/test_ksearch_global_deployment.py similarity index 63% rename from koyeb/test/test_ksearch_global_deployment.py rename to koyeb/api/test/test_ksearch_global_deployment.py index 0a68a48c..04284ca3 100644 --- a/koyeb/test/test_ksearch_global_deployment.py +++ b/koyeb/api/test/test_ksearch_global_deployment.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_global_deployment import KsearchGlobalDeployment - +from koyeb.api.models.ksearch_global_deployment import KsearchGlobalDeployment class TestKsearchGlobalDeployment(unittest.TestCase): """KsearchGlobalDeployment unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchGlobalDeployment: """Test KsearchGlobalDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchGlobalDeployment` """ model = KsearchGlobalDeployment() @@ -51,6 +50,5 @@ def testKsearchGlobalDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_instance.py b/koyeb/api/test/test_ksearch_instance.py similarity index 63% rename from koyeb/test/test_ksearch_instance.py rename to koyeb/api/test/test_ksearch_instance.py index a83b04bb..486d2e38 100644 --- a/koyeb/test/test_ksearch_instance.py +++ b/koyeb/api/test/test_ksearch_instance.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_instance import KsearchInstance - +from koyeb.api.models.ksearch_instance import KsearchInstance class TestKsearchInstance(unittest.TestCase): """KsearchInstance unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchInstance: """Test KsearchInstance - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchInstance` """ model = KsearchInstance() @@ -52,6 +51,5 @@ def testKsearchInstance(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_organization.py b/koyeb/api/test/test_ksearch_organization.py similarity index 61% rename from koyeb/test/test_ksearch_organization.py rename to koyeb/api/test/test_ksearch_organization.py index ad79324e..7f2a744f 100644 --- a/koyeb/test/test_ksearch_organization.py +++ b/koyeb/api/test/test_ksearch_organization.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_organization import KsearchOrganization - +from koyeb.api.models.ksearch_organization import KsearchOrganization class TestKsearchOrganization(unittest.TestCase): """KsearchOrganization unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchOrganization: """Test KsearchOrganization - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchOrganization` """ model = KsearchOrganization() @@ -49,6 +48,5 @@ def testKsearchOrganization(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_regional_deployment.py b/koyeb/api/test/test_ksearch_regional_deployment.py similarity index 64% rename from koyeb/test/test_ksearch_regional_deployment.py rename to koyeb/api/test/test_ksearch_regional_deployment.py index ba3d82ad..e12bd761 100644 --- a/koyeb/test/test_ksearch_regional_deployment.py +++ b/koyeb/api/test/test_ksearch_regional_deployment.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_regional_deployment import KsearchRegionalDeployment - +from koyeb.api.models.ksearch_regional_deployment import KsearchRegionalDeployment class TestKsearchRegionalDeployment(unittest.TestCase): """KsearchRegionalDeployment unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchRegionalDeployment: """Test KsearchRegionalDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchRegionalDeployment` """ model = KsearchRegionalDeployment() @@ -52,6 +51,5 @@ def testKsearchRegionalDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_search_reply.py b/koyeb/api/test/test_ksearch_search_reply.py similarity index 67% rename from koyeb/test/test_ksearch_search_reply.py rename to koyeb/api/test/test_ksearch_search_reply.py index 49227d49..aa49a3d2 100644 --- a/koyeb/test/test_ksearch_search_reply.py +++ b/koyeb/api/test/test_ksearch_search_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_search_reply import KsearchSearchReply - +from koyeb.api.models.ksearch_search_reply import KsearchSearchReply class TestKsearchSearchReply(unittest.TestCase): """KsearchSearchReply unit test stubs""" @@ -28,48 +27,48 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchSearchReply: """Test KsearchSearchReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchSearchReply` """ model = KsearchSearchReply() if include_optional: return KsearchSearchReply( organizations = [ - koyeb.models.ksearch/organization.ksearch.Organization( + koyeb.api.models.ksearch/organization.ksearch.Organization( id = '', name = '', ) ], users = [ - koyeb.models.ksearch/user.ksearch.User( + koyeb.api.models.ksearch/user.ksearch.User( id = '', email = '', name = '', github_user = '', ) ], apps = [ - koyeb.models.ksearch/app.ksearch.App( + koyeb.api.models.ksearch/app.ksearch.App( id = '', organization_id = '', name = '', ) ], services = [ - koyeb.models.ksearch/service.ksearch.Service( + koyeb.api.models.ksearch/service.ksearch.Service( id = '', organization_id = '', app_id = '', name = '', ) ], global_deployments = [ - koyeb.models.ksearch/global_deployment.ksearch.GlobalDeployment( + koyeb.api.models.ksearch/global_deployment.ksearch.GlobalDeployment( id = '', organization_id = '', app_id = '', service_id = '', ) ], regional_deployments = [ - koyeb.models.ksearch/regional_deployment.ksearch.RegionalDeployment( + koyeb.api.models.ksearch/regional_deployment.ksearch.RegionalDeployment( id = '', organization_id = '', app_id = '', @@ -77,7 +76,7 @@ def make_instance(self, include_optional) -> KsearchSearchReply: region = '', ) ], instances = [ - koyeb.models.ksearch/instance.ksearch.Instance( + koyeb.api.models.ksearch/instance.ksearch.Instance( id = '', organization_id = '', app_id = '', @@ -95,6 +94,5 @@ def testKsearchSearchReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_service.py b/koyeb/api/test/test_ksearch_service.py similarity index 62% rename from koyeb/test/test_ksearch_service.py rename to koyeb/api/test/test_ksearch_service.py index 3c6a0364..94cde172 100644 --- a/koyeb/test/test_ksearch_service.py +++ b/koyeb/api/test/test_ksearch_service.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_service import KsearchService - +from koyeb.api.models.ksearch_service import KsearchService class TestKsearchService(unittest.TestCase): """KsearchService unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchService: """Test KsearchService - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchService` """ model = KsearchService() @@ -51,6 +50,5 @@ def testKsearchService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_ksearch_user.py b/koyeb/api/test/test_ksearch_user.py similarity index 61% rename from koyeb/test/test_ksearch_user.py rename to koyeb/api/test/test_ksearch_user.py index dda0f627..94edbf99 100644 --- a/koyeb/test/test_ksearch_user.py +++ b/koyeb/api/test/test_ksearch_user.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.ksearch_user import KsearchUser - +from koyeb.api.models.ksearch_user import KsearchUser class TestKsearchUser(unittest.TestCase): """KsearchUser unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchUser: """Test KsearchUser - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KsearchUser` """ model = KsearchUser() @@ -51,6 +50,5 @@ def testKsearchUser(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_app_events_reply.py b/koyeb/api/test/test_list_app_events_reply.py similarity index 65% rename from koyeb/test/test_list_app_events_reply.py rename to koyeb/api/test/test_list_app_events_reply.py index 54ecc175..f6a0a3d1 100644 --- a/koyeb/test/test_list_app_events_reply.py +++ b/koyeb/api/test/test_list_app_events_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_app_events_reply import ListAppEventsReply - +from koyeb.api.models.list_app_events_reply import ListAppEventsReply class TestListAppEventsReply(unittest.TestCase): """ListAppEventsReply unit test stubs""" @@ -28,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListAppEventsReply: """Test ListAppEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListAppEventsReply` """ model = ListAppEventsReply() if include_optional: return ListAppEventsReply( events = [ - koyeb.models.app_event.AppEvent( + koyeb.api.models.app_event.AppEvent( id = '', when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', app_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata(), ) + metadata = koyeb.api.models.metadata.metadata(), ) ], limit = 56, offset = 56, @@ -61,6 +60,5 @@ def testListAppEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_apps_reply.py b/koyeb/api/test/test_list_apps_reply.py similarity index 73% rename from koyeb/test/test_list_apps_reply.py rename to koyeb/api/test/test_list_apps_reply.py index 1d1c3b05..95f9311c 100644 --- a/koyeb/test/test_list_apps_reply.py +++ b/koyeb/api/test/test_list_apps_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_apps_reply import ListAppsReply - +from koyeb.api.models.list_apps_reply import ListAppsReply class TestListAppsReply(unittest.TestCase): """ListAppsReply unit test stubs""" @@ -28,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListAppsReply: """Test ListAppsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListAppsReply` """ model = ListAppsReply() if include_optional: return ListAppsReply( apps = [ - koyeb.models.app_list_item.AppListItem( + koyeb.api.models.app_list_item.AppListItem( id = '', name = '', organization_id = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -60,8 +59,8 @@ def make_instance(self, include_optional) -> ListAppsReply: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], status = 'STARTING', @@ -84,6 +83,5 @@ def testListAppsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_catalog_instances_reply.py b/koyeb/api/test/test_list_catalog_instances_reply.py similarity index 74% rename from koyeb/test/test_list_catalog_instances_reply.py rename to koyeb/api/test/test_list_catalog_instances_reply.py index 7e06213a..e3ca5e6b 100644 --- a/koyeb/test/test_list_catalog_instances_reply.py +++ b/koyeb/api/test/test_list_catalog_instances_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_catalog_instances_reply import ListCatalogInstancesReply - +from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply class TestListCatalogInstancesReply(unittest.TestCase): """ListCatalogInstancesReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListCatalogInstancesReply: """Test ListCatalogInstancesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListCatalogInstancesReply` """ model = ListCatalogInstancesReply() if include_optional: return ListCatalogInstancesReply( instances = [ - koyeb.models.catalog_instance_list_item.CatalogInstanceListItem( + koyeb.api.models.catalog_instance_list_item.CatalogInstanceListItem( id = '', description = '', vcpu = 56, @@ -59,7 +58,7 @@ def make_instance(self, include_optional) -> ListCatalogInstancesReply: '' ], type = '', - gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails( + gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails( count = 56, brand = '', memory = '', @@ -84,6 +83,5 @@ def testListCatalogInstancesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_credentials_reply.py b/koyeb/api/test/test_list_credentials_reply.py similarity index 72% rename from koyeb/test/test_list_credentials_reply.py rename to koyeb/api/test/test_list_credentials_reply.py index 6380526a..4ccbc213 100644 --- a/koyeb/test/test_list_credentials_reply.py +++ b/koyeb/api/test/test_list_credentials_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_credentials_reply import ListCredentialsReply - +from koyeb.api.models.list_credentials_reply import ListCredentialsReply class TestListCredentialsReply(unittest.TestCase): """ListCredentialsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListCredentialsReply: """Test ListCredentialsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListCredentialsReply` """ model = ListCredentialsReply() if include_optional: return ListCredentialsReply( credentials = [ - koyeb.models.credential.Credential( + koyeb.api.models.credential.Credential( id = '', type = 'INVALID', name = '', @@ -63,6 +62,5 @@ def testListCredentialsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_datacenters_reply.py b/koyeb/api/test/test_list_datacenters_reply.py similarity index 66% rename from koyeb/test/test_list_datacenters_reply.py rename to koyeb/api/test/test_list_datacenters_reply.py index 78187717f..249131b4 100644 --- a/koyeb/test/test_list_datacenters_reply.py +++ b/koyeb/api/test/test_list_datacenters_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_datacenters_reply import ListDatacentersReply - +from koyeb.api.models.list_datacenters_reply import ListDatacentersReply class TestListDatacentersReply(unittest.TestCase): """ListDatacentersReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDatacentersReply: """Test ListDatacentersReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListDatacentersReply` """ model = ListDatacentersReply() if include_optional: return ListDatacentersReply( datacenters = [ - koyeb.models.datacenter_list_item.DatacenterListItem( + koyeb.api.models.datacenter_list_item.DatacenterListItem( id = '', region_id = '', domain = '', @@ -60,6 +59,5 @@ def testListDatacentersReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_deployment_events_reply.py b/koyeb/api/test/test_list_deployment_events_reply.py similarity index 65% rename from koyeb/test/test_list_deployment_events_reply.py rename to koyeb/api/test/test_list_deployment_events_reply.py index 79d416e2..19707958 100644 --- a/koyeb/test/test_list_deployment_events_reply.py +++ b/koyeb/api/test/test_list_deployment_events_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_deployment_events_reply import ListDeploymentEventsReply - +from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply class TestListDeploymentEventsReply(unittest.TestCase): """ListDeploymentEventsReply unit test stubs""" @@ -28,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDeploymentEventsReply: """Test ListDeploymentEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListDeploymentEventsReply` """ model = ListDeploymentEventsReply() if include_optional: return ListDeploymentEventsReply( events = [ - koyeb.models.deployment_event.DeploymentEvent( + koyeb.api.models.deployment_event.DeploymentEvent( id = '', when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', deployment_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata(), ) + metadata = koyeb.api.models.metadata.metadata(), ) ], limit = 56, offset = 56, @@ -61,6 +60,5 @@ def testListDeploymentEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_deployments_reply.py b/koyeb/api/test/test_list_deployments_reply.py similarity index 67% rename from koyeb/test/test_list_deployments_reply.py rename to koyeb/api/test/test_list_deployments_reply.py index 41b0b805..973464d4 100644 --- a/koyeb/test/test_list_deployments_reply.py +++ b/koyeb/api/test/test_list_deployments_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_deployments_reply import ListDeploymentsReply - +from koyeb.api.models.list_deployments_reply import ListDeploymentsReply class TestListDeploymentsReply(unittest.TestCase): """ListDeploymentsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDeploymentsReply: """Test ListDeploymentsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListDeploymentsReply` """ model = ListDeploymentsReply() if include_optional: return ListDeploymentsReply( deployments = [ - koyeb.models.deployment_list_item.DeploymentListItem( + koyeb.api.models.deployment_list_item.DeploymentListItem( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -51,11 +50,11 @@ def make_instance(self, include_optional) -> ListDeploymentsReply: parent_id = '', child_id = '', status = 'PENDING', - metadata = koyeb.models.deployment_metadata.DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -64,41 +63,40 @@ def make_instance(self, include_optional) -> ListDeploymentsReply: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, protocol = 'tcp', ) ], ), - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', - type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -110,63 +108,63 @@ def make_instance(self, include_optional) -> ListDeploymentsReply: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -180,21 +178,21 @@ def make_instance(self, include_optional) -> ListDeploymentsReply: messages = [ '' ], - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -205,7 +203,7 @@ def make_instance(self, include_optional) -> ListDeploymentsReply: wait_completion = True, ) ], ) ], ), - database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(), + database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo(), version = '', deployment_group = '', ) ], @@ -224,6 +222,5 @@ def testListDeploymentsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_domains_reply.py b/koyeb/api/test/test_list_domains_reply.py similarity index 68% rename from koyeb/test/test_list_domains_reply.py rename to koyeb/api/test/test_list_domains_reply.py index 0cefc59d..5c4e67ef 100644 --- a/koyeb/test/test_list_domains_reply.py +++ b/koyeb/api/test/test_list_domains_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_domains_reply import ListDomainsReply - +from koyeb.api.models.list_domains_reply import ListDomainsReply class TestListDomainsReply(unittest.TestCase): """ListDomainsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDomainsReply: """Test ListDomainsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListDomainsReply` """ model = ListDomainsReply() if include_optional: return ListDomainsReply( domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -53,8 +52,8 @@ def make_instance(self, include_optional) -> ListDomainsReply: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], limit = 56, @@ -71,6 +70,5 @@ def testListDomainsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_instance_events_reply.py b/koyeb/api/test/test_list_instance_events_reply.py similarity index 65% rename from koyeb/test/test_list_instance_events_reply.py rename to koyeb/api/test/test_list_instance_events_reply.py index c22063be..e6e328aa 100644 --- a/koyeb/test/test_list_instance_events_reply.py +++ b/koyeb/api/test/test_list_instance_events_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_instance_events_reply import ListInstanceEventsReply - +from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply class TestListInstanceEventsReply(unittest.TestCase): """ListInstanceEventsReply unit test stubs""" @@ -28,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListInstanceEventsReply: """Test ListInstanceEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListInstanceEventsReply` """ model = ListInstanceEventsReply() if include_optional: return ListInstanceEventsReply( events = [ - koyeb.models.instance_event.InstanceEvent( + koyeb.api.models.instance_event.InstanceEvent( id = '', when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', instance_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata(), ) + metadata = koyeb.api.models.metadata.metadata(), ) ], limit = 56, offset = 56, @@ -61,6 +60,5 @@ def testListInstanceEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_instances_reply.py b/koyeb/api/test/test_list_instances_reply.py similarity index 74% rename from koyeb/test/test_list_instances_reply.py rename to koyeb/api/test/test_list_instances_reply.py index 5b311da9..54bb3532 100644 --- a/koyeb/test/test_list_instances_reply.py +++ b/koyeb/api/test/test_list_instances_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_instances_reply import ListInstancesReply - +from koyeb.api.models.list_instances_reply import ListInstancesReply class TestListInstancesReply(unittest.TestCase): """ListInstancesReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListInstancesReply: """Test ListInstancesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListInstancesReply` """ model = ListInstancesReply() if include_optional: return ListInstancesReply( instances = [ - koyeb.models.instance_list_item.InstanceListItem( + koyeb.api.models.instance_list_item.InstanceListItem( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -71,6 +70,5 @@ def testListInstancesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_organization_invitations_reply.py b/koyeb/api/test/test_list_organization_invitations_reply.py similarity index 70% rename from koyeb/test/test_list_organization_invitations_reply.py rename to koyeb/api/test/test_list_organization_invitations_reply.py index 883b60a5..5109afd4 100644 --- a/koyeb/test/test_list_organization_invitations_reply.py +++ b/koyeb/api/test/test_list_organization_invitations_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_organization_invitations_reply import ( - ListOrganizationInvitationsReply, -) - +from koyeb.api.models.list_organization_invitations_reply import ListOrganizationInvitationsReply class TestListOrganizationInvitationsReply(unittest.TestCase): """ListOrganizationInvitationsReply unit test stubs""" @@ -30,28 +27,28 @@ def tearDown(self): def make_instance(self, include_optional) -> ListOrganizationInvitationsReply: """Test ListOrganizationInvitationsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListOrganizationInvitationsReply` """ model = ListOrganizationInvitationsReply() if include_optional: return ListOrganizationInvitationsReply( invitations = [ - koyeb.models.organization_invitation.OrganizationInvitation( + koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -59,7 +56,7 @@ def make_instance(self, include_optional) -> ListOrganizationInvitationsReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -81,6 +78,5 @@ def testListOrganizationInvitationsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_organization_members_reply.py b/koyeb/api/test/test_list_organization_members_reply.py similarity index 68% rename from koyeb/test/test_list_organization_members_reply.py rename to koyeb/api/test/test_list_organization_members_reply.py index e706599d..142909f6 100644 --- a/koyeb/test/test_list_organization_members_reply.py +++ b/koyeb/api/test/test_list_organization_members_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_organization_members_reply import ListOrganizationMembersReply - +from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply class TestListOrganizationMembersReply(unittest.TestCase): """ListOrganizationMembersReply unit test stubs""" @@ -28,30 +27,30 @@ def tearDown(self): def make_instance(self, include_optional) -> ListOrganizationMembersReply: """Test ListOrganizationMembersReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListOrganizationMembersReply` """ model = ListOrganizationMembersReply() if include_optional: return ListOrganizationMembersReply( members = [ - koyeb.models.organization_member.OrganizationMember( + koyeb.api.models.organization_member.OrganizationMember( id = '', organization_id = '', user_id = '', joined_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), role = 'INVALID', status = 'INVALID', - user = koyeb.models.public_user.PublicUser( + user = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', avatar_url = '', github_id = '', github_user = '', ), - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), ) @@ -70,6 +69,5 @@ def testListOrganizationMembersReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_payment_methods_reply.py b/koyeb/api/test/test_list_payment_methods_reply.py similarity index 78% rename from koyeb/test/test_list_payment_methods_reply.py rename to koyeb/api/test/test_list_payment_methods_reply.py index eec267dd..ebd77147 100644 --- a/koyeb/test/test_list_payment_methods_reply.py +++ b/koyeb/api/test/test_list_payment_methods_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_payment_methods_reply import ListPaymentMethodsReply - +from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply class TestListPaymentMethodsReply(unittest.TestCase): """ListPaymentMethodsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListPaymentMethodsReply: """Test ListPaymentMethodsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListPaymentMethodsReply` """ model = ListPaymentMethodsReply() if include_optional: return ListPaymentMethodsReply( payment_methods = [ - koyeb.models.payment_method.PaymentMethod( + koyeb.api.models.payment_method.PaymentMethod( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -76,6 +75,5 @@ def testListPaymentMethodsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_persistent_volume_events_reply.py b/koyeb/api/test/test_list_persistent_volume_events_reply.py similarity index 66% rename from koyeb/test/test_list_persistent_volume_events_reply.py rename to koyeb/api/test/test_list_persistent_volume_events_reply.py index d67a881f..f2925991 100644 --- a/koyeb/test/test_list_persistent_volume_events_reply.py +++ b/koyeb/api/test/test_list_persistent_volume_events_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_persistent_volume_events_reply import ( - ListPersistentVolumeEventsReply, -) - +from koyeb.api.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply class TestListPersistentVolumeEventsReply(unittest.TestCase): """ListPersistentVolumeEventsReply unit test stubs""" @@ -30,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListPersistentVolumeEventsReply: """Test ListPersistentVolumeEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListPersistentVolumeEventsReply` """ model = ListPersistentVolumeEventsReply() if include_optional: return ListPersistentVolumeEventsReply( events = [ - koyeb.models.persistent_volume_event.PersistentVolumeEvent( + koyeb.api.models.persistent_volume_event.PersistentVolumeEvent( id = '', when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', persistent_volume_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata(), ) + metadata = koyeb.api.models.metadata.metadata(), ) ], limit = 56, offset = 56, @@ -63,6 +60,5 @@ def testListPersistentVolumeEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_persistent_volumes_reply.py b/koyeb/api/test/test_list_persistent_volumes_reply.py similarity index 71% rename from koyeb/test/test_list_persistent_volumes_reply.py rename to koyeb/api/test/test_list_persistent_volumes_reply.py index c204d3db..ef08b876 100644 --- a/koyeb/test/test_list_persistent_volumes_reply.py +++ b/koyeb/api/test/test_list_persistent_volumes_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_persistent_volumes_reply import ListPersistentVolumesReply - +from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply class TestListPersistentVolumesReply(unittest.TestCase): """ListPersistentVolumesReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListPersistentVolumesReply: """Test ListPersistentVolumesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListPersistentVolumesReply` """ model = ListPersistentVolumesReply() if include_optional: return ListPersistentVolumesReply( volumes = [ - koyeb.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( + koyeb.api.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( id = '', name = '', snapshot_id = '', @@ -67,6 +66,5 @@ def testListPersistentVolumesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_regional_deployment_events_reply.py b/koyeb/api/test/test_list_regional_deployment_events_reply.py similarity index 66% rename from koyeb/test/test_list_regional_deployment_events_reply.py rename to koyeb/api/test/test_list_regional_deployment_events_reply.py index 001ba948..cfcffa46 100644 --- a/koyeb/test/test_list_regional_deployment_events_reply.py +++ b/koyeb/api/test/test_list_regional_deployment_events_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_regional_deployment_events_reply import ( - ListRegionalDeploymentEventsReply, -) - +from koyeb.api.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply class TestListRegionalDeploymentEventsReply(unittest.TestCase): """ListRegionalDeploymentEventsReply unit test stubs""" @@ -30,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListRegionalDeploymentEventsReply: """Test ListRegionalDeploymentEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListRegionalDeploymentEventsReply` """ model = ListRegionalDeploymentEventsReply() if include_optional: return ListRegionalDeploymentEventsReply( events = [ - koyeb.models.regional_deployment_event.RegionalDeploymentEvent( + koyeb.api.models.regional_deployment_event.RegionalDeploymentEvent( id = '', when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', regional_deployment_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata(), ) + metadata = koyeb.api.models.metadata.metadata(), ) ], limit = 56, offset = 56, @@ -63,6 +60,5 @@ def testListRegionalDeploymentEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_regional_deployments_reply.py b/koyeb/api/test/test_list_regional_deployments_reply.py similarity index 66% rename from koyeb/test/test_list_regional_deployments_reply.py rename to koyeb/api/test/test_list_regional_deployments_reply.py index 55ad0a7a..a0eb4e92 100644 --- a/koyeb/test/test_list_regional_deployments_reply.py +++ b/koyeb/api/test/test_list_regional_deployments_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_regional_deployments_reply import ListRegionalDeploymentsReply - +from koyeb.api.models.list_regional_deployments_reply import ListRegionalDeploymentsReply class TestListRegionalDeploymentsReply(unittest.TestCase): """ListRegionalDeploymentsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListRegionalDeploymentsReply: """Test ListRegionalDeploymentsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListRegionalDeploymentsReply` """ model = ListRegionalDeploymentsReply() if include_optional: return ListRegionalDeploymentsReply( regional_deployments = [ - koyeb.models.regional_deployment_list_item.RegionalDeploymentListItem( + koyeb.api.models.regional_deployment_list_item.RegionalDeploymentListItem( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -46,44 +45,44 @@ def make_instance(self, include_optional) -> ListRegionalDeploymentsReply: messages = [ '' ], - definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition( + definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.route.Route( + koyeb.api.models.route.Route( port = 56, path = '', ) ], ports = [ - koyeb.models.port.Port( + koyeb.api.models.port.Port( port = 56, protocol = '', ) ], env = [ - koyeb.models.env.Env( + koyeb.api.models.env.Env( key = '', value = '', secret = '', ) ], region = '', - scaling = koyeb.models.scaling.Scaling( + scaling = koyeb.api.models.scaling.Scaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) @@ -91,37 +90,37 @@ def make_instance(self, include_optional) -> ListRegionalDeploymentsReply: instance_type = '', deployment_group = '', health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.regional_deployment_volume.RegionalDeploymentVolume( + koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -132,7 +131,7 @@ def make_instance(self, include_optional) -> ListRegionalDeploymentsReply: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -141,11 +140,11 @@ def make_instance(self, include_optional) -> ListRegionalDeploymentsReply: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), ) ], limit = 56, @@ -163,6 +162,5 @@ def testListRegionalDeploymentsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_regions_reply.py b/koyeb/api/test/test_list_regions_reply.py similarity index 69% rename from koyeb/test/test_list_regions_reply.py rename to koyeb/api/test/test_list_regions_reply.py index 80799526..5790e50c 100644 --- a/koyeb/test/test_list_regions_reply.py +++ b/koyeb/api/test/test_list_regions_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_regions_reply import ListRegionsReply - +from koyeb.api.models.list_regions_reply import ListRegionsReply class TestListRegionsReply(unittest.TestCase): """ListRegionsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListRegionsReply: """Test ListRegionsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListRegionsReply` """ model = ListRegionsReply() if include_optional: return ListRegionsReply( regions = [ - koyeb.models.region_list_item.RegionListItem( + koyeb.api.models.region_list_item.RegionListItem( id = '', name = '', coordinates = [ @@ -67,6 +66,5 @@ def testListRegionsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_secrets_reply.py b/koyeb/api/test/test_list_secrets_reply.py similarity index 57% rename from koyeb/test/test_list_secrets_reply.py rename to koyeb/api/test/test_list_secrets_reply.py index 128ad427..a7f7e90c 100644 --- a/koyeb/test/test_list_secrets_reply.py +++ b/koyeb/api/test/test_list_secrets_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_secrets_reply import ListSecretsReply - +from koyeb.api.models.list_secrets_reply import ListSecretsReply class TestListSecretsReply(unittest.TestCase): """ListSecretsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListSecretsReply: """Test ListSecretsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListSecretsReply` """ model = ListSecretsReply() if include_optional: return ListSecretsReply( secrets = [ - koyeb.models.secret.Secret( + koyeb.api.models.secret.Secret( id = '', name = '', organization_id = '', @@ -45,30 +44,30 @@ def make_instance(self, include_optional) -> ListSecretsReply: updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), value = '', - docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( + docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( username = '', password = '', ), - private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration( + private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration( username = '', password = '', url = '', ), - digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( + digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( username = '', password = '', ), - github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration( + github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration( username = '', password = '', ), - gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration( + gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration( username = '', password = '', ), - gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( + gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( keyfile_content = '', url = '', ), - azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( + azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( registry_name = '', username = '', password = '', ), - database_role_password = koyeb.models.database_role_password.DatabaseRolePassword( + database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword( username = '', password = '', ), ) ], @@ -86,6 +85,5 @@ def testListSecretsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_service_events_reply.py b/koyeb/api/test/test_list_service_events_reply.py similarity index 65% rename from koyeb/test/test_list_service_events_reply.py rename to koyeb/api/test/test_list_service_events_reply.py index c80d96b3..071eb9cf 100644 --- a/koyeb/test/test_list_service_events_reply.py +++ b/koyeb/api/test/test_list_service_events_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_service_events_reply import ListServiceEventsReply - +from koyeb.api.models.list_service_events_reply import ListServiceEventsReply class TestListServiceEventsReply(unittest.TestCase): """ListServiceEventsReply unit test stubs""" @@ -28,23 +27,23 @@ def tearDown(self): def make_instance(self, include_optional) -> ListServiceEventsReply: """Test ListServiceEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListServiceEventsReply` """ model = ListServiceEventsReply() if include_optional: return ListServiceEventsReply( events = [ - koyeb.models.service_event.ServiceEvent( + koyeb.api.models.service_event.ServiceEvent( id = '', when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', service_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata(), ) + metadata = koyeb.api.models.metadata.metadata(), ) ], limit = 56, offset = 56, @@ -61,6 +60,5 @@ def testListServiceEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_services_reply.py b/koyeb/api/test/test_list_services_reply.py similarity index 66% rename from koyeb/test/test_list_services_reply.py rename to koyeb/api/test/test_list_services_reply.py index b44ab617..0b3762af 100644 --- a/koyeb/test/test_list_services_reply.py +++ b/koyeb/api/test/test_list_services_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_services_reply import ListServicesReply - +from koyeb.api.models.list_services_reply import ListServicesReply class TestListServicesReply(unittest.TestCase): """ListServicesReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListServicesReply: """Test ListServicesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListServicesReply` """ model = ListServicesReply() if include_optional: return ListServicesReply( services = [ - koyeb.models.service_list_item.ServiceListItem( + koyeb.api.models.service_list_item.ServiceListItem( id = '', name = '', type = 'INVALID_TYPE', @@ -50,16 +49,16 @@ def make_instance(self, include_optional) -> ListServicesReply: '' ], version = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ), + auto_release = koyeb.api.models.auto_release.AutoRelease(), ), active_deployment_id = '', latest_deployment_id = '', ) ], @@ -78,6 +77,5 @@ def testListServicesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_snapshots_reply.py b/koyeb/api/test/test_list_snapshots_reply.py similarity index 73% rename from koyeb/test/test_list_snapshots_reply.py rename to koyeb/api/test/test_list_snapshots_reply.py index 12bfdf0d..4027df9d 100644 --- a/koyeb/test/test_list_snapshots_reply.py +++ b/koyeb/api/test/test_list_snapshots_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_snapshots_reply import ListSnapshotsReply - +from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply class TestListSnapshotsReply(unittest.TestCase): """ListSnapshotsReply unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> ListSnapshotsReply: """Test ListSnapshotsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListSnapshotsReply` """ model = ListSnapshotsReply() if include_optional: return ListSnapshotsReply( snapshots = [ - koyeb.models.snapshot.Snapshot( + koyeb.api.models.snapshot.Snapshot( id = '', name = '', size = 56, @@ -64,6 +63,5 @@ def testListSnapshotsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_usage_reply.py b/koyeb/api/test/test_list_usage_reply.py similarity index 56% rename from koyeb/test/test_list_usage_reply.py rename to koyeb/api/test/test_list_usage_reply.py index f0ffc24b..8b2a06bf 100644 --- a/koyeb/test/test_list_usage_reply.py +++ b/koyeb/api/test/test_list_usage_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_usage_reply import ListUsageReply - +from koyeb.api.models.list_usage_reply import ListUsageReply class TestListUsageReply(unittest.TestCase): """ListUsageReply unit test stubs""" @@ -28,19 +27,19 @@ def tearDown(self): def make_instance(self, include_optional) -> ListUsageReply: """Test ListUsageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListUsageReply` """ model = ListUsageReply() if include_optional: return ListUsageReply( - usage = koyeb.models.catalog_usage.CatalogUsage( + usage = koyeb.api.models.catalog_usage.CatalogUsage( instances = { - 'key' : koyeb.models.instance_availability.InstanceAvailability( + 'key' : koyeb.api.models.instance_availability.InstanceAvailability( regions = { - 'key' : koyeb.models.region_availability.RegionAvailability( + 'key' : koyeb.api.models.region_availability.RegionAvailability( availability = 'UNKNOWN', ) }, availability = 'UNKNOWN', ) @@ -56,6 +55,5 @@ def testListUsageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_user_organization_invitations_reply.py b/koyeb/api/test/test_list_user_organization_invitations_reply.py similarity index 70% rename from koyeb/test/test_list_user_organization_invitations_reply.py rename to koyeb/api/test/test_list_user_organization_invitations_reply.py index 088ab6f8..42bb5f7e 100644 --- a/koyeb/test/test_list_user_organization_invitations_reply.py +++ b/koyeb/api/test/test_list_user_organization_invitations_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_user_organization_invitations_reply import ( - ListUserOrganizationInvitationsReply, -) - +from koyeb.api.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply class TestListUserOrganizationInvitationsReply(unittest.TestCase): """ListUserOrganizationInvitationsReply unit test stubs""" @@ -30,28 +27,28 @@ def tearDown(self): def make_instance(self, include_optional) -> ListUserOrganizationInvitationsReply: """Test ListUserOrganizationInvitationsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListUserOrganizationInvitationsReply` """ model = ListUserOrganizationInvitationsReply() if include_optional: return ListUserOrganizationInvitationsReply( invitations = [ - koyeb.models.organization_invitation.OrganizationInvitation( + koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -59,7 +56,7 @@ def make_instance(self, include_optional) -> ListUserOrganizationInvitationsRepl github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -81,6 +78,5 @@ def testListUserOrganizationInvitationsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_list_user_organizations_reply.py b/koyeb/api/test/test_list_user_organizations_reply.py similarity index 76% rename from koyeb/test/test_list_user_organizations_reply.py rename to koyeb/api/test/test_list_user_organizations_reply.py index d624899a..5d2dee51 100644 --- a/koyeb/test/test_list_user_organizations_reply.py +++ b/koyeb/api/test/test_list_user_organizations_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.list_user_organizations_reply import ListUserOrganizationsReply - +from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply class TestListUserOrganizationsReply(unittest.TestCase): """ListUserOrganizationsReply unit test stubs""" @@ -28,17 +27,18 @@ def tearDown(self): def make_instance(self, include_optional) -> ListUserOrganizationsReply: """Test ListUserOrganizationsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListUserOrganizationsReply` """ model = ListUserOrganizationsReply() if include_optional: return ListUserOrganizationsReply( organizations = [ - koyeb.models.represent_an_organization.Represent an Organization( + koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -56,7 +56,7 @@ def make_instance(self, include_optional) -> ListUserOrganizationsReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -84,6 +84,5 @@ def testListUserOrganizationsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_log_entry.py b/koyeb/api/test/test_log_entry.py similarity index 62% rename from koyeb/test/test_log_entry.py rename to koyeb/api/test/test_log_entry.py index b9e611ab..9c6f272e 100644 --- a/koyeb/test/test_log_entry.py +++ b/koyeb/api/test/test_log_entry.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.log_entry import LogEntry - +from koyeb.api.models.log_entry import LogEntry class TestLogEntry(unittest.TestCase): """LogEntry unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LogEntry: """Test LogEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `LogEntry` """ model = LogEntry() @@ -50,6 +49,5 @@ def testLogEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_login_method_reply.py b/koyeb/api/test/test_login_method_reply.py similarity index 60% rename from koyeb/test/test_login_method_reply.py rename to koyeb/api/test/test_login_method_reply.py index bd76454f..2f51be8a 100644 --- a/koyeb/test/test_login_method_reply.py +++ b/koyeb/api/test/test_login_method_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.login_method_reply import LoginMethodReply - +from koyeb.api.models.login_method_reply import LoginMethodReply class TestLoginMethodReply(unittest.TestCase): """LoginMethodReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LoginMethodReply: """Test LoginMethodReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `LoginMethodReply` """ model = LoginMethodReply() @@ -48,6 +47,5 @@ def testLoginMethodReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_login_method_reply_method.py b/koyeb/api/test/test_login_method_reply_method.py new file mode 100644 index 00000000..868498af --- /dev/null +++ b/koyeb/api/test/test_login_method_reply_method.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.login_method_reply_method import LoginMethodReplyMethod + +class TestLoginMethodReplyMethod(unittest.TestCase): + """LoginMethodReplyMethod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLoginMethodReplyMethod(self): + """Test LoginMethodReplyMethod""" + # inst = LoginMethodReplyMethod() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_login_reply.py b/koyeb/api/test/test_login_reply.py similarity index 63% rename from koyeb/test/test_login_reply.py rename to koyeb/api/test/test_login_reply.py index 5d163f7c..757c3fcc 100644 --- a/koyeb/test/test_login_reply.py +++ b/koyeb/api/test/test_login_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.login_reply import LoginReply - +from koyeb.api.models.login_reply import LoginReply class TestLoginReply(unittest.TestCase): """LoginReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LoginReply: """Test LoginReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `LoginReply` """ model = LoginReply() @@ -48,6 +47,5 @@ def testLoginReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_login_request.py b/koyeb/api/test/test_login_request.py similarity index 61% rename from koyeb/test/test_login_request.py rename to koyeb/api/test/test_login_request.py index 2a2635d8..21d67803 100644 --- a/koyeb/test/test_login_request.py +++ b/koyeb/api/test/test_login_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.login_request import LoginRequest - +from koyeb.api.models.login_request import LoginRequest class TestLoginRequest(unittest.TestCase): """LoginRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LoginRequest: """Test LoginRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `LoginRequest` """ model = LoginRequest() @@ -50,6 +49,5 @@ def testLoginRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_logs_api.py b/koyeb/api/test/test_logs_api.py similarity index 57% rename from koyeb/test/test_logs_api.py rename to koyeb/api/test/test_logs_api.py index c18ac7b2..025cf454 100644 --- a/koyeb/test/test_logs_api.py +++ b/koyeb/api/test/test_logs_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.logs_api import LogsApi +from koyeb.api.api.logs_api import LogsApi class TestLogsApi(unittest.TestCase): @@ -41,5 +41,5 @@ def test_tail_logs(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_manage_reply.py b/koyeb/api/test/test_manage_reply.py similarity index 59% rename from koyeb/test/test_manage_reply.py rename to koyeb/api/test/test_manage_reply.py index 740834cd..0b82445f 100644 --- a/koyeb/test/test_manage_reply.py +++ b/koyeb/api/test/test_manage_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.manage_reply import ManageReply - +from koyeb.api.models.manage_reply import ManageReply class TestManageReply(unittest.TestCase): """ManageReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ManageReply: """Test ManageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ManageReply` """ model = ManageReply() @@ -48,6 +47,5 @@ def testManageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_members_summary.py b/koyeb/api/test/test_members_summary.py similarity index 62% rename from koyeb/test/test_members_summary.py rename to koyeb/api/test/test_members_summary.py index e35257e0..118d14fb 100644 --- a/koyeb/test/test_members_summary.py +++ b/koyeb/api/test/test_members_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.members_summary import MembersSummary - +from koyeb.api.models.members_summary import MembersSummary class TestMembersSummary(unittest.TestCase): """MembersSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MembersSummary: """Test MembersSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `MembersSummary` """ model = MembersSummary() @@ -51,6 +50,5 @@ def testMembersSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_metric_name.py b/koyeb/api/test/test_metric_name.py new file mode 100644 index 00000000..037308ca --- /dev/null +++ b/koyeb/api/test/test_metric_name.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.metric_name import MetricName + +class TestMetricName(unittest.TestCase): + """MetricName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricName(self): + """Test MetricName""" + # inst = MetricName() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_metrics_api.py b/koyeb/api/test/test_metrics_api.py similarity index 51% rename from koyeb/test/test_metrics_api.py rename to koyeb/api/test/test_metrics_api.py index 283c0425..f5998ff9 100644 --- a/koyeb/test/test_metrics_api.py +++ b/koyeb/api/test/test_metrics_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.metrics_api import MetricsApi +from koyeb.api.api.metrics_api import MetricsApi class TestMetricsApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_get_metrics(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_neon_postgres_database.py b/koyeb/api/test/test_neon_postgres_database.py similarity index 60% rename from koyeb/test/test_neon_postgres_database.py rename to koyeb/api/test/test_neon_postgres_database.py index 5bedd0f5..ad40d804 100644 --- a/koyeb/test/test_neon_postgres_database.py +++ b/koyeb/api/test/test_neon_postgres_database.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.neon_postgres_database import NeonPostgresDatabase - +from koyeb.api.models.neon_postgres_database import NeonPostgresDatabase class TestNeonPostgresDatabase(unittest.TestCase): """NeonPostgresDatabase unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabase: """Test NeonPostgresDatabase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NeonPostgresDatabase` """ model = NeonPostgresDatabase() @@ -40,12 +39,12 @@ def make_instance(self, include_optional) -> NeonPostgresDatabase: region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ] @@ -60,6 +59,5 @@ def testNeonPostgresDatabase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_neon_postgres_database_deployment_metadata.py b/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py similarity index 65% rename from koyeb/test/test_neon_postgres_database_deployment_metadata.py rename to koyeb/api/test/test_neon_postgres_database_deployment_metadata.py index 2f73f62d..1b0267cd 100644 --- a/koyeb/test/test_neon_postgres_database_deployment_metadata.py +++ b/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.neon_postgres_database_deployment_metadata import ( - NeonPostgresDatabaseDeploymentMetadata, -) - +from koyeb.api.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata class TestNeonPostgresDatabaseDeploymentMetadata(unittest.TestCase): """NeonPostgresDatabaseDeploymentMetadata unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabaseDeploymentMetadata: """Test NeonPostgresDatabaseDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NeonPostgresDatabaseDeploymentMetadata` """ model = NeonPostgresDatabaseDeploymentMetadata() @@ -52,6 +49,5 @@ def testNeonPostgresDatabaseDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_neon_postgres_database_neon_database.py b/koyeb/api/test/test_neon_postgres_database_neon_database.py similarity index 63% rename from koyeb/test/test_neon_postgres_database_neon_database.py rename to koyeb/api/test/test_neon_postgres_database_neon_database.py index 81279573..8f981a61 100644 --- a/koyeb/test/test_neon_postgres_database_neon_database.py +++ b/koyeb/api/test/test_neon_postgres_database_neon_database.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.neon_postgres_database_neon_database import ( - NeonPostgresDatabaseNeonDatabase, -) - +from koyeb.api.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase class TestNeonPostgresDatabaseNeonDatabase(unittest.TestCase): """NeonPostgresDatabaseNeonDatabase unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabaseNeonDatabase: """Test NeonPostgresDatabaseNeonDatabase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NeonPostgresDatabaseNeonDatabase` """ model = NeonPostgresDatabaseNeonDatabase() @@ -51,6 +48,5 @@ def testNeonPostgresDatabaseNeonDatabase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_neon_postgres_database_neon_role.py b/koyeb/api/test/test_neon_postgres_database_neon_role.py similarity index 63% rename from koyeb/test/test_neon_postgres_database_neon_role.py rename to koyeb/api/test/test_neon_postgres_database_neon_role.py index f4db49f0..dc4166cd 100644 --- a/koyeb/test/test_neon_postgres_database_neon_role.py +++ b/koyeb/api/test/test_neon_postgres_database_neon_role.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole - +from koyeb.api.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole class TestNeonPostgresDatabaseNeonRole(unittest.TestCase): """NeonPostgresDatabaseNeonRole unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabaseNeonRole: """Test NeonPostgresDatabaseNeonRole - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NeonPostgresDatabaseNeonRole` """ model = NeonPostgresDatabaseNeonRole() @@ -49,6 +48,5 @@ def testNeonPostgresDatabaseNeonRole(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_neon_postgres_summary.py b/koyeb/api/test/test_neon_postgres_summary.py similarity index 63% rename from koyeb/test/test_neon_postgres_summary.py rename to koyeb/api/test/test_neon_postgres_summary.py index 17b6ceea..ba58fbe0 100644 --- a/koyeb/test/test_neon_postgres_summary.py +++ b/koyeb/api/test/test_neon_postgres_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.neon_postgres_summary import NeonPostgresSummary - +from koyeb.api.models.neon_postgres_summary import NeonPostgresSummary class TestNeonPostgresSummary(unittest.TestCase): """NeonPostgresSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresSummary: """Test NeonPostgresSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NeonPostgresSummary` """ model = NeonPostgresSummary() @@ -51,6 +50,5 @@ def testNeonPostgresSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_next_invoice_reply.py b/koyeb/api/test/test_next_invoice_reply.py similarity index 61% rename from koyeb/test/test_next_invoice_reply.py rename to koyeb/api/test/test_next_invoice_reply.py index ade848a5..d83bd1b9 100644 --- a/koyeb/test/test_next_invoice_reply.py +++ b/koyeb/api/test/test_next_invoice_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.next_invoice_reply import NextInvoiceReply - +from koyeb.api.models.next_invoice_reply import NextInvoiceReply class TestNextInvoiceReply(unittest.TestCase): """NextInvoiceReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReply: """Test NextInvoiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NextInvoiceReply` """ model = NextInvoiceReply() @@ -38,18 +37,18 @@ def make_instance(self, include_optional) -> NextInvoiceReply: return NextInvoiceReply( stripe_invoice = None, lines = [ - koyeb.models.next_invoice_reply/line.NextInvoiceReply.Line( + koyeb.api.models.next_invoice_reply/line.NextInvoiceReply.Line( amount_excluding_tax = 56, - period = koyeb.models.next_invoice_reply/line/period.NextInvoiceReply.Line.Period( + period = koyeb.api.models.next_invoice_reply/line/period.NextInvoiceReply.Line.Period( start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), plan_nickname = '', - price = koyeb.models.next_invoice_reply/line/price.NextInvoiceReply.Line.Price( + price = koyeb.api.models.next_invoice_reply/line/price.NextInvoiceReply.Line.Price( unit_amount_decimal = 1.337, ), quantity = 56, ) ], discounts = [ - koyeb.models.next_invoice_reply/discount.NextInvoiceReply.Discount( + koyeb.api.models.next_invoice_reply/discount.NextInvoiceReply.Discount( type = 'PERCENT_OFF', name = '', amount = '', ) @@ -65,6 +64,5 @@ def testNextInvoiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_next_invoice_reply_discount.py b/koyeb/api/test/test_next_invoice_reply_discount.py similarity index 63% rename from koyeb/test/test_next_invoice_reply_discount.py rename to koyeb/api/test/test_next_invoice_reply_discount.py index d29a136c..ca0b7261 100644 --- a/koyeb/test/test_next_invoice_reply_discount.py +++ b/koyeb/api/test/test_next_invoice_reply_discount.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.next_invoice_reply_discount import NextInvoiceReplyDiscount - +from koyeb.api.models.next_invoice_reply_discount import NextInvoiceReplyDiscount class TestNextInvoiceReplyDiscount(unittest.TestCase): """NextInvoiceReplyDiscount unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyDiscount: """Test NextInvoiceReplyDiscount - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NextInvoiceReplyDiscount` """ model = NextInvoiceReplyDiscount() @@ -50,6 +49,5 @@ def testNextInvoiceReplyDiscount(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_next_invoice_reply_discount_type.py b/koyeb/api/test/test_next_invoice_reply_discount_type.py new file mode 100644 index 00000000..03276fca --- /dev/null +++ b/koyeb/api/test/test_next_invoice_reply_discount_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType + +class TestNextInvoiceReplyDiscountType(unittest.TestCase): + """NextInvoiceReplyDiscountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNextInvoiceReplyDiscountType(self): + """Test NextInvoiceReplyDiscountType""" + # inst = NextInvoiceReplyDiscountType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_next_invoice_reply_line.py b/koyeb/api/test/test_next_invoice_reply_line.py similarity index 61% rename from koyeb/test/test_next_invoice_reply_line.py rename to koyeb/api/test/test_next_invoice_reply_line.py index 70420b45..4171c4a3 100644 --- a/koyeb/test/test_next_invoice_reply_line.py +++ b/koyeb/api/test/test_next_invoice_reply_line.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.next_invoice_reply_line import NextInvoiceReplyLine - +from koyeb.api.models.next_invoice_reply_line import NextInvoiceReplyLine class TestNextInvoiceReplyLine(unittest.TestCase): """NextInvoiceReplyLine unit test stubs""" @@ -28,20 +27,20 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyLine: """Test NextInvoiceReplyLine - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NextInvoiceReplyLine` """ model = NextInvoiceReplyLine() if include_optional: return NextInvoiceReplyLine( amount_excluding_tax = 56, - period = koyeb.models.next_invoice_reply/line/period.NextInvoiceReply.Line.Period( + period = koyeb.api.models.next_invoice_reply/line/period.NextInvoiceReply.Line.Period( start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), plan_nickname = '', - price = koyeb.models.next_invoice_reply/line/price.NextInvoiceReply.Line.Price( + price = koyeb.api.models.next_invoice_reply/line/price.NextInvoiceReply.Line.Price( unit_amount_decimal = 1.337, ), quantity = 56 ) @@ -55,6 +54,5 @@ def testNextInvoiceReplyLine(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_next_invoice_reply_line_period.py b/koyeb/api/test/test_next_invoice_reply_line_period.py similarity index 65% rename from koyeb/test/test_next_invoice_reply_line_period.py rename to koyeb/api/test/test_next_invoice_reply_line_period.py index 8c0fc94a..296ebea0 100644 --- a/koyeb/test/test_next_invoice_reply_line_period.py +++ b/koyeb/api/test/test_next_invoice_reply_line_period.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod - +from koyeb.api.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod class TestNextInvoiceReplyLinePeriod(unittest.TestCase): """NextInvoiceReplyLinePeriod unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyLinePeriod: """Test NextInvoiceReplyLinePeriod - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NextInvoiceReplyLinePeriod` """ model = NextInvoiceReplyLinePeriod() @@ -49,6 +48,5 @@ def testNextInvoiceReplyLinePeriod(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_next_invoice_reply_line_price.py b/koyeb/api/test/test_next_invoice_reply_line_price.py similarity index 62% rename from koyeb/test/test_next_invoice_reply_line_price.py rename to koyeb/api/test/test_next_invoice_reply_line_price.py index 05a27a30..ca029bd7 100644 --- a/koyeb/test/test_next_invoice_reply_line_price.py +++ b/koyeb/api/test/test_next_invoice_reply_line_price.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice - +from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice class TestNextInvoiceReplyLinePrice(unittest.TestCase): """NextInvoiceReplyLinePrice unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyLinePrice: """Test NextInvoiceReplyLinePrice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NextInvoiceReplyLinePrice` """ model = NextInvoiceReplyLinePrice() @@ -48,6 +47,5 @@ def testNextInvoiceReplyLinePrice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_notification.py b/koyeb/api/test/test_notification.py similarity index 60% rename from koyeb/test/test_notification.py rename to koyeb/api/test/test_notification.py index 83493c5c..33cbd477 100644 --- a/koyeb/test/test_notification.py +++ b/koyeb/api/test/test_notification.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.notification import Notification - +from koyeb.api.models.notification import Notification class TestNotification(unittest.TestCase): """Notification unit test stubs""" @@ -28,31 +27,31 @@ def tearDown(self): def make_instance(self, include_optional) -> Notification: """Test Notification - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Notification` """ model = Notification() if include_optional: return Notification( id = '', - activity = koyeb.models.activity.Activity( + activity = koyeb.api.models.activity.Activity( id = '', - actor = koyeb.models.object.Object( + actor = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), - object = koyeb.models.object.Object( + object = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), verb = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), is_read = True, is_seen = True, @@ -68,6 +67,5 @@ def testNotification(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_notification_list.py b/koyeb/api/test/test_notification_list.py similarity index 64% rename from koyeb/test/test_notification_list.py rename to koyeb/api/test/test_notification_list.py index 3d16dca0..e77c9995 100644 --- a/koyeb/test/test_notification_list.py +++ b/koyeb/api/test/test_notification_list.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.notification_list import NotificationList - +from koyeb.api.models.notification_list import NotificationList class TestNotificationList(unittest.TestCase): """NotificationList unit test stubs""" @@ -28,33 +27,33 @@ def tearDown(self): def make_instance(self, include_optional) -> NotificationList: """Test NotificationList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NotificationList` """ model = NotificationList() if include_optional: return NotificationList( notifications = [ - koyeb.models.notification.Notification( + koyeb.api.models.notification.Notification( id = '', - activity = koyeb.models.activity.Activity( + activity = koyeb.api.models.activity.Activity( id = '', - actor = koyeb.models.object.Object( + actor = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), - object = koyeb.models.object.Object( + object = koyeb.api.models.object.Object( id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True, ), verb = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), is_read = True, is_seen = True, @@ -78,6 +77,5 @@ def testNotificationList(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_o_auth_callback_reply.py b/koyeb/api/test/test_o_auth_callback_reply.py similarity index 64% rename from koyeb/test/test_o_auth_callback_reply.py rename to koyeb/api/test/test_o_auth_callback_reply.py index a93a615d..7c75f1da 100644 --- a/koyeb/test/test_o_auth_callback_reply.py +++ b/koyeb/api/test/test_o_auth_callback_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.o_auth_callback_reply import OAuthCallbackReply - +from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply class TestOAuthCallbackReply(unittest.TestCase): """OAuthCallbackReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OAuthCallbackReply: """Test OAuthCallbackReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `OAuthCallbackReply` """ model = OAuthCallbackReply() @@ -48,6 +47,5 @@ def testOAuthCallbackReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_o_auth_callback_request.py b/koyeb/api/test/test_o_auth_callback_request.py similarity index 63% rename from koyeb/test/test_o_auth_callback_request.py rename to koyeb/api/test/test_o_auth_callback_request.py index a55ec619..34877502 100644 --- a/koyeb/test/test_o_auth_callback_request.py +++ b/koyeb/api/test/test_o_auth_callback_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.o_auth_callback_request import OAuthCallbackRequest - +from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest class TestOAuthCallbackRequest(unittest.TestCase): """OAuthCallbackRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OAuthCallbackRequest: """Test OAuthCallbackRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `OAuthCallbackRequest` """ model = OAuthCallbackRequest() @@ -51,6 +50,5 @@ def testOAuthCallbackRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_o_auth_provider.py b/koyeb/api/test/test_o_auth_provider.py similarity index 61% rename from koyeb/test/test_o_auth_provider.py rename to koyeb/api/test/test_o_auth_provider.py index 84a582fb..d0c8c70f 100644 --- a/koyeb/test/test_o_auth_provider.py +++ b/koyeb/api/test/test_o_auth_provider.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.o_auth_provider import OAuthProvider - +from koyeb.api.models.o_auth_provider import OAuthProvider class TestOAuthProvider(unittest.TestCase): """OAuthProvider unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OAuthProvider: """Test OAuthProvider - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `OAuthProvider` """ model = OAuthProvider() @@ -50,6 +49,5 @@ def testOAuthProvider(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_object.py b/koyeb/api/test/test_object.py similarity index 58% rename from koyeb/test/test_object.py rename to koyeb/api/test/test_object.py index 01a22b9f..24511405 100644 --- a/koyeb/test/test_object.py +++ b/koyeb/api/test/test_object.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.object import Object - +from koyeb.api.models.object import Object class TestObject(unittest.TestCase): """Object unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Object: """Test Object - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Object` """ model = Object() @@ -39,7 +38,7 @@ def make_instance(self, include_optional) -> Object: id = '', name = '', type = '', - metadata = koyeb.models.metadata.metadata(), + metadata = koyeb.api.models.metadata.metadata(), deleted = True ) else: @@ -52,6 +51,5 @@ def testObject(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_organization.py b/koyeb/api/test/test_organization.py similarity index 75% rename from koyeb/test/test_organization.py rename to koyeb/api/test/test_organization.py index 27329333..5e343f9b 100644 --- a/koyeb/test/test_organization.py +++ b/koyeb/api/test/test_organization.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.organization import Organization - +from koyeb.api.models.organization import Organization class TestOrganization(unittest.TestCase): """Organization unit test stubs""" @@ -28,15 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> Organization: """Test Organization - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Organization` """ model = Organization() if include_optional: return Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> Organization: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -78,6 +78,5 @@ def testOrganization(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_organization_api.py b/koyeb/api/test/test_organization_api.py similarity index 88% rename from koyeb/test/test_organization_api.py rename to koyeb/api/test/test_organization_api.py index a23ce648..cb21e975 100644 --- a/koyeb/test/test_organization_api.py +++ b/koyeb/api/test/test_organization_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.organization_api import OrganizationApi +from koyeb.api.api.organization_api import OrganizationApi class TestOrganizationApi(unittest.TestCase): @@ -153,5 +153,5 @@ def test_upsert_signup_qualification(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_organization_confirmations_api.py b/koyeb/api/test/test_organization_confirmations_api.py similarity index 54% rename from koyeb/test/test_organization_confirmations_api.py rename to koyeb/api/test/test_organization_confirmations_api.py index afc2c4bc..6946632f 100644 --- a/koyeb/test/test_organization_confirmations_api.py +++ b/koyeb/api/test/test_organization_confirmations_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.organization_confirmations_api import OrganizationConfirmationsApi +from koyeb.api.api.organization_confirmations_api import OrganizationConfirmationsApi class TestOrganizationConfirmationsApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_confirm_organization_action(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_organization_deactivation_reason.py b/koyeb/api/test/test_organization_deactivation_reason.py similarity index 50% rename from koyeb/test/test_organization_deactivation_reason.py rename to koyeb/api/test/test_organization_deactivation_reason.py index f629e74c..ab5800e1 100644 --- a/koyeb/test/test_organization_deactivation_reason.py +++ b/koyeb/api/test/test_organization_deactivation_reason.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.organization_deactivation_reason import OrganizationDeactivationReason - +from koyeb.api.models.organization_deactivation_reason import OrganizationDeactivationReason class TestOrganizationDeactivationReason(unittest.TestCase): """OrganizationDeactivationReason unit test stubs""" @@ -30,6 +29,5 @@ def testOrganizationDeactivationReason(self): """Test OrganizationDeactivationReason""" # inst = OrganizationDeactivationReason() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_organization_detailed_status.py b/koyeb/api/test/test_organization_detailed_status.py new file mode 100644 index 00000000..0ae63f16 --- /dev/null +++ b/koyeb/api/test/test_organization_detailed_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.organization_detailed_status import OrganizationDetailedStatus + +class TestOrganizationDetailedStatus(unittest.TestCase): + """OrganizationDetailedStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationDetailedStatus(self): + """Test OrganizationDetailedStatus""" + # inst = OrganizationDetailedStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_organization_invitation.py b/koyeb/api/test/test_organization_invitation.py similarity index 69% rename from koyeb/test/test_organization_invitation.py rename to koyeb/api/test/test_organization_invitation.py index 8ed2eb48..6787eda7 100644 --- a/koyeb/test/test_organization_invitation.py +++ b/koyeb/api/test/test_organization_invitation.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.organization_invitation import OrganizationInvitation - +from koyeb.api.models.organization_invitation import OrganizationInvitation class TestOrganizationInvitation(unittest.TestCase): """OrganizationInvitation unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OrganizationInvitation: """Test OrganizationInvitation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `OrganizationInvitation` """ model = OrganizationInvitation() @@ -42,13 +41,13 @@ def make_instance(self, include_optional) -> OrganizationInvitation: status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', status = 'WARNING', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -56,7 +55,7 @@ def make_instance(self, include_optional) -> OrganizationInvitation: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -74,6 +73,5 @@ def testOrganizationInvitation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_organization_invitation_status.py b/koyeb/api/test/test_organization_invitation_status.py new file mode 100644 index 00000000..e3baed9f --- /dev/null +++ b/koyeb/api/test/test_organization_invitation_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.organization_invitation_status import OrganizationInvitationStatus + +class TestOrganizationInvitationStatus(unittest.TestCase): + """OrganizationInvitationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationInvitationStatus(self): + """Test OrganizationInvitationStatus""" + # inst = OrganizationInvitationStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_organization_invitations_api.py b/koyeb/api/test/test_organization_invitations_api.py similarity index 74% rename from koyeb/test/test_organization_invitations_api.py rename to koyeb/api/test/test_organization_invitations_api.py index 736acad1..6cce4d9a 100644 --- a/koyeb/test/test_organization_invitations_api.py +++ b/koyeb/api/test/test_organization_invitations_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.organization_invitations_api import OrganizationInvitationsApi +from koyeb.api.api.organization_invitations_api import OrganizationInvitationsApi class TestOrganizationInvitationsApi(unittest.TestCase): @@ -62,5 +62,5 @@ def test_resend_organization_invitation(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_organization_member.py b/koyeb/api/test/test_organization_member.py similarity index 67% rename from koyeb/test/test_organization_member.py rename to koyeb/api/test/test_organization_member.py index 0879fed0..5e73f59a 100644 --- a/koyeb/test/test_organization_member.py +++ b/koyeb/api/test/test_organization_member.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.organization_member import OrganizationMember - +from koyeb.api.models.organization_member import OrganizationMember class TestOrganizationMember(unittest.TestCase): """OrganizationMember unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OrganizationMember: """Test OrganizationMember - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `OrganizationMember` """ model = OrganizationMember() @@ -42,14 +41,14 @@ def make_instance(self, include_optional) -> OrganizationMember: joined_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), role = 'INVALID', status = 'INVALID', - user = koyeb.models.public_user.PublicUser( + user = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', avatar_url = '', github_id = '', github_user = '', ), - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', @@ -65,6 +64,5 @@ def testOrganizationMember(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_organization_member_status.py b/koyeb/api/test/test_organization_member_status.py new file mode 100644 index 00000000..e1cde224 --- /dev/null +++ b/koyeb/api/test/test_organization_member_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.organization_member_status import OrganizationMemberStatus + +class TestOrganizationMemberStatus(unittest.TestCase): + """OrganizationMemberStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationMemberStatus(self): + """Test OrganizationMemberStatus""" + # inst = OrganizationMemberStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_organization_members_api.py b/koyeb/api/test/test_organization_members_api.py similarity index 61% rename from koyeb/test/test_organization_members_api.py rename to koyeb/api/test/test_organization_members_api.py index 8b06d299..4120d374 100644 --- a/koyeb/test/test_organization_members_api.py +++ b/koyeb/api/test/test_organization_members_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.organization_members_api import OrganizationMembersApi +from koyeb.api.api.organization_members_api import OrganizationMembersApi class TestOrganizationMembersApi(unittest.TestCase): @@ -41,5 +41,5 @@ def test_remove_organization_member(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_organization_quotas_api.py b/koyeb/api/test/test_organization_quotas_api.py new file mode 100644 index 00000000..881d6a63 --- /dev/null +++ b/koyeb/api/test/test_organization_quotas_api.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.api.organization_quotas_api import OrganizationQuotasApi + + +class TestOrganizationQuotasApi(unittest.TestCase): + """OrganizationQuotasApi unit test stubs""" + + def setUp(self) -> None: + self.api = OrganizationQuotasApi() + + def tearDown(self) -> None: + pass + + def test_get_quotas(self) -> None: + """Test case for get_quotas + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/api/test/test_organization_status.py b/koyeb/api/test/test_organization_status.py new file mode 100644 index 00000000..999e3922 --- /dev/null +++ b/koyeb/api/test/test_organization_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.organization_status import OrganizationStatus + +class TestOrganizationStatus(unittest.TestCase): + """OrganizationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationStatus(self): + """Test OrganizationStatus""" + # inst = OrganizationStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_organization_summary.py b/koyeb/api/test/test_organization_summary.py similarity index 63% rename from koyeb/test/test_organization_summary.py rename to koyeb/api/test/test_organization_summary.py index 0773fa0f..18aed848 100644 --- a/koyeb/test/test_organization_summary.py +++ b/koyeb/api/test/test_organization_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.organization_summary import OrganizationSummary - +from koyeb.api.models.organization_summary import OrganizationSummary class TestOrganizationSummary(unittest.TestCase): """OrganizationSummary unit test stubs""" @@ -28,48 +27,48 @@ def tearDown(self): def make_instance(self, include_optional) -> OrganizationSummary: """Test OrganizationSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `OrganizationSummary` """ model = OrganizationSummary() if include_optional: return OrganizationSummary( organization_id = '', - instances = koyeb.models.instances_summary.InstancesSummary( + instances = koyeb.api.models.instances_summary.InstancesSummary( total = '', by_type = { 'key' : '' }, ), - apps = koyeb.models.apps_summary.AppsSummary( + apps = koyeb.api.models.apps_summary.AppsSummary( total = '', by_status = { 'key' : '' }, ), services = { - 'key' : koyeb.models.service_summary.ServiceSummary( + 'key' : koyeb.api.models.service_summary.ServiceSummary( total = '', by_status = { 'key' : '' }, ) }, - domains = koyeb.models.domains_summary.DomainsSummary( + domains = koyeb.api.models.domains_summary.DomainsSummary( total = '', by_status = { 'key' : '' }, ), - secrets = koyeb.models.secrets_summary.SecretsSummary( + secrets = koyeb.api.models.secrets_summary.SecretsSummary( total = '', by_type = { 'key' : '' }, ), - neon_postgres = koyeb.models.neon_postgres_summary.NeonPostgresSummary( + neon_postgres = koyeb.api.models.neon_postgres_summary.NeonPostgresSummary( total = '', by_instance_type = { 'key' : '' }, ), - members = koyeb.models.members_summary.MembersSummary( + members = koyeb.api.models.members_summary.MembersSummary( total = '', invitations_by_status = { 'key' : '' @@ -85,6 +84,5 @@ def testOrganizationSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_payment_method.py b/koyeb/api/test/test_payment_method.py similarity index 77% rename from koyeb/test/test_payment_method.py rename to koyeb/api/test/test_payment_method.py index 91d2679e..0975e378 100644 --- a/koyeb/test/test_payment_method.py +++ b/koyeb/api/test/test_payment_method.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.payment_method import PaymentMethod - +from koyeb.api.models.payment_method import PaymentMethod class TestPaymentMethod(unittest.TestCase): """PaymentMethod unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PaymentMethod: """Test PaymentMethod - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PaymentMethod` """ model = PaymentMethod() @@ -70,6 +69,5 @@ def testPaymentMethod(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_payment_method_status.py b/koyeb/api/test/test_payment_method_status.py new file mode 100644 index 00000000..9ecf478b --- /dev/null +++ b/koyeb/api/test/test_payment_method_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.payment_method_status import PaymentMethodStatus + +class TestPaymentMethodStatus(unittest.TestCase): + """PaymentMethodStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaymentMethodStatus(self): + """Test PaymentMethodStatus""" + # inst = PaymentMethodStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_payment_methods_api.py b/koyeb/api/test/test_payment_methods_api.py similarity index 73% rename from koyeb/test/test_payment_methods_api.py rename to koyeb/api/test/test_payment_methods_api.py index 19724117..1a4a1187 100644 --- a/koyeb/test/test_payment_methods_api.py +++ b/koyeb/api/test/test_payment_methods_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.payment_methods_api import PaymentMethodsApi +from koyeb.api.api.payment_methods_api import PaymentMethodsApi class TestPaymentMethodsApi(unittest.TestCase): @@ -62,5 +62,5 @@ def test_list_payment_methods(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_period_usage.py b/koyeb/api/test/test_period_usage.py similarity index 66% rename from koyeb/test/test_period_usage.py rename to koyeb/api/test/test_period_usage.py index b860ed88..9f94f88c 100644 --- a/koyeb/test/test_period_usage.py +++ b/koyeb/api/test/test_period_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.period_usage import PeriodUsage - +from koyeb.api.models.period_usage import PeriodUsage class TestPeriodUsage(unittest.TestCase): """PeriodUsage unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PeriodUsage: """Test PeriodUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PeriodUsage` """ model = PeriodUsage() @@ -39,23 +38,23 @@ def make_instance(self, include_optional) -> PeriodUsage: starting_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ending_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), apps = [ - koyeb.models.app_usage.AppUsage( + koyeb.api.models.app_usage.AppUsage( app_id = '', app_name = '', services = [ - koyeb.models.service_usage.ServiceUsage( + koyeb.api.models.service_usage.ServiceUsage( service_id = '', service_name = '', regions = { - 'key' : koyeb.models.region_usage.RegionUsage( + 'key' : koyeb.api.models.region_usage.RegionUsage( instances = { - 'key' : koyeb.models.instance_usage.InstanceUsage( + 'key' : koyeb.api.models.instance_usage.InstanceUsage( duration_seconds = 56, ) }, ) }, ) ], databases = [ - koyeb.models.database_usage.DatabaseUsage( + koyeb.api.models.database_usage.DatabaseUsage( service_id = '', service_name = '', compute_time_seconds = 56, @@ -73,6 +72,5 @@ def testPeriodUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_persistent_volume.py b/koyeb/api/test/test_persistent_volume.py similarity index 73% rename from koyeb/test/test_persistent_volume.py rename to koyeb/api/test/test_persistent_volume.py index a311076d..5fad7fe2 100644 --- a/koyeb/test/test_persistent_volume.py +++ b/koyeb/api/test/test_persistent_volume.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.persistent_volume import PersistentVolume - +from koyeb.api.models.persistent_volume import PersistentVolume class TestPersistentVolume(unittest.TestCase): """PersistentVolume unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PersistentVolume: """Test PersistentVolume - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PersistentVolume` """ model = PersistentVolume() @@ -61,6 +60,5 @@ def testPersistentVolume(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_persistent_volume_backing_store.py b/koyeb/api/test/test_persistent_volume_backing_store.py new file mode 100644 index 00000000..79baf817 --- /dev/null +++ b/koyeb/api/test/test_persistent_volume_backing_store.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.persistent_volume_backing_store import PersistentVolumeBackingStore + +class TestPersistentVolumeBackingStore(unittest.TestCase): + """PersistentVolumeBackingStore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPersistentVolumeBackingStore(self): + """Test PersistentVolumeBackingStore""" + # inst = PersistentVolumeBackingStore() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_persistent_volume_event.py b/koyeb/api/test/test_persistent_volume_event.py similarity index 64% rename from koyeb/test/test_persistent_volume_event.py rename to koyeb/api/test/test_persistent_volume_event.py index 1cdb9dd8..d1874444 100644 --- a/koyeb/test/test_persistent_volume_event.py +++ b/koyeb/api/test/test_persistent_volume_event.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.persistent_volume_event import PersistentVolumeEvent - +from koyeb.api.models.persistent_volume_event import PersistentVolumeEvent class TestPersistentVolumeEvent(unittest.TestCase): """PersistentVolumeEvent unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PersistentVolumeEvent: """Test PersistentVolumeEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PersistentVolumeEvent` """ model = PersistentVolumeEvent() @@ -42,7 +41,7 @@ def make_instance(self, include_optional) -> PersistentVolumeEvent: persistent_volume_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata() + metadata = koyeb.api.models.metadata.metadata() ) else: return PersistentVolumeEvent( @@ -54,6 +53,5 @@ def testPersistentVolumeEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_persistent_volume_quotas.py b/koyeb/api/test/test_persistent_volume_quotas.py similarity index 63% rename from koyeb/test/test_persistent_volume_quotas.py rename to koyeb/api/test/test_persistent_volume_quotas.py index da6d79b6..504abe8d 100644 --- a/koyeb/test/test_persistent_volume_quotas.py +++ b/koyeb/api/test/test_persistent_volume_quotas.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.persistent_volume_quotas import PersistentVolumeQuotas - +from koyeb.api.models.persistent_volume_quotas import PersistentVolumeQuotas class TestPersistentVolumeQuotas(unittest.TestCase): """PersistentVolumeQuotas unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PersistentVolumeQuotas: """Test PersistentVolumeQuotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PersistentVolumeQuotas` """ model = PersistentVolumeQuotas() @@ -50,6 +49,5 @@ def testPersistentVolumeQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_persistent_volume_status.py b/koyeb/api/test/test_persistent_volume_status.py new file mode 100644 index 00000000..72479d5a --- /dev/null +++ b/koyeb/api/test/test_persistent_volume_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.persistent_volume_status import PersistentVolumeStatus + +class TestPersistentVolumeStatus(unittest.TestCase): + """PersistentVolumeStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPersistentVolumeStatus(self): + """Test PersistentVolumeStatus""" + # inst = PersistentVolumeStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_persistent_volumes_api.py b/koyeb/api/test/test_persistent_volumes_api.py similarity index 76% rename from koyeb/test/test_persistent_volumes_api.py rename to koyeb/api/test/test_persistent_volumes_api.py index 67fdab2d..0d100236 100644 --- a/koyeb/test/test_persistent_volumes_api.py +++ b/koyeb/api/test/test_persistent_volumes_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.persistent_volumes_api import PersistentVolumesApi +from koyeb.api.api.persistent_volumes_api import PersistentVolumesApi class TestPersistentVolumesApi(unittest.TestCase): @@ -69,5 +69,5 @@ def test_update_persistent_volume(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_plan.py b/koyeb/api/test/test_plan.py new file mode 100644 index 00000000..b5cd7202 --- /dev/null +++ b/koyeb/api/test/test_plan.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.plan import Plan + +class TestPlan(unittest.TestCase): + """Plan unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPlan(self): + """Test Plan""" + # inst = Plan() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_port.py b/koyeb/api/test/test_port.py similarity index 58% rename from koyeb/test/test_port.py rename to koyeb/api/test/test_port.py index 3599cf5e..d0236d48 100644 --- a/koyeb/test/test_port.py +++ b/koyeb/api/test/test_port.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.port import Port - +from koyeb.api.models.port import Port class TestPort(unittest.TestCase): """Port unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Port: """Test Port - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Port` """ model = Port() @@ -49,6 +48,5 @@ def testPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_private_registry_configuration.py b/koyeb/api/test/test_private_registry_configuration.py similarity index 63% rename from koyeb/test/test_private_registry_configuration.py rename to koyeb/api/test/test_private_registry_configuration.py index 786cadd9..25d05bc6 100644 --- a/koyeb/test/test_private_registry_configuration.py +++ b/koyeb/api/test/test_private_registry_configuration.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.private_registry_configuration import PrivateRegistryConfiguration - +from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration class TestPrivateRegistryConfiguration(unittest.TestCase): """PrivateRegistryConfiguration unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PrivateRegistryConfiguration: """Test PrivateRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PrivateRegistryConfiguration` """ model = PrivateRegistryConfiguration() @@ -50,6 +49,5 @@ def testPrivateRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_profile_api.py b/koyeb/api/test/test_profile_api.py similarity index 81% rename from koyeb/test/test_profile_api.py rename to koyeb/api/test/test_profile_api.py index 6e5faf6b..5be81e08 100644 --- a/koyeb/test/test_profile_api.py +++ b/koyeb/api/test/test_profile_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.profile_api import ProfileApi +from koyeb.api.api.profile_api import ProfileApi class TestProfileApi(unittest.TestCase): @@ -83,7 +83,9 @@ def test_get_user_organization_invitation(self) -> None: pass def test_get_user_settings(self) -> None: - """Test case for get_user_settings""" + """Test case for get_user_settings + + """ pass def test_list_user_organization_invitations(self) -> None: @@ -157,7 +159,23 @@ def test_update_user2(self) -> None: pass def test_update_user_settings(self) -> None: - """Test case for update_user_settings""" + """Test case for update_user_settings + + """ + pass + + def test_update_user_v2(self) -> None: + """Test case for update_user_v2 + + Update User V2 + """ + pass + + def test_update_user_v22(self) -> None: + """Test case for update_user_v22 + + Update User V2 + """ pass def test_validate(self) -> None: @@ -168,5 +186,5 @@ def test_validate(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_provisioning_api.py b/koyeb/api/test/test_provisioning_api.py similarity index 66% rename from koyeb/test/test_provisioning_api.py rename to koyeb/api/test/test_provisioning_api.py index c5619d23..7d4e1ddf 100644 --- a/koyeb/test/test_provisioning_api.py +++ b/koyeb/api/test/test_provisioning_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.provisioning_api import ProvisioningApi +from koyeb.api.api.provisioning_api import ProvisioningApi class TestProvisioningApi(unittest.TestCase): @@ -48,5 +48,5 @@ def test_declare_step_progress(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_proxy_port_protocol.py b/koyeb/api/test/test_proxy_port_protocol.py new file mode 100644 index 00000000..094b1254 --- /dev/null +++ b/koyeb/api/test/test_proxy_port_protocol.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.proxy_port_protocol import ProxyPortProtocol + +class TestProxyPortProtocol(unittest.TestCase): + """ProxyPortProtocol unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProxyPortProtocol(self): + """Test ProxyPortProtocol""" + # inst = ProxyPortProtocol() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_public_organization.py b/koyeb/api/test/test_public_organization.py similarity index 63% rename from koyeb/test/test_public_organization.py rename to koyeb/api/test/test_public_organization.py index f9402d64..2d5f658a 100644 --- a/koyeb/test/test_public_organization.py +++ b/koyeb/api/test/test_public_organization.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.public_organization import PublicOrganization - +from koyeb.api.models.public_organization import PublicOrganization class TestPublicOrganization(unittest.TestCase): """PublicOrganization unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PublicOrganization: """Test PublicOrganization - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PublicOrganization` """ model = PublicOrganization() @@ -51,6 +50,5 @@ def testPublicOrganization(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_public_user.py b/koyeb/api/test/test_public_user.py similarity index 63% rename from koyeb/test/test_public_user.py rename to koyeb/api/test/test_public_user.py index b4770d9c..abd08baf 100644 --- a/koyeb/test/test_public_user.py +++ b/koyeb/api/test/test_public_user.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.public_user import PublicUser - +from koyeb.api.models.public_user import PublicUser class TestPublicUser(unittest.TestCase): """PublicUser unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PublicUser: """Test PublicUser - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PublicUser` """ model = PublicUser() @@ -53,6 +52,5 @@ def testPublicUser(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_query_logs_reply.py b/koyeb/api/test/test_query_logs_reply.py similarity index 61% rename from koyeb/test/test_query_logs_reply.py rename to koyeb/api/test/test_query_logs_reply.py index 8299505a..b637d279 100644 --- a/koyeb/test/test_query_logs_reply.py +++ b/koyeb/api/test/test_query_logs_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.query_logs_reply import QueryLogsReply - +from koyeb.api.models.query_logs_reply import QueryLogsReply class TestQueryLogsReply(unittest.TestCase): """QueryLogsReply unit test stubs""" @@ -28,21 +27,21 @@ def tearDown(self): def make_instance(self, include_optional) -> QueryLogsReply: """Test QueryLogsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `QueryLogsReply` """ model = QueryLogsReply() if include_optional: return QueryLogsReply( data = [ - koyeb.models.log_entry.LogEntry( + koyeb.api.models.log_entry.LogEntry( msg = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - labels = koyeb.models.labels.labels(), ) + labels = koyeb.api.models.labels.labels(), ) ], - pagination = koyeb.models.query_logs_reply_pagination.QueryLogsReplyPagination( + pagination = koyeb.api.models.query_logs_reply_pagination.QueryLogsReplyPagination( has_more = True, next_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), next_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -57,6 +56,5 @@ def testQueryLogsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_query_logs_reply_pagination.py b/koyeb/api/test/test_query_logs_reply_pagination.py similarity index 66% rename from koyeb/test/test_query_logs_reply_pagination.py rename to koyeb/api/test/test_query_logs_reply_pagination.py index 35a63193..cea01a9d 100644 --- a/koyeb/test/test_query_logs_reply_pagination.py +++ b/koyeb/api/test/test_query_logs_reply_pagination.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.query_logs_reply_pagination import QueryLogsReplyPagination - +from koyeb.api.models.query_logs_reply_pagination import QueryLogsReplyPagination class TestQueryLogsReplyPagination(unittest.TestCase): """QueryLogsReplyPagination unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> QueryLogsReplyPagination: """Test QueryLogsReplyPagination - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `QueryLogsReplyPagination` """ model = QueryLogsReplyPagination() @@ -50,6 +49,5 @@ def testQueryLogsReplyPagination(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_quotas.py b/koyeb/api/test/test_quotas.py similarity index 69% rename from koyeb/test/test_quotas.py rename to koyeb/api/test/test_quotas.py index 5aea8b54..bbb12f3d 100644 --- a/koyeb/test/test_quotas.py +++ b/koyeb/api/test/test_quotas.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.quotas import Quotas - +from koyeb.api.models.quotas import Quotas class TestQuotas(unittest.TestCase): """Quotas unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Quotas: """Test Quotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Quotas` """ model = Quotas() @@ -53,13 +52,13 @@ def make_instance(self, include_optional) -> Quotas: 'key' : '' }, persistent_volumes_by_region = { - 'key' : koyeb.models.persistent_volume_quotas.PersistentVolumeQuotas( + 'key' : koyeb.api.models.persistent_volume_quotas.PersistentVolumeQuotas( max_total_size = 56, max_volume_size = 56, max_per_instance_size = 56, ) }, custom_domains = '', - domains_load_balancer = koyeb.models.domain_load_balancer_quotas.DomainLoadBalancerQuotas( + domains_load_balancer = koyeb.api.models.domain_load_balancer_quotas.DomainLoadBalancerQuotas( max_koyeb = 56, ), metrics_retention = 56, logs_retention = 56, @@ -67,14 +66,15 @@ def make_instance(self, include_optional) -> Quotas: '' ], proxy_ports = 56, - scale_to_zero = koyeb.models.scale_to_zero_quotas.ScaleToZeroQuotas( + scale_to_zero = koyeb.api.models.scale_to_zero_quotas.ScaleToZeroQuotas( is_deep_sleep_enabled = True, deep_sleep_idle_delay_min = 56, deep_sleep_idle_delay_max = 56, is_light_sleep_enabled = True, light_sleep_idle_delay_min = 56, light_sleep_idle_delay_max = 56, ), - archives = '' + archives = '', + archive_max_size_mb = '' ) else: return Quotas( @@ -86,6 +86,5 @@ def testQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_quotas_api.py b/koyeb/api/test/test_quotas_api.py similarity index 54% rename from koyeb/test/test_quotas_api.py rename to koyeb/api/test/test_quotas_api.py index 2a5d3255..da5e0c58 100644 --- a/koyeb/test/test_quotas_api.py +++ b/koyeb/api/test/test_quotas_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.quotas_api import QuotasApi +from koyeb.api.api.quotas_api import QuotasApi class TestQuotasApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_review_organization_capacity(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_reactivate_organization_reply.py b/koyeb/api/test/test_reactivate_organization_reply.py similarity index 74% rename from koyeb/test/test_reactivate_organization_reply.py rename to koyeb/api/test/test_reactivate_organization_reply.py index a28ee99a..d54fe56d 100644 --- a/koyeb/test/test_reactivate_organization_reply.py +++ b/koyeb/api/test/test_reactivate_organization_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.reactivate_organization_reply import ReactivateOrganizationReply - +from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply class TestReactivateOrganizationReply(unittest.TestCase): """ReactivateOrganizationReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> ReactivateOrganizationReply: """Test ReactivateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ReactivateOrganizationReply` """ model = ReactivateOrganizationReply() if include_optional: return ReactivateOrganizationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> ReactivateOrganizationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testReactivateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_redeem_coupon_request.py b/koyeb/api/test/test_redeem_coupon_request.py similarity index 60% rename from koyeb/test/test_redeem_coupon_request.py rename to koyeb/api/test/test_redeem_coupon_request.py index 50a065a1..42c42d7d 100644 --- a/koyeb/test/test_redeem_coupon_request.py +++ b/koyeb/api/test/test_redeem_coupon_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.redeem_coupon_request import RedeemCouponRequest - +from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest class TestRedeemCouponRequest(unittest.TestCase): """RedeemCouponRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RedeemCouponRequest: """Test RedeemCouponRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RedeemCouponRequest` """ model = RedeemCouponRequest() @@ -48,6 +47,5 @@ def testRedeemCouponRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_redeploy_reply.py b/koyeb/api/test/test_redeploy_reply.py similarity index 65% rename from koyeb/test/test_redeploy_reply.py rename to koyeb/api/test/test_redeploy_reply.py index 1a695249..2a517c6b 100644 --- a/koyeb/test/test_redeploy_reply.py +++ b/koyeb/api/test/test_redeploy_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.redeploy_reply import RedeployReply - +from koyeb.api.models.redeploy_reply import RedeployReply class TestRedeployReply(unittest.TestCase): """RedeployReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> RedeployReply: """Test RedeployReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RedeployReply` """ model = RedeployReply() if include_optional: return RedeployReply( - deployment = koyeb.models.deployment.Deployment( + deployment = koyeb.api.models.deployment.Deployment( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -50,11 +49,11 @@ def make_instance(self, include_optional) -> RedeployReply: parent_id = '', child_id = '', status = 'PENDING', - metadata = koyeb.models.deployment_metadata.DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -63,41 +62,40 @@ def make_instance(self, include_optional) -> RedeployReply: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, protocol = 'tcp', ) ], ), - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', - type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -109,63 +107,63 @@ def make_instance(self, include_optional) -> RedeployReply: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -179,21 +177,21 @@ def make_instance(self, include_optional) -> RedeployReply: messages = [ '' ], - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -204,7 +202,7 @@ def make_instance(self, include_optional) -> RedeployReply: wait_completion = True, ) ], ) ], ), - database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(), + database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo(), skip_build = True, role = 'INVALID', version = '', @@ -220,6 +218,5 @@ def testRedeployReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_redeploy_request_info.py b/koyeb/api/test/test_redeploy_request_info.py similarity index 63% rename from koyeb/test/test_redeploy_request_info.py rename to koyeb/api/test/test_redeploy_request_info.py index 283910a6..4c2389b2 100644 --- a/koyeb/test/test_redeploy_request_info.py +++ b/koyeb/api/test/test_redeploy_request_info.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.redeploy_request_info import RedeployRequestInfo - +from koyeb.api.models.redeploy_request_info import RedeployRequestInfo class TestRedeployRequestInfo(unittest.TestCase): """RedeployRequestInfo unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RedeployRequestInfo: """Test RedeployRequestInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RedeployRequestInfo` """ model = RedeployRequestInfo() @@ -51,6 +50,5 @@ def testRedeployRequestInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_region.py b/koyeb/api/test/test_region.py similarity index 67% rename from koyeb/test/test_region.py rename to koyeb/api/test/test_region.py index 7d90bb16..2bd2d45e 100644 --- a/koyeb/test/test_region.py +++ b/koyeb/api/test/test_region.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.region import Region - +from koyeb.api.models.region import Region class TestRegion(unittest.TestCase): """Region unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Region: """Test Region - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Region` """ model = Region() @@ -61,6 +60,5 @@ def testRegion(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_region_availability.py b/koyeb/api/test/test_region_availability.py similarity index 61% rename from koyeb/test/test_region_availability.py rename to koyeb/api/test/test_region_availability.py index 6351cc06..0ca2c4bd 100644 --- a/koyeb/test/test_region_availability.py +++ b/koyeb/api/test/test_region_availability.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.region_availability import RegionAvailability - +from koyeb.api.models.region_availability import RegionAvailability class TestRegionAvailability(unittest.TestCase): """RegionAvailability unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionAvailability: """Test RegionAvailability - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionAvailability` """ model = RegionAvailability() @@ -48,6 +47,5 @@ def testRegionAvailability(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_region_list_item.py b/koyeb/api/test/test_region_list_item.py similarity index 68% rename from koyeb/test/test_region_list_item.py rename to koyeb/api/test/test_region_list_item.py index 68827758..17e11396 100644 --- a/koyeb/test/test_region_list_item.py +++ b/koyeb/api/test/test_region_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.region_list_item import RegionListItem - +from koyeb.api.models.region_list_item import RegionListItem class TestRegionListItem(unittest.TestCase): """RegionListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionListItem: """Test RegionListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionListItem` """ model = RegionListItem() @@ -61,6 +60,5 @@ def testRegionListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_region_usage.py b/koyeb/api/test/test_region_usage.py similarity index 58% rename from koyeb/test/test_region_usage.py rename to koyeb/api/test/test_region_usage.py index b3279b00..15b1e553 100644 --- a/koyeb/test/test_region_usage.py +++ b/koyeb/api/test/test_region_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.region_usage import RegionUsage - +from koyeb.api.models.region_usage import RegionUsage class TestRegionUsage(unittest.TestCase): """RegionUsage unit test stubs""" @@ -28,16 +27,16 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionUsage: """Test RegionUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionUsage` """ model = RegionUsage() if include_optional: return RegionUsage( instances = { - 'key' : koyeb.models.instance_usage.InstanceUsage( + 'key' : koyeb.api.models.instance_usage.InstanceUsage( duration_seconds = 56, ) } ) @@ -51,6 +50,5 @@ def testRegionUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_regional_deployment.py b/koyeb/api/test/test_regional_deployment.py similarity index 67% rename from koyeb/test/test_regional_deployment.py rename to koyeb/api/test/test_regional_deployment.py index 1bd578e3..b90a266c 100644 --- a/koyeb/test/test_regional_deployment.py +++ b/koyeb/api/test/test_regional_deployment.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.regional_deployment import RegionalDeployment - +from koyeb.api.models.regional_deployment import RegionalDeployment class TestRegionalDeployment(unittest.TestCase): """RegionalDeployment unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeployment: """Test RegionalDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionalDeployment` """ model = RegionalDeployment() @@ -54,44 +53,44 @@ def make_instance(self, include_optional) -> RegionalDeployment: messages = [ '' ], - definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition( + definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.route.Route( + koyeb.api.models.route.Route( port = 56, path = '', ) ], ports = [ - koyeb.models.port.Port( + koyeb.api.models.port.Port( port = 56, protocol = '', ) ], env = [ - koyeb.models.env.Env( + koyeb.api.models.env.Env( key = '', value = '', secret = '', ) ], region = '', - scaling = koyeb.models.scaling.Scaling( + scaling = koyeb.api.models.scaling.Scaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) @@ -99,37 +98,37 @@ def make_instance(self, include_optional) -> RegionalDeployment: instance_type = '', deployment_group = '', health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.regional_deployment_volume.RegionalDeploymentVolume( + koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -140,7 +139,7 @@ def make_instance(self, include_optional) -> RegionalDeployment: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -149,21 +148,21 @@ def make_instance(self, include_optional) -> RegionalDeployment: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), datacenters = [ '' ], - metadata = koyeb.models.regional_deployment_metadata.RegionalDeploymentMetadata(), - provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo( + metadata = koyeb.api.models.regional_deployment_metadata.RegionalDeploymentMetadata(), + provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo( sha = '', image = '', stages = [ - koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( + koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage( name = '', status = 'UNKNOWN', messages = [ @@ -172,12 +171,12 @@ def make_instance(self, include_optional) -> RegionalDeployment: started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), build_attempts = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt( id = 56, started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), steps = [ - koyeb.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( + koyeb.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep( name = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -203,6 +202,5 @@ def testRegionalDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_regional_deployment_definition.py b/koyeb/api/test/test_regional_deployment_definition.py similarity index 62% rename from koyeb/test/test_regional_deployment_definition.py rename to koyeb/api/test/test_regional_deployment_definition.py index 07e8e5bb..4d794d76 100644 --- a/koyeb/test/test_regional_deployment_definition.py +++ b/koyeb/api/test/test_regional_deployment_definition.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.regional_deployment_definition import RegionalDeploymentDefinition - +from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition class TestRegionalDeploymentDefinition(unittest.TestCase): """RegionalDeploymentDefinition unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentDefinition: """Test RegionalDeploymentDefinition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionalDeploymentDefinition` """ model = RegionalDeploymentDefinition() @@ -38,42 +37,42 @@ def make_instance(self, include_optional) -> RegionalDeploymentDefinition: return RegionalDeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy( + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy( type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID', ), routes = [ - koyeb.models.route.Route( + koyeb.api.models.route.Route( port = 56, path = '', ) ], ports = [ - koyeb.models.port.Port( + koyeb.api.models.port.Port( port = 56, protocol = '', ) ], env = [ - koyeb.models.env.Env( + koyeb.api.models.env.Env( key = '', value = '', secret = '', ) ], region = '', - scaling = koyeb.models.scaling.Scaling( + scaling = koyeb.api.models.scaling.Scaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) @@ -81,37 +80,37 @@ def make_instance(self, include_optional) -> RegionalDeploymentDefinition: instance_type = '', deployment_group = '', health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.regional_deployment_volume.RegionalDeploymentVolume( + koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -122,7 +121,7 @@ def make_instance(self, include_optional) -> RegionalDeploymentDefinition: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -131,11 +130,11 @@ def make_instance(self, include_optional) -> RegionalDeploymentDefinition: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), - docker = koyeb.models.docker_builder.DockerBuilder( + docker = koyeb.api.models.docker_builder.DockerBuilder( dockerfile = '', entrypoint = [ '' @@ -146,13 +145,13 @@ def make_instance(self, include_optional) -> RegionalDeploymentDefinition: ], target = '', privileged = True, ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), - docker = koyeb.models.docker_builder.DockerBuilder( + docker = koyeb.api.models.docker_builder.DockerBuilder( dockerfile = '', entrypoint = [ '' @@ -174,6 +173,5 @@ def testRegionalDeploymentDefinition(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_regional_deployment_definition_type.py b/koyeb/api/test/test_regional_deployment_definition_type.py similarity index 50% rename from koyeb/test/test_regional_deployment_definition_type.py rename to koyeb/api/test/test_regional_deployment_definition_type.py index 8a77b530..b1259310 100644 --- a/koyeb/test/test_regional_deployment_definition_type.py +++ b/koyeb/api/test/test_regional_deployment_definition_type.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.regional_deployment_definition_type import ( - RegionalDeploymentDefinitionType, -) - +from koyeb.api.models.regional_deployment_definition_type import RegionalDeploymentDefinitionType class TestRegionalDeploymentDefinitionType(unittest.TestCase): """RegionalDeploymentDefinitionType unit test stubs""" @@ -32,6 +29,5 @@ def testRegionalDeploymentDefinitionType(self): """Test RegionalDeploymentDefinitionType""" # inst = RegionalDeploymentDefinitionType() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_regional_deployment_event.py b/koyeb/api/test/test_regional_deployment_event.py similarity index 64% rename from koyeb/test/test_regional_deployment_event.py rename to koyeb/api/test/test_regional_deployment_event.py index 4b1de2de..3a6ba82d 100644 --- a/koyeb/test/test_regional_deployment_event.py +++ b/koyeb/api/test/test_regional_deployment_event.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.regional_deployment_event import RegionalDeploymentEvent - +from koyeb.api.models.regional_deployment_event import RegionalDeploymentEvent class TestRegionalDeploymentEvent(unittest.TestCase): """RegionalDeploymentEvent unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentEvent: """Test RegionalDeploymentEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionalDeploymentEvent` """ model = RegionalDeploymentEvent() @@ -42,7 +41,7 @@ def make_instance(self, include_optional) -> RegionalDeploymentEvent: regional_deployment_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata() + metadata = koyeb.api.models.metadata.metadata() ) else: return RegionalDeploymentEvent( @@ -54,6 +53,5 @@ def testRegionalDeploymentEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_regional_deployment_list_item.py b/koyeb/api/test/test_regional_deployment_list_item.py similarity index 61% rename from koyeb/test/test_regional_deployment_list_item.py rename to koyeb/api/test/test_regional_deployment_list_item.py index ebb8ce15..393fcc62 100644 --- a/koyeb/test/test_regional_deployment_list_item.py +++ b/koyeb/api/test/test_regional_deployment_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.regional_deployment_list_item import RegionalDeploymentListItem - +from koyeb.api.models.regional_deployment_list_item import RegionalDeploymentListItem class TestRegionalDeploymentListItem(unittest.TestCase): """RegionalDeploymentListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentListItem: """Test RegionalDeploymentListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionalDeploymentListItem` """ model = RegionalDeploymentListItem() @@ -44,44 +43,44 @@ def make_instance(self, include_optional) -> RegionalDeploymentListItem: messages = [ '' ], - definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition( + definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.route.Route( + koyeb.api.models.route.Route( port = 56, path = '', ) ], ports = [ - koyeb.models.port.Port( + koyeb.api.models.port.Port( port = 56, protocol = '', ) ], env = [ - koyeb.models.env.Env( + koyeb.api.models.env.Env( key = '', value = '', secret = '', ) ], region = '', - scaling = koyeb.models.scaling.Scaling( + scaling = koyeb.api.models.scaling.Scaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) @@ -89,37 +88,37 @@ def make_instance(self, include_optional) -> RegionalDeploymentListItem: instance_type = '', deployment_group = '', health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.regional_deployment_volume.RegionalDeploymentVolume( + koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -130,7 +129,7 @@ def make_instance(self, include_optional) -> RegionalDeploymentListItem: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -139,11 +138,11 @@ def make_instance(self, include_optional) -> RegionalDeploymentListItem: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ) ) else: @@ -156,6 +155,5 @@ def testRegionalDeploymentListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_regional_deployment_role.py b/koyeb/api/test/test_regional_deployment_role.py new file mode 100644 index 00000000..e371a629 --- /dev/null +++ b/koyeb/api/test/test_regional_deployment_role.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.regional_deployment_role import RegionalDeploymentRole + +class TestRegionalDeploymentRole(unittest.TestCase): + """RegionalDeploymentRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRegionalDeploymentRole(self): + """Test RegionalDeploymentRole""" + # inst = RegionalDeploymentRole() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/api/test/test_regional_deployment_status.py b/koyeb/api/test/test_regional_deployment_status.py new file mode 100644 index 00000000..7c00e754 --- /dev/null +++ b/koyeb/api/test/test_regional_deployment_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.regional_deployment_status import RegionalDeploymentStatus + +class TestRegionalDeploymentStatus(unittest.TestCase): + """RegionalDeploymentStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRegionalDeploymentStatus(self): + """Test RegionalDeploymentStatus""" + # inst = RegionalDeploymentStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_regional_deployment_volume.py b/koyeb/api/test/test_regional_deployment_volume.py similarity index 63% rename from koyeb/test/test_regional_deployment_volume.py rename to koyeb/api/test/test_regional_deployment_volume.py index 8265fbe4..96e1f417 100644 --- a/koyeb/test/test_regional_deployment_volume.py +++ b/koyeb/api/test/test_regional_deployment_volume.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.regional_deployment_volume import RegionalDeploymentVolume - +from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume class TestRegionalDeploymentVolume(unittest.TestCase): """RegionalDeploymentVolume unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentVolume: """Test RegionalDeploymentVolume - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RegionalDeploymentVolume` """ model = RegionalDeploymentVolume() @@ -50,6 +49,5 @@ def testRegionalDeploymentVolume(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_regional_deployments_api.py b/koyeb/api/test/test_regional_deployments_api.py similarity index 67% rename from koyeb/test/test_regional_deployments_api.py rename to koyeb/api/test/test_regional_deployments_api.py index 910c2d33..c408ddb3 100644 --- a/koyeb/test/test_regional_deployments_api.py +++ b/koyeb/api/test/test_regional_deployments_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.regional_deployments_api import RegionalDeploymentsApi +from koyeb.api.api.regional_deployments_api import RegionalDeploymentsApi class TestRegionalDeploymentsApi(unittest.TestCase): @@ -48,5 +48,5 @@ def test_list_regional_deployments(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_remove_organization_member_reply.py b/koyeb/api/test/test_remove_organization_member_reply.py similarity index 65% rename from koyeb/test/test_remove_organization_member_reply.py rename to koyeb/api/test/test_remove_organization_member_reply.py index 56e6ba96..83add0dd 100644 --- a/koyeb/test/test_remove_organization_member_reply.py +++ b/koyeb/api/test/test_remove_organization_member_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.remove_organization_member_reply import RemoveOrganizationMemberReply - +from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply class TestRemoveOrganizationMemberReply(unittest.TestCase): """RemoveOrganizationMemberReply unit test stubs""" @@ -28,29 +27,29 @@ def tearDown(self): def make_instance(self, include_optional) -> RemoveOrganizationMemberReply: """Test RemoveOrganizationMemberReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RemoveOrganizationMemberReply` """ model = RemoveOrganizationMemberReply() if include_optional: return RemoveOrganizationMemberReply( - member = koyeb.models.organization_member.OrganizationMember( + member = koyeb.api.models.organization_member.OrganizationMember( id = '', organization_id = '', user_id = '', joined_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), role = 'INVALID', status = 'INVALID', - user = koyeb.models.public_user.PublicUser( + user = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', avatar_url = '', github_id = '', github_user = '', ), - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), ) @@ -65,6 +64,5 @@ def testRemoveOrganizationMemberReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_repositories_api.py b/koyeb/api/test/test_repositories_api.py similarity index 64% rename from koyeb/test/test_repositories_api.py rename to koyeb/api/test/test_repositories_api.py index e62cc269..376cb9ce 100644 --- a/koyeb/test/test_repositories_api.py +++ b/koyeb/api/test/test_repositories_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.repositories_api import RepositoriesApi +from koyeb.api.api.repositories_api import RepositoriesApi class TestRepositoriesApi(unittest.TestCase): @@ -48,5 +48,5 @@ def test_resync_organization(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_resend_organization_invitation_reply.py b/koyeb/api/test/test_resend_organization_invitation_reply.py similarity index 67% rename from koyeb/test/test_resend_organization_invitation_reply.py rename to koyeb/api/test/test_resend_organization_invitation_reply.py index b47fcc77..981c760d 100644 --- a/koyeb/test/test_resend_organization_invitation_reply.py +++ b/koyeb/api/test/test_resend_organization_invitation_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.resend_organization_invitation_reply import ( - ResendOrganizationInvitationReply, -) - +from koyeb.api.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply class TestResendOrganizationInvitationReply(unittest.TestCase): """ResendOrganizationInvitationReply unit test stubs""" @@ -30,27 +27,27 @@ def tearDown(self): def make_instance(self, include_optional) -> ResendOrganizationInvitationReply: """Test ResendOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ResendOrganizationInvitationReply` """ model = ResendOrganizationInvitationReply() if include_optional: return ResendOrganizationInvitationReply( - invitation = koyeb.models.organization_invitation.OrganizationInvitation( + invitation = koyeb.api.models.organization_invitation.OrganizationInvitation( id = '', email = '', role = 'INVALID', status = 'INVALID', expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), organization_id = '', - organization = koyeb.models.public_organization.PublicOrganization( + organization = koyeb.api.models.public_organization.PublicOrganization( id = '', name = '', plan = 'hobby', ), invitee_id = '', - invitee = koyeb.models.public_user.PublicUser( + invitee = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -58,7 +55,7 @@ def make_instance(self, include_optional) -> ResendOrganizationInvitationReply: github_id = '', github_user = '', ), inviter_id = '', - inviter = koyeb.models.public_user.PublicUser( + inviter = koyeb.api.models.public_user.PublicUser( id = '', email = '', name = '', @@ -76,6 +73,5 @@ def testResendOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_reset_password_request.py b/koyeb/api/test/test_reset_password_request.py similarity index 61% rename from koyeb/test/test_reset_password_request.py rename to koyeb/api/test/test_reset_password_request.py index 88d4d4b3..7724bdfd 100644 --- a/koyeb/test/test_reset_password_request.py +++ b/koyeb/api/test/test_reset_password_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.reset_password_request import ResetPasswordRequest - +from koyeb.api.models.reset_password_request import ResetPasswordRequest class TestResetPasswordRequest(unittest.TestCase): """ResetPasswordRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ResetPasswordRequest: """Test ResetPasswordRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ResetPasswordRequest` """ model = ResetPasswordRequest() @@ -48,6 +47,5 @@ def testResetPasswordRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_reveal_secret_reply.py b/koyeb/api/test/test_reveal_secret_reply.py similarity index 60% rename from koyeb/test/test_reveal_secret_reply.py rename to koyeb/api/test/test_reveal_secret_reply.py index e5a01718..58b39fe4 100644 --- a/koyeb/test/test_reveal_secret_reply.py +++ b/koyeb/api/test/test_reveal_secret_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.reveal_secret_reply import RevealSecretReply - +from koyeb.api.models.reveal_secret_reply import RevealSecretReply class TestRevealSecretReply(unittest.TestCase): """RevealSecretReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RevealSecretReply: """Test RevealSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RevealSecretReply` """ model = RevealSecretReply() @@ -48,6 +47,5 @@ def testRevealSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_review_organization_capacity_reply.py b/koyeb/api/test/test_review_organization_capacity_reply.py similarity index 63% rename from koyeb/test/test_review_organization_capacity_reply.py rename to koyeb/api/test/test_review_organization_capacity_reply.py index fd73ca2d..0f065569 100644 --- a/koyeb/test/test_review_organization_capacity_reply.py +++ b/koyeb/api/test/test_review_organization_capacity_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.review_organization_capacity_reply import ( - ReviewOrganizationCapacityReply, -) - +from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply class TestReviewOrganizationCapacityReply(unittest.TestCase): """ReviewOrganizationCapacityReply unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ReviewOrganizationCapacityReply: """Test ReviewOrganizationCapacityReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ReviewOrganizationCapacityReply` """ model = ReviewOrganizationCapacityReply() @@ -50,6 +47,5 @@ def testReviewOrganizationCapacityReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_review_organization_capacity_request.py b/koyeb/api/test/test_review_organization_capacity_request.py similarity index 63% rename from koyeb/test/test_review_organization_capacity_request.py rename to koyeb/api/test/test_review_organization_capacity_request.py index 81dbaaf7..768a139b 100644 --- a/koyeb/test/test_review_organization_capacity_request.py +++ b/koyeb/api/test/test_review_organization_capacity_request.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.review_organization_capacity_request import ( - ReviewOrganizationCapacityRequest, -) - +from koyeb.api.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest class TestReviewOrganizationCapacityRequest(unittest.TestCase): """ReviewOrganizationCapacityRequest unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ReviewOrganizationCapacityRequest: """Test ReviewOrganizationCapacityRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ReviewOrganizationCapacityRequest` """ model = ReviewOrganizationCapacityRequest() @@ -51,6 +48,5 @@ def testReviewOrganizationCapacityRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_route.py b/koyeb/api/test/test_route.py similarity index 58% rename from koyeb/test/test_route.py rename to koyeb/api/test/test_route.py index d6ecf3ab..5f0c35ab 100644 --- a/koyeb/test/test_route.py +++ b/koyeb/api/test/test_route.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.route import Route - +from koyeb.api.models.route import Route class TestRoute(unittest.TestCase): """Route unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Route: """Test Route - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Route` """ model = Route() @@ -49,6 +48,5 @@ def testRoute(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_sample.py b/koyeb/api/test/test_sample.py similarity index 59% rename from koyeb/test/test_sample.py rename to koyeb/api/test/test_sample.py index ee88331f..6f72d0d6 100644 --- a/koyeb/test/test_sample.py +++ b/koyeb/api/test/test_sample.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.sample import Sample - +from koyeb.api.models.sample import Sample class TestSample(unittest.TestCase): """Sample unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Sample: """Test Sample - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Sample` """ model = Sample() @@ -49,6 +48,5 @@ def testSample(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_scale_to_zero_quotas.py b/koyeb/api/test/test_scale_to_zero_quotas.py similarity index 66% rename from koyeb/test/test_scale_to_zero_quotas.py rename to koyeb/api/test/test_scale_to_zero_quotas.py index 73bdbc49..f46bc81a 100644 --- a/koyeb/test/test_scale_to_zero_quotas.py +++ b/koyeb/api/test/test_scale_to_zero_quotas.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.scale_to_zero_quotas import ScaleToZeroQuotas - +from koyeb.api.models.scale_to_zero_quotas import ScaleToZeroQuotas class TestScaleToZeroQuotas(unittest.TestCase): """ScaleToZeroQuotas unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ScaleToZeroQuotas: """Test ScaleToZeroQuotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ScaleToZeroQuotas` """ model = ScaleToZeroQuotas() @@ -53,6 +52,5 @@ def testScaleToZeroQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_scaling.py b/koyeb/api/test/test_scaling.py new file mode 100644 index 00000000..902459db --- /dev/null +++ b/koyeb/api/test/test_scaling.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.scaling import Scaling + +class TestScaling(unittest.TestCase): + """Scaling unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Scaling: + """Test Scaling + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Scaling` + """ + model = Scaling() + if include_optional: + return Scaling( + min = 56, + max = 56, + targets = [ + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + value = 56, ), + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + value = 56, ), + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + value = 56, ), + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + value = 56, ), + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + value = 56, + quantile = 56, ), + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + value = 56, + deep_sleep_value = 56, + light_sleep_value = 56, ), ) + ] + ) + else: + return Scaling( + ) + """ + + def testScaling(self): + """Test Scaling""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_search_api.py b/koyeb/api/test/test_search_api.py similarity index 50% rename from koyeb/test/test_search_api.py rename to koyeb/api/test/test_search_api.py index bda54aca..600e5626 100644 --- a/koyeb/test/test_search_api.py +++ b/koyeb/api/test/test_search_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.search_api import SearchApi +from koyeb.api.api.search_api import SearchApi class TestSearchApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_search(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_secret.py b/koyeb/api/test/test_secret.py similarity index 54% rename from koyeb/test/test_secret.py rename to koyeb/api/test/test_secret.py index 62b8d7ff..450eb3a8 100644 --- a/koyeb/test/test_secret.py +++ b/koyeb/api/test/test_secret.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.secret import Secret - +from koyeb.api.models.secret import Secret class TestSecret(unittest.TestCase): """Secret unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Secret: """Test Secret - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Secret` """ model = Secret() @@ -43,30 +42,30 @@ def make_instance(self, include_optional) -> Secret: updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), value = '', - docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( + docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( username = '', password = '', ), - private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration( + private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration( username = '', password = '', url = '', ), - digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( + digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( username = '', password = '', ), - github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration( + github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration( username = '', password = '', ), - gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration( + gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration( username = '', password = '', ), - gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( + gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( keyfile_content = '', url = '', ), - azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( + azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( registry_name = '', username = '', password = '', ), - database_role_password = koyeb.models.database_role_password.DatabaseRolePassword( + database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword( username = '', password = '', ) ) @@ -80,6 +79,5 @@ def testSecret(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_secret_type.py b/koyeb/api/test/test_secret_type.py new file mode 100644 index 00000000..eb347950 --- /dev/null +++ b/koyeb/api/test/test_secret_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.secret_type import SecretType + +class TestSecretType(unittest.TestCase): + """SecretType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSecretType(self): + """Test SecretType""" + # inst = SecretType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_secrets_api.py b/koyeb/api/test/test_secrets_api.py similarity index 75% rename from koyeb/test/test_secrets_api.py rename to koyeb/api/test/test_secrets_api.py index 1d7d1ae0..3c1adca6 100644 --- a/koyeb/test/test_secrets_api.py +++ b/koyeb/api/test/test_secrets_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.secrets_api import SecretsApi +from koyeb.api.api.secrets_api import SecretsApi class TestSecretsApi(unittest.TestCase): @@ -76,5 +76,5 @@ def test_update_secret2(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_secrets_summary.py b/koyeb/api/test/test_secrets_summary.py similarity index 62% rename from koyeb/test/test_secrets_summary.py rename to koyeb/api/test/test_secrets_summary.py index ae89b4d2..3756dce2 100644 --- a/koyeb/test/test_secrets_summary.py +++ b/koyeb/api/test/test_secrets_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.secrets_summary import SecretsSummary - +from koyeb.api.models.secrets_summary import SecretsSummary class TestSecretsSummary(unittest.TestCase): """SecretsSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SecretsSummary: """Test SecretsSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `SecretsSummary` """ model = SecretsSummary() @@ -51,6 +50,5 @@ def testSecretsSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_service.py b/koyeb/api/test/test_service.py similarity index 71% rename from koyeb/test/test_service.py rename to koyeb/api/test/test_service.py index 96bbb06e..146af71d 100644 --- a/koyeb/test/test_service.py +++ b/koyeb/api/test/test_service.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.service import Service - +from koyeb.api.models.service import Service class TestService(unittest.TestCase): """Service unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Service: """Test Service - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Service` """ model = Service() @@ -56,16 +55,16 @@ def make_instance(self, include_optional) -> Service: active_deployment_id = '', latest_deployment_id = '', last_provisioned_deployment_id = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ) + auto_release = koyeb.api.models.auto_release.AutoRelease(), ) ) else: return Service( @@ -77,6 +76,5 @@ def testService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_service_event.py b/koyeb/api/test/test_service_event.py similarity index 62% rename from koyeb/test/test_service_event.py rename to koyeb/api/test/test_service_event.py index 1f066dac..5b51e4f1 100644 --- a/koyeb/test/test_service_event.py +++ b/koyeb/api/test/test_service_event.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.service_event import ServiceEvent - +from koyeb.api.models.service_event import ServiceEvent class TestServiceEvent(unittest.TestCase): """ServiceEvent unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceEvent: """Test ServiceEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ServiceEvent` """ model = ServiceEvent() @@ -42,7 +41,7 @@ def make_instance(self, include_optional) -> ServiceEvent: service_id = '', type = '', message = '', - metadata = koyeb.models.metadata.metadata() + metadata = koyeb.api.models.metadata.metadata() ) else: return ServiceEvent( @@ -54,6 +53,5 @@ def testServiceEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_service_list_item.py b/koyeb/api/test/test_service_list_item.py similarity index 64% rename from koyeb/test/test_service_list_item.py rename to koyeb/api/test/test_service_list_item.py index ac15a08f..a9f17d97 100644 --- a/koyeb/test/test_service_list_item.py +++ b/koyeb/api/test/test_service_list_item.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.service_list_item import ServiceListItem - +from koyeb.api.models.service_list_item import ServiceListItem class TestServiceListItem(unittest.TestCase): """ServiceListItem unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceListItem: """Test ServiceListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ServiceListItem` """ model = ServiceListItem() @@ -48,16 +47,16 @@ def make_instance(self, include_optional) -> ServiceListItem: '' ], version = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ), + auto_release = koyeb.api.models.auto_release.AutoRelease(), ), active_deployment_id = '', latest_deployment_id = '' ) @@ -71,6 +70,5 @@ def testServiceListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_service_state.py b/koyeb/api/test/test_service_state.py similarity index 55% rename from koyeb/test/test_service_state.py rename to koyeb/api/test/test_service_state.py index b3374c34..a744cfdc 100644 --- a/koyeb/test/test_service_state.py +++ b/koyeb/api/test/test_service_state.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.service_state import ServiceState - +from koyeb.api.models.service_state import ServiceState class TestServiceState(unittest.TestCase): """ServiceState unit test stubs""" @@ -28,25 +27,25 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceState: """Test ServiceState - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ServiceState` """ model = ServiceState() if include_optional: return ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease( + auto_release = koyeb.api.models.auto_release.AutoRelease( groups = [ - koyeb.models.configuration_extracted_from_the_latest_deployment_in_this_deployment_group.Configuration extracted from the latest deployment in this deployment_group( + koyeb.api.models.configuration_extracted_from_the_latest_deployment_in_this_deployment_group.Configuration extracted from the latest deployment in this deployment_group( name = '', repository = '', git_ref = '', @@ -63,6 +62,5 @@ def testServiceState(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_service_status.py b/koyeb/api/test/test_service_status.py new file mode 100644 index 00000000..327de0c9 --- /dev/null +++ b/koyeb/api/test/test_service_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.service_status import ServiceStatus + +class TestServiceStatus(unittest.TestCase): + """ServiceStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServiceStatus(self): + """Test ServiceStatus""" + # inst = ServiceStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_service_summary.py b/koyeb/api/test/test_service_summary.py similarity index 62% rename from koyeb/test/test_service_summary.py rename to koyeb/api/test/test_service_summary.py index afb6c1e0..fb85a681 100644 --- a/koyeb/test/test_service_summary.py +++ b/koyeb/api/test/test_service_summary.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.service_summary import ServiceSummary - +from koyeb.api.models.service_summary import ServiceSummary class TestServiceSummary(unittest.TestCase): """ServiceSummary unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceSummary: """Test ServiceSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ServiceSummary` """ model = ServiceSummary() @@ -51,6 +50,5 @@ def testServiceSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_service_type.py b/koyeb/api/test/test_service_type.py new file mode 100644 index 00000000..022e89fa --- /dev/null +++ b/koyeb/api/test/test_service_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.service_type import ServiceType + +class TestServiceType(unittest.TestCase): + """ServiceType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServiceType(self): + """Test ServiceType""" + # inst = ServiceType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_service_usage.py b/koyeb/api/test/test_service_usage.py similarity index 59% rename from koyeb/test/test_service_usage.py rename to koyeb/api/test/test_service_usage.py index 1883a176..039e8a4d 100644 --- a/koyeb/test/test_service_usage.py +++ b/koyeb/api/test/test_service_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.service_usage import ServiceUsage - +from koyeb.api.models.service_usage import ServiceUsage class TestServiceUsage(unittest.TestCase): """ServiceUsage unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceUsage: """Test ServiceUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ServiceUsage` """ model = ServiceUsage() @@ -39,9 +38,9 @@ def make_instance(self, include_optional) -> ServiceUsage: service_id = '', service_name = '', regions = { - 'key' : koyeb.models.region_usage.RegionUsage( + 'key' : koyeb.api.models.region_usage.RegionUsage( instances = { - 'key' : koyeb.models.instance_usage.InstanceUsage( + 'key' : koyeb.api.models.instance_usage.InstanceUsage( duration_seconds = 56, ) }, ) } @@ -56,6 +55,5 @@ def testServiceUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_services_api.py b/koyeb/api/test/test_services_api.py similarity index 82% rename from koyeb/test/test_services_api.py rename to koyeb/api/test/test_services_api.py index 7e27349d..5204a80d 100644 --- a/koyeb/test/test_services_api.py +++ b/koyeb/api/test/test_services_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.services_api import ServicesApi +from koyeb.api.api.services_api import ServicesApi class TestServicesApi(unittest.TestCase): @@ -104,5 +104,5 @@ def test_update_service2(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_sessions_api.py b/koyeb/api/test/test_sessions_api.py similarity index 66% rename from koyeb/test/test_sessions_api.py rename to koyeb/api/test/test_sessions_api.py index 4887c1e6..4ed09228 100644 --- a/koyeb/test/test_sessions_api.py +++ b/koyeb/api/test/test_sessions_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.sessions_api import SessionsApi +from koyeb.api.api.sessions_api import SessionsApi class TestSessionsApi(unittest.TestCase): @@ -55,5 +55,5 @@ def test_refresh_token(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_snapshot.py b/koyeb/api/test/test_snapshot.py similarity index 71% rename from koyeb/test/test_snapshot.py rename to koyeb/api/test/test_snapshot.py index 4cd057d4..11da1753 100644 --- a/koyeb/test/test_snapshot.py +++ b/koyeb/api/test/test_snapshot.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.snapshot import Snapshot - +from koyeb.api.models.snapshot import Snapshot class TestSnapshot(unittest.TestCase): """Snapshot unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Snapshot: """Test Snapshot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Snapshot` """ model = Snapshot() @@ -58,6 +57,5 @@ def testSnapshot(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_snapshot_status.py b/koyeb/api/test/test_snapshot_status.py new file mode 100644 index 00000000..001328c7 --- /dev/null +++ b/koyeb/api/test/test_snapshot_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.snapshot_status import SnapshotStatus + +class TestSnapshotStatus(unittest.TestCase): + """SnapshotStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotStatus(self): + """Test SnapshotStatus""" + # inst = SnapshotStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/api/test/test_snapshot_type.py b/koyeb/api/test/test_snapshot_type.py new file mode 100644 index 00000000..8974b6c1 --- /dev/null +++ b/koyeb/api/test/test_snapshot_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.snapshot_type import SnapshotType + +class TestSnapshotType(unittest.TestCase): + """SnapshotType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotType(self): + """Test SnapshotType""" + # inst = SnapshotType() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_snapshots_api.py b/koyeb/api/test/test_snapshots_api.py similarity index 71% rename from koyeb/test/test_snapshots_api.py rename to koyeb/api/test/test_snapshots_api.py index 985e50fe..8d71b480 100644 --- a/koyeb/test/test_snapshots_api.py +++ b/koyeb/api/test/test_snapshots_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.snapshots_api import SnapshotsApi +from koyeb.api.api.snapshots_api import SnapshotsApi class TestSnapshotsApi(unittest.TestCase): @@ -62,5 +62,5 @@ def test_update_snapshot(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_sso_api.py b/koyeb/api/test/test_sso_api.py new file mode 100644 index 00000000..13d340e3 --- /dev/null +++ b/koyeb/api/test/test_sso_api.py @@ -0,0 +1,43 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.api.sso_api import SsoApi + + +class TestSsoApi(unittest.TestCase): + """SsoApi unit test stubs""" + + def setUp(self) -> None: + self.api = SsoApi() + + def tearDown(self) -> None: + pass + + def test_canny_auth(self) -> None: + """Test case for canny_auth + + """ + pass + + def test_discourse_auth(self) -> None: + """Test case for discourse_auth + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_stream_result_of_exec_command_reply.py b/koyeb/api/test/test_stream_result_of_exec_command_reply.py similarity index 61% rename from koyeb/test/test_stream_result_of_exec_command_reply.py rename to koyeb/api/test/test_stream_result_of_exec_command_reply.py index 63aa9716..93daa070 100644 --- a/koyeb/test/test_stream_result_of_exec_command_reply.py +++ b/koyeb/api/test/test_stream_result_of_exec_command_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.stream_result_of_exec_command_reply import ( - StreamResultOfExecCommandReply, -) - +from koyeb.api.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply class TestStreamResultOfExecCommandReply(unittest.TestCase): """StreamResultOfExecCommandReply unit test stubs""" @@ -30,24 +27,24 @@ def tearDown(self): def make_instance(self, include_optional) -> StreamResultOfExecCommandReply: """Test StreamResultOfExecCommandReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `StreamResultOfExecCommandReply` """ model = StreamResultOfExecCommandReply() if include_optional: return StreamResultOfExecCommandReply( - result = koyeb.models.exec_command_reply.ExecCommandReply( - stdout = koyeb.models.exec_command_io.ExecCommandIO( + result = koyeb.api.models.exec_command_reply.ExecCommandReply( + stdout = koyeb.api.models.exec_command_io.ExecCommandIO( data = 'YQ==', close = True, ), - stderr = koyeb.models.exec_command_io.ExecCommandIO( + stderr = koyeb.api.models.exec_command_io.ExecCommandIO( data = 'YQ==', close = True, ), exited = True, exit_code = 56, ), - error = koyeb.models.google/rpc/status.google.rpc.Status( + error = koyeb.api.models.google/rpc/status.google.rpc.Status( code = 56, message = '', details = [ @@ -66,6 +63,5 @@ def testStreamResultOfExecCommandReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_stream_result_of_log_entry.py b/koyeb/api/test/test_stream_result_of_log_entry.py similarity index 61% rename from koyeb/test/test_stream_result_of_log_entry.py rename to koyeb/api/test/test_stream_result_of_log_entry.py index ce0f6d4e..35025605 100644 --- a/koyeb/test/test_stream_result_of_log_entry.py +++ b/koyeb/api/test/test_stream_result_of_log_entry.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.stream_result_of_log_entry import StreamResultOfLogEntry - +from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry class TestStreamResultOfLogEntry(unittest.TestCase): """StreamResultOfLogEntry unit test stubs""" @@ -28,19 +27,19 @@ def tearDown(self): def make_instance(self, include_optional) -> StreamResultOfLogEntry: """Test StreamResultOfLogEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `StreamResultOfLogEntry` """ model = StreamResultOfLogEntry() if include_optional: return StreamResultOfLogEntry( - result = koyeb.models.log_entry.LogEntry( + result = koyeb.api.models.log_entry.LogEntry( msg = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - labels = koyeb.models.labels.labels(), ), - error = koyeb.models.google/rpc/status.google.rpc.Status( + labels = koyeb.api.models.labels.labels(), ), + error = koyeb.api.models.google/rpc/status.google.rpc.Status( code = 56, message = '', details = [ @@ -59,6 +58,5 @@ def testStreamResultOfLogEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_subscription.py b/koyeb/api/test/test_subscription.py similarity index 78% rename from koyeb/test/test_subscription.py rename to koyeb/api/test/test_subscription.py index 594fa1ca..f125b360 100644 --- a/koyeb/test/test_subscription.py +++ b/koyeb/api/test/test_subscription.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.subscription import Subscription - +from koyeb.api.models.subscription import Subscription class TestSubscription(unittest.TestCase): """Subscription unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Subscription: """Test Subscription - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Subscription` """ model = Subscription() @@ -57,7 +56,7 @@ def make_instance(self, include_optional) -> Subscription: amount_payable = '', amount_paid = '', amount_remaining = '', - payment_failure = koyeb.models.subscription/payment_failure.Subscription.PaymentFailure( + payment_failure = koyeb.api.models.subscription/payment_failure.Subscription.PaymentFailure( failed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), next_attempt = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), attempt_count = '', @@ -67,7 +66,7 @@ def make_instance(self, include_optional) -> Subscription: error_message = '', payment_method_required = True, redirect_url = '', - stripe_sdk = koyeb.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK( + stripe_sdk = koyeb.api.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK( client_secret_key = '', raw_json = '', ), ), trialing = True, @@ -85,6 +84,5 @@ def testSubscription(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_subscription_payment_failure.py b/koyeb/api/test/test_subscription_payment_failure.py similarity index 67% rename from koyeb/test/test_subscription_payment_failure.py rename to koyeb/api/test/test_subscription_payment_failure.py index cbfca8eb..e0eb1969 100644 --- a/koyeb/test/test_subscription_payment_failure.py +++ b/koyeb/api/test/test_subscription_payment_failure.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.subscription_payment_failure import SubscriptionPaymentFailure - +from koyeb.api.models.subscription_payment_failure import SubscriptionPaymentFailure class TestSubscriptionPaymentFailure(unittest.TestCase): """SubscriptionPaymentFailure unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SubscriptionPaymentFailure: """Test SubscriptionPaymentFailure - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `SubscriptionPaymentFailure` """ model = SubscriptionPaymentFailure() @@ -45,7 +44,7 @@ def make_instance(self, include_optional) -> SubscriptionPaymentFailure: error_message = '', payment_method_required = True, redirect_url = '', - stripe_sdk = koyeb.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK( + stripe_sdk = koyeb.api.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK( client_secret_key = '', raw_json = '', ) ) @@ -59,6 +58,5 @@ def testSubscriptionPaymentFailure(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_subscription_payment_failure_stripe_sdk.py b/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py similarity index 64% rename from koyeb/test/test_subscription_payment_failure_stripe_sdk.py rename to koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py index a058f8c5..3d706976 100644 --- a/koyeb/test/test_subscription_payment_failure_stripe_sdk.py +++ b/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.subscription_payment_failure_stripe_sdk import ( - SubscriptionPaymentFailureStripeSDK, -) - +from koyeb.api.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK class TestSubscriptionPaymentFailureStripeSDK(unittest.TestCase): """SubscriptionPaymentFailureStripeSDK unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SubscriptionPaymentFailureStripeSDK: """Test SubscriptionPaymentFailureStripeSDK - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `SubscriptionPaymentFailureStripeSDK` """ model = SubscriptionPaymentFailureStripeSDK() @@ -51,6 +48,5 @@ def testSubscriptionPaymentFailureStripeSDK(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_subscription_status.py b/koyeb/api/test/test_subscription_status.py new file mode 100644 index 00000000..f95f1aa9 --- /dev/null +++ b/koyeb/api/test/test_subscription_status.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.subscription_status import SubscriptionStatus + +class TestSubscriptionStatus(unittest.TestCase): + """SubscriptionStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubscriptionStatus(self): + """Test SubscriptionStatus""" + # inst = SubscriptionStatus() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_subscriptions_api.py b/koyeb/api/test/test_subscriptions_api.py similarity index 52% rename from koyeb/test/test_subscriptions_api.py rename to koyeb/api/test/test_subscriptions_api.py index 709c49e9..0380e719 100644 --- a/koyeb/test/test_subscriptions_api.py +++ b/koyeb/api/test/test_subscriptions_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.subscriptions_api import SubscriptionsApi +from koyeb.api.api.subscriptions_api import SubscriptionsApi class TestSubscriptionsApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_get_subscription(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_summary_api.py b/koyeb/api/test/test_summary_api.py similarity index 53% rename from koyeb/test/test_summary_api.py rename to koyeb/api/test/test_summary_api.py index c767db06..f4e541b3 100644 --- a/koyeb/test/test_summary_api.py +++ b/koyeb/api/test/test_summary_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.summary_api import SummaryApi +from koyeb.api.api.summary_api import SummaryApi class TestSummaryApi(unittest.TestCase): @@ -34,5 +34,5 @@ def test_get_organization_summary(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_tcp_health_check.py b/koyeb/api/test/test_tcp_health_check.py similarity index 59% rename from koyeb/test/test_tcp_health_check.py rename to koyeb/api/test/test_tcp_health_check.py index 639a7626..21aaa13e 100644 --- a/koyeb/test/test_tcp_health_check.py +++ b/koyeb/api/test/test_tcp_health_check.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.tcp_health_check import TCPHealthCheck - +from koyeb.api.models.tcp_health_check import TCPHealthCheck class TestTCPHealthCheck(unittest.TestCase): """TCPHealthCheck unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> TCPHealthCheck: """Test TCPHealthCheck - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `TCPHealthCheck` """ model = TCPHealthCheck() @@ -48,6 +47,5 @@ def testTCPHealthCheck(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_token.py b/koyeb/api/test/test_token.py similarity index 63% rename from koyeb/test/test_token.py rename to koyeb/api/test/test_token.py index a974eb8b..20dd381e 100644 --- a/koyeb/test/test_token.py +++ b/koyeb/api/test/test_token.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.token import Token - +from koyeb.api.models.token import Token class TestToken(unittest.TestCase): """Token unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Token: """Test Token - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Token` """ model = Token() @@ -51,6 +50,5 @@ def testToken(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_trigger_deployment_metadata.py b/koyeb/api/test/test_trigger_deployment_metadata.py similarity index 65% rename from koyeb/test/test_trigger_deployment_metadata.py rename to koyeb/api/test/test_trigger_deployment_metadata.py index 604262d3..80988f65 100644 --- a/koyeb/test/test_trigger_deployment_metadata.py +++ b/koyeb/api/test/test_trigger_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.trigger_deployment_metadata import TriggerDeploymentMetadata - +from koyeb.api.models.trigger_deployment_metadata import TriggerDeploymentMetadata class TestTriggerDeploymentMetadata(unittest.TestCase): """TriggerDeploymentMetadata unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> TriggerDeploymentMetadata: """Test TriggerDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `TriggerDeploymentMetadata` """ model = TriggerDeploymentMetadata() @@ -38,7 +37,7 @@ def make_instance(self, include_optional) -> TriggerDeploymentMetadata: return TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -58,6 +57,5 @@ def testTriggerDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_trigger_deployment_metadata_actor_type.py b/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py similarity index 50% rename from koyeb/test/test_trigger_deployment_metadata_actor_type.py rename to koyeb/api/test/test_trigger_deployment_metadata_actor_type.py index 7d1dbc02..963424df 100644 --- a/koyeb/test/test_trigger_deployment_metadata_actor_type.py +++ b/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.trigger_deployment_metadata_actor_type import ( - TriggerDeploymentMetadataActorType, -) - +from koyeb.api.models.trigger_deployment_metadata_actor_type import TriggerDeploymentMetadataActorType class TestTriggerDeploymentMetadataActorType(unittest.TestCase): """TriggerDeploymentMetadataActorType unit test stubs""" @@ -32,6 +29,5 @@ def testTriggerDeploymentMetadataActorType(self): """Test TriggerDeploymentMetadataActorType""" # inst = TriggerDeploymentMetadataActorType() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_trigger_deployment_metadata_trigger_type.py b/koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py similarity index 51% rename from koyeb/test/test_trigger_deployment_metadata_trigger_type.py rename to koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py index 4361049d..a1c9d5cd 100644 --- a/koyeb/test/test_trigger_deployment_metadata_trigger_type.py +++ b/koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.trigger_deployment_metadata_trigger_type import ( - TriggerDeploymentMetadataTriggerType, -) - +from koyeb.api.models.trigger_deployment_metadata_trigger_type import TriggerDeploymentMetadataTriggerType class TestTriggerDeploymentMetadataTriggerType(unittest.TestCase): """TriggerDeploymentMetadataTriggerType unit test stubs""" @@ -32,6 +29,5 @@ def testTriggerDeploymentMetadataTriggerType(self): """Test TriggerDeploymentMetadataTriggerType""" # inst = TriggerDeploymentMetadataTriggerType() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_trigger_git_deployment_metadata.py b/koyeb/api/test/test_trigger_git_deployment_metadata.py similarity index 67% rename from koyeb/test/test_trigger_git_deployment_metadata.py rename to koyeb/api/test/test_trigger_git_deployment_metadata.py index 23c2827c..368d57c0 100644 --- a/koyeb/test/test_trigger_git_deployment_metadata.py +++ b/koyeb/api/test/test_trigger_git_deployment_metadata.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata - +from koyeb.api.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata class TestTriggerGitDeploymentMetadata(unittest.TestCase): """TriggerGitDeploymentMetadata unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> TriggerGitDeploymentMetadata: """Test TriggerGitDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `TriggerGitDeploymentMetadata` """ model = TriggerGitDeploymentMetadata() @@ -55,6 +54,5 @@ def testTriggerGitDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_trigger_git_deployment_metadata_provider.py b/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py similarity index 51% rename from koyeb/test/test_trigger_git_deployment_metadata_provider.py rename to koyeb/api/test/test_trigger_git_deployment_metadata_provider.py index f3af4cd4..094baab1 100644 --- a/koyeb/test/test_trigger_git_deployment_metadata_provider.py +++ b/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.trigger_git_deployment_metadata_provider import ( - TriggerGitDeploymentMetadataProvider, -) - +from koyeb.api.models.trigger_git_deployment_metadata_provider import TriggerGitDeploymentMetadataProvider class TestTriggerGitDeploymentMetadataProvider(unittest.TestCase): """TriggerGitDeploymentMetadataProvider unit test stubs""" @@ -32,6 +29,5 @@ def testTriggerGitDeploymentMetadataProvider(self): """Test TriggerGitDeploymentMetadataProvider""" # inst = TriggerGitDeploymentMetadataProvider() - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_app.py b/koyeb/api/test/test_update_app.py similarity index 58% rename from koyeb/test/test_update_app.py rename to koyeb/api/test/test_update_app.py index 1c756649..d7990606 100644 --- a/koyeb/test/test_update_app.py +++ b/koyeb/api/test/test_update_app.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_app import UpdateApp - +from koyeb.api.models.update_app import UpdateApp class TestUpdateApp(unittest.TestCase): """UpdateApp unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateApp: """Test UpdateApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateApp` """ model = UpdateApp() @@ -48,6 +47,5 @@ def testUpdateApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_app_reply.py b/koyeb/api/test/test_update_app_reply.py similarity index 75% rename from koyeb/test/test_update_app_reply.py rename to koyeb/api/test/test_update_app_reply.py index 323f4ec6..19d83c3c 100644 --- a/koyeb/test/test_update_app_reply.py +++ b/koyeb/api/test/test_update_app_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_app_reply import UpdateAppReply - +from koyeb.api.models.update_app_reply import UpdateAppReply class TestUpdateAppReply(unittest.TestCase): """UpdateAppReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateAppReply: """Test UpdateAppReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateAppReply` """ model = UpdateAppReply() if include_optional: return UpdateAppReply( - app = koyeb.models.app.App( + app = koyeb.api.models.app.App( id = '', name = '', organization_id = '', @@ -53,7 +52,7 @@ def make_instance(self, include_optional) -> UpdateAppReply: ], version = '', domains = [ - koyeb.models.domain.Domain( + koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -65,8 +64,8 @@ def make_instance(self, include_optional) -> UpdateAppReply: verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), intended_cname = '', version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ], ) ) @@ -80,6 +79,5 @@ def testUpdateAppReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_budget_reply.py b/koyeb/api/test/test_update_budget_reply.py similarity index 60% rename from koyeb/test/test_update_budget_reply.py rename to koyeb/api/test/test_update_budget_reply.py index 48aadd45..5d97f737 100644 --- a/koyeb/test/test_update_budget_reply.py +++ b/koyeb/api/test/test_update_budget_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_budget_reply import UpdateBudgetReply - +from koyeb.api.models.update_budget_reply import UpdateBudgetReply class TestUpdateBudgetReply(unittest.TestCase): """UpdateBudgetReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateBudgetReply: """Test UpdateBudgetReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateBudgetReply` """ model = UpdateBudgetReply() if include_optional: return UpdateBudgetReply( - budget = koyeb.models.budget.Budget( + budget = koyeb.api.models.budget.Budget( amount = '', thresholds = [ '' @@ -52,6 +51,5 @@ def testUpdateBudgetReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_budget_request.py b/koyeb/api/test/test_update_budget_request.py similarity index 60% rename from koyeb/test/test_update_budget_request.py rename to koyeb/api/test/test_update_budget_request.py index c74be12c..4181a5a3 100644 --- a/koyeb/test/test_update_budget_request.py +++ b/koyeb/api/test/test_update_budget_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_budget_request import UpdateBudgetRequest - +from koyeb.api.models.update_budget_request import UpdateBudgetRequest class TestUpdateBudgetRequest(unittest.TestCase): """UpdateBudgetRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateBudgetRequest: """Test UpdateBudgetRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateBudgetRequest` """ model = UpdateBudgetRequest() @@ -48,6 +47,5 @@ def testUpdateBudgetRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_credential_reply.py b/koyeb/api/test/test_update_credential_reply.py similarity index 69% rename from koyeb/test/test_update_credential_reply.py rename to koyeb/api/test/test_update_credential_reply.py index 9ad81ed2..7a7b24bd 100644 --- a/koyeb/test/test_update_credential_reply.py +++ b/koyeb/api/test/test_update_credential_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_credential_reply import UpdateCredentialReply - +from koyeb.api.models.update_credential_reply import UpdateCredentialReply class TestUpdateCredentialReply(unittest.TestCase): """UpdateCredentialReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateCredentialReply: """Test UpdateCredentialReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateCredentialReply` """ model = UpdateCredentialReply() if include_optional: return UpdateCredentialReply( - credential = koyeb.models.credential.Credential( + credential = koyeb.api.models.credential.Credential( id = '', type = 'INVALID', name = '', @@ -58,6 +57,5 @@ def testUpdateCredentialReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_domain.py b/koyeb/api/test/test_update_domain.py similarity index 60% rename from koyeb/test/test_update_domain.py rename to koyeb/api/test/test_update_domain.py index a484f90a..7e313158 100644 --- a/koyeb/test/test_update_domain.py +++ b/koyeb/api/test/test_update_domain.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_domain import UpdateDomain - +from koyeb.api.models.update_domain import UpdateDomain class TestUpdateDomain(unittest.TestCase): """UpdateDomain unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateDomain: """Test UpdateDomain - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateDomain` """ model = UpdateDomain() @@ -49,6 +48,5 @@ def testUpdateDomain(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_domain_reply.py b/koyeb/api/test/test_update_domain_reply.py similarity index 66% rename from koyeb/test/test_update_domain_reply.py rename to koyeb/api/test/test_update_domain_reply.py index bca42951..07c70183 100644 --- a/koyeb/test/test_update_domain_reply.py +++ b/koyeb/api/test/test_update_domain_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_domain_reply import UpdateDomainReply - +from koyeb.api.models.update_domain_reply import UpdateDomainReply class TestUpdateDomainReply(unittest.TestCase): """UpdateDomainReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateDomainReply: """Test UpdateDomainReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateDomainReply` """ model = UpdateDomainReply() if include_optional: return UpdateDomainReply( - domain = koyeb.models.domain.Domain( + domain = koyeb.api.models.domain.Domain( id = '', organization_id = '', name = '', @@ -52,8 +51,8 @@ def make_instance(self, include_optional) -> UpdateDomainReply: '' ], version = '', - cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), - koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( + cloudflare = koyeb.api.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(), + koyeb = koyeb.api.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb( request_timeout_seconds = 56, ), ) ) else: @@ -66,6 +65,5 @@ def testUpdateDomainReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_organization_plan_reply.py b/koyeb/api/test/test_update_organization_plan_reply.py similarity index 74% rename from koyeb/test/test_update_organization_plan_reply.py rename to koyeb/api/test/test_update_organization_plan_reply.py index c999766b..0e61465f 100644 --- a/koyeb/test/test_update_organization_plan_reply.py +++ b/koyeb/api/test/test_update_organization_plan_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_organization_plan_reply import UpdateOrganizationPlanReply - +from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply class TestUpdateOrganizationPlanReply(unittest.TestCase): """UpdateOrganizationPlanReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOrganizationPlanReply: """Test UpdateOrganizationPlanReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateOrganizationPlanReply` """ model = UpdateOrganizationPlanReply() if include_optional: return UpdateOrganizationPlanReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> UpdateOrganizationPlanReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testUpdateOrganizationPlanReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_organization_plan_request.py b/koyeb/api/test/test_update_organization_plan_request.py similarity index 62% rename from koyeb/test/test_update_organization_plan_request.py rename to koyeb/api/test/test_update_organization_plan_request.py index 565a6b91..9ec5cc71 100644 --- a/koyeb/test/test_update_organization_plan_request.py +++ b/koyeb/api/test/test_update_organization_plan_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_organization_plan_request import UpdateOrganizationPlanRequest - +from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest class TestUpdateOrganizationPlanRequest(unittest.TestCase): """UpdateOrganizationPlanRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOrganizationPlanRequest: """Test UpdateOrganizationPlanRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateOrganizationPlanRequest` """ model = UpdateOrganizationPlanRequest() @@ -48,6 +47,5 @@ def testUpdateOrganizationPlanRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_organization_reply.py b/koyeb/api/test/test_update_organization_reply.py similarity index 74% rename from koyeb/test/test_update_organization_reply.py rename to koyeb/api/test/test_update_organization_reply.py index 1f8eb3d9..6327140b 100644 --- a/koyeb/test/test_update_organization_reply.py +++ b/koyeb/api/test/test_update_organization_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_organization_reply import UpdateOrganizationReply - +from koyeb.api.models.update_organization_reply import UpdateOrganizationReply class TestUpdateOrganizationReply(unittest.TestCase): """UpdateOrganizationReply unit test stubs""" @@ -28,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOrganizationReply: """Test UpdateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateOrganizationReply` """ model = UpdateOrganizationReply() if include_optional: return UpdateOrganizationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> UpdateOrganizationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -79,6 +79,5 @@ def testUpdateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_password_request.py b/koyeb/api/test/test_update_password_request.py similarity index 62% rename from koyeb/test/test_update_password_request.py rename to koyeb/api/test/test_update_password_request.py index 27dd2dd6..170f593a 100644 --- a/koyeb/test/test_update_password_request.py +++ b/koyeb/api/test/test_update_password_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_password_request import UpdatePasswordRequest - +from koyeb.api.models.update_password_request import UpdatePasswordRequest class TestUpdatePasswordRequest(unittest.TestCase): """UpdatePasswordRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdatePasswordRequest: """Test UpdatePasswordRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdatePasswordRequest` """ model = UpdatePasswordRequest() @@ -49,6 +48,5 @@ def testUpdatePasswordRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_persistent_volume_reply.py b/koyeb/api/test/test_update_persistent_volume_reply.py similarity index 69% rename from koyeb/test/test_update_persistent_volume_reply.py rename to koyeb/api/test/test_update_persistent_volume_reply.py index dd04587e..1af1452e 100644 --- a/koyeb/test/test_update_persistent_volume_reply.py +++ b/koyeb/api/test/test_update_persistent_volume_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_persistent_volume_reply import UpdatePersistentVolumeReply - +from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply class TestUpdatePersistentVolumeReply(unittest.TestCase): """UpdatePersistentVolumeReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdatePersistentVolumeReply: """Test UpdatePersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdatePersistentVolumeReply` """ model = UpdatePersistentVolumeReply() if include_optional: return UpdatePersistentVolumeReply( - volume = koyeb.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( + volume = koyeb.api.models.the_object_that_represent_a_volume_to_handle_persistency_for_deployments.The object that represent a volume to handle persistency for deployments( id = '', name = '', snapshot_id = '', @@ -62,6 +61,5 @@ def testUpdatePersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_persistent_volume_request.py b/koyeb/api/test/test_update_persistent_volume_request.py similarity index 63% rename from koyeb/test/test_update_persistent_volume_request.py rename to koyeb/api/test/test_update_persistent_volume_request.py index 1ea2a54a..4844fd1d 100644 --- a/koyeb/test/test_update_persistent_volume_request.py +++ b/koyeb/api/test/test_update_persistent_volume_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_persistent_volume_request import UpdatePersistentVolumeRequest - +from koyeb.api.models.update_persistent_volume_request import UpdatePersistentVolumeRequest class TestUpdatePersistentVolumeRequest(unittest.TestCase): """UpdatePersistentVolumeRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdatePersistentVolumeRequest: """Test UpdatePersistentVolumeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdatePersistentVolumeRequest` """ model = UpdatePersistentVolumeRequest() @@ -49,6 +48,5 @@ def testUpdatePersistentVolumeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_secret_reply.py b/koyeb/api/test/test_update_secret_reply.py similarity index 55% rename from koyeb/test/test_update_secret_reply.py rename to koyeb/api/test/test_update_secret_reply.py index 05cb75e5..da895bdd 100644 --- a/koyeb/test/test_update_secret_reply.py +++ b/koyeb/api/test/test_update_secret_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_secret_reply import UpdateSecretReply - +from koyeb.api.models.update_secret_reply import UpdateSecretReply class TestUpdateSecretReply(unittest.TestCase): """UpdateSecretReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateSecretReply: """Test UpdateSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateSecretReply` """ model = UpdateSecretReply() if include_optional: return UpdateSecretReply( - secret = koyeb.models.secret.Secret( + secret = koyeb.api.models.secret.Secret( id = '', name = '', organization_id = '', @@ -44,30 +43,30 @@ def make_instance(self, include_optional) -> UpdateSecretReply: updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), value = '', - docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( + docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration( username = '', password = '', ), - private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration( + private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration( username = '', password = '', url = '', ), - digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( + digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration( username = '', password = '', ), - github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration( + github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration( username = '', password = '', ), - gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration( + gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration( username = '', password = '', ), - gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( + gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration( keyfile_content = '', url = '', ), - azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( + azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration( registry_name = '', username = '', password = '', ), - database_role_password = koyeb.models.database_role_password.DatabaseRolePassword( + database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword( username = '', password = '', ), ) ) @@ -81,6 +80,5 @@ def testUpdateSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_service.py b/koyeb/api/test/test_update_service.py similarity index 60% rename from koyeb/test/test_update_service.py rename to koyeb/api/test/test_update_service.py index 0e5a0670..4638d130 100644 --- a/koyeb/test/test_update_service.py +++ b/koyeb/api/test/test_update_service.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_service import UpdateService - +from koyeb.api.models.update_service import UpdateService class TestUpdateService(unittest.TestCase): """UpdateService unit test stubs""" @@ -28,35 +27,35 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateService: """Test UpdateService - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateService` """ model = UpdateService() if include_optional: return UpdateService( - definition = koyeb.models.deployment_definition.DeploymentDefinition( + definition = koyeb.api.models.deployment_definition.DeploymentDefinition( name = '', type = 'INVALID', - strategy = koyeb.models.deployment_strategy.DeploymentStrategy(), + strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(), routes = [ - koyeb.models.deployment_route.DeploymentRoute( + koyeb.api.models.deployment_route.DeploymentRoute( port = 56, path = '', ) ], ports = [ - koyeb.models.deployment_port.DeploymentPort( + koyeb.api.models.deployment_port.DeploymentPort( port = 56, protocol = '', ) ], proxy_ports = [ - koyeb.models.deployment_proxy_port.DeploymentProxyPort( + koyeb.api.models.deployment_proxy_port.DeploymentProxyPort( port = 56, protocol = 'tcp', ) ], env = [ - koyeb.models.deployment_env.DeploymentEnv( + koyeb.api.models.deployment_env.DeploymentEnv( scopes = [ '' ], @@ -68,63 +67,63 @@ def make_instance(self, include_optional) -> UpdateService: '' ], scalings = [ - koyeb.models.deployment_scaling.DeploymentScaling( + koyeb.api.models.deployment_scaling.DeploymentScaling( min = 56, max = 56, targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( + koyeb.api.models.deployment_scaling_target.DeploymentScalingTarget( + average_cpu = koyeb.api.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( + average_mem = koyeb.api.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( + requests_per_second = koyeb.api.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( + concurrent_requests = koyeb.api.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( + requests_response_time = koyeb.api.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( value = 56, quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( + sleep_idle_delay = koyeb.api.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( value = 56, deep_sleep_value = 56, light_sleep_value = 56, ), ) ], ) ], instance_types = [ - koyeb.models.deployment_instance_type.DeploymentInstanceType() + koyeb.api.models.deployment_instance_type.DeploymentInstanceType() ], health_checks = [ - koyeb.models.deployment_health_check.DeploymentHealthCheck( + koyeb.api.models.deployment_health_check.DeploymentHealthCheck( grace_period = 56, interval = 56, restart_limit = 56, timeout = 56, - tcp = koyeb.models.tcp_health_check.TCPHealthCheck( + tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck( port = 56, ), - http = koyeb.models.http_health_check.HTTPHealthCheck( + http = koyeb.api.models.http_health_check.HTTPHealthCheck( port = 56, path = '', method = '', headers = [ - koyeb.models.http_header.HTTPHeader( + koyeb.api.models.http_header.HTTPHeader( key = '', value = '', ) ], ), ) ], volumes = [ - koyeb.models.deployment_volume.DeploymentVolume( + koyeb.api.models.deployment_volume.DeploymentVolume( id = '', path = '', replica_index = 56, ) ], config_files = [ - koyeb.models.config_file.ConfigFile( + koyeb.api.models.config_file.ConfigFile( path = '', permissions = '', content = '', ) ], skip_cache = True, - docker = koyeb.models.docker_source.DockerSource( + docker = koyeb.api.models.docker_source.DockerSource( image = '', command = '', args = [ @@ -135,7 +134,7 @@ def make_instance(self, include_optional) -> UpdateService: '' ], privileged = True, ), - git = koyeb.models.git_source.GitSource( + git = koyeb.api.models.git_source.GitSource( repository = '', branch = '', tag = '', @@ -144,32 +143,32 @@ def make_instance(self, include_optional) -> UpdateService: run_command = '', no_deploy_on_push = True, workdir = '', - buildpack = koyeb.models.buildpack_builder.BuildpackBuilder( + buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder( build_command = '', run_command = '', privileged = True, ), ), - database = koyeb.models.database_source.DatabaseSource( - neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase( + database = koyeb.api.models.database_source.DatabaseSource( + neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase( pg_version = 56, region = '', instance_type = '', roles = [ - koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( + koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole( name = '', secret = '', ) ], databases = [ - koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( + koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase( name = '', owner = '', ) ], ), ), - archive = koyeb.models.archive_source.ArchiveSource( + archive = koyeb.api.models.archive_source.ArchiveSource( id = '', ), ), - metadata = koyeb.models.deployment_metadata.DeploymentMetadata( - trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata( + metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata( + trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata( type = 'UNKNOWN_TYPE', actor = 'UNKNOWN_ACTOR', - git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( + git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata( provider = 'UNKNOWN', repository = '', branch = '', @@ -178,21 +177,21 @@ def make_instance(self, include_optional) -> UpdateService: sender_username = '', sender_avatar_url = '', sender_profile_url = '', ), ), - database = koyeb.models.database_deployment_metadata.DatabaseDeploymentMetadata( - neon_postgres = koyeb.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( + database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata( + neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata( reset_role_passwords = [ '' ], ), ), - git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata( + git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata( last_provisioned_deployment_id = '', - git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( + git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata( sha = '', commit_author = '', commit_message = '', ), ), - archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata( + archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata( last_provisioned_deployment_id = '', ), proxy_ports = [ - koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( + koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata( host = '', public_port = 56, port = 56, @@ -211,6 +210,5 @@ def testUpdateService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_service_reply.py b/koyeb/api/test/test_update_service_reply.py similarity index 70% rename from koyeb/test/test_update_service_reply.py rename to koyeb/api/test/test_update_service_reply.py index a9c57a35..ce185ad4 100644 --- a/koyeb/test/test_update_service_reply.py +++ b/koyeb/api/test/test_update_service_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_service_reply import UpdateServiceReply - +from koyeb.api.models.update_service_reply import UpdateServiceReply class TestUpdateServiceReply(unittest.TestCase): """UpdateServiceReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateServiceReply: """Test UpdateServiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateServiceReply` """ model = UpdateServiceReply() if include_optional: return UpdateServiceReply( - service = koyeb.models.service.Service( + service = koyeb.api.models.service.Service( id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -57,16 +56,16 @@ def make_instance(self, include_optional) -> UpdateServiceReply: active_deployment_id = '', latest_deployment_id = '', last_provisioned_deployment_id = '', - state = koyeb.models.service_state.ServiceState( - desired_deployment = koyeb.models.desired_deployment.DesiredDeployment( + state = koyeb.api.models.service_state.ServiceState( + desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment( groups = [ - koyeb.models.desired_deployment/group.DesiredDeployment.Group( + koyeb.api.models.desired_deployment/group.DesiredDeployment.Group( name = '', deployment_ids = [ '' ], ) ], ), - auto_release = koyeb.models.auto_release.AutoRelease(), ), ) + auto_release = koyeb.api.models.auto_release.AutoRelease(), ), ) ) else: return UpdateServiceReply( @@ -78,6 +77,5 @@ def testUpdateServiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_snapshot_reply.py b/koyeb/api/test/test_update_snapshot_reply.py similarity index 70% rename from koyeb/test/test_update_snapshot_reply.py rename to koyeb/api/test/test_update_snapshot_reply.py index 02ea4d63..34f5b777 100644 --- a/koyeb/test/test_update_snapshot_reply.py +++ b/koyeb/api/test/test_update_snapshot_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_snapshot_reply import UpdateSnapshotReply - +from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply class TestUpdateSnapshotReply(unittest.TestCase): """UpdateSnapshotReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateSnapshotReply: """Test UpdateSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateSnapshotReply` """ model = UpdateSnapshotReply() if include_optional: return UpdateSnapshotReply( - snapshot = koyeb.models.snapshot.Snapshot( + snapshot = koyeb.api.models.snapshot.Snapshot( id = '', name = '', size = 56, @@ -59,6 +58,5 @@ def testUpdateSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_snapshot_request.py b/koyeb/api/test/test_update_snapshot_request.py similarity index 61% rename from koyeb/test/test_update_snapshot_request.py rename to koyeb/api/test/test_update_snapshot_request.py index bb883f1c..bdca75c6 100644 --- a/koyeb/test/test_update_snapshot_request.py +++ b/koyeb/api/test/test_update_snapshot_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_snapshot_request import UpdateSnapshotRequest - +from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest class TestUpdateSnapshotRequest(unittest.TestCase): """UpdateSnapshotRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateSnapshotRequest: """Test UpdateSnapshotRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateSnapshotRequest` """ model = UpdateSnapshotRequest() @@ -48,6 +47,5 @@ def testUpdateSnapshotRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_user_request_user_update_body.py b/koyeb/api/test/test_update_user_request_user_update_body.py similarity index 66% rename from koyeb/test/test_update_user_request_user_update_body.py rename to koyeb/api/test/test_update_user_request_user_update_body.py index 732af1a2..fc4e29ba 100644 --- a/koyeb/test/test_update_user_request_user_update_body.py +++ b/koyeb/api/test/test_update_user_request_user_update_body.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_user_request_user_update_body import ( - UpdateUserRequestUserUpdateBody, -) - +from koyeb.api.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody class TestUpdateUserRequestUserUpdateBody(unittest.TestCase): """UpdateUserRequestUserUpdateBody unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateUserRequestUserUpdateBody: """Test UpdateUserRequestUserUpdateBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateUserRequestUserUpdateBody` """ model = UpdateUserRequestUserUpdateBody() @@ -55,6 +52,5 @@ def testUpdateUserRequestUserUpdateBody(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_user_settings_reply.py b/koyeb/api/test/test_update_user_settings_reply.py similarity index 61% rename from koyeb/test/test_update_user_settings_reply.py rename to koyeb/api/test/test_update_user_settings_reply.py index db618535..22ade129 100644 --- a/koyeb/test/test_update_user_settings_reply.py +++ b/koyeb/api/test/test_update_user_settings_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_user_settings_reply import UpdateUserSettingsReply - +from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply class TestUpdateUserSettingsReply(unittest.TestCase): """UpdateUserSettingsReply unit test stubs""" @@ -28,15 +27,15 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateUserSettingsReply: """Test UpdateUserSettingsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateUserSettingsReply` """ model = UpdateUserSettingsReply() if include_optional: return UpdateUserSettingsReply( - settings = koyeb.models.user_settings.UserSettings( + settings = koyeb.api.models.user_settings.UserSettings( id = '', user_id = '', failed_deployment_email_notification = True, ) @@ -51,6 +50,5 @@ def testUpdateUserSettingsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_update_user_settings_request.py b/koyeb/api/test/test_update_user_settings_request.py similarity index 62% rename from koyeb/test/test_update_user_settings_request.py rename to koyeb/api/test/test_update_user_settings_request.py index 8d2821d0..7d52ec50 100644 --- a/koyeb/test/test_update_user_settings_request.py +++ b/koyeb/api/test/test_update_user_settings_request.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.update_user_settings_request import UpdateUserSettingsRequest - +from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest class TestUpdateUserSettingsRequest(unittest.TestCase): """UpdateUserSettingsRequest unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateUserSettingsRequest: """Test UpdateUserSettingsRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpdateUserSettingsRequest` """ model = UpdateUserSettingsRequest() @@ -48,6 +47,5 @@ def testUpdateUserSettingsRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_upsert_signup_qualification_reply.py b/koyeb/api/test/test_upsert_signup_qualification_reply.py similarity index 74% rename from koyeb/test/test_upsert_signup_qualification_reply.py rename to koyeb/api/test/test_upsert_signup_qualification_reply.py index 76c6b473..1d991659 100644 --- a/koyeb/test/test_upsert_signup_qualification_reply.py +++ b/koyeb/api/test/test_upsert_signup_qualification_reply.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.upsert_signup_qualification_reply import ( - UpsertSignupQualificationReply, -) - +from koyeb.api.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply class TestUpsertSignupQualificationReply(unittest.TestCase): """UpsertSignupQualificationReply unit test stubs""" @@ -30,16 +27,17 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertSignupQualificationReply: """Test UpsertSignupQualificationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpsertSignupQualificationReply` """ model = UpsertSignupQualificationReply() if include_optional: return UpsertSignupQualificationReply( - organization = koyeb.models.represent_an_organization.Represent an Organization( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( id = '', + external_id = '', address1 = '', address2 = '', city = '', @@ -57,7 +55,7 @@ def make_instance(self, include_optional) -> UpsertSignupQualificationReply: subscription_id = '', current_subscription_id = '', latest_subscription_id = '', - signup_qualification = koyeb.models.signup_qualification.signup_qualification(), + signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(), status = 'WARNING', status_message = 'NEW', deactivation_reason = 'INVALID', @@ -81,6 +79,5 @@ def testUpsertSignupQualificationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_upsert_signup_qualification_request.py b/koyeb/api/test/test_upsert_signup_qualification_request.py similarity index 63% rename from koyeb/test/test_upsert_signup_qualification_request.py rename to koyeb/api/test/test_upsert_signup_qualification_request.py index a8f6f8ef..b153b06b 100644 --- a/koyeb/test/test_upsert_signup_qualification_request.py +++ b/koyeb/api/test/test_upsert_signup_qualification_request.py @@ -1,23 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.upsert_signup_qualification_request import ( - UpsertSignupQualificationRequest, -) - +from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest class TestUpsertSignupQualificationRequest(unittest.TestCase): """UpsertSignupQualificationRequest unit test stubs""" @@ -30,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertSignupQualificationRequest: """Test UpsertSignupQualificationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UpsertSignupQualificationRequest` """ model = UpsertSignupQualificationRequest() @@ -50,6 +47,5 @@ def testUpsertSignupQualificationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_usage.py b/koyeb/api/test/test_usage.py similarity index 68% rename from koyeb/test/test_usage.py rename to koyeb/api/test/test_usage.py index 8615b111..d7630a82 100644 --- a/koyeb/test/test_usage.py +++ b/koyeb/api/test/test_usage.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.usage import Usage - +from koyeb.api.models.usage import Usage class TestUsage(unittest.TestCase): """Usage unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Usage: """Test Usage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Usage` """ model = Usage() @@ -38,27 +37,27 @@ def make_instance(self, include_optional) -> Usage: return Usage( organization_id = '', periods = { - 'key' : koyeb.models.period_usage.PeriodUsage( + 'key' : koyeb.api.models.period_usage.PeriodUsage( starting_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ending_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), apps = [ - koyeb.models.app_usage.AppUsage( + koyeb.api.models.app_usage.AppUsage( app_id = '', app_name = '', services = [ - koyeb.models.service_usage.ServiceUsage( + koyeb.api.models.service_usage.ServiceUsage( service_id = '', service_name = '', regions = { - 'key' : koyeb.models.region_usage.RegionUsage( + 'key' : koyeb.api.models.region_usage.RegionUsage( instances = { - 'key' : koyeb.models.instance_usage.InstanceUsage( + 'key' : koyeb.api.models.instance_usage.InstanceUsage( duration_seconds = 56, ) }, ) }, ) ], databases = [ - koyeb.models.database_usage.DatabaseUsage( + koyeb.api.models.database_usage.DatabaseUsage( service_id = '', service_name = '', compute_time_seconds = 56, @@ -77,6 +76,5 @@ def testUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_usage_details.py b/koyeb/api/test/test_usage_details.py similarity index 71% rename from koyeb/test/test_usage_details.py rename to koyeb/api/test/test_usage_details.py index 241ee0a0..f61f104d 100644 --- a/koyeb/test/test_usage_details.py +++ b/koyeb/api/test/test_usage_details.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.usage_details import UsageDetails - +from koyeb.api.models.usage_details import UsageDetails class TestUsageDetails(unittest.TestCase): """UsageDetails unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UsageDetails: """Test UsageDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UsageDetails` """ model = UsageDetails() @@ -60,6 +59,5 @@ def testUsageDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_usages_api.py b/koyeb/api/test/test_usages_api.py similarity index 61% rename from koyeb/test/test_usages_api.py rename to koyeb/api/test/test_usages_api.py index 95bd10c6..b3c0628c 100644 --- a/koyeb/test/test_usages_api.py +++ b/koyeb/api/test/test_usages_api.py @@ -1,20 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.api.usages_api import UsagesApi +from koyeb.api.api.usages_api import UsagesApi class TestUsagesApi(unittest.TestCase): @@ -41,5 +41,5 @@ def test_get_organization_usage_details(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/test/test_user.py b/koyeb/api/test/test_user.py similarity index 73% rename from koyeb/test/test_user.py rename to koyeb/api/test/test_user.py index 7802fe30..54c4425e 100644 --- a/koyeb/test/test_user.py +++ b/koyeb/api/test/test_user.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.user import User - +from koyeb.api.models.user import User class TestUser(unittest.TestCase): """User unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> User: """Test User - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `User` """ model = User() @@ -64,6 +63,5 @@ def testUser(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_user_flags.py b/koyeb/api/test/test_user_flags.py new file mode 100644 index 00000000..351a5d51 --- /dev/null +++ b/koyeb/api/test/test_user_flags.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.user_flags import UserFlags + +class TestUserFlags(unittest.TestCase): + """UserFlags unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserFlags(self): + """Test UserFlags""" + # inst = UserFlags() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_user_reply.py b/koyeb/api/test/test_user_reply.py similarity index 68% rename from koyeb/test/test_user_reply.py rename to koyeb/api/test/test_user_reply.py index df03e892..6ec6c1d3 100644 --- a/koyeb/test/test_user_reply.py +++ b/koyeb/api/test/test_user_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.user_reply import UserReply - +from koyeb.api.models.user_reply import UserReply class TestUserReply(unittest.TestCase): """UserReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UserReply: """Test UserReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UserReply` """ model = UserReply() @@ -48,6 +47,5 @@ def testUserReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_user_role_role.py b/koyeb/api/test/test_user_role_role.py new file mode 100644 index 00000000..944b494c --- /dev/null +++ b/koyeb/api/test/test_user_role_role.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.user_role_role import UserRoleRole + +class TestUserRoleRole(unittest.TestCase): + """UserRoleRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserRoleRole(self): + """Test UserRoleRole""" + # inst = UserRoleRole() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_user_settings.py b/koyeb/api/test/test_user_settings.py similarity index 62% rename from koyeb/test/test_user_settings.py rename to koyeb/api/test/test_user_settings.py index 4962423b..2ddeca1c 100644 --- a/koyeb/test/test_user_settings.py +++ b/koyeb/api/test/test_user_settings.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.user_settings import UserSettings - +from koyeb.api.models.user_settings import UserSettings class TestUserSettings(unittest.TestCase): """UserSettings unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UserSettings: """Test UserSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UserSettings` """ model = UserSettings() @@ -50,6 +49,5 @@ def testUserSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_users_api.py b/koyeb/api/test/test_users_api.py new file mode 100644 index 00000000..a8b8540c --- /dev/null +++ b/koyeb/api/test/test_users_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.api.users_api import UsersApi + + +class TestUsersApi(unittest.TestCase): + """UsersApi unit test stubs""" + + def setUp(self) -> None: + self.api = UsersApi() + + def tearDown(self) -> None: + pass + + def test_delete_user(self) -> None: + """Test case for delete_user + + Delete user + """ + pass + + def test_delete_user_v2(self) -> None: + """Test case for delete_user_v2 + + V2 Delete user + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/test/test_verify_docker_image_reply.py b/koyeb/api/test/test_verify_docker_image_reply.py similarity index 63% rename from koyeb/test/test_verify_docker_image_reply.py rename to koyeb/api/test/test_verify_docker_image_reply.py index 1f1ea620..f96d1df0 100644 --- a/koyeb/test/test_verify_docker_image_reply.py +++ b/koyeb/api/test/test_verify_docker_image_reply.py @@ -1,21 +1,20 @@ # coding: utf-8 """ -Koyeb Rest API + Koyeb Rest API -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import unittest -from koyeb.models.verify_docker_image_reply import VerifyDockerImageReply - +from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply class TestVerifyDockerImageReply(unittest.TestCase): """VerifyDockerImageReply unit test stubs""" @@ -28,9 +27,9 @@ def tearDown(self): def make_instance(self, include_optional) -> VerifyDockerImageReply: """Test VerifyDockerImageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `VerifyDockerImageReply` """ model = VerifyDockerImageReply() @@ -50,6 +49,5 @@ def testVerifyDockerImageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/koyeb/api/test/test_verify_docker_image_reply_err_code.py b/koyeb/api/test/test_verify_docker_image_reply_err_code.py new file mode 100644 index 00000000..8c87e329 --- /dev/null +++ b/koyeb/api/test/test_verify_docker_image_reply_err_code.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Koyeb Rest API + + The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from koyeb.api.models.verify_docker_image_reply_err_code import VerifyDockerImageReplyErrCode + +class TestVerifyDockerImageReplyErrCode(unittest.TestCase): + """VerifyDockerImageReplyErrCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVerifyDockerImageReplyErrCode(self): + """Test VerifyDockerImageReplyErrCode""" + # inst = VerifyDockerImageReplyErrCode() + +if __name__ == '__main__': + unittest.main() diff --git a/koyeb/api/users_api.py b/koyeb/api/users_api.py deleted file mode 100644 index 80b34f2c..00000000 --- a/koyeb/api/users_api.py +++ /dev/null @@ -1,293 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictStr -from typing_extensions import Annotated -from koyeb.models.delete_user_reply import DeleteUserReply - -from koyeb.api_client import ApiClient, RequestSerialized -from koyeb.api_response import ApiResponse -from koyeb.rest import RESTResponseType - - -class UsersApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - @validate_call - def delete_user( - self, - id: Annotated[StrictStr, Field(description="The id of the user")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteUserReply: - """Delete user - - - :param id: The id of the user (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_user_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteUserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def delete_user_with_http_info( - self, - id: Annotated[StrictStr, Field(description="The id of the user")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteUserReply]: - """Delete user - - - :param id: The id of the user (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_user_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteUserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - @validate_call - def delete_user_without_preload_content( - self, - id: Annotated[StrictStr, Field(description="The id of the user")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete user - - - :param id: The id of the user (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_user_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": "DeleteUserReply", - "400": "ErrorWithFields", - "401": "Error", - "403": "Error", - "404": "Error", - "500": "Error", - "503": "Error", - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - return response_data.response - - def _delete_user_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = {} - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params["id"] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) - - # authentication setting - _auth_settings: List[str] = ["Bearer"] - - return self.api_client.param_serialize( - method="DELETE", - resource_path="/v1/users/{id}", - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth, - ) diff --git a/koyeb/api_README.md b/koyeb/api_README.md new file mode 100644 index 00000000..ddf25517 --- /dev/null +++ b/koyeb/api_README.md @@ -0,0 +1,619 @@ +# koyeb.api +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + +The `koyeb.api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 1.0.0 +- Package version: 1.0.0 +- Generator version: 7.17.0-SNAPSHOT +- Build package: org.openapitools.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 3.9+ + +## Installation & Usage + +This python library package is generated without supporting files like setup.py or requirements files + +To be able to use it, you will need these dependencies in your own package that uses this library: + +* urllib3 >= 2.1.0, < 3.0.0 +* python-dateutil >= 2.8.2 +* pydantic >= 2 +* typing-extensions >= 4.7.1 + +## Getting Started + +In your own code, to use this library to connect and interact with koyeb.api, +you can run the following: + +```python + +import koyeb.api +from koyeb.api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://app.koyeb.com +# See configuration.py for a list of all supported configuration parameters. +configuration = koyeb.api.Configuration( + host = "https://app.koyeb.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration.api_key['Bearer'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Bearer'] = 'Bearer' + + +# Enter a context with an instance of the API client +with koyeb.api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = koyeb.api.AppsApi(api_client) + app = koyeb.api.CreateApp() # CreateApp | + + try: + # Create App + api_response = api_instance.create_app(app) + print("The response of AppsApi->create_app:\n") + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsApi->create_app: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://app.koyeb.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AppsApi* | [**create_app**](koyeb/api/docs/AppsApi.md#create_app) | **POST** /v1/apps | Create App +*AppsApi* | [**delete_app**](koyeb/api/docs/AppsApi.md#delete_app) | **DELETE** /v1/apps/{id} | Delete App +*AppsApi* | [**get_app**](koyeb/api/docs/AppsApi.md#get_app) | **GET** /v1/apps/{id} | Get App +*AppsApi* | [**list_app_events**](koyeb/api/docs/AppsApi.md#list_app_events) | **GET** /v1/app_events | List App events +*AppsApi* | [**list_apps**](koyeb/api/docs/AppsApi.md#list_apps) | **GET** /v1/apps | List App +*AppsApi* | [**pause_app**](koyeb/api/docs/AppsApi.md#pause_app) | **POST** /v1/apps/{id}/pause | Pause App +*AppsApi* | [**resume_app**](koyeb/api/docs/AppsApi.md#resume_app) | **POST** /v1/apps/{id}/resume | Resume App +*AppsApi* | [**update_app**](koyeb/api/docs/AppsApi.md#update_app) | **PUT** /v1/apps/{id} | Update App +*AppsApi* | [**update_app2**](koyeb/api/docs/AppsApi.md#update_app2) | **PATCH** /v1/apps/{id} | Update App +*ArchivesApi* | [**create_archive**](koyeb/api/docs/ArchivesApi.md#create_archive) | **POST** /v1/archives | Create Archive +*CatalogDatacentersApi* | [**list_datacenters**](koyeb/api/docs/CatalogDatacentersApi.md#list_datacenters) | **GET** /v1/catalog/datacenters | List datacenters +*CatalogInstanceUsageApi* | [**list_usage**](koyeb/api/docs/CatalogInstanceUsageApi.md#list_usage) | **GET** /v1/catalog/usage | +*CatalogInstancesApi* | [**get_catalog_instance**](koyeb/api/docs/CatalogInstancesApi.md#get_catalog_instance) | **GET** /v1/catalog/instances/{id} | Get Instance +*CatalogInstancesApi* | [**list_catalog_instances**](koyeb/api/docs/CatalogInstancesApi.md#list_catalog_instances) | **GET** /v1/catalog/instances | List Instances +*CatalogRegionsApi* | [**get_region**](koyeb/api/docs/CatalogRegionsApi.md#get_region) | **GET** /v1/catalog/regions/{id} | Get Region +*CatalogRegionsApi* | [**list_regions**](koyeb/api/docs/CatalogRegionsApi.md#list_regions) | **GET** /v1/catalog/regions | List Region +*ComposeApi* | [**compose**](koyeb/api/docs/ComposeApi.md#compose) | **POST** /v1/compose | Create resources from compose. +*CouponsApi* | [**redeem_coupon**](koyeb/api/docs/CouponsApi.md#redeem_coupon) | **POST** /v1/coupons | Redeem Coupon +*CredentialsApi* | [**create_credential**](koyeb/api/docs/CredentialsApi.md#create_credential) | **POST** /v1/credentials | Create credential +*CredentialsApi* | [**delete_credential**](koyeb/api/docs/CredentialsApi.md#delete_credential) | **DELETE** /v1/credentials/{id} | Delete credential +*CredentialsApi* | [**get_credential**](koyeb/api/docs/CredentialsApi.md#get_credential) | **GET** /v1/credentials/{id} | Get credential +*CredentialsApi* | [**list_credentials**](koyeb/api/docs/CredentialsApi.md#list_credentials) | **GET** /v1/credentials | List credentials +*CredentialsApi* | [**update_credential**](koyeb/api/docs/CredentialsApi.md#update_credential) | **PUT** /v1/credentials/{id} | Update credential +*CredentialsApi* | [**update_credential2**](koyeb/api/docs/CredentialsApi.md#update_credential2) | **PATCH** /v1/credentials/{id} | Update credential +*DeploymentsApi* | [**cancel_deployment**](koyeb/api/docs/DeploymentsApi.md#cancel_deployment) | **POST** /v1/deployments/{id}/cancel | Cancel Deployment +*DeploymentsApi* | [**get_deployment**](koyeb/api/docs/DeploymentsApi.md#get_deployment) | **GET** /v1/deployments/{id} | Get Deployment +*DeploymentsApi* | [**get_deployment_scaling**](koyeb/api/docs/DeploymentsApi.md#get_deployment_scaling) | **GET** /v1/deployment/{id}/scaling | Get Deployment Scaling +*DeploymentsApi* | [**list_deployment_events**](koyeb/api/docs/DeploymentsApi.md#list_deployment_events) | **GET** /v1/deployment_events | List Deployment events +*DeploymentsApi* | [**list_deployments**](koyeb/api/docs/DeploymentsApi.md#list_deployments) | **GET** /v1/deployments | List Deployments +*DockerHelperApi* | [**verify_docker_image**](koyeb/api/docs/DockerHelperApi.md#verify_docker_image) | **GET** /v1/docker-helper/verify | Verify Docker Image +*DomainsApi* | [**create_domain**](koyeb/api/docs/DomainsApi.md#create_domain) | **POST** /v1/domains | Create Domain +*DomainsApi* | [**delete_domain**](koyeb/api/docs/DomainsApi.md#delete_domain) | **DELETE** /v1/domains/{id} | Delete Domain +*DomainsApi* | [**get_domain**](koyeb/api/docs/DomainsApi.md#get_domain) | **GET** /v1/domains/{id} | Get Domain +*DomainsApi* | [**list_domains**](koyeb/api/docs/DomainsApi.md#list_domains) | **GET** /v1/domains | List Domains +*DomainsApi* | [**refresh_domain_status**](koyeb/api/docs/DomainsApi.md#refresh_domain_status) | **POST** /v1/domains/{id}/refresh | Refresh Domain Status +*DomainsApi* | [**update_domain**](koyeb/api/docs/DomainsApi.md#update_domain) | **PATCH** /v1/domains/{id} | Update Domain +*InstancesApi* | [**exec_command**](koyeb/api/docs/InstancesApi.md#exec_command) | **GET** /v1/streams/instances/exec | Exec Command +*InstancesApi* | [**get_instance**](koyeb/api/docs/InstancesApi.md#get_instance) | **GET** /v1/instances/{id} | Get Instance +*InstancesApi* | [**list_instance_events**](koyeb/api/docs/InstancesApi.md#list_instance_events) | **GET** /v1/instance_events | List Instance events +*InstancesApi* | [**list_instances**](koyeb/api/docs/InstancesApi.md#list_instances) | **GET** /v1/instances | List Instances +*IntercomApi* | [**get_intercom_profile**](koyeb/api/docs/IntercomApi.md#get_intercom_profile) | **GET** /v1/intercom/profile | Get intercom profile +*LogsApi* | [**query_logs**](koyeb/api/docs/LogsApi.md#query_logs) | **GET** /v1/streams/logs/query | Query logs +*LogsApi* | [**tail_logs**](koyeb/api/docs/LogsApi.md#tail_logs) | **GET** /v1/streams/logs/tail | Tails logs +*MetricsApi* | [**get_metrics**](koyeb/api/docs/MetricsApi.md#get_metrics) | **GET** /v1/streams/metrics | Get Metrics +*OrganizationConfirmationsApi* | [**confirm_organization_action**](koyeb/api/docs/OrganizationConfirmationsApi.md#confirm_organization_action) | **POST** /v1/organization_confirmations/{id} | Confirm organization action +*OrganizationInvitationsApi* | [**create_organization_invitation**](koyeb/api/docs/OrganizationInvitationsApi.md#create_organization_invitation) | **POST** /v1/organization_invitations | Create Organization Invitation +*OrganizationInvitationsApi* | [**delete_organization_invitation**](koyeb/api/docs/OrganizationInvitationsApi.md#delete_organization_invitation) | **DELETE** /v1/organization_invitations/{id} | Delete Organization Invitation +*OrganizationInvitationsApi* | [**get_organization_invitation**](koyeb/api/docs/OrganizationInvitationsApi.md#get_organization_invitation) | **GET** /v1/organization_invitations/{id} | Get Organization Invitation +*OrganizationInvitationsApi* | [**list_organization_invitations**](koyeb/api/docs/OrganizationInvitationsApi.md#list_organization_invitations) | **GET** /v1/organization_invitations | List Organization Invitations +*OrganizationInvitationsApi* | [**resend_organization_invitation**](koyeb/api/docs/OrganizationInvitationsApi.md#resend_organization_invitation) | **POST** /v1/organization_invitations/{id}/resend | Resend Organization Invitation +*OrganizationMembersApi* | [**list_organization_members**](koyeb/api/docs/OrganizationMembersApi.md#list_organization_members) | **GET** /v1/organization_members | List organization members +*OrganizationMembersApi* | [**remove_organization_member**](koyeb/api/docs/OrganizationMembersApi.md#remove_organization_member) | **DELETE** /v1/organization_members/{id} | Remove an organization member +*OrganizationQuotasApi* | [**get_quotas**](koyeb/api/docs/OrganizationQuotasApi.md#get_quotas) | **GET** /v1/organizations/{organization_id}/quotas | +*PaymentMethodsApi* | [**confirm_payment_authorization**](koyeb/api/docs/PaymentMethodsApi.md#confirm_payment_authorization) | **POST** /v1/payment_methods/{id}/confirm | Confirm payment authorization +*PaymentMethodsApi* | [**create_payment_authorization**](koyeb/api/docs/PaymentMethodsApi.md#create_payment_authorization) | **POST** /v1/payment_methods | Create payment authorization +*PaymentMethodsApi* | [**delete_payment_method**](koyeb/api/docs/PaymentMethodsApi.md#delete_payment_method) | **DELETE** /v1/payment_methods/{id} | Delete payment method +*PaymentMethodsApi* | [**get_payment_method**](koyeb/api/docs/PaymentMethodsApi.md#get_payment_method) | **GET** /v1/payment_methods/{id} | Get payment method +*PaymentMethodsApi* | [**list_payment_methods**](koyeb/api/docs/PaymentMethodsApi.md#list_payment_methods) | **GET** /v1/payment_methods | List payment methods +*PersistentVolumesApi* | [**create_persistent_volume**](koyeb/api/docs/PersistentVolumesApi.md#create_persistent_volume) | **POST** /v1/volumes | Create a PersistentVolume +*PersistentVolumesApi* | [**delete_persistent_volume**](koyeb/api/docs/PersistentVolumesApi.md#delete_persistent_volume) | **DELETE** /v1/volumes/{id} | Delete a PersistentVolume +*PersistentVolumesApi* | [**get_persistent_volume**](koyeb/api/docs/PersistentVolumesApi.md#get_persistent_volume) | **GET** /v1/volumes/{id} | Get a PersistentVolume +*PersistentVolumesApi* | [**list_persistent_volume_events**](koyeb/api/docs/PersistentVolumesApi.md#list_persistent_volume_events) | **GET** /v1/volume_events | List Persistent Volume events +*PersistentVolumesApi* | [**list_persistent_volumes**](koyeb/api/docs/PersistentVolumesApi.md#list_persistent_volumes) | **GET** /v1/volumes | List all PersistentVolumes +*PersistentVolumesApi* | [**update_persistent_volume**](koyeb/api/docs/PersistentVolumesApi.md#update_persistent_volume) | **POST** /v1/volumes/{id} | Update a PersistentVolume +*ProfileApi* | [**accept_organization_invitation**](koyeb/api/docs/ProfileApi.md#accept_organization_invitation) | **POST** /v1/account/organization_invitations/{id}/accept | Accept Organization Invitation +*ProfileApi* | [**clear_idenfy_verification_result**](koyeb/api/docs/ProfileApi.md#clear_idenfy_verification_result) | **POST** /v1/account/idenfy | ClearIdenfyVerificationResult marks the current result for idenfy as superseded +*ProfileApi* | [**decline_organization_invitation**](koyeb/api/docs/ProfileApi.md#decline_organization_invitation) | **POST** /v1/account/organization_invitations/{id}/decline | Decline Organization Invitation +*ProfileApi* | [**get_current_organization**](koyeb/api/docs/ProfileApi.md#get_current_organization) | **GET** /v1/account/organization | Get Current Organization +*ProfileApi* | [**get_current_user**](koyeb/api/docs/ProfileApi.md#get_current_user) | **GET** /v1/account/profile | Get Current User +*ProfileApi* | [**get_idenfy_token**](koyeb/api/docs/ProfileApi.md#get_idenfy_token) | **GET** /v1/account/idenfy | Begin a session with iDenfy, emit an authToken +*ProfileApi* | [**get_o_auth_options**](koyeb/api/docs/ProfileApi.md#get_o_auth_options) | **GET** /v1/account/oauth | Get OAuth Providers +*ProfileApi* | [**get_user_organization_invitation**](koyeb/api/docs/ProfileApi.md#get_user_organization_invitation) | **GET** /v1/account/organization_invitations/{id} | Get User Organization Invitation +*ProfileApi* | [**get_user_settings**](koyeb/api/docs/ProfileApi.md#get_user_settings) | **GET** /v1/account/settings | +*ProfileApi* | [**list_user_organization_invitations**](koyeb/api/docs/ProfileApi.md#list_user_organization_invitations) | **GET** /v1/account/organization_invitations | List User Organization Invitations +*ProfileApi* | [**list_user_organizations**](koyeb/api/docs/ProfileApi.md#list_user_organizations) | **GET** /v1/account/organizations | List User Organizations +*ProfileApi* | [**login_method**](koyeb/api/docs/ProfileApi.md#login_method) | **GET** /v1/account/login_method | Get the login method for an email address +*ProfileApi* | [**o_auth_callback**](koyeb/api/docs/ProfileApi.md#o_auth_callback) | **POST** /v1/account/oauth | Authenticate using OAuth +*ProfileApi* | [**resend_email_validation**](koyeb/api/docs/ProfileApi.md#resend_email_validation) | **POST** /v1/account/resend_validation | Resend Email Verification +*ProfileApi* | [**reset_password**](koyeb/api/docs/ProfileApi.md#reset_password) | **POST** /v1/account/reset_password | Reset Password +*ProfileApi* | [**signup**](koyeb/api/docs/ProfileApi.md#signup) | **POST** /v1/account/signup | Signup +*ProfileApi* | [**update_password**](koyeb/api/docs/ProfileApi.md#update_password) | **POST** /v1/account/update_password | Update Password +*ProfileApi* | [**update_user**](koyeb/api/docs/ProfileApi.md#update_user) | **PUT** /v1/account/profile | Update User +*ProfileApi* | [**update_user2**](koyeb/api/docs/ProfileApi.md#update_user2) | **PATCH** /v1/account/profile | Update User +*ProfileApi* | [**update_user_settings**](koyeb/api/docs/ProfileApi.md#update_user_settings) | **PATCH** /v1/account/settings | +*ProfileApi* | [**update_user_v2**](koyeb/api/docs/ProfileApi.md#update_user_v2) | **PUT** /v2/account/profile | Update User V2 +*ProfileApi* | [**update_user_v22**](koyeb/api/docs/ProfileApi.md#update_user_v22) | **PATCH** /v2/account/profile | Update User V2 +*ProfileApi* | [**validate**](koyeb/api/docs/ProfileApi.md#validate) | **POST** /v1/account/validate/{id} | Validate +*ProvisioningApi* | [**create_stage_attempt**](koyeb/api/docs/ProvisioningApi.md#create_stage_attempt) | **POST** /v1/provisioning/{deployment_id}/status/{stage}/{attempt} | Create an attempt for a stage +*ProvisioningApi* | [**declare_stage_progress**](koyeb/api/docs/ProvisioningApi.md#declare_stage_progress) | **PATCH** /v1/provisioning/{deployment_id}/status/{stage}/{attempt} | Declare stage progress +*ProvisioningApi* | [**declare_step_progress**](koyeb/api/docs/ProvisioningApi.md#declare_step_progress) | **PATCH** /v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step} | Declare step progress +*QuotasApi* | [**review_organization_capacity**](koyeb/api/docs/QuotasApi.md#review_organization_capacity) | **POST** /v1/quotas/capacity | DEPRECATED: Review Organization Capacity +*RegionalDeploymentsApi* | [**get_regional_deployment**](koyeb/api/docs/RegionalDeploymentsApi.md#get_regional_deployment) | **GET** /v1/regional_deployments/{id} | Get Regional Deployment +*RegionalDeploymentsApi* | [**list_regional_deployment_events**](koyeb/api/docs/RegionalDeploymentsApi.md#list_regional_deployment_events) | **GET** /v1/regional_deployment_events | List Regional Deployment events +*RegionalDeploymentsApi* | [**list_regional_deployments**](koyeb/api/docs/RegionalDeploymentsApi.md#list_regional_deployments) | **GET** /v1/regional_deployments | List Regional Deployments +*RepositoriesApi* | [**list_branches**](koyeb/api/docs/RepositoriesApi.md#list_branches) | **GET** /v1/git/branches | List Branches +*RepositoriesApi* | [**list_repositories**](koyeb/api/docs/RepositoriesApi.md#list_repositories) | **GET** /v1/git/repositories | List Repositories +*RepositoriesApi* | [**resync_organization**](koyeb/api/docs/RepositoriesApi.md#resync_organization) | **POST** /v1/git/sync/organization/{organization_id} | Resync Organization +*SearchApi* | [**search**](koyeb/api/docs/SearchApi.md#search) | **GET** /v1/search | Search +*SecretsApi* | [**create_secret**](koyeb/api/docs/SecretsApi.md#create_secret) | **POST** /v1/secrets | Create Secret +*SecretsApi* | [**delete_secret**](koyeb/api/docs/SecretsApi.md#delete_secret) | **DELETE** /v1/secrets/{id} | Delete Secret +*SecretsApi* | [**get_secret**](koyeb/api/docs/SecretsApi.md#get_secret) | **GET** /v1/secrets/{id} | Get Secret +*SecretsApi* | [**list_secrets**](koyeb/api/docs/SecretsApi.md#list_secrets) | **GET** /v1/secrets | List Secrets +*SecretsApi* | [**reveal_secret**](koyeb/api/docs/SecretsApi.md#reveal_secret) | **POST** /v1/secrets/{id}/reveal | Reveal Secret +*SecretsApi* | [**update_secret**](koyeb/api/docs/SecretsApi.md#update_secret) | **PUT** /v1/secrets/{id} | Update Secret +*SecretsApi* | [**update_secret2**](koyeb/api/docs/SecretsApi.md#update_secret2) | **PATCH** /v1/secrets/{id} | Update Secret +*ServicesApi* | [**autocomplete**](koyeb/api/docs/ServicesApi.md#autocomplete) | **POST** /v1/services-autocomplete | Autocomplete definition +*ServicesApi* | [**create_service**](koyeb/api/docs/ServicesApi.md#create_service) | **POST** /v1/services | Create Service +*ServicesApi* | [**delete_service**](koyeb/api/docs/ServicesApi.md#delete_service) | **DELETE** /v1/services/{id} | Delete Service +*ServicesApi* | [**get_service**](koyeb/api/docs/ServicesApi.md#get_service) | **GET** /v1/services/{id} | Get Service +*ServicesApi* | [**list_service_events**](koyeb/api/docs/ServicesApi.md#list_service_events) | **GET** /v1/service_events | List Service events +*ServicesApi* | [**list_services**](koyeb/api/docs/ServicesApi.md#list_services) | **GET** /v1/services | List Services +*ServicesApi* | [**pause_service**](koyeb/api/docs/ServicesApi.md#pause_service) | **POST** /v1/services/{id}/pause | Pause Service +*ServicesApi* | [**re_deploy**](koyeb/api/docs/ServicesApi.md#re_deploy) | **POST** /v1/services/{id}/redeploy | ReDeploy Service +*ServicesApi* | [**resume_service**](koyeb/api/docs/ServicesApi.md#resume_service) | **POST** /v1/services/{id}/resume | Resume Service +*ServicesApi* | [**update_service**](koyeb/api/docs/ServicesApi.md#update_service) | **PUT** /v1/services/{id} | Update Service +*ServicesApi* | [**update_service2**](koyeb/api/docs/ServicesApi.md#update_service2) | **PATCH** /v1/services/{id} | Update Service +*SessionsApi* | [**login**](koyeb/api/docs/SessionsApi.md#login) | **POST** /v1/account/login | Login user +*SessionsApi* | [**logout**](koyeb/api/docs/SessionsApi.md#logout) | **DELETE** /v1/account/logout | Logout user +*SessionsApi* | [**new_session**](koyeb/api/docs/SessionsApi.md#new_session) | **POST** /v1/account/session | New session +*SessionsApi* | [**refresh_token**](koyeb/api/docs/SessionsApi.md#refresh_token) | **PUT** /v1/account/refresh | Refresh token +*SnapshotsApi* | [**create_snapshot**](koyeb/api/docs/SnapshotsApi.md#create_snapshot) | **POST** /v1/snapshots | Create a Snapshot +*SnapshotsApi* | [**delete_snapshot**](koyeb/api/docs/SnapshotsApi.md#delete_snapshot) | **DELETE** /v1/snapshots/{id} | Delete a Snapshot +*SnapshotsApi* | [**get_snapshot**](koyeb/api/docs/SnapshotsApi.md#get_snapshot) | **GET** /v1/snapshots/{id} | Get a Snapshot +*SnapshotsApi* | [**list_snapshots**](koyeb/api/docs/SnapshotsApi.md#list_snapshots) | **GET** /v1/snapshots | List all Snapshots +*SnapshotsApi* | [**update_snapshot**](koyeb/api/docs/SnapshotsApi.md#update_snapshot) | **POST** /v1/snapshots/{id} | Update a Snapshot +*SubscriptionsApi* | [**get_subscription**](koyeb/api/docs/SubscriptionsApi.md#get_subscription) | **GET** /v1/subscriptions/{id} | Get Subscription +*SummaryApi* | [**get_organization_summary**](koyeb/api/docs/SummaryApi.md#get_organization_summary) | **GET** /v1/organizations/{organization_id}/summary | Get organization usage summary +*UsagesApi* | [**get_organization_usage**](koyeb/api/docs/UsagesApi.md#get_organization_usage) | **GET** /v1/usages | Get organization usage +*UsagesApi* | [**get_organization_usage_details**](koyeb/api/docs/UsagesApi.md#get_organization_usage_details) | **GET** /v1/usages/details | Get organization usage details +*UsersApi* | [**delete_user**](koyeb/api/docs/UsersApi.md#delete_user) | **DELETE** /v1/users/{id} | Delete user +*UsersApi* | [**delete_user_v2**](koyeb/api/docs/UsersApi.md#delete_user_v2) | **DELETE** /v2/users/{id} | V2 Delete user +*ActivityApi* | [**get_account_activities**](koyeb/api/docs/ActivityApi.md#get_account_activities) | **GET** /v1/account/activities | +*ActivityApi* | [**list_activities**](koyeb/api/docs/ActivityApi.md#list_activities) | **GET** /v1/activities | List Activities +*ActivityApi* | [**list_notifications**](koyeb/api/docs/ActivityApi.md#list_notifications) | **GET** /v1/notifications | List Notifications +*BillingApi* | [**has_unpaid_invoices**](koyeb/api/docs/BillingApi.md#has_unpaid_invoices) | **GET** /v1/billing/has_unpaid_invoices | Experimental: Has unpaid invoices +*BillingApi* | [**manage**](koyeb/api/docs/BillingApi.md#manage) | **GET** /v1/billing/manage | +*BillingApi* | [**next_invoice**](koyeb/api/docs/BillingApi.md#next_invoice) | **GET** /v1/billing/next_invoice | Experimental: Fetch next invoice +*InviteApi* | [**create_invite**](koyeb/api/docs/InviteApi.md#create_invite) | **POST** /v1/account/invite | +*OrganizationApi* | [**create_access_token**](koyeb/api/docs/OrganizationApi.md#create_access_token) | **POST** /v1/organizations/{id}/access_token | CreateAccessToken +*OrganizationApi* | [**create_budget**](koyeb/api/docs/OrganizationApi.md#create_budget) | **POST** /v1/organizations/{organization_id}/budget | Create Budget +*OrganizationApi* | [**create_organization**](koyeb/api/docs/OrganizationApi.md#create_organization) | **POST** /v1/organizations | Create Organization +*OrganizationApi* | [**deactivate_organization**](koyeb/api/docs/OrganizationApi.md#deactivate_organization) | **POST** /v1/organizations/{id}/deactivate | Deactivate an Organization +*OrganizationApi* | [**delete_budget**](koyeb/api/docs/OrganizationApi.md#delete_budget) | **DELETE** /v1/organizations/{organization_id}/budget | Delete Budget +*OrganizationApi* | [**delete_organization**](koyeb/api/docs/OrganizationApi.md#delete_organization) | **DELETE** /v1/organizations/{id} | Delete an Organization +*OrganizationApi* | [**get_budget**](koyeb/api/docs/OrganizationApi.md#get_budget) | **GET** /v1/organizations/{organization_id}/budget | Get Budget +*OrganizationApi* | [**get_github_installation**](koyeb/api/docs/OrganizationApi.md#get_github_installation) | **GET** /v1/github/installation | Fetch Github Installation configuration +*OrganizationApi* | [**get_organization**](koyeb/api/docs/OrganizationApi.md#get_organization) | **GET** /v1/organizations/{id} | Get Organization +*OrganizationApi* | [**github_installation**](koyeb/api/docs/OrganizationApi.md#github_installation) | **POST** /v1/github/installation | Start Github Installation +*OrganizationApi* | [**reactivate_organization**](koyeb/api/docs/OrganizationApi.md#reactivate_organization) | **POST** /v1/organizations/{id}/reactivate | Reactivate an Organization +*OrganizationApi* | [**switch_organization**](koyeb/api/docs/OrganizationApi.md#switch_organization) | **POST** /v1/organizations/{id}/switch | Switch Organization context +*OrganizationApi* | [**unscope_organization_token**](koyeb/api/docs/OrganizationApi.md#unscope_organization_token) | **POST** /v1/unscope_organization_token | Unscope Organization Token +*OrganizationApi* | [**update_budget**](koyeb/api/docs/OrganizationApi.md#update_budget) | **PUT** /v1/organizations/{organization_id}/budget | Update Budget +*OrganizationApi* | [**update_organization**](koyeb/api/docs/OrganizationApi.md#update_organization) | **PUT** /v1/organizations/{id} | Update Organization +*OrganizationApi* | [**update_organization2**](koyeb/api/docs/OrganizationApi.md#update_organization2) | **PATCH** /v1/organizations/{id} | Update Organization +*OrganizationApi* | [**update_organization_plan**](koyeb/api/docs/OrganizationApi.md#update_organization_plan) | **POST** /v1/organizations/{id}/plan | Update Organization plan +*OrganizationApi* | [**upsert_signup_qualification**](koyeb/api/docs/OrganizationApi.md#upsert_signup_qualification) | **POST** /v1/organizations/{id}/signup_qualification | Upsert Organization's signup qualification +*SsoApi* | [**canny_auth**](koyeb/api/docs/SsoApi.md#canny_auth) | **POST** /v1/sso/canny | +*SsoApi* | [**discourse_auth**](koyeb/api/docs/SsoApi.md#discourse_auth) | **POST** /v1/sso/discourse | + + +## Documentation For Models + + - [AcceptOrganizationInvitationReply](koyeb/api/docs/AcceptOrganizationInvitationReply.md) + - [Action](koyeb/api/docs/Action.md) + - [Activity](koyeb/api/docs/Activity.md) + - [ActivityList](koyeb/api/docs/ActivityList.md) + - [App](koyeb/api/docs/App.md) + - [AppEvent](koyeb/api/docs/AppEvent.md) + - [AppListItem](koyeb/api/docs/AppListItem.md) + - [AppStatus](koyeb/api/docs/AppStatus.md) + - [AppUsage](koyeb/api/docs/AppUsage.md) + - [AppsSummary](koyeb/api/docs/AppsSummary.md) + - [Archive](koyeb/api/docs/Archive.md) + - [ArchiveDeploymentMetadata](koyeb/api/docs/ArchiveDeploymentMetadata.md) + - [ArchiveSource](koyeb/api/docs/ArchiveSource.md) + - [AutoRelease](koyeb/api/docs/AutoRelease.md) + - [AutoReleaseGroup](koyeb/api/docs/AutoReleaseGroup.md) + - [AutocompleteReply](koyeb/api/docs/AutocompleteReply.md) + - [AutocompleteRequest](koyeb/api/docs/AutocompleteRequest.md) + - [AvailabilityLevel](koyeb/api/docs/AvailabilityLevel.md) + - [AzureContainerRegistryConfiguration](koyeb/api/docs/AzureContainerRegistryConfiguration.md) + - [Budget](koyeb/api/docs/Budget.md) + - [BuildpackBuilder](koyeb/api/docs/BuildpackBuilder.md) + - [CannyAuthReply](koyeb/api/docs/CannyAuthReply.md) + - [CatalogGPUDetails](koyeb/api/docs/CatalogGPUDetails.md) + - [CatalogInstance](koyeb/api/docs/CatalogInstance.md) + - [CatalogInstanceListItem](koyeb/api/docs/CatalogInstanceListItem.md) + - [CatalogUsage](koyeb/api/docs/CatalogUsage.md) + - [ClearIdenfyVerificationResultRequest](koyeb/api/docs/ClearIdenfyVerificationResultRequest.md) + - [ComposeReply](koyeb/api/docs/ComposeReply.md) + - [ConfigFile](koyeb/api/docs/ConfigFile.md) + - [ConfirmPaymentAuthorizationReply](koyeb/api/docs/ConfirmPaymentAuthorizationReply.md) + - [CreateAccessTokenReply](koyeb/api/docs/CreateAccessTokenReply.md) + - [CreateAccessTokenRequest](koyeb/api/docs/CreateAccessTokenRequest.md) + - [CreateAccountRequest](koyeb/api/docs/CreateAccountRequest.md) + - [CreateApp](koyeb/api/docs/CreateApp.md) + - [CreateAppReply](koyeb/api/docs/CreateAppReply.md) + - [CreateArchive](koyeb/api/docs/CreateArchive.md) + - [CreateArchiveReply](koyeb/api/docs/CreateArchiveReply.md) + - [CreateBudgetReply](koyeb/api/docs/CreateBudgetReply.md) + - [CreateCompose](koyeb/api/docs/CreateCompose.md) + - [CreateCredential](koyeb/api/docs/CreateCredential.md) + - [CreateCredentialReply](koyeb/api/docs/CreateCredentialReply.md) + - [CreateDomain](koyeb/api/docs/CreateDomain.md) + - [CreateDomainReply](koyeb/api/docs/CreateDomainReply.md) + - [CreateOrganizationInvitationReply](koyeb/api/docs/CreateOrganizationInvitationReply.md) + - [CreateOrganizationInvitationRequest](koyeb/api/docs/CreateOrganizationInvitationRequest.md) + - [CreateOrganizationReply](koyeb/api/docs/CreateOrganizationReply.md) + - [CreateOrganizationRequest](koyeb/api/docs/CreateOrganizationRequest.md) + - [CreatePaymentAuthorizationReply](koyeb/api/docs/CreatePaymentAuthorizationReply.md) + - [CreatePersistentVolumeReply](koyeb/api/docs/CreatePersistentVolumeReply.md) + - [CreatePersistentVolumeRequest](koyeb/api/docs/CreatePersistentVolumeRequest.md) + - [CreateSecret](koyeb/api/docs/CreateSecret.md) + - [CreateSecretReply](koyeb/api/docs/CreateSecretReply.md) + - [CreateService](koyeb/api/docs/CreateService.md) + - [CreateServiceReply](koyeb/api/docs/CreateServiceReply.md) + - [CreateSnapshotReply](koyeb/api/docs/CreateSnapshotReply.md) + - [CreateSnapshotRequest](koyeb/api/docs/CreateSnapshotRequest.md) + - [CreateStageAttemptRequest](koyeb/api/docs/CreateStageAttemptRequest.md) + - [Credential](koyeb/api/docs/Credential.md) + - [CredentialType](koyeb/api/docs/CredentialType.md) + - [DatabaseDeploymentMetadata](koyeb/api/docs/DatabaseDeploymentMetadata.md) + - [DatabaseRolePassword](koyeb/api/docs/DatabaseRolePassword.md) + - [DatabaseSource](koyeb/api/docs/DatabaseSource.md) + - [DatabaseUsage](koyeb/api/docs/DatabaseUsage.md) + - [DatabaseUsageDetails](koyeb/api/docs/DatabaseUsageDetails.md) + - [DatacenterListItem](koyeb/api/docs/DatacenterListItem.md) + - [DeactivateOrganizationReply](koyeb/api/docs/DeactivateOrganizationReply.md) + - [DeactivateOrganizationRequest](koyeb/api/docs/DeactivateOrganizationRequest.md) + - [DeclareStageProgressRequest](koyeb/api/docs/DeclareStageProgressRequest.md) + - [DeclareStepProgressRequest](koyeb/api/docs/DeclareStepProgressRequest.md) + - [DeclineOrganizationInvitationReply](koyeb/api/docs/DeclineOrganizationInvitationReply.md) + - [DeleteOrganizationReply](koyeb/api/docs/DeleteOrganizationReply.md) + - [DeletePersistentVolumeReply](koyeb/api/docs/DeletePersistentVolumeReply.md) + - [DeleteSnapshotReply](koyeb/api/docs/DeleteSnapshotReply.md) + - [DeleteUserReply](koyeb/api/docs/DeleteUserReply.md) + - [Deployment](koyeb/api/docs/Deployment.md) + - [DeploymentDatabaseInfo](koyeb/api/docs/DeploymentDatabaseInfo.md) + - [DeploymentDefinition](koyeb/api/docs/DeploymentDefinition.md) + - [DeploymentDefinitionType](koyeb/api/docs/DeploymentDefinitionType.md) + - [DeploymentEnv](koyeb/api/docs/DeploymentEnv.md) + - [DeploymentEvent](koyeb/api/docs/DeploymentEvent.md) + - [DeploymentHealthCheck](koyeb/api/docs/DeploymentHealthCheck.md) + - [DeploymentInstanceType](koyeb/api/docs/DeploymentInstanceType.md) + - [DeploymentListItem](koyeb/api/docs/DeploymentListItem.md) + - [DeploymentMetadata](koyeb/api/docs/DeploymentMetadata.md) + - [DeploymentNeonPostgresDatabaseInfo](koyeb/api/docs/DeploymentNeonPostgresDatabaseInfo.md) + - [DeploymentNeonPostgresDatabaseInfoRole](koyeb/api/docs/DeploymentNeonPostgresDatabaseInfoRole.md) + - [DeploymentPort](koyeb/api/docs/DeploymentPort.md) + - [DeploymentProvisioningInfo](koyeb/api/docs/DeploymentProvisioningInfo.md) + - [DeploymentProvisioningInfoStage](koyeb/api/docs/DeploymentProvisioningInfoStage.md) + - [DeploymentProvisioningInfoStageBuildAttempt](koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttempt.md) + - [DeploymentProvisioningInfoStageBuildAttemptBuildStep](koyeb/api/docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md) + - [DeploymentProvisioningInfoStageStatus](koyeb/api/docs/DeploymentProvisioningInfoStageStatus.md) + - [DeploymentProxyPort](koyeb/api/docs/DeploymentProxyPort.md) + - [DeploymentProxyPortMetadata](koyeb/api/docs/DeploymentProxyPortMetadata.md) + - [DeploymentRole](koyeb/api/docs/DeploymentRole.md) + - [DeploymentRoute](koyeb/api/docs/DeploymentRoute.md) + - [DeploymentScaling](koyeb/api/docs/DeploymentScaling.md) + - [DeploymentScalingTarget](koyeb/api/docs/DeploymentScalingTarget.md) + - [DeploymentScalingTargetAverageCPU](koyeb/api/docs/DeploymentScalingTargetAverageCPU.md) + - [DeploymentScalingTargetAverageMem](koyeb/api/docs/DeploymentScalingTargetAverageMem.md) + - [DeploymentScalingTargetConcurrentRequests](koyeb/api/docs/DeploymentScalingTargetConcurrentRequests.md) + - [DeploymentScalingTargetRequestsPerSecond](koyeb/api/docs/DeploymentScalingTargetRequestsPerSecond.md) + - [DeploymentScalingTargetRequestsResponseTime](koyeb/api/docs/DeploymentScalingTargetRequestsResponseTime.md) + - [DeploymentScalingTargetSleepIdleDelay](koyeb/api/docs/DeploymentScalingTargetSleepIdleDelay.md) + - [DeploymentStatus](koyeb/api/docs/DeploymentStatus.md) + - [DeploymentStrategy](koyeb/api/docs/DeploymentStrategy.md) + - [DeploymentStrategyType](koyeb/api/docs/DeploymentStrategyType.md) + - [DeploymentVolume](koyeb/api/docs/DeploymentVolume.md) + - [DesiredDeployment](koyeb/api/docs/DesiredDeployment.md) + - [DesiredDeploymentGroup](koyeb/api/docs/DesiredDeploymentGroup.md) + - [DigitalOceanRegistryConfiguration](koyeb/api/docs/DigitalOceanRegistryConfiguration.md) + - [DiscourseAuthReply](koyeb/api/docs/DiscourseAuthReply.md) + - [DiscourseAuthRequest](koyeb/api/docs/DiscourseAuthRequest.md) + - [DockerBuilder](koyeb/api/docs/DockerBuilder.md) + - [DockerHubRegistryConfiguration](koyeb/api/docs/DockerHubRegistryConfiguration.md) + - [DockerSource](koyeb/api/docs/DockerSource.md) + - [Domain](koyeb/api/docs/Domain.md) + - [DomainLoadBalancerKoyeb](koyeb/api/docs/DomainLoadBalancerKoyeb.md) + - [DomainLoadBalancerQuotas](koyeb/api/docs/DomainLoadBalancerQuotas.md) + - [DomainStatus](koyeb/api/docs/DomainStatus.md) + - [DomainType](koyeb/api/docs/DomainType.md) + - [DomainsSummary](koyeb/api/docs/DomainsSummary.md) + - [Env](koyeb/api/docs/Env.md) + - [Error](koyeb/api/docs/Error.md) + - [ErrorField](koyeb/api/docs/ErrorField.md) + - [ErrorWithFields](koyeb/api/docs/ErrorWithFields.md) + - [ExecCommandIO](koyeb/api/docs/ExecCommandIO.md) + - [ExecCommandReply](koyeb/api/docs/ExecCommandReply.md) + - [ExecCommandRequestBody](koyeb/api/docs/ExecCommandRequestBody.md) + - [ExecCommandRequestIdType](koyeb/api/docs/ExecCommandRequestIdType.md) + - [ExecCommandRequestTerminalSize](koyeb/api/docs/ExecCommandRequestTerminalSize.md) + - [GCPContainerRegistryConfiguration](koyeb/api/docs/GCPContainerRegistryConfiguration.md) + - [GetAppReply](koyeb/api/docs/GetAppReply.md) + - [GetBudgetReply](koyeb/api/docs/GetBudgetReply.md) + - [GetCatalogInstanceReply](koyeb/api/docs/GetCatalogInstanceReply.md) + - [GetCredentialReply](koyeb/api/docs/GetCredentialReply.md) + - [GetDeploymentReply](koyeb/api/docs/GetDeploymentReply.md) + - [GetDeploymentScalingReply](koyeb/api/docs/GetDeploymentScalingReply.md) + - [GetDeploymentScalingReplyItem](koyeb/api/docs/GetDeploymentScalingReplyItem.md) + - [GetDomainReply](koyeb/api/docs/GetDomainReply.md) + - [GetGithubInstallationReply](koyeb/api/docs/GetGithubInstallationReply.md) + - [GetIdenfyTokenReply](koyeb/api/docs/GetIdenfyTokenReply.md) + - [GetInstanceReply](koyeb/api/docs/GetInstanceReply.md) + - [GetIntercomProfileReply](koyeb/api/docs/GetIntercomProfileReply.md) + - [GetMetricsReply](koyeb/api/docs/GetMetricsReply.md) + - [GetMetricsReplyMetric](koyeb/api/docs/GetMetricsReplyMetric.md) + - [GetOAuthOptionsReply](koyeb/api/docs/GetOAuthOptionsReply.md) + - [GetOrganizationInvitationReply](koyeb/api/docs/GetOrganizationInvitationReply.md) + - [GetOrganizationReply](koyeb/api/docs/GetOrganizationReply.md) + - [GetOrganizationSummaryReply](koyeb/api/docs/GetOrganizationSummaryReply.md) + - [GetOrganizationUsageDetailsReply](koyeb/api/docs/GetOrganizationUsageDetailsReply.md) + - [GetOrganizationUsageReply](koyeb/api/docs/GetOrganizationUsageReply.md) + - [GetPaymentMethodReply](koyeb/api/docs/GetPaymentMethodReply.md) + - [GetPersistentVolumeReply](koyeb/api/docs/GetPersistentVolumeReply.md) + - [GetQuotasReply](koyeb/api/docs/GetQuotasReply.md) + - [GetRegionReply](koyeb/api/docs/GetRegionReply.md) + - [GetRegionalDeploymentReply](koyeb/api/docs/GetRegionalDeploymentReply.md) + - [GetSecretReply](koyeb/api/docs/GetSecretReply.md) + - [GetServiceReply](koyeb/api/docs/GetServiceReply.md) + - [GetSnapshotReply](koyeb/api/docs/GetSnapshotReply.md) + - [GetSubscriptionReply](koyeb/api/docs/GetSubscriptionReply.md) + - [GetUserOrganizationInvitationReply](koyeb/api/docs/GetUserOrganizationInvitationReply.md) + - [GetUserSettingsReply](koyeb/api/docs/GetUserSettingsReply.md) + - [GitDeploymentMetadata](koyeb/api/docs/GitDeploymentMetadata.md) + - [GitEnvDeploymentMetadata](koyeb/api/docs/GitEnvDeploymentMetadata.md) + - [GitHubRegistryConfiguration](koyeb/api/docs/GitHubRegistryConfiguration.md) + - [GitLabRegistryConfiguration](koyeb/api/docs/GitLabRegistryConfiguration.md) + - [GitSource](koyeb/api/docs/GitSource.md) + - [GithubInstallationReply](koyeb/api/docs/GithubInstallationReply.md) + - [GithubInstallationRequest](koyeb/api/docs/GithubInstallationRequest.md) + - [GoogleProtobufAny](koyeb/api/docs/GoogleProtobufAny.md) + - [GoogleProtobufNullValue](koyeb/api/docs/GoogleProtobufNullValue.md) + - [GoogleRpcStatus](koyeb/api/docs/GoogleRpcStatus.md) + - [HTTPHeader](koyeb/api/docs/HTTPHeader.md) + - [HTTPHealthCheck](koyeb/api/docs/HTTPHealthCheck.md) + - [HasUnpaidInvoicesReply](koyeb/api/docs/HasUnpaidInvoicesReply.md) + - [Instance](koyeb/api/docs/Instance.md) + - [InstanceAvailability](koyeb/api/docs/InstanceAvailability.md) + - [InstanceEvent](koyeb/api/docs/InstanceEvent.md) + - [InstanceListItem](koyeb/api/docs/InstanceListItem.md) + - [InstanceStatus](koyeb/api/docs/InstanceStatus.md) + - [InstanceUsage](koyeb/api/docs/InstanceUsage.md) + - [InstancesSummary](koyeb/api/docs/InstancesSummary.md) + - [InviteUserRequest](koyeb/api/docs/InviteUserRequest.md) + - [KgitproxyBranch](koyeb/api/docs/KgitproxyBranch.md) + - [KgitproxyGitHubRepository](koyeb/api/docs/KgitproxyGitHubRepository.md) + - [KgitproxyGithubInstallationStatus](koyeb/api/docs/KgitproxyGithubInstallationStatus.md) + - [KgitproxyIndexingStatus](koyeb/api/docs/KgitproxyIndexingStatus.md) + - [KgitproxyListBranchesReply](koyeb/api/docs/KgitproxyListBranchesReply.md) + - [KgitproxyListRepositoriesReply](koyeb/api/docs/KgitproxyListRepositoriesReply.md) + - [KgitproxyRepository](koyeb/api/docs/KgitproxyRepository.md) + - [KgitproxyRepositoryProvider](koyeb/api/docs/KgitproxyRepositoryProvider.md) + - [KsearchApp](koyeb/api/docs/KsearchApp.md) + - [KsearchGlobalDeployment](koyeb/api/docs/KsearchGlobalDeployment.md) + - [KsearchInstance](koyeb/api/docs/KsearchInstance.md) + - [KsearchOrganization](koyeb/api/docs/KsearchOrganization.md) + - [KsearchRegionalDeployment](koyeb/api/docs/KsearchRegionalDeployment.md) + - [KsearchSearchReply](koyeb/api/docs/KsearchSearchReply.md) + - [KsearchService](koyeb/api/docs/KsearchService.md) + - [KsearchUser](koyeb/api/docs/KsearchUser.md) + - [ListAppEventsReply](koyeb/api/docs/ListAppEventsReply.md) + - [ListAppsReply](koyeb/api/docs/ListAppsReply.md) + - [ListCatalogInstancesReply](koyeb/api/docs/ListCatalogInstancesReply.md) + - [ListCredentialsReply](koyeb/api/docs/ListCredentialsReply.md) + - [ListDatacentersReply](koyeb/api/docs/ListDatacentersReply.md) + - [ListDeploymentEventsReply](koyeb/api/docs/ListDeploymentEventsReply.md) + - [ListDeploymentsReply](koyeb/api/docs/ListDeploymentsReply.md) + - [ListDomainsReply](koyeb/api/docs/ListDomainsReply.md) + - [ListInstanceEventsReply](koyeb/api/docs/ListInstanceEventsReply.md) + - [ListInstancesReply](koyeb/api/docs/ListInstancesReply.md) + - [ListOrganizationInvitationsReply](koyeb/api/docs/ListOrganizationInvitationsReply.md) + - [ListOrganizationMembersReply](koyeb/api/docs/ListOrganizationMembersReply.md) + - [ListPaymentMethodsReply](koyeb/api/docs/ListPaymentMethodsReply.md) + - [ListPersistentVolumeEventsReply](koyeb/api/docs/ListPersistentVolumeEventsReply.md) + - [ListPersistentVolumesReply](koyeb/api/docs/ListPersistentVolumesReply.md) + - [ListRegionalDeploymentEventsReply](koyeb/api/docs/ListRegionalDeploymentEventsReply.md) + - [ListRegionalDeploymentsReply](koyeb/api/docs/ListRegionalDeploymentsReply.md) + - [ListRegionsReply](koyeb/api/docs/ListRegionsReply.md) + - [ListSecretsReply](koyeb/api/docs/ListSecretsReply.md) + - [ListServiceEventsReply](koyeb/api/docs/ListServiceEventsReply.md) + - [ListServicesReply](koyeb/api/docs/ListServicesReply.md) + - [ListSnapshotsReply](koyeb/api/docs/ListSnapshotsReply.md) + - [ListUsageReply](koyeb/api/docs/ListUsageReply.md) + - [ListUserOrganizationInvitationsReply](koyeb/api/docs/ListUserOrganizationInvitationsReply.md) + - [ListUserOrganizationsReply](koyeb/api/docs/ListUserOrganizationsReply.md) + - [LogEntry](koyeb/api/docs/LogEntry.md) + - [LoginMethodReply](koyeb/api/docs/LoginMethodReply.md) + - [LoginMethodReplyMethod](koyeb/api/docs/LoginMethodReplyMethod.md) + - [LoginReply](koyeb/api/docs/LoginReply.md) + - [LoginRequest](koyeb/api/docs/LoginRequest.md) + - [ManageReply](koyeb/api/docs/ManageReply.md) + - [MembersSummary](koyeb/api/docs/MembersSummary.md) + - [MetricName](koyeb/api/docs/MetricName.md) + - [NeonPostgresDatabase](koyeb/api/docs/NeonPostgresDatabase.md) + - [NeonPostgresDatabaseDeploymentMetadata](koyeb/api/docs/NeonPostgresDatabaseDeploymentMetadata.md) + - [NeonPostgresDatabaseNeonDatabase](koyeb/api/docs/NeonPostgresDatabaseNeonDatabase.md) + - [NeonPostgresDatabaseNeonRole](koyeb/api/docs/NeonPostgresDatabaseNeonRole.md) + - [NeonPostgresSummary](koyeb/api/docs/NeonPostgresSummary.md) + - [NextInvoiceReply](koyeb/api/docs/NextInvoiceReply.md) + - [NextInvoiceReplyDiscount](koyeb/api/docs/NextInvoiceReplyDiscount.md) + - [NextInvoiceReplyDiscountType](koyeb/api/docs/NextInvoiceReplyDiscountType.md) + - [NextInvoiceReplyLine](koyeb/api/docs/NextInvoiceReplyLine.md) + - [NextInvoiceReplyLinePeriod](koyeb/api/docs/NextInvoiceReplyLinePeriod.md) + - [NextInvoiceReplyLinePrice](koyeb/api/docs/NextInvoiceReplyLinePrice.md) + - [Notification](koyeb/api/docs/Notification.md) + - [NotificationList](koyeb/api/docs/NotificationList.md) + - [OAuthCallbackReply](koyeb/api/docs/OAuthCallbackReply.md) + - [OAuthCallbackRequest](koyeb/api/docs/OAuthCallbackRequest.md) + - [OAuthProvider](koyeb/api/docs/OAuthProvider.md) + - [Object](koyeb/api/docs/Object.md) + - [Organization](koyeb/api/docs/Organization.md) + - [OrganizationDeactivationReason](koyeb/api/docs/OrganizationDeactivationReason.md) + - [OrganizationDetailedStatus](koyeb/api/docs/OrganizationDetailedStatus.md) + - [OrganizationInvitation](koyeb/api/docs/OrganizationInvitation.md) + - [OrganizationInvitationStatus](koyeb/api/docs/OrganizationInvitationStatus.md) + - [OrganizationMember](koyeb/api/docs/OrganizationMember.md) + - [OrganizationMemberStatus](koyeb/api/docs/OrganizationMemberStatus.md) + - [OrganizationStatus](koyeb/api/docs/OrganizationStatus.md) + - [OrganizationSummary](koyeb/api/docs/OrganizationSummary.md) + - [PaymentMethod](koyeb/api/docs/PaymentMethod.md) + - [PaymentMethodStatus](koyeb/api/docs/PaymentMethodStatus.md) + - [PeriodUsage](koyeb/api/docs/PeriodUsage.md) + - [PersistentVolume](koyeb/api/docs/PersistentVolume.md) + - [PersistentVolumeBackingStore](koyeb/api/docs/PersistentVolumeBackingStore.md) + - [PersistentVolumeEvent](koyeb/api/docs/PersistentVolumeEvent.md) + - [PersistentVolumeQuotas](koyeb/api/docs/PersistentVolumeQuotas.md) + - [PersistentVolumeStatus](koyeb/api/docs/PersistentVolumeStatus.md) + - [Plan](koyeb/api/docs/Plan.md) + - [Port](koyeb/api/docs/Port.md) + - [PrivateRegistryConfiguration](koyeb/api/docs/PrivateRegistryConfiguration.md) + - [ProxyPortProtocol](koyeb/api/docs/ProxyPortProtocol.md) + - [PublicOrganization](koyeb/api/docs/PublicOrganization.md) + - [PublicUser](koyeb/api/docs/PublicUser.md) + - [QueryLogsReply](koyeb/api/docs/QueryLogsReply.md) + - [QueryLogsReplyPagination](koyeb/api/docs/QueryLogsReplyPagination.md) + - [Quotas](koyeb/api/docs/Quotas.md) + - [ReactivateOrganizationReply](koyeb/api/docs/ReactivateOrganizationReply.md) + - [RedeemCouponRequest](koyeb/api/docs/RedeemCouponRequest.md) + - [RedeployReply](koyeb/api/docs/RedeployReply.md) + - [RedeployRequestInfo](koyeb/api/docs/RedeployRequestInfo.md) + - [Region](koyeb/api/docs/Region.md) + - [RegionAvailability](koyeb/api/docs/RegionAvailability.md) + - [RegionListItem](koyeb/api/docs/RegionListItem.md) + - [RegionUsage](koyeb/api/docs/RegionUsage.md) + - [RegionalDeployment](koyeb/api/docs/RegionalDeployment.md) + - [RegionalDeploymentDefinition](koyeb/api/docs/RegionalDeploymentDefinition.md) + - [RegionalDeploymentDefinitionType](koyeb/api/docs/RegionalDeploymentDefinitionType.md) + - [RegionalDeploymentEvent](koyeb/api/docs/RegionalDeploymentEvent.md) + - [RegionalDeploymentListItem](koyeb/api/docs/RegionalDeploymentListItem.md) + - [RegionalDeploymentRole](koyeb/api/docs/RegionalDeploymentRole.md) + - [RegionalDeploymentStatus](koyeb/api/docs/RegionalDeploymentStatus.md) + - [RegionalDeploymentVolume](koyeb/api/docs/RegionalDeploymentVolume.md) + - [RemoveOrganizationMemberReply](koyeb/api/docs/RemoveOrganizationMemberReply.md) + - [ResendOrganizationInvitationReply](koyeb/api/docs/ResendOrganizationInvitationReply.md) + - [ResetPasswordRequest](koyeb/api/docs/ResetPasswordRequest.md) + - [RevealSecretReply](koyeb/api/docs/RevealSecretReply.md) + - [ReviewOrganizationCapacityReply](koyeb/api/docs/ReviewOrganizationCapacityReply.md) + - [ReviewOrganizationCapacityRequest](koyeb/api/docs/ReviewOrganizationCapacityRequest.md) + - [Route](koyeb/api/docs/Route.md) + - [Sample](koyeb/api/docs/Sample.md) + - [ScaleToZeroQuotas](koyeb/api/docs/ScaleToZeroQuotas.md) + - [Scaling](koyeb/api/docs/Scaling.md) + - [Secret](koyeb/api/docs/Secret.md) + - [SecretType](koyeb/api/docs/SecretType.md) + - [SecretsSummary](koyeb/api/docs/SecretsSummary.md) + - [Service](koyeb/api/docs/Service.md) + - [ServiceEvent](koyeb/api/docs/ServiceEvent.md) + - [ServiceListItem](koyeb/api/docs/ServiceListItem.md) + - [ServiceState](koyeb/api/docs/ServiceState.md) + - [ServiceStatus](koyeb/api/docs/ServiceStatus.md) + - [ServiceSummary](koyeb/api/docs/ServiceSummary.md) + - [ServiceType](koyeb/api/docs/ServiceType.md) + - [ServiceUsage](koyeb/api/docs/ServiceUsage.md) + - [Snapshot](koyeb/api/docs/Snapshot.md) + - [SnapshotStatus](koyeb/api/docs/SnapshotStatus.md) + - [SnapshotType](koyeb/api/docs/SnapshotType.md) + - [StreamResultOfExecCommandReply](koyeb/api/docs/StreamResultOfExecCommandReply.md) + - [StreamResultOfLogEntry](koyeb/api/docs/StreamResultOfLogEntry.md) + - [Subscription](koyeb/api/docs/Subscription.md) + - [SubscriptionPaymentFailure](koyeb/api/docs/SubscriptionPaymentFailure.md) + - [SubscriptionPaymentFailureStripeSDK](koyeb/api/docs/SubscriptionPaymentFailureStripeSDK.md) + - [SubscriptionStatus](koyeb/api/docs/SubscriptionStatus.md) + - [TCPHealthCheck](koyeb/api/docs/TCPHealthCheck.md) + - [Token](koyeb/api/docs/Token.md) + - [TriggerDeploymentMetadata](koyeb/api/docs/TriggerDeploymentMetadata.md) + - [TriggerDeploymentMetadataActorType](koyeb/api/docs/TriggerDeploymentMetadataActorType.md) + - [TriggerDeploymentMetadataTriggerType](koyeb/api/docs/TriggerDeploymentMetadataTriggerType.md) + - [TriggerGitDeploymentMetadata](koyeb/api/docs/TriggerGitDeploymentMetadata.md) + - [TriggerGitDeploymentMetadataProvider](koyeb/api/docs/TriggerGitDeploymentMetadataProvider.md) + - [UpdateApp](koyeb/api/docs/UpdateApp.md) + - [UpdateAppReply](koyeb/api/docs/UpdateAppReply.md) + - [UpdateBudgetReply](koyeb/api/docs/UpdateBudgetReply.md) + - [UpdateBudgetRequest](koyeb/api/docs/UpdateBudgetRequest.md) + - [UpdateCredentialReply](koyeb/api/docs/UpdateCredentialReply.md) + - [UpdateDomain](koyeb/api/docs/UpdateDomain.md) + - [UpdateDomainReply](koyeb/api/docs/UpdateDomainReply.md) + - [UpdateOrganizationPlanReply](koyeb/api/docs/UpdateOrganizationPlanReply.md) + - [UpdateOrganizationPlanRequest](koyeb/api/docs/UpdateOrganizationPlanRequest.md) + - [UpdateOrganizationReply](koyeb/api/docs/UpdateOrganizationReply.md) + - [UpdatePasswordRequest](koyeb/api/docs/UpdatePasswordRequest.md) + - [UpdatePersistentVolumeReply](koyeb/api/docs/UpdatePersistentVolumeReply.md) + - [UpdatePersistentVolumeRequest](koyeb/api/docs/UpdatePersistentVolumeRequest.md) + - [UpdateSecretReply](koyeb/api/docs/UpdateSecretReply.md) + - [UpdateService](koyeb/api/docs/UpdateService.md) + - [UpdateServiceReply](koyeb/api/docs/UpdateServiceReply.md) + - [UpdateSnapshotReply](koyeb/api/docs/UpdateSnapshotReply.md) + - [UpdateSnapshotRequest](koyeb/api/docs/UpdateSnapshotRequest.md) + - [UpdateUserRequestUserUpdateBody](koyeb/api/docs/UpdateUserRequestUserUpdateBody.md) + - [UpdateUserSettingsReply](koyeb/api/docs/UpdateUserSettingsReply.md) + - [UpdateUserSettingsRequest](koyeb/api/docs/UpdateUserSettingsRequest.md) + - [UpsertSignupQualificationReply](koyeb/api/docs/UpsertSignupQualificationReply.md) + - [UpsertSignupQualificationRequest](koyeb/api/docs/UpsertSignupQualificationRequest.md) + - [Usage](koyeb/api/docs/Usage.md) + - [UsageDetails](koyeb/api/docs/UsageDetails.md) + - [User](koyeb/api/docs/User.md) + - [UserFlags](koyeb/api/docs/UserFlags.md) + - [UserReply](koyeb/api/docs/UserReply.md) + - [UserRoleRole](koyeb/api/docs/UserRoleRole.md) + - [UserSettings](koyeb/api/docs/UserSettings.md) + - [VerifyDockerImageReply](koyeb/api/docs/VerifyDockerImageReply.md) + - [VerifyDockerImageReplyErrCode](koyeb/api/docs/VerifyDockerImageReplyErrCode.md) + + + +## Documentation For Authorization + + +Authentication schemes defined for the API: + +### Bearer + +- **Type**: API key +- **API key parameter name**: Authorization +- **Location**: HTTP header + + +## Author + + + + diff --git a/koyeb/docs/UsersApi.md b/koyeb/docs/UsersApi.md deleted file mode 100644 index 84838b14..00000000 --- a/koyeb/docs/UsersApi.md +++ /dev/null @@ -1,93 +0,0 @@ -# koyeb.UsersApi - -All URIs are relative to *https://app.koyeb.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**delete_user**](UsersApi.md#delete_user) | **DELETE** /v1/users/{id} | Delete user - - -# **delete_user** -> DeleteUserReply delete_user(id) - -Delete user - -### Example - -* Api Key Authentication (Bearer): - -```python -import koyeb -from koyeb.models.delete_user_reply import DeleteUserReply -from koyeb.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://app.koyeb.com -# See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( - host = "https://app.koyeb.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: Bearer -configuration.api_key['Bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Bearer'] = 'Bearer' - -# Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = koyeb.UsersApi(api_client) - id = 'id_example' # str | The id of the user - - try: - # Delete user - api_response = api_instance.delete_user(id) - print("The response of UsersApi->delete_user:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UsersApi->delete_user: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The id of the user | - -### Return type - -[**DeleteUserReply**](DeleteUserReply.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A successful response. | - | -**400** | Validation error | - | -**401** | Returned when the token is not valid. | - | -**403** | Returned when the user does not have permission to access the resource. | - | -**404** | Returned when the resource does not exist. | - | -**500** | Returned in case of server error. | - | -**503** | Service is unavailable. | - | -**0** | An unexpected error response. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/koyeb/models/__init__.py b/koyeb/models/__init__.py deleted file mode 100644 index c9a74293..00000000 --- a/koyeb/models/__init__.py +++ /dev/null @@ -1,473 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -# import models into model package -from koyeb.models.accept_organization_invitation_reply import ( - AcceptOrganizationInvitationReply, -) -from koyeb.models.action import Action -from koyeb.models.activity import Activity -from koyeb.models.activity_list import ActivityList -from koyeb.models.app import App -from koyeb.models.app_event import AppEvent -from koyeb.models.app_list_item import AppListItem -from koyeb.models.app_status import AppStatus -from koyeb.models.app_usage import AppUsage -from koyeb.models.apps_summary import AppsSummary -from koyeb.models.archive import Archive -from koyeb.models.archive_deployment_metadata import ArchiveDeploymentMetadata -from koyeb.models.archive_source import ArchiveSource -from koyeb.models.auto_release import AutoRelease -from koyeb.models.auto_release_group import AutoReleaseGroup -from koyeb.models.autocomplete_reply import AutocompleteReply -from koyeb.models.autocomplete_request import AutocompleteRequest -from koyeb.models.availability_level import AvailabilityLevel -from koyeb.models.azure_container_registry_configuration import ( - AzureContainerRegistryConfiguration, -) -from koyeb.models.budget import Budget -from koyeb.models.buildpack_builder import BuildpackBuilder -from koyeb.models.canny_auth_reply import CannyAuthReply -from koyeb.models.catalog_gpu_details import CatalogGPUDetails -from koyeb.models.catalog_instance import CatalogInstance -from koyeb.models.catalog_instance_list_item import CatalogInstanceListItem -from koyeb.models.catalog_usage import CatalogUsage -from koyeb.models.clear_idenfy_verification_result_request import ( - ClearIdenfyVerificationResultRequest, -) -from koyeb.models.compose_reply import ComposeReply -from koyeb.models.config_file import ConfigFile -from koyeb.models.confirm_payment_authorization_reply import ( - ConfirmPaymentAuthorizationReply, -) -from koyeb.models.create_access_token_reply import CreateAccessTokenReply -from koyeb.models.create_access_token_request import CreateAccessTokenRequest -from koyeb.models.create_account_request import CreateAccountRequest -from koyeb.models.create_app import CreateApp -from koyeb.models.create_app_reply import CreateAppReply -from koyeb.models.create_archive import CreateArchive -from koyeb.models.create_archive_reply import CreateArchiveReply -from koyeb.models.create_budget_reply import CreateBudgetReply -from koyeb.models.create_compose import CreateCompose -from koyeb.models.create_credential import CreateCredential -from koyeb.models.create_credential_reply import CreateCredentialReply -from koyeb.models.create_domain import CreateDomain -from koyeb.models.create_domain_reply import CreateDomainReply -from koyeb.models.create_organization_invitation_reply import ( - CreateOrganizationInvitationReply, -) -from koyeb.models.create_organization_invitation_request import ( - CreateOrganizationInvitationRequest, -) -from koyeb.models.create_organization_reply import CreateOrganizationReply -from koyeb.models.create_organization_request import CreateOrganizationRequest -from koyeb.models.create_payment_authorization_reply import ( - CreatePaymentAuthorizationReply, -) -from koyeb.models.create_persistent_volume_reply import CreatePersistentVolumeReply -from koyeb.models.create_persistent_volume_request import CreatePersistentVolumeRequest -from koyeb.models.create_secret import CreateSecret -from koyeb.models.create_secret_reply import CreateSecretReply -from koyeb.models.create_service import CreateService -from koyeb.models.create_service_reply import CreateServiceReply -from koyeb.models.create_snapshot_reply import CreateSnapshotReply -from koyeb.models.create_snapshot_request import CreateSnapshotRequest -from koyeb.models.create_stage_attempt_request import CreateStageAttemptRequest -from koyeb.models.credential import Credential -from koyeb.models.credential_type import CredentialType -from koyeb.models.database_deployment_metadata import DatabaseDeploymentMetadata -from koyeb.models.database_role_password import DatabaseRolePassword -from koyeb.models.database_source import DatabaseSource -from koyeb.models.database_usage import DatabaseUsage -from koyeb.models.database_usage_details import DatabaseUsageDetails -from koyeb.models.datacenter_list_item import DatacenterListItem -from koyeb.models.deactivate_organization_reply import DeactivateOrganizationReply -from koyeb.models.deactivate_organization_request import DeactivateOrganizationRequest -from koyeb.models.declare_stage_progress_request import DeclareStageProgressRequest -from koyeb.models.declare_step_progress_request import DeclareStepProgressRequest -from koyeb.models.decline_organization_invitation_reply import ( - DeclineOrganizationInvitationReply, -) -from koyeb.models.delete_organization_reply import DeleteOrganizationReply -from koyeb.models.delete_persistent_volume_reply import DeletePersistentVolumeReply -from koyeb.models.delete_snapshot_reply import DeleteSnapshotReply -from koyeb.models.delete_user_reply import DeleteUserReply -from koyeb.models.deployment import Deployment -from koyeb.models.deployment_database_info import DeploymentDatabaseInfo -from koyeb.models.deployment_definition import DeploymentDefinition -from koyeb.models.deployment_definition_type import DeploymentDefinitionType -from koyeb.models.deployment_env import DeploymentEnv -from koyeb.models.deployment_event import DeploymentEvent -from koyeb.models.deployment_health_check import DeploymentHealthCheck -from koyeb.models.deployment_instance_type import DeploymentInstanceType -from koyeb.models.deployment_list_item import DeploymentListItem -from koyeb.models.deployment_metadata import DeploymentMetadata -from koyeb.models.deployment_neon_postgres_database_info import ( - DeploymentNeonPostgresDatabaseInfo, -) -from koyeb.models.deployment_neon_postgres_database_info_role import ( - DeploymentNeonPostgresDatabaseInfoRole, -) -from koyeb.models.deployment_port import DeploymentPort -from koyeb.models.deployment_provisioning_info import DeploymentProvisioningInfo -from koyeb.models.deployment_provisioning_info_stage import ( - DeploymentProvisioningInfoStage, -) -from koyeb.models.deployment_provisioning_info_stage_build_attempt import ( - DeploymentProvisioningInfoStageBuildAttempt, -) -from koyeb.models.deployment_provisioning_info_stage_build_attempt_build_step import ( - DeploymentProvisioningInfoStageBuildAttemptBuildStep, -) -from koyeb.models.deployment_provisioning_info_stage_status import ( - DeploymentProvisioningInfoStageStatus, -) -from koyeb.models.deployment_proxy_port import DeploymentProxyPort -from koyeb.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata -from koyeb.models.deployment_role import DeploymentRole -from koyeb.models.deployment_route import DeploymentRoute -from koyeb.models.deployment_scaling import DeploymentScaling -from koyeb.models.deployment_scaling_target import DeploymentScalingTarget -from koyeb.models.deployment_scaling_target_average_cpu import ( - DeploymentScalingTargetAverageCPU, -) -from koyeb.models.deployment_scaling_target_average_mem import ( - DeploymentScalingTargetAverageMem, -) -from koyeb.models.deployment_scaling_target_concurrent_requests import ( - DeploymentScalingTargetConcurrentRequests, -) -from koyeb.models.deployment_scaling_target_requests_per_second import ( - DeploymentScalingTargetRequestsPerSecond, -) -from koyeb.models.deployment_scaling_target_requests_response_time import ( - DeploymentScalingTargetRequestsResponseTime, -) -from koyeb.models.deployment_scaling_target_sleep_idle_delay import ( - DeploymentScalingTargetSleepIdleDelay, -) -from koyeb.models.deployment_status import DeploymentStatus -from koyeb.models.deployment_strategy import DeploymentStrategy -from koyeb.models.deployment_strategy_type import DeploymentStrategyType -from koyeb.models.deployment_volume import DeploymentVolume -from koyeb.models.desired_deployment import DesiredDeployment -from koyeb.models.desired_deployment_group import DesiredDeploymentGroup -from koyeb.models.digital_ocean_registry_configuration import ( - DigitalOceanRegistryConfiguration, -) -from koyeb.models.discourse_auth_reply import DiscourseAuthReply -from koyeb.models.discourse_auth_request import DiscourseAuthRequest -from koyeb.models.docker_builder import DockerBuilder -from koyeb.models.docker_hub_registry_configuration import ( - DockerHubRegistryConfiguration, -) -from koyeb.models.docker_source import DockerSource -from koyeb.models.domain import Domain -from koyeb.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb -from koyeb.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas -from koyeb.models.domain_status import DomainStatus -from koyeb.models.domain_type import DomainType -from koyeb.models.domains_summary import DomainsSummary -from koyeb.models.env import Env -from koyeb.models.error import Error -from koyeb.models.error_field import ErrorField -from koyeb.models.error_with_fields import ErrorWithFields -from koyeb.models.exec_command_io import ExecCommandIO -from koyeb.models.exec_command_reply import ExecCommandReply -from koyeb.models.exec_command_request_body import ExecCommandRequestBody -from koyeb.models.exec_command_request_id_type import ExecCommandRequestIdType -from koyeb.models.exec_command_request_terminal_size import ( - ExecCommandRequestTerminalSize, -) -from koyeb.models.gcp_container_registry_configuration import ( - GCPContainerRegistryConfiguration, -) -from koyeb.models.get_app_reply import GetAppReply -from koyeb.models.get_budget_reply import GetBudgetReply -from koyeb.models.get_catalog_instance_reply import GetCatalogInstanceReply -from koyeb.models.get_credential_reply import GetCredentialReply -from koyeb.models.get_deployment_reply import GetDeploymentReply -from koyeb.models.get_deployment_scaling_reply import GetDeploymentScalingReply -from koyeb.models.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem -from koyeb.models.get_domain_reply import GetDomainReply -from koyeb.models.get_github_installation_reply import GetGithubInstallationReply -from koyeb.models.get_idenfy_token_reply import GetIdenfyTokenReply -from koyeb.models.get_instance_reply import GetInstanceReply -from koyeb.models.get_intercom_profile_reply import GetIntercomProfileReply -from koyeb.models.get_metrics_reply import GetMetricsReply -from koyeb.models.get_metrics_reply_metric import GetMetricsReplyMetric -from koyeb.models.get_o_auth_options_reply import GetOAuthOptionsReply -from koyeb.models.get_organization_invitation_reply import ( - GetOrganizationInvitationReply, -) -from koyeb.models.get_organization_reply import GetOrganizationReply -from koyeb.models.get_organization_summary_reply import GetOrganizationSummaryReply -from koyeb.models.get_organization_usage_details_reply import ( - GetOrganizationUsageDetailsReply, -) -from koyeb.models.get_organization_usage_reply import GetOrganizationUsageReply -from koyeb.models.get_payment_method_reply import GetPaymentMethodReply -from koyeb.models.get_persistent_volume_reply import GetPersistentVolumeReply -from koyeb.models.get_quotas_reply import GetQuotasReply -from koyeb.models.get_region_reply import GetRegionReply -from koyeb.models.get_regional_deployment_reply import GetRegionalDeploymentReply -from koyeb.models.get_secret_reply import GetSecretReply -from koyeb.models.get_service_reply import GetServiceReply -from koyeb.models.get_snapshot_reply import GetSnapshotReply -from koyeb.models.get_subscription_reply import GetSubscriptionReply -from koyeb.models.get_user_organization_invitation_reply import ( - GetUserOrganizationInvitationReply, -) -from koyeb.models.get_user_settings_reply import GetUserSettingsReply -from koyeb.models.git_deployment_metadata import GitDeploymentMetadata -from koyeb.models.git_env_deployment_metadata import GitEnvDeploymentMetadata -from koyeb.models.git_hub_registry_configuration import GitHubRegistryConfiguration -from koyeb.models.git_lab_registry_configuration import GitLabRegistryConfiguration -from koyeb.models.git_source import GitSource -from koyeb.models.github_installation_reply import GithubInstallationReply -from koyeb.models.github_installation_request import GithubInstallationRequest -from koyeb.models.google_protobuf_any import GoogleProtobufAny -from koyeb.models.google_protobuf_null_value import GoogleProtobufNullValue -from koyeb.models.google_rpc_status import GoogleRpcStatus -from koyeb.models.http_header import HTTPHeader -from koyeb.models.http_health_check import HTTPHealthCheck -from koyeb.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply -from koyeb.models.instance import Instance -from koyeb.models.instance_availability import InstanceAvailability -from koyeb.models.instance_event import InstanceEvent -from koyeb.models.instance_list_item import InstanceListItem -from koyeb.models.instance_status import InstanceStatus -from koyeb.models.instance_usage import InstanceUsage -from koyeb.models.instances_summary import InstancesSummary -from koyeb.models.invite_user_request import InviteUserRequest -from koyeb.models.kgitproxy_branch import KgitproxyBranch -from koyeb.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository -from koyeb.models.kgitproxy_github_installation_status import ( - KgitproxyGithubInstallationStatus, -) -from koyeb.models.kgitproxy_indexing_status import KgitproxyIndexingStatus -from koyeb.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply -from koyeb.models.kgitproxy_list_repositories_reply import ( - KgitproxyListRepositoriesReply, -) -from koyeb.models.kgitproxy_repository import KgitproxyRepository -from koyeb.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider -from koyeb.models.ksearch_app import KsearchApp -from koyeb.models.ksearch_global_deployment import KsearchGlobalDeployment -from koyeb.models.ksearch_instance import KsearchInstance -from koyeb.models.ksearch_organization import KsearchOrganization -from koyeb.models.ksearch_regional_deployment import KsearchRegionalDeployment -from koyeb.models.ksearch_search_reply import KsearchSearchReply -from koyeb.models.ksearch_service import KsearchService -from koyeb.models.ksearch_user import KsearchUser -from koyeb.models.list_app_events_reply import ListAppEventsReply -from koyeb.models.list_apps_reply import ListAppsReply -from koyeb.models.list_catalog_instances_reply import ListCatalogInstancesReply -from koyeb.models.list_credentials_reply import ListCredentialsReply -from koyeb.models.list_datacenters_reply import ListDatacentersReply -from koyeb.models.list_deployment_events_reply import ListDeploymentEventsReply -from koyeb.models.list_deployments_reply import ListDeploymentsReply -from koyeb.models.list_domains_reply import ListDomainsReply -from koyeb.models.list_instance_events_reply import ListInstanceEventsReply -from koyeb.models.list_instances_reply import ListInstancesReply -from koyeb.models.list_organization_invitations_reply import ( - ListOrganizationInvitationsReply, -) -from koyeb.models.list_organization_members_reply import ListOrganizationMembersReply -from koyeb.models.list_payment_methods_reply import ListPaymentMethodsReply -from koyeb.models.list_persistent_volume_events_reply import ( - ListPersistentVolumeEventsReply, -) -from koyeb.models.list_persistent_volumes_reply import ListPersistentVolumesReply -from koyeb.models.list_regional_deployment_events_reply import ( - ListRegionalDeploymentEventsReply, -) -from koyeb.models.list_regional_deployments_reply import ListRegionalDeploymentsReply -from koyeb.models.list_regions_reply import ListRegionsReply -from koyeb.models.list_secrets_reply import ListSecretsReply -from koyeb.models.list_service_events_reply import ListServiceEventsReply -from koyeb.models.list_services_reply import ListServicesReply -from koyeb.models.list_snapshots_reply import ListSnapshotsReply -from koyeb.models.list_usage_reply import ListUsageReply -from koyeb.models.list_user_organization_invitations_reply import ( - ListUserOrganizationInvitationsReply, -) -from koyeb.models.list_user_organizations_reply import ListUserOrganizationsReply -from koyeb.models.log_entry import LogEntry -from koyeb.models.login_method_reply import LoginMethodReply -from koyeb.models.login_method_reply_method import LoginMethodReplyMethod -from koyeb.models.login_reply import LoginReply -from koyeb.models.login_request import LoginRequest -from koyeb.models.manage_reply import ManageReply -from koyeb.models.members_summary import MembersSummary -from koyeb.models.metric_name import MetricName -from koyeb.models.neon_postgres_database import NeonPostgresDatabase -from koyeb.models.neon_postgres_database_deployment_metadata import ( - NeonPostgresDatabaseDeploymentMetadata, -) -from koyeb.models.neon_postgres_database_neon_database import ( - NeonPostgresDatabaseNeonDatabase, -) -from koyeb.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole -from koyeb.models.neon_postgres_summary import NeonPostgresSummary -from koyeb.models.next_invoice_reply import NextInvoiceReply -from koyeb.models.next_invoice_reply_discount import NextInvoiceReplyDiscount -from koyeb.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType -from koyeb.models.next_invoice_reply_line import NextInvoiceReplyLine -from koyeb.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod -from koyeb.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice -from koyeb.models.notification import Notification -from koyeb.models.notification_list import NotificationList -from koyeb.models.o_auth_callback_reply import OAuthCallbackReply -from koyeb.models.o_auth_callback_request import OAuthCallbackRequest -from koyeb.models.o_auth_provider import OAuthProvider -from koyeb.models.object import Object -from koyeb.models.organization import Organization -from koyeb.models.organization_deactivation_reason import OrganizationDeactivationReason -from koyeb.models.organization_detailed_status import OrganizationDetailedStatus -from koyeb.models.organization_invitation import OrganizationInvitation -from koyeb.models.organization_invitation_status import OrganizationInvitationStatus -from koyeb.models.organization_member import OrganizationMember -from koyeb.models.organization_member_status import OrganizationMemberStatus -from koyeb.models.organization_status import OrganizationStatus -from koyeb.models.organization_summary import OrganizationSummary -from koyeb.models.payment_method import PaymentMethod -from koyeb.models.payment_method_status import PaymentMethodStatus -from koyeb.models.period_usage import PeriodUsage -from koyeb.models.persistent_volume import PersistentVolume -from koyeb.models.persistent_volume_backing_store import PersistentVolumeBackingStore -from koyeb.models.persistent_volume_event import PersistentVolumeEvent -from koyeb.models.persistent_volume_quotas import PersistentVolumeQuotas -from koyeb.models.persistent_volume_status import PersistentVolumeStatus -from koyeb.models.plan import Plan -from koyeb.models.port import Port -from koyeb.models.private_registry_configuration import PrivateRegistryConfiguration -from koyeb.models.proxy_port_protocol import ProxyPortProtocol -from koyeb.models.public_organization import PublicOrganization -from koyeb.models.public_user import PublicUser -from koyeb.models.query_logs_reply import QueryLogsReply -from koyeb.models.query_logs_reply_pagination import QueryLogsReplyPagination -from koyeb.models.quotas import Quotas -from koyeb.models.reactivate_organization_reply import ReactivateOrganizationReply -from koyeb.models.redeem_coupon_request import RedeemCouponRequest -from koyeb.models.redeploy_reply import RedeployReply -from koyeb.models.redeploy_request_info import RedeployRequestInfo -from koyeb.models.region import Region -from koyeb.models.region_availability import RegionAvailability -from koyeb.models.region_list_item import RegionListItem -from koyeb.models.region_usage import RegionUsage -from koyeb.models.regional_deployment import RegionalDeployment -from koyeb.models.regional_deployment_definition import RegionalDeploymentDefinition -from koyeb.models.regional_deployment_definition_type import ( - RegionalDeploymentDefinitionType, -) -from koyeb.models.regional_deployment_event import RegionalDeploymentEvent -from koyeb.models.regional_deployment_list_item import RegionalDeploymentListItem -from koyeb.models.regional_deployment_role import RegionalDeploymentRole -from koyeb.models.regional_deployment_status import RegionalDeploymentStatus -from koyeb.models.regional_deployment_volume import RegionalDeploymentVolume -from koyeb.models.remove_organization_member_reply import RemoveOrganizationMemberReply -from koyeb.models.resend_organization_invitation_reply import ( - ResendOrganizationInvitationReply, -) -from koyeb.models.reset_password_request import ResetPasswordRequest -from koyeb.models.reveal_secret_reply import RevealSecretReply -from koyeb.models.review_organization_capacity_reply import ( - ReviewOrganizationCapacityReply, -) -from koyeb.models.review_organization_capacity_request import ( - ReviewOrganizationCapacityRequest, -) -from koyeb.models.route import Route -from koyeb.models.sample import Sample -from koyeb.models.scale_to_zero_quotas import ScaleToZeroQuotas -from koyeb.models.scaling import Scaling -from koyeb.models.secret import Secret -from koyeb.models.secret_type import SecretType -from koyeb.models.secrets_summary import SecretsSummary -from koyeb.models.service import Service -from koyeb.models.service_event import ServiceEvent -from koyeb.models.service_list_item import ServiceListItem -from koyeb.models.service_state import ServiceState -from koyeb.models.service_status import ServiceStatus -from koyeb.models.service_summary import ServiceSummary -from koyeb.models.service_type import ServiceType -from koyeb.models.service_usage import ServiceUsage -from koyeb.models.snapshot import Snapshot -from koyeb.models.snapshot_status import SnapshotStatus -from koyeb.models.snapshot_type import SnapshotType -from koyeb.models.stream_result_of_exec_command_reply import ( - StreamResultOfExecCommandReply, -) -from koyeb.models.stream_result_of_log_entry import StreamResultOfLogEntry -from koyeb.models.subscription import Subscription -from koyeb.models.subscription_payment_failure import SubscriptionPaymentFailure -from koyeb.models.subscription_payment_failure_stripe_sdk import ( - SubscriptionPaymentFailureStripeSDK, -) -from koyeb.models.subscription_status import SubscriptionStatus -from koyeb.models.tcp_health_check import TCPHealthCheck -from koyeb.models.token import Token -from koyeb.models.trigger_deployment_metadata import TriggerDeploymentMetadata -from koyeb.models.trigger_deployment_metadata_actor_type import ( - TriggerDeploymentMetadataActorType, -) -from koyeb.models.trigger_deployment_metadata_trigger_type import ( - TriggerDeploymentMetadataTriggerType, -) -from koyeb.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata -from koyeb.models.trigger_git_deployment_metadata_provider import ( - TriggerGitDeploymentMetadataProvider, -) -from koyeb.models.update_app import UpdateApp -from koyeb.models.update_app_reply import UpdateAppReply -from koyeb.models.update_budget_reply import UpdateBudgetReply -from koyeb.models.update_budget_request import UpdateBudgetRequest -from koyeb.models.update_credential_reply import UpdateCredentialReply -from koyeb.models.update_domain import UpdateDomain -from koyeb.models.update_domain_reply import UpdateDomainReply -from koyeb.models.update_organization_plan_reply import UpdateOrganizationPlanReply -from koyeb.models.update_organization_plan_request import UpdateOrganizationPlanRequest -from koyeb.models.update_organization_reply import UpdateOrganizationReply -from koyeb.models.update_password_request import UpdatePasswordRequest -from koyeb.models.update_persistent_volume_reply import UpdatePersistentVolumeReply -from koyeb.models.update_persistent_volume_request import UpdatePersistentVolumeRequest -from koyeb.models.update_secret_reply import UpdateSecretReply -from koyeb.models.update_service import UpdateService -from koyeb.models.update_service_reply import UpdateServiceReply -from koyeb.models.update_snapshot_reply import UpdateSnapshotReply -from koyeb.models.update_snapshot_request import UpdateSnapshotRequest -from koyeb.models.update_user_request_user_update_body import ( - UpdateUserRequestUserUpdateBody, -) -from koyeb.models.update_user_settings_reply import UpdateUserSettingsReply -from koyeb.models.update_user_settings_request import UpdateUserSettingsRequest -from koyeb.models.upsert_signup_qualification_reply import ( - UpsertSignupQualificationReply, -) -from koyeb.models.upsert_signup_qualification_request import ( - UpsertSignupQualificationRequest, -) -from koyeb.models.usage import Usage -from koyeb.models.usage_details import UsageDetails -from koyeb.models.user import User -from koyeb.models.user_flags import UserFlags -from koyeb.models.user_reply import UserReply -from koyeb.models.user_role_role import UserRoleRole -from koyeb.models.user_settings import UserSettings -from koyeb.models.verify_docker_image_reply import VerifyDockerImageReply -from koyeb.models.verify_docker_image_reply_err_code import ( - VerifyDockerImageReplyErrCode, -) diff --git a/koyeb/models/app_status.py b/koyeb/models/app_status.py deleted file mode 100644 index d2c01e49..00000000 --- a/koyeb/models/app_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppStatus(str, Enum): - """ - AppStatus - """ - - """ - allowed enum values - """ - STARTING = "STARTING" - HEALTHY = "HEALTHY" - DEGRADED = "DEGRADED" - UNHEALTHY = "UNHEALTHY" - DELETING = "DELETING" - DELETED = "DELETED" - PAUSING = "PAUSING" - PAUSED = "PAUSED" - RESUMING = "RESUMING" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/create_secret.py b/koyeb/models/create_secret.py deleted file mode 100644 index 483f76e7..00000000 --- a/koyeb/models/create_secret.py +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.azure_container_registry_configuration import ( - AzureContainerRegistryConfiguration, -) -from koyeb.models.digital_ocean_registry_configuration import ( - DigitalOceanRegistryConfiguration, -) -from koyeb.models.docker_hub_registry_configuration import ( - DockerHubRegistryConfiguration, -) -from koyeb.models.gcp_container_registry_configuration import ( - GCPContainerRegistryConfiguration, -) -from koyeb.models.git_hub_registry_configuration import GitHubRegistryConfiguration -from koyeb.models.git_lab_registry_configuration import GitLabRegistryConfiguration -from koyeb.models.private_registry_configuration import PrivateRegistryConfiguration -from koyeb.models.secret_type import SecretType -from typing import Optional, Set -from typing_extensions import Self - - -class CreateSecret(BaseModel): - """ - CreateSecret - """ # noqa: E501 - - name: Optional[StrictStr] = None - type: Optional[SecretType] = SecretType.SIMPLE - value: Optional[StrictStr] = None - docker_hub_registry: Optional[DockerHubRegistryConfiguration] = None - private_registry: Optional[PrivateRegistryConfiguration] = None - digital_ocean_registry: Optional[DigitalOceanRegistryConfiguration] = None - github_registry: Optional[GitHubRegistryConfiguration] = None - gitlab_registry: Optional[GitLabRegistryConfiguration] = None - gcp_container_registry: Optional[GCPContainerRegistryConfiguration] = None - azure_container_registry: Optional[AzureContainerRegistryConfiguration] = None - __properties: ClassVar[List[str]] = [ - "name", - "type", - "value", - "docker_hub_registry", - "private_registry", - "digital_ocean_registry", - "github_registry", - "gitlab_registry", - "gcp_container_registry", - "azure_container_registry", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateSecret from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of docker_hub_registry - if self.docker_hub_registry: - _dict["docker_hub_registry"] = self.docker_hub_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of private_registry - if self.private_registry: - _dict["private_registry"] = self.private_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of digital_ocean_registry - if self.digital_ocean_registry: - _dict["digital_ocean_registry"] = self.digital_ocean_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of github_registry - if self.github_registry: - _dict["github_registry"] = self.github_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of gitlab_registry - if self.gitlab_registry: - _dict["gitlab_registry"] = self.gitlab_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of gcp_container_registry - if self.gcp_container_registry: - _dict["gcp_container_registry"] = self.gcp_container_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of azure_container_registry - if self.azure_container_registry: - _dict["azure_container_registry"] = self.azure_container_registry.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateSecret from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else SecretType.SIMPLE - ), - "value": obj.get("value"), - "docker_hub_registry": ( - DockerHubRegistryConfiguration.from_dict(obj["docker_hub_registry"]) - if obj.get("docker_hub_registry") is not None - else None - ), - "private_registry": ( - PrivateRegistryConfiguration.from_dict(obj["private_registry"]) - if obj.get("private_registry") is not None - else None - ), - "digital_ocean_registry": ( - DigitalOceanRegistryConfiguration.from_dict( - obj["digital_ocean_registry"] - ) - if obj.get("digital_ocean_registry") is not None - else None - ), - "github_registry": ( - GitHubRegistryConfiguration.from_dict(obj["github_registry"]) - if obj.get("github_registry") is not None - else None - ), - "gitlab_registry": ( - GitLabRegistryConfiguration.from_dict(obj["gitlab_registry"]) - if obj.get("gitlab_registry") is not None - else None - ), - "gcp_container_registry": ( - GCPContainerRegistryConfiguration.from_dict( - obj["gcp_container_registry"] - ) - if obj.get("gcp_container_registry") is not None - else None - ), - "azure_container_registry": ( - AzureContainerRegistryConfiguration.from_dict( - obj["azure_container_registry"] - ) - if obj.get("azure_container_registry") is not None - else None - ), - } - ) - return _obj diff --git a/koyeb/models/deployment.py b/koyeb/models/deployment.py deleted file mode 100644 index 741f9291..00000000 --- a/koyeb/models/deployment.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_database_info import DeploymentDatabaseInfo -from koyeb.models.deployment_definition import DeploymentDefinition -from koyeb.models.deployment_metadata import DeploymentMetadata -from koyeb.models.deployment_provisioning_info import DeploymentProvisioningInfo -from koyeb.models.deployment_role import DeploymentRole -from koyeb.models.deployment_status import DeploymentStatus -from typing import Optional, Set -from typing_extensions import Self - - -class Deployment(BaseModel): - """ - Deployment - """ # noqa: E501 - - id: Optional[StrictStr] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - allocated_at: Optional[datetime] = None - started_at: Optional[datetime] = None - succeeded_at: Optional[datetime] = None - terminated_at: Optional[datetime] = None - organization_id: Optional[StrictStr] = None - app_id: Optional[StrictStr] = None - service_id: Optional[StrictStr] = None - parent_id: Optional[StrictStr] = None - child_id: Optional[StrictStr] = None - status: Optional[DeploymentStatus] = DeploymentStatus.PENDING - metadata: Optional[DeploymentMetadata] = None - definition: Optional[DeploymentDefinition] = None - messages: Optional[List[StrictStr]] = None - provisioning_info: Optional[DeploymentProvisioningInfo] = None - database_info: Optional[DeploymentDatabaseInfo] = None - skip_build: Optional[StrictBool] = None - role: Optional[DeploymentRole] = DeploymentRole.INVALID - version: Optional[StrictStr] = None - deployment_group: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = [ - "id", - "created_at", - "updated_at", - "allocated_at", - "started_at", - "succeeded_at", - "terminated_at", - "organization_id", - "app_id", - "service_id", - "parent_id", - "child_id", - "status", - "metadata", - "definition", - "messages", - "provisioning_info", - "database_info", - "skip_build", - "role", - "version", - "deployment_group", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Deployment from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict["metadata"] = self.metadata.to_dict() - # override the default output from pydantic by calling `to_dict()` of definition - if self.definition: - _dict["definition"] = self.definition.to_dict() - # override the default output from pydantic by calling `to_dict()` of provisioning_info - if self.provisioning_info: - _dict["provisioning_info"] = self.provisioning_info.to_dict() - # override the default output from pydantic by calling `to_dict()` of database_info - if self.database_info: - _dict["database_info"] = self.database_info.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Deployment from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "allocated_at": obj.get("allocated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "parent_id": obj.get("parent_id"), - "child_id": obj.get("child_id"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else DeploymentStatus.PENDING - ), - "metadata": ( - DeploymentMetadata.from_dict(obj["metadata"]) - if obj.get("metadata") is not None - else None - ), - "definition": ( - DeploymentDefinition.from_dict(obj["definition"]) - if obj.get("definition") is not None - else None - ), - "messages": obj.get("messages"), - "provisioning_info": ( - DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) - if obj.get("provisioning_info") is not None - else None - ), - "database_info": ( - DeploymentDatabaseInfo.from_dict(obj["database_info"]) - if obj.get("database_info") is not None - else None - ), - "skip_build": obj.get("skip_build"), - "role": ( - obj.get("role") - if obj.get("role") is not None - else DeploymentRole.INVALID - ), - "version": obj.get("version"), - "deployment_group": obj.get("deployment_group"), - } - ) - return _obj diff --git a/koyeb/models/deployment_definition.py b/koyeb/models/deployment_definition.py deleted file mode 100644 index 48ccf25f..00000000 --- a/koyeb/models/deployment_definition.py +++ /dev/null @@ -1,302 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.archive_source import ArchiveSource -from koyeb.models.config_file import ConfigFile -from koyeb.models.database_source import DatabaseSource -from koyeb.models.deployment_definition_type import DeploymentDefinitionType -from koyeb.models.deployment_env import DeploymentEnv -from koyeb.models.deployment_health_check import DeploymentHealthCheck -from koyeb.models.deployment_instance_type import DeploymentInstanceType -from koyeb.models.deployment_port import DeploymentPort -from koyeb.models.deployment_proxy_port import DeploymentProxyPort -from koyeb.models.deployment_route import DeploymentRoute -from koyeb.models.deployment_scaling import DeploymentScaling -from koyeb.models.deployment_strategy import DeploymentStrategy -from koyeb.models.deployment_volume import DeploymentVolume -from koyeb.models.docker_source import DockerSource -from koyeb.models.git_source import GitSource -from typing import Optional, Set -from typing_extensions import Self - - -class DeploymentDefinition(BaseModel): - """ - DeploymentDefinition - """ # noqa: E501 - - name: Optional[StrictStr] = None - type: DeploymentDefinitionType - strategy: Optional[DeploymentStrategy] = None - routes: Optional[List[DeploymentRoute]] = None - ports: Optional[List[DeploymentPort]] = None - proxy_ports: Optional[List[DeploymentProxyPort]] = None - env: Optional[List[DeploymentEnv]] = None - regions: List[StrictStr] - scalings: List[DeploymentScaling] - instance_types: List[DeploymentInstanceType] - health_checks: Optional[List[DeploymentHealthCheck]] = None - volumes: Optional[List[DeploymentVolume]] = None - config_files: Optional[List[ConfigFile]] = None - skip_cache: Optional[StrictBool] = None - docker: Optional[DockerSource] = None - git: Optional[GitSource] = None - database: Optional[DatabaseSource] = None - archive: Optional[ArchiveSource] = None - __properties: ClassVar[List[str]] = [ - "name", - "type", - "strategy", - "routes", - "ports", - "proxy_ports", - "env", - "regions", - "scalings", - "instance_types", - "health_checks", - "volumes", - "config_files", - "skip_cache", - "docker", - "git", - "database", - "archive", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeploymentDefinition from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of strategy - if self.strategy: - _dict["strategy"] = self.strategy.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in routes (list) - _items = [] - if self.routes: - for _item_routes in self.routes: - if _item_routes: - _items.append(_item_routes.to_dict()) - _dict["routes"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in ports (list) - _items = [] - if self.ports: - for _item_ports in self.ports: - if _item_ports: - _items.append(_item_ports.to_dict()) - _dict["ports"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in proxy_ports (list) - _items = [] - if self.proxy_ports: - for _item_proxy_ports in self.proxy_ports: - if _item_proxy_ports: - _items.append(_item_proxy_ports.to_dict()) - _dict["proxy_ports"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in env (list) - _items = [] - if self.env: - for _item_env in self.env: - if _item_env: - _items.append(_item_env.to_dict()) - _dict["env"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in scalings (list) - _items = [] - if self.scalings: - for _item_scalings in self.scalings: - if _item_scalings: - _items.append(_item_scalings.to_dict()) - _dict["scalings"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in instance_types (list) - _items = [] - if self.instance_types: - for _item_instance_types in self.instance_types: - if _item_instance_types: - _items.append(_item_instance_types.to_dict()) - _dict["instance_types"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in health_checks (list) - _items = [] - if self.health_checks: - for _item_health_checks in self.health_checks: - if _item_health_checks: - _items.append(_item_health_checks.to_dict()) - _dict["health_checks"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in volumes (list) - _items = [] - if self.volumes: - for _item_volumes in self.volumes: - if _item_volumes: - _items.append(_item_volumes.to_dict()) - _dict["volumes"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in config_files (list) - _items = [] - if self.config_files: - for _item_config_files in self.config_files: - if _item_config_files: - _items.append(_item_config_files.to_dict()) - _dict["config_files"] = _items - # override the default output from pydantic by calling `to_dict()` of docker - if self.docker: - _dict["docker"] = self.docker.to_dict() - # override the default output from pydantic by calling `to_dict()` of git - if self.git: - _dict["git"] = self.git.to_dict() - # override the default output from pydantic by calling `to_dict()` of database - if self.database: - _dict["database"] = self.database.to_dict() - # override the default output from pydantic by calling `to_dict()` of archive - if self.archive: - _dict["archive"] = self.archive.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeploymentDefinition from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else DeploymentDefinitionType.INVALID - ), - "strategy": ( - DeploymentStrategy.from_dict(obj["strategy"]) - if obj.get("strategy") is not None - else None - ), - "routes": ( - [DeploymentRoute.from_dict(_item) for _item in obj["routes"]] - if obj.get("routes") is not None - else None - ), - "ports": ( - [DeploymentPort.from_dict(_item) for _item in obj["ports"]] - if obj.get("ports") is not None - else None - ), - "proxy_ports": ( - [ - DeploymentProxyPort.from_dict(_item) - for _item in obj["proxy_ports"] - ] - if obj.get("proxy_ports") is not None - else None - ), - "env": ( - [DeploymentEnv.from_dict(_item) for _item in obj["env"]] - if obj.get("env") is not None - else None - ), - "regions": obj.get("regions"), - "scalings": ( - [DeploymentScaling.from_dict(_item) for _item in obj["scalings"]] - if obj.get("scalings") is not None - else None - ), - "instance_types": ( - [ - DeploymentInstanceType.from_dict(_item) - for _item in obj["instance_types"] - ] - if obj.get("instance_types") is not None - else None - ), - "health_checks": ( - [ - DeploymentHealthCheck.from_dict(_item) - for _item in obj["health_checks"] - ] - if obj.get("health_checks") is not None - else None - ), - "volumes": ( - [DeploymentVolume.from_dict(_item) for _item in obj["volumes"]] - if obj.get("volumes") is not None - else None - ), - "config_files": ( - [ConfigFile.from_dict(_item) for _item in obj["config_files"]] - if obj.get("config_files") is not None - else None - ), - "skip_cache": obj.get("skip_cache"), - "docker": ( - DockerSource.from_dict(obj["docker"]) - if obj.get("docker") is not None - else None - ), - "git": ( - GitSource.from_dict(obj["git"]) - if obj.get("git") is not None - else None - ), - "database": ( - DatabaseSource.from_dict(obj["database"]) - if obj.get("database") is not None - else None - ), - "archive": ( - ArchiveSource.from_dict(obj["archive"]) - if obj.get("archive") is not None - else None - ), - } - ) - return _obj diff --git a/koyeb/models/deployment_scaling_target.py b/koyeb/models/deployment_scaling_target.py deleted file mode 100644 index dd853b15..00000000 --- a/koyeb/models/deployment_scaling_target.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.deployment_scaling_target_average_cpu import ( - DeploymentScalingTargetAverageCPU, -) -from koyeb.models.deployment_scaling_target_average_mem import ( - DeploymentScalingTargetAverageMem, -) -from koyeb.models.deployment_scaling_target_concurrent_requests import ( - DeploymentScalingTargetConcurrentRequests, -) -from koyeb.models.deployment_scaling_target_requests_per_second import ( - DeploymentScalingTargetRequestsPerSecond, -) -from koyeb.models.deployment_scaling_target_requests_response_time import ( - DeploymentScalingTargetRequestsResponseTime, -) -from koyeb.models.deployment_scaling_target_sleep_idle_delay import ( - DeploymentScalingTargetSleepIdleDelay, -) -from typing import Optional, Set -from typing_extensions import Self - - -class DeploymentScalingTarget(BaseModel): - """ - DeploymentScalingTarget - """ # noqa: E501 - - average_cpu: Optional[DeploymentScalingTargetAverageCPU] = None - average_mem: Optional[DeploymentScalingTargetAverageMem] = None - requests_per_second: Optional[DeploymentScalingTargetRequestsPerSecond] = None - concurrent_requests: Optional[DeploymentScalingTargetConcurrentRequests] = None - requests_response_time: Optional[DeploymentScalingTargetRequestsResponseTime] = None - sleep_idle_delay: Optional[DeploymentScalingTargetSleepIdleDelay] = None - __properties: ClassVar[List[str]] = [ - "average_cpu", - "average_mem", - "requests_per_second", - "concurrent_requests", - "requests_response_time", - "sleep_idle_delay", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeploymentScalingTarget from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of average_cpu - if self.average_cpu: - _dict["average_cpu"] = self.average_cpu.to_dict() - # override the default output from pydantic by calling `to_dict()` of average_mem - if self.average_mem: - _dict["average_mem"] = self.average_mem.to_dict() - # override the default output from pydantic by calling `to_dict()` of requests_per_second - if self.requests_per_second: - _dict["requests_per_second"] = self.requests_per_second.to_dict() - # override the default output from pydantic by calling `to_dict()` of concurrent_requests - if self.concurrent_requests: - _dict["concurrent_requests"] = self.concurrent_requests.to_dict() - # override the default output from pydantic by calling `to_dict()` of requests_response_time - if self.requests_response_time: - _dict["requests_response_time"] = self.requests_response_time.to_dict() - # override the default output from pydantic by calling `to_dict()` of sleep_idle_delay - if self.sleep_idle_delay: - _dict["sleep_idle_delay"] = self.sleep_idle_delay.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeploymentScalingTarget from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "average_cpu": ( - DeploymentScalingTargetAverageCPU.from_dict(obj["average_cpu"]) - if obj.get("average_cpu") is not None - else None - ), - "average_mem": ( - DeploymentScalingTargetAverageMem.from_dict(obj["average_mem"]) - if obj.get("average_mem") is not None - else None - ), - "requests_per_second": ( - DeploymentScalingTargetRequestsPerSecond.from_dict( - obj["requests_per_second"] - ) - if obj.get("requests_per_second") is not None - else None - ), - "concurrent_requests": ( - DeploymentScalingTargetConcurrentRequests.from_dict( - obj["concurrent_requests"] - ) - if obj.get("concurrent_requests") is not None - else None - ), - "requests_response_time": ( - DeploymentScalingTargetRequestsResponseTime.from_dict( - obj["requests_response_time"] - ) - if obj.get("requests_response_time") is not None - else None - ), - "sleep_idle_delay": ( - DeploymentScalingTargetSleepIdleDelay.from_dict( - obj["sleep_idle_delay"] - ) - if obj.get("sleep_idle_delay") is not None - else None - ), - } - ) - return _obj diff --git a/koyeb/models/deployment_status.py b/koyeb/models/deployment_status.py deleted file mode 100644 index 134ea181..00000000 --- a/koyeb/models/deployment_status.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class DeploymentStatus(str, Enum): - """ - DeploymentStatus - """ - - """ - allowed enum values - """ - PENDING = "PENDING" - PROVISIONING = "PROVISIONING" - SCHEDULED = "SCHEDULED" - CANCELING = "CANCELING" - CANCELED = "CANCELED" - ALLOCATING = "ALLOCATING" - STARTING = "STARTING" - HEALTHY = "HEALTHY" - DEGRADED = "DEGRADED" - UNHEALTHY = "UNHEALTHY" - STOPPING = "STOPPING" - STOPPED = "STOPPED" - ERRORING = "ERRORING" - ERROR = "ERROR" - STASHED = "STASHED" - SLEEPING = "SLEEPING" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DeploymentStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/deployment_strategy_type.py b/koyeb/models/deployment_strategy_type.py deleted file mode 100644 index 3d551315..00000000 --- a/koyeb/models/deployment_strategy_type.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class DeploymentStrategyType(str, Enum): - """ - - DEPLOYMENT_STRATEGY_TYPE_INVALID: Invalid / Zero value. - DEPLOYMENT_STRATEGY_TYPE_CANARY: Use canary strategy. - DEPLOYMENT_STRATEGY_TYPE_ROLLING: Use rolling strategy. - DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN: Use blue green strategy. - DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE: Use immediate strategy. - """ - - """ - allowed enum values - """ - DEPLOYMENT_STRATEGY_TYPE_INVALID = "DEPLOYMENT_STRATEGY_TYPE_INVALID" - DEPLOYMENT_STRATEGY_TYPE_CANARY = "DEPLOYMENT_STRATEGY_TYPE_CANARY" - DEPLOYMENT_STRATEGY_TYPE_ROLLING = "DEPLOYMENT_STRATEGY_TYPE_ROLLING" - DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN = "DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN" - DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE = "DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DeploymentStrategyType from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/instance_status.py b/koyeb/models/instance_status.py deleted file mode 100644 index f1eb8fba..00000000 --- a/koyeb/models/instance_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class InstanceStatus(str, Enum): - """ - InstanceStatus - """ - - """ - allowed enum values - """ - ALLOCATING = "ALLOCATING" - STARTING = "STARTING" - HEALTHY = "HEALTHY" - UNHEALTHY = "UNHEALTHY" - STOPPING = "STOPPING" - STOPPED = "STOPPED" - ERROR = "ERROR" - SLEEPING = "SLEEPING" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of InstanceStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/metric_name.py b/koyeb/models/metric_name.py deleted file mode 100644 index 330a64f8..00000000 --- a/koyeb/models/metric_name.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class MetricName(str, Enum): - """ - MetricName - """ - - """ - allowed enum values - """ - UNKNOWN = "UNKNOWN" - CPU_TOTAL_PERCENT = "CPU_TOTAL_PERCENT" - MEM_RSS = "MEM_RSS" - HTTP_THROUGHPUT = "HTTP_THROUGHPUT" - HTTP_RESPONSE_TIME_50_P = "HTTP_RESPONSE_TIME_50P" - HTTP_RESPONSE_TIME_90_P = "HTTP_RESPONSE_TIME_90P" - HTTP_RESPONSE_TIME_99_P = "HTTP_RESPONSE_TIME_99P" - HTTP_RESPONSE_TIME_MAX = "HTTP_RESPONSE_TIME_MAX" - PUBLIC_DATA_TRANSFER_IN = "PUBLIC_DATA_TRANSFER_IN" - PUBLIC_DATA_TRANSFER_OUT = "PUBLIC_DATA_TRANSFER_OUT" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of MetricName from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/organization.py b/koyeb/models/organization.py deleted file mode 100644 index 845fa591..00000000 --- a/koyeb/models/organization.py +++ /dev/null @@ -1,194 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.organization_deactivation_reason import OrganizationDeactivationReason -from koyeb.models.organization_detailed_status import OrganizationDetailedStatus -from koyeb.models.organization_status import OrganizationStatus -from koyeb.models.plan import Plan -from typing import Optional, Set -from typing_extensions import Self - - -class Organization(BaseModel): - """ - Organization - """ # noqa: E501 - - id: Optional[StrictStr] = None - address1: Optional[StrictStr] = None - address2: Optional[StrictStr] = None - city: Optional[StrictStr] = None - postal_code: Optional[StrictStr] = None - state: Optional[StrictStr] = None - country: Optional[StrictStr] = None - company: Optional[StrictBool] = None - vat_number: Optional[StrictStr] = None - billing_name: Optional[StrictStr] = None - billing_email: Optional[StrictStr] = None - name: Optional[StrictStr] = None - plan: Optional[Plan] = Plan.HOBBY - plan_updated_at: Optional[datetime] = None - has_payment_method: Optional[StrictBool] = None - subscription_id: Optional[StrictStr] = None - current_subscription_id: Optional[StrictStr] = None - latest_subscription_id: Optional[StrictStr] = None - signup_qualification: Optional[Dict[str, Any]] = None - status: Optional[OrganizationStatus] = OrganizationStatus.WARNING - status_message: Optional[OrganizationDetailedStatus] = ( - OrganizationDetailedStatus.NEW - ) - deactivation_reason: Optional[OrganizationDeactivationReason] = ( - OrganizationDeactivationReason.INVALID - ) - verified: Optional[StrictBool] = None - qualifies_for_hobby23: Optional[StrictBool] = None - reprocess_after: Optional[datetime] = None - trialing: Optional[StrictBool] = None - trial_starts_at: Optional[datetime] = None - trial_ends_at: Optional[datetime] = None - email_domain_allowlist: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = [ - "id", - "address1", - "address2", - "city", - "postal_code", - "state", - "country", - "company", - "vat_number", - "billing_name", - "billing_email", - "name", - "plan", - "plan_updated_at", - "has_payment_method", - "subscription_id", - "current_subscription_id", - "latest_subscription_id", - "signup_qualification", - "status", - "status_message", - "deactivation_reason", - "verified", - "qualifies_for_hobby23", - "reprocess_after", - "trialing", - "trial_starts_at", - "trial_ends_at", - "email_domain_allowlist", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Organization from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Organization from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "id": obj.get("id"), - "address1": obj.get("address1"), - "address2": obj.get("address2"), - "city": obj.get("city"), - "postal_code": obj.get("postal_code"), - "state": obj.get("state"), - "country": obj.get("country"), - "company": obj.get("company"), - "vat_number": obj.get("vat_number"), - "billing_name": obj.get("billing_name"), - "billing_email": obj.get("billing_email"), - "name": obj.get("name"), - "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY, - "plan_updated_at": obj.get("plan_updated_at"), - "has_payment_method": obj.get("has_payment_method"), - "subscription_id": obj.get("subscription_id"), - "current_subscription_id": obj.get("current_subscription_id"), - "latest_subscription_id": obj.get("latest_subscription_id"), - "signup_qualification": obj.get("signup_qualification"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else OrganizationStatus.WARNING - ), - "status_message": ( - obj.get("status_message") - if obj.get("status_message") is not None - else OrganizationDetailedStatus.NEW - ), - "deactivation_reason": ( - obj.get("deactivation_reason") - if obj.get("deactivation_reason") is not None - else OrganizationDeactivationReason.INVALID - ), - "verified": obj.get("verified"), - "qualifies_for_hobby23": obj.get("qualifies_for_hobby23"), - "reprocess_after": obj.get("reprocess_after"), - "trialing": obj.get("trialing"), - "trial_starts_at": obj.get("trial_starts_at"), - "trial_ends_at": obj.get("trial_ends_at"), - "email_domain_allowlist": obj.get("email_domain_allowlist"), - } - ) - return _obj diff --git a/koyeb/models/organization_deactivation_reason.py b/koyeb/models/organization_deactivation_reason.py deleted file mode 100644 index 52eb10d7..00000000 --- a/koyeb/models/organization_deactivation_reason.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class OrganizationDeactivationReason(str, Enum): - """ - OrganizationDeactivationReason - """ - - """ - allowed enum values - """ - INVALID = "INVALID" - REQUESTED_BY_OWNER = "REQUESTED_BY_OWNER" - SUBSCRIPTION_TERMINATION = "SUBSCRIPTION_TERMINATION" - LOCKED_BY_ADMIN = "LOCKED_BY_ADMIN" - VERIFICATION_FAILED = "VERIFICATION_FAILED" - TRIAL_DID_NOT_CONVERT = "TRIAL_DID_NOT_CONVERT" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of OrganizationDeactivationReason from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/organization_detailed_status.py b/koyeb/models/organization_detailed_status.py deleted file mode 100644 index a791668b..00000000 --- a/koyeb/models/organization_detailed_status.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class OrganizationDetailedStatus(str, Enum): - """ - OrganizationDetailedStatus - """ - - """ - allowed enum values - """ - NEW = "NEW" - EMAIL_NOT_VALIDATED = "EMAIL_NOT_VALIDATED" - BILLING_INFO_MISSING = "BILLING_INFO_MISSING" - LOCKED = "LOCKED" - PAYMENT_FAILURE = "PAYMENT_FAILURE" - VALID = "VALID" - PENDING_VERIFICATION = "PENDING_VERIFICATION" - VERIFICATION_FAILED = "VERIFICATION_FAILED" - REVIEWING_ACCOUNT = "REVIEWING_ACCOUNT" - PLAN_UPGRADE_REQUIRED = "PLAN_UPGRADE_REQUIRED" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of OrganizationDetailedStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/organization_status.py b/koyeb/models/organization_status.py deleted file mode 100644 index 41c13fbf..00000000 --- a/koyeb/models/organization_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class OrganizationStatus(str, Enum): - """ - OrganizationStatus - """ - - """ - allowed enum values - """ - WARNING = "WARNING" - LOCKED = "LOCKED" - ACTIVE = "ACTIVE" - DEACTIVATING = "DEACTIVATING" - DEACTIVATED = "DEACTIVATED" - DELETING = "DELETING" - DELETED = "DELETED" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of OrganizationStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/payment_method_status.py b/koyeb/models/payment_method_status.py deleted file mode 100644 index c5e26480..00000000 --- a/koyeb/models/payment_method_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class PaymentMethodStatus(str, Enum): - """ - PaymentMethodStatus - """ - - """ - allowed enum values - """ - INVALID = "INVALID" - CREATED = "CREATED" - AUTHORIZED = "AUTHORIZED" - DECLINED = "DECLINED" - CANCELED = "CANCELED" - EXPIRED = "EXPIRED" - UNCHECKED = "UNCHECKED" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PaymentMethodStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/persistent_volume_backing_store.py b/koyeb/models/persistent_volume_backing_store.py deleted file mode 100644 index 90329229..00000000 --- a/koyeb/models/persistent_volume_backing_store.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class PersistentVolumeBackingStore(str, Enum): - """ - PersistentVolumeBackingStore - """ - - """ - allowed enum values - """ - PERSISTENT_VOLUME_BACKING_STORE_INVALID = "PERSISTENT_VOLUME_BACKING_STORE_INVALID" - PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK = ( - "PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK" - ) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PersistentVolumeBackingStore from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/persistent_volume_status.py b/koyeb/models/persistent_volume_status.py deleted file mode 100644 index bb64c5bb..00000000 --- a/koyeb/models/persistent_volume_status.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class PersistentVolumeStatus(str, Enum): - """ - PersistentVolumeStatus - """ - - """ - allowed enum values - """ - PERSISTENT_VOLUME_STATUS_INVALID = "PERSISTENT_VOLUME_STATUS_INVALID" - PERSISTENT_VOLUME_STATUS_ATTACHED = "PERSISTENT_VOLUME_STATUS_ATTACHED" - PERSISTENT_VOLUME_STATUS_DETACHED = "PERSISTENT_VOLUME_STATUS_DETACHED" - PERSISTENT_VOLUME_STATUS_DELETING = "PERSISTENT_VOLUME_STATUS_DELETING" - PERSISTENT_VOLUME_STATUS_DELETED = "PERSISTENT_VOLUME_STATUS_DELETED" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PersistentVolumeStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/plan.py b/koyeb/models/plan.py deleted file mode 100644 index 8907ec8e..00000000 --- a/koyeb/models/plan.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class Plan(str, Enum): - """ - Plan - """ - - """ - allowed enum values - """ - HOBBY = "hobby" - STARTER = "starter" - STARTUP = "startup" - BUSINESS = "business" - ENTERPRISE = "enterprise" - INTERNAL = "internal" - HOBBY23 = "hobby23" - NO_PLAN = "no_plan" - PRO = "pro" - SCALE = "scale" - PARTNER_CSP = "partner_csp" - PARTNER_CSP_UNIT = "partner_csp_unit" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Plan from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/regional_deployment_status.py b/koyeb/models/regional_deployment_status.py deleted file mode 100644 index 083e79e2..00000000 --- a/koyeb/models/regional_deployment_status.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class RegionalDeploymentStatus(str, Enum): - """ - RegionalDeploymentStatus - """ - - """ - allowed enum values - """ - PENDING = "PENDING" - PROVISIONING = "PROVISIONING" - SCHEDULED = "SCHEDULED" - CANCELING = "CANCELING" - CANCELED = "CANCELED" - ALLOCATING = "ALLOCATING" - STARTING = "STARTING" - HEALTHY = "HEALTHY" - DEGRADED = "DEGRADED" - UNHEALTHY = "UNHEALTHY" - STOPPING = "STOPPING" - STOPPED = "STOPPED" - ERRORING = "ERRORING" - ERROR = "ERROR" - SLEEPING = "SLEEPING" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RegionalDeploymentStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/secret.py b/koyeb/models/secret.py deleted file mode 100644 index e587bfdf..00000000 --- a/koyeb/models/secret.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from koyeb.models.azure_container_registry_configuration import ( - AzureContainerRegistryConfiguration, -) -from koyeb.models.database_role_password import DatabaseRolePassword -from koyeb.models.digital_ocean_registry_configuration import ( - DigitalOceanRegistryConfiguration, -) -from koyeb.models.docker_hub_registry_configuration import ( - DockerHubRegistryConfiguration, -) -from koyeb.models.gcp_container_registry_configuration import ( - GCPContainerRegistryConfiguration, -) -from koyeb.models.git_hub_registry_configuration import GitHubRegistryConfiguration -from koyeb.models.git_lab_registry_configuration import GitLabRegistryConfiguration -from koyeb.models.private_registry_configuration import PrivateRegistryConfiguration -from koyeb.models.secret_type import SecretType -from typing import Optional, Set -from typing_extensions import Self - - -class Secret(BaseModel): - """ - Secret - """ # noqa: E501 - - id: Optional[StrictStr] = None - name: Optional[StrictStr] = None - organization_id: Optional[StrictStr] = None - type: Optional[SecretType] = SecretType.SIMPLE - updated_at: Optional[datetime] = None - created_at: Optional[datetime] = None - value: Optional[StrictStr] = None - docker_hub_registry: Optional[DockerHubRegistryConfiguration] = None - private_registry: Optional[PrivateRegistryConfiguration] = None - digital_ocean_registry: Optional[DigitalOceanRegistryConfiguration] = None - github_registry: Optional[GitHubRegistryConfiguration] = None - gitlab_registry: Optional[GitLabRegistryConfiguration] = None - gcp_container_registry: Optional[GCPContainerRegistryConfiguration] = None - azure_container_registry: Optional[AzureContainerRegistryConfiguration] = None - database_role_password: Optional[DatabaseRolePassword] = None - __properties: ClassVar[List[str]] = [ - "id", - "name", - "organization_id", - "type", - "updated_at", - "created_at", - "value", - "docker_hub_registry", - "private_registry", - "digital_ocean_registry", - "github_registry", - "gitlab_registry", - "gcp_container_registry", - "azure_container_registry", - "database_role_password", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Secret from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of docker_hub_registry - if self.docker_hub_registry: - _dict["docker_hub_registry"] = self.docker_hub_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of private_registry - if self.private_registry: - _dict["private_registry"] = self.private_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of digital_ocean_registry - if self.digital_ocean_registry: - _dict["digital_ocean_registry"] = self.digital_ocean_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of github_registry - if self.github_registry: - _dict["github_registry"] = self.github_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of gitlab_registry - if self.gitlab_registry: - _dict["gitlab_registry"] = self.gitlab_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of gcp_container_registry - if self.gcp_container_registry: - _dict["gcp_container_registry"] = self.gcp_container_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of azure_container_registry - if self.azure_container_registry: - _dict["azure_container_registry"] = self.azure_container_registry.to_dict() - # override the default output from pydantic by calling `to_dict()` of database_role_password - if self.database_role_password: - _dict["database_role_password"] = self.database_role_password.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Secret from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "organization_id": obj.get("organization_id"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else SecretType.SIMPLE - ), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "value": obj.get("value"), - "docker_hub_registry": ( - DockerHubRegistryConfiguration.from_dict(obj["docker_hub_registry"]) - if obj.get("docker_hub_registry") is not None - else None - ), - "private_registry": ( - PrivateRegistryConfiguration.from_dict(obj["private_registry"]) - if obj.get("private_registry") is not None - else None - ), - "digital_ocean_registry": ( - DigitalOceanRegistryConfiguration.from_dict( - obj["digital_ocean_registry"] - ) - if obj.get("digital_ocean_registry") is not None - else None - ), - "github_registry": ( - GitHubRegistryConfiguration.from_dict(obj["github_registry"]) - if obj.get("github_registry") is not None - else None - ), - "gitlab_registry": ( - GitLabRegistryConfiguration.from_dict(obj["gitlab_registry"]) - if obj.get("gitlab_registry") is not None - else None - ), - "gcp_container_registry": ( - GCPContainerRegistryConfiguration.from_dict( - obj["gcp_container_registry"] - ) - if obj.get("gcp_container_registry") is not None - else None - ), - "azure_container_registry": ( - AzureContainerRegistryConfiguration.from_dict( - obj["azure_container_registry"] - ) - if obj.get("azure_container_registry") is not None - else None - ), - "database_role_password": ( - DatabaseRolePassword.from_dict(obj["database_role_password"]) - if obj.get("database_role_password") is not None - else None - ), - } - ) - return _obj diff --git a/koyeb/models/service_status.py b/koyeb/models/service_status.py deleted file mode 100644 index 13361867..00000000 --- a/koyeb/models/service_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class ServiceStatus(str, Enum): - """ - ServiceStatus - """ - - """ - allowed enum values - """ - STARTING = "STARTING" - HEALTHY = "HEALTHY" - DEGRADED = "DEGRADED" - UNHEALTHY = "UNHEALTHY" - DELETING = "DELETING" - DELETED = "DELETED" - PAUSING = "PAUSING" - PAUSED = "PAUSED" - RESUMING = "RESUMING" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ServiceStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/snapshot_status.py b/koyeb/models/snapshot_status.py deleted file mode 100644 index 276a1703..00000000 --- a/koyeb/models/snapshot_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class SnapshotStatus(str, Enum): - """ - SnapshotStatus - """ - - """ - allowed enum values - """ - SNAPSHOT_STATUS_INVALID = "SNAPSHOT_STATUS_INVALID" - SNAPSHOT_STATUS_CREATING = "SNAPSHOT_STATUS_CREATING" - SNAPSHOT_STATUS_AVAILABLE = "SNAPSHOT_STATUS_AVAILABLE" - SNAPSHOT_STATUS_MIGRATING = "SNAPSHOT_STATUS_MIGRATING" - SNAPSHOT_STATUS_DELETING = "SNAPSHOT_STATUS_DELETING" - SNAPSHOT_STATUS_DELETED = "SNAPSHOT_STATUS_DELETED" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SnapshotStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/snapshot_type.py b/koyeb/models/snapshot_type.py deleted file mode 100644 index ffb02a39..00000000 --- a/koyeb/models/snapshot_type.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class SnapshotType(str, Enum): - """ - SnapshotType - """ - - """ - allowed enum values - """ - SNAPSHOT_TYPE_INVALID = "SNAPSHOT_TYPE_INVALID" - SNAPSHOT_TYPE_LOCAL = "SNAPSHOT_TYPE_LOCAL" - SNAPSHOT_TYPE_REMOTE = "SNAPSHOT_TYPE_REMOTE" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SnapshotType from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/subscription_status.py b/koyeb/models/subscription_status.py deleted file mode 100644 index b1fbb160..00000000 --- a/koyeb/models/subscription_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class SubscriptionStatus(str, Enum): - """ - SubscriptionStatus - """ - - """ - allowed enum values - """ - INVALID = "INVALID" - CREATED = "CREATED" - ACTIVE = "ACTIVE" - WARNING = "WARNING" - URGENT = "URGENT" - CANCELING = "CANCELING" - CANCELED = "CANCELED" - TERMINATING = "TERMINATING" - TERMINATED = "TERMINATED" - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SubscriptionStatus from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/models/user_flags.py b/koyeb/models/user_flags.py deleted file mode 100644 index a2b7a91e..00000000 --- a/koyeb/models/user_flags.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class UserFlags(str, Enum): - """ - UserFlags - """ - - """ - allowed enum values - """ - ADMIN = "ADMIN" - TEST = "TEST" - RESTRICTED = "RESTRICTED" - ACTIVE = "ACTIVE" - BETA = "BETA" - MAX_ORGANIZATIONS_25 = "MAX_ORGANIZATIONS_25" - MAX_ORGANIZATIONS_100 = "MAX_ORGANIZATIONS_100" - MAX_ORGANIZATIONS_1000 = "MAX_ORGANIZATIONS_1000" - MAX_ORGANIZATIONS_10000 = "MAX_ORGANIZATIONS_10000" - MAX_ORGANIZATIONS_100000 = "MAX_ORGANIZATIONS_100000" - MAX_ORGANIZATIONS_1000000 = "MAX_ORGANIZATIONS_1000000" - PARTNER_CSP = "PARTNER_CSP" - IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX = ( - "IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX" - ) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of UserFlags from a JSON string""" - return cls(json.loads(json_str)) diff --git a/koyeb/test/test_action.py b/koyeb/test/test_action.py deleted file mode 100644 index 2c37d122..00000000 --- a/koyeb/test/test_action.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.action import Action - - -class TestAction(unittest.TestCase): - """Action unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAction(self): - """Test Action""" - # inst = Action() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_app_status.py b/koyeb/test/test_app_status.py deleted file mode 100644 index c94a1de6..00000000 --- a/koyeb/test/test_app_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.app_status import AppStatus - - -class TestAppStatus(unittest.TestCase): - """AppStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppStatus(self): - """Test AppStatus""" - # inst = AppStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_availability_level.py b/koyeb/test/test_availability_level.py deleted file mode 100644 index f508e489..00000000 --- a/koyeb/test/test_availability_level.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.availability_level import AvailabilityLevel - - -class TestAvailabilityLevel(unittest.TestCase): - """AvailabilityLevel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAvailabilityLevel(self): - """Test AvailabilityLevel""" - # inst = AvailabilityLevel() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_catalog_instance_usage_api.py b/koyeb/test/test_catalog_instance_usage_api.py deleted file mode 100644 index cbbe5ce7..00000000 --- a/koyeb/test/test_catalog_instance_usage_api.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.api.catalog_instance_usage_api import CatalogInstanceUsageApi - - -class TestCatalogInstanceUsageApi(unittest.TestCase): - """CatalogInstanceUsageApi unit test stubs""" - - def setUp(self) -> None: - self.api = CatalogInstanceUsageApi() - - def tearDown(self) -> None: - pass - - def test_list_usage(self) -> None: - """Test case for list_usage""" - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_credential_type.py b/koyeb/test/test_credential_type.py deleted file mode 100644 index 3d0deda0..00000000 --- a/koyeb/test/test_credential_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.credential_type import CredentialType - - -class TestCredentialType(unittest.TestCase): - """CredentialType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCredentialType(self): - """Test CredentialType""" - # inst = CredentialType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_deployment_definition_type.py b/koyeb/test/test_deployment_definition_type.py deleted file mode 100644 index 867d871f..00000000 --- a/koyeb/test/test_deployment_definition_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.deployment_definition_type import DeploymentDefinitionType - - -class TestDeploymentDefinitionType(unittest.TestCase): - """DeploymentDefinitionType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeploymentDefinitionType(self): - """Test DeploymentDefinitionType""" - # inst = DeploymentDefinitionType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_deployment_role.py b/koyeb/test/test_deployment_role.py deleted file mode 100644 index 4c338eb1..00000000 --- a/koyeb/test/test_deployment_role.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.deployment_role import DeploymentRole - - -class TestDeploymentRole(unittest.TestCase): - """DeploymentRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeploymentRole(self): - """Test DeploymentRole""" - # inst = DeploymentRole() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_deployment_scaling.py b/koyeb/test/test_deployment_scaling.py deleted file mode 100644 index 77c80c56..00000000 --- a/koyeb/test/test_deployment_scaling.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.deployment_scaling import DeploymentScaling - - -class TestDeploymentScaling(unittest.TestCase): - """DeploymentScaling unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeploymentScaling: - """Test DeploymentScaling - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `DeploymentScaling` - """ - model = DeploymentScaling() - if include_optional: - return DeploymentScaling( - scopes = [ - '' - ], - min = 56, - max = 56, - targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( - value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( - value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( - value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( - value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( - value = 56, - quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( - value = 56, - deep_sleep_value = 56, - light_sleep_value = 56, ), ) - ] - ) - else: - return DeploymentScaling( - ) - """ - - def testDeploymentScaling(self): - """Test DeploymentScaling""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_deployment_scaling_target.py b/koyeb/test/test_deployment_scaling_target.py deleted file mode 100644 index 40cd825a..00000000 --- a/koyeb/test/test_deployment_scaling_target.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.deployment_scaling_target import DeploymentScalingTarget - - -class TestDeploymentScalingTarget(unittest.TestCase): - """DeploymentScalingTarget unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeploymentScalingTarget: - """Test DeploymentScalingTarget - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `DeploymentScalingTarget` - """ - model = DeploymentScalingTarget() - if include_optional: - return DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( - value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( - value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( - value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( - value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( - value = 56, - quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( - value = 56, - deep_sleep_value = 56, - light_sleep_value = 56, ) - ) - else: - return DeploymentScalingTarget( - ) - """ - - def testDeploymentScalingTarget(self): - """Test DeploymentScalingTarget""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_deployment_status.py b/koyeb/test/test_deployment_status.py deleted file mode 100644 index 0efcc565..00000000 --- a/koyeb/test/test_deployment_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.deployment_status import DeploymentStatus - - -class TestDeploymentStatus(unittest.TestCase): - """DeploymentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeploymentStatus(self): - """Test DeploymentStatus""" - # inst = DeploymentStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_deployment_strategy_type.py b/koyeb/test/test_deployment_strategy_type.py deleted file mode 100644 index 86ea9707..00000000 --- a/koyeb/test/test_deployment_strategy_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.deployment_strategy_type import DeploymentStrategyType - - -class TestDeploymentStrategyType(unittest.TestCase): - """DeploymentStrategyType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeploymentStrategyType(self): - """Test DeploymentStrategyType""" - # inst = DeploymentStrategyType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_domain_status.py b/koyeb/test/test_domain_status.py deleted file mode 100644 index fb71e15c..00000000 --- a/koyeb/test/test_domain_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.domain_status import DomainStatus - - -class TestDomainStatus(unittest.TestCase): - """DomainStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDomainStatus(self): - """Test DomainStatus""" - # inst = DomainStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_domain_type.py b/koyeb/test/test_domain_type.py deleted file mode 100644 index 7bb25d66..00000000 --- a/koyeb/test/test_domain_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.domain_type import DomainType - - -class TestDomainType(unittest.TestCase): - """DomainType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDomainType(self): - """Test DomainType""" - # inst = DomainType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_exec_command_request_id_type.py b/koyeb/test/test_exec_command_request_id_type.py deleted file mode 100644 index f62fe3d2..00000000 --- a/koyeb/test/test_exec_command_request_id_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.exec_command_request_id_type import ExecCommandRequestIdType - - -class TestExecCommandRequestIdType(unittest.TestCase): - """ExecCommandRequestIdType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExecCommandRequestIdType(self): - """Test ExecCommandRequestIdType""" - # inst = ExecCommandRequestIdType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_google_protobuf_null_value.py b/koyeb/test/test_google_protobuf_null_value.py deleted file mode 100644 index da2dda9d..00000000 --- a/koyeb/test/test_google_protobuf_null_value.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.google_protobuf_null_value import GoogleProtobufNullValue - - -class TestGoogleProtobufNullValue(unittest.TestCase): - """GoogleProtobufNullValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGoogleProtobufNullValue(self): - """Test GoogleProtobufNullValue""" - # inst = GoogleProtobufNullValue() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_instance_status.py b/koyeb/test/test_instance_status.py deleted file mode 100644 index d45449a0..00000000 --- a/koyeb/test/test_instance_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.instance_status import InstanceStatus - - -class TestInstanceStatus(unittest.TestCase): - """InstanceStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstanceStatus(self): - """Test InstanceStatus""" - # inst = InstanceStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_invite_api.py b/koyeb/test/test_invite_api.py deleted file mode 100644 index a88ac9c0..00000000 --- a/koyeb/test/test_invite_api.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.api.invite_api import InviteApi - - -class TestInviteApi(unittest.TestCase): - """InviteApi unit test stubs""" - - def setUp(self) -> None: - self.api = InviteApi() - - def tearDown(self) -> None: - pass - - def test_create_invite(self) -> None: - """Test case for create_invite""" - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_kgitproxy_indexing_status.py b/koyeb/test/test_kgitproxy_indexing_status.py deleted file mode 100644 index 3aa872d0..00000000 --- a/koyeb/test/test_kgitproxy_indexing_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.kgitproxy_indexing_status import KgitproxyIndexingStatus - - -class TestKgitproxyIndexingStatus(unittest.TestCase): - """KgitproxyIndexingStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testKgitproxyIndexingStatus(self): - """Test KgitproxyIndexingStatus""" - # inst = KgitproxyIndexingStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_kgitproxy_repository_provider.py b/koyeb/test/test_kgitproxy_repository_provider.py deleted file mode 100644 index 0f1e8458..00000000 --- a/koyeb/test/test_kgitproxy_repository_provider.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider - - -class TestKgitproxyRepositoryProvider(unittest.TestCase): - """KgitproxyRepositoryProvider unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testKgitproxyRepositoryProvider(self): - """Test KgitproxyRepositoryProvider""" - # inst = KgitproxyRepositoryProvider() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_login_method_reply_method.py b/koyeb/test/test_login_method_reply_method.py deleted file mode 100644 index 656db0a6..00000000 --- a/koyeb/test/test_login_method_reply_method.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.login_method_reply_method import LoginMethodReplyMethod - - -class TestLoginMethodReplyMethod(unittest.TestCase): - """LoginMethodReplyMethod unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLoginMethodReplyMethod(self): - """Test LoginMethodReplyMethod""" - # inst = LoginMethodReplyMethod() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_metric_name.py b/koyeb/test/test_metric_name.py deleted file mode 100644 index 241204f5..00000000 --- a/koyeb/test/test_metric_name.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.metric_name import MetricName - - -class TestMetricName(unittest.TestCase): - """MetricName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMetricName(self): - """Test MetricName""" - # inst = MetricName() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_next_invoice_reply_discount_type.py b/koyeb/test/test_next_invoice_reply_discount_type.py deleted file mode 100644 index 2246c245..00000000 --- a/koyeb/test/test_next_invoice_reply_discount_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType - - -class TestNextInvoiceReplyDiscountType(unittest.TestCase): - """NextInvoiceReplyDiscountType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNextInvoiceReplyDiscountType(self): - """Test NextInvoiceReplyDiscountType""" - # inst = NextInvoiceReplyDiscountType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_organization_detailed_status.py b/koyeb/test/test_organization_detailed_status.py deleted file mode 100644 index 3300690d..00000000 --- a/koyeb/test/test_organization_detailed_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.organization_detailed_status import OrganizationDetailedStatus - - -class TestOrganizationDetailedStatus(unittest.TestCase): - """OrganizationDetailedStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationDetailedStatus(self): - """Test OrganizationDetailedStatus""" - # inst = OrganizationDetailedStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_organization_invitation_status.py b/koyeb/test/test_organization_invitation_status.py deleted file mode 100644 index d5ae3537..00000000 --- a/koyeb/test/test_organization_invitation_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.organization_invitation_status import OrganizationInvitationStatus - - -class TestOrganizationInvitationStatus(unittest.TestCase): - """OrganizationInvitationStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationInvitationStatus(self): - """Test OrganizationInvitationStatus""" - # inst = OrganizationInvitationStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_organization_member_status.py b/koyeb/test/test_organization_member_status.py deleted file mode 100644 index 55537184..00000000 --- a/koyeb/test/test_organization_member_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.organization_member_status import OrganizationMemberStatus - - -class TestOrganizationMemberStatus(unittest.TestCase): - """OrganizationMemberStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationMemberStatus(self): - """Test OrganizationMemberStatus""" - # inst = OrganizationMemberStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_organization_quotas_api.py b/koyeb/test/test_organization_quotas_api.py deleted file mode 100644 index d3b3e59f..00000000 --- a/koyeb/test/test_organization_quotas_api.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.api.organization_quotas_api import OrganizationQuotasApi - - -class TestOrganizationQuotasApi(unittest.TestCase): - """OrganizationQuotasApi unit test stubs""" - - def setUp(self) -> None: - self.api = OrganizationQuotasApi() - - def tearDown(self) -> None: - pass - - def test_get_quotas(self) -> None: - """Test case for get_quotas""" - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_organization_status.py b/koyeb/test/test_organization_status.py deleted file mode 100644 index 6f034042..00000000 --- a/koyeb/test/test_organization_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.organization_status import OrganizationStatus - - -class TestOrganizationStatus(unittest.TestCase): - """OrganizationStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationStatus(self): - """Test OrganizationStatus""" - # inst = OrganizationStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_payment_method_status.py b/koyeb/test/test_payment_method_status.py deleted file mode 100644 index 65f95ed3..00000000 --- a/koyeb/test/test_payment_method_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.payment_method_status import PaymentMethodStatus - - -class TestPaymentMethodStatus(unittest.TestCase): - """PaymentMethodStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentMethodStatus(self): - """Test PaymentMethodStatus""" - # inst = PaymentMethodStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_persistent_volume_backing_store.py b/koyeb/test/test_persistent_volume_backing_store.py deleted file mode 100644 index 6eb633e7..00000000 --- a/koyeb/test/test_persistent_volume_backing_store.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.persistent_volume_backing_store import PersistentVolumeBackingStore - - -class TestPersistentVolumeBackingStore(unittest.TestCase): - """PersistentVolumeBackingStore unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPersistentVolumeBackingStore(self): - """Test PersistentVolumeBackingStore""" - # inst = PersistentVolumeBackingStore() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_persistent_volume_status.py b/koyeb/test/test_persistent_volume_status.py deleted file mode 100644 index 78ee6d68..00000000 --- a/koyeb/test/test_persistent_volume_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.persistent_volume_status import PersistentVolumeStatus - - -class TestPersistentVolumeStatus(unittest.TestCase): - """PersistentVolumeStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPersistentVolumeStatus(self): - """Test PersistentVolumeStatus""" - # inst = PersistentVolumeStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_plan.py b/koyeb/test/test_plan.py deleted file mode 100644 index 0cce475b..00000000 --- a/koyeb/test/test_plan.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.plan import Plan - - -class TestPlan(unittest.TestCase): - """Plan unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPlan(self): - """Test Plan""" - # inst = Plan() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_proxy_port_protocol.py b/koyeb/test/test_proxy_port_protocol.py deleted file mode 100644 index 3090230d..00000000 --- a/koyeb/test/test_proxy_port_protocol.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.proxy_port_protocol import ProxyPortProtocol - - -class TestProxyPortProtocol(unittest.TestCase): - """ProxyPortProtocol unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProxyPortProtocol(self): - """Test ProxyPortProtocol""" - # inst = ProxyPortProtocol() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_regional_deployment_role.py b/koyeb/test/test_regional_deployment_role.py deleted file mode 100644 index eb66fe95..00000000 --- a/koyeb/test/test_regional_deployment_role.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.regional_deployment_role import RegionalDeploymentRole - - -class TestRegionalDeploymentRole(unittest.TestCase): - """RegionalDeploymentRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRegionalDeploymentRole(self): - """Test RegionalDeploymentRole""" - # inst = RegionalDeploymentRole() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_regional_deployment_status.py b/koyeb/test/test_regional_deployment_status.py deleted file mode 100644 index b88198a0..00000000 --- a/koyeb/test/test_regional_deployment_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.regional_deployment_status import RegionalDeploymentStatus - - -class TestRegionalDeploymentStatus(unittest.TestCase): - """RegionalDeploymentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRegionalDeploymentStatus(self): - """Test RegionalDeploymentStatus""" - # inst = RegionalDeploymentStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_scaling.py b/koyeb/test/test_scaling.py deleted file mode 100644 index 24b9cba5..00000000 --- a/koyeb/test/test_scaling.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.scaling import Scaling - - -class TestScaling(unittest.TestCase): - """Scaling unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Scaling: - """Test Scaling - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `Scaling` - """ - model = Scaling() - if include_optional: - return Scaling( - min = 56, - max = 56, - targets = [ - koyeb.models.deployment_scaling_target.DeploymentScalingTarget( - average_cpu = koyeb.models.deployment_scaling_target_average_cpu.DeploymentScalingTargetAverageCPU( - value = 56, ), - average_mem = koyeb.models.deployment_scaling_target_average_mem.DeploymentScalingTargetAverageMem( - value = 56, ), - requests_per_second = koyeb.models.deployment_scaling_target_requests_per_second.DeploymentScalingTargetRequestsPerSecond( - value = 56, ), - concurrent_requests = koyeb.models.deployment_scaling_target_concurrent_requests.DeploymentScalingTargetConcurrentRequests( - value = 56, ), - requests_response_time = koyeb.models.deployment_scaling_target_requests_response_time.DeploymentScalingTargetRequestsResponseTime( - value = 56, - quantile = 56, ), - sleep_idle_delay = koyeb.models.deployment_scaling_target_sleep_idle_delay.DeploymentScalingTargetSleepIdleDelay( - value = 56, - deep_sleep_value = 56, - light_sleep_value = 56, ), ) - ] - ) - else: - return Scaling( - ) - """ - - def testScaling(self): - """Test Scaling""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_secret_type.py b/koyeb/test/test_secret_type.py deleted file mode 100644 index cb160562..00000000 --- a/koyeb/test/test_secret_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.secret_type import SecretType - - -class TestSecretType(unittest.TestCase): - """SecretType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSecretType(self): - """Test SecretType""" - # inst = SecretType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_service_status.py b/koyeb/test/test_service_status.py deleted file mode 100644 index ee1189ab..00000000 --- a/koyeb/test/test_service_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.service_status import ServiceStatus - - -class TestServiceStatus(unittest.TestCase): - """ServiceStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testServiceStatus(self): - """Test ServiceStatus""" - # inst = ServiceStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_service_type.py b/koyeb/test/test_service_type.py deleted file mode 100644 index e0cbce7c..00000000 --- a/koyeb/test/test_service_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.service_type import ServiceType - - -class TestServiceType(unittest.TestCase): - """ServiceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testServiceType(self): - """Test ServiceType""" - # inst = ServiceType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_snapshot_status.py b/koyeb/test/test_snapshot_status.py deleted file mode 100644 index 5e2c39a4..00000000 --- a/koyeb/test/test_snapshot_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.snapshot_status import SnapshotStatus - - -class TestSnapshotStatus(unittest.TestCase): - """SnapshotStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSnapshotStatus(self): - """Test SnapshotStatus""" - # inst = SnapshotStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_snapshot_type.py b/koyeb/test/test_snapshot_type.py deleted file mode 100644 index b3c60c48..00000000 --- a/koyeb/test/test_snapshot_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.snapshot_type import SnapshotType - - -class TestSnapshotType(unittest.TestCase): - """SnapshotType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSnapshotType(self): - """Test SnapshotType""" - # inst = SnapshotType() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_sso_api.py b/koyeb/test/test_sso_api.py deleted file mode 100644 index d44d7dfd..00000000 --- a/koyeb/test/test_sso_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.api.sso_api import SsoApi - - -class TestSsoApi(unittest.TestCase): - """SsoApi unit test stubs""" - - def setUp(self) -> None: - self.api = SsoApi() - - def tearDown(self) -> None: - pass - - def test_canny_auth(self) -> None: - """Test case for canny_auth""" - pass - - def test_discourse_auth(self) -> None: - """Test case for discourse_auth""" - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_subscription_status.py b/koyeb/test/test_subscription_status.py deleted file mode 100644 index ced801d6..00000000 --- a/koyeb/test/test_subscription_status.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.subscription_status import SubscriptionStatus - - -class TestSubscriptionStatus(unittest.TestCase): - """SubscriptionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSubscriptionStatus(self): - """Test SubscriptionStatus""" - # inst = SubscriptionStatus() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_user_flags.py b/koyeb/test/test_user_flags.py deleted file mode 100644 index d3f6369c..00000000 --- a/koyeb/test/test_user_flags.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.user_flags import UserFlags - - -class TestUserFlags(unittest.TestCase): - """UserFlags unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserFlags(self): - """Test UserFlags""" - # inst = UserFlags() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_user_role_role.py b/koyeb/test/test_user_role_role.py deleted file mode 100644 index 85ece012..00000000 --- a/koyeb/test/test_user_role_role.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.user_role_role import UserRoleRole - - -class TestUserRoleRole(unittest.TestCase): - """UserRoleRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserRoleRole(self): - """Test UserRoleRole""" - # inst = UserRoleRole() - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_users_api.py b/koyeb/test/test_users_api.py deleted file mode 100644 index 0c3de280..00000000 --- a/koyeb/test/test_users_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.api.users_api import UsersApi - - -class TestUsersApi(unittest.TestCase): - """UsersApi unit test stubs""" - - def setUp(self) -> None: - self.api = UsersApi() - - def tearDown(self) -> None: - pass - - def test_delete_user(self) -> None: - """Test case for delete_user - - Delete user - """ - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/koyeb/test/test_verify_docker_image_reply_err_code.py b/koyeb/test/test_verify_docker_image_reply_err_code.py deleted file mode 100644 index 899ad238..00000000 --- a/koyeb/test/test_verify_docker_image_reply_err_code.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -The version of the OpenAPI document: 1.0.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from koyeb.models.verify_docker_image_reply_err_code import ( - VerifyDockerImageReplyErrCode, -) - - -class TestVerifyDockerImageReplyErrCode(unittest.TestCase): - """VerifyDockerImageReplyErrCode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVerifyDockerImageReplyErrCode(self): - """Test VerifyDockerImageReplyErrCode""" - # inst = VerifyDockerImageReplyErrCode() - - -if __name__ == "__main__": - unittest.main() From d5c50400a5a284308d9c8126a384be00042a8b4e Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 16:28:41 +0100 Subject: [PATCH 7/9] Update pyproject and add basic readme --- README.md | 642 +------------------------------------------------ pyproject.toml | 16 +- uv.lock | 224 +++++++++++++++++ 3 files changed, 234 insertions(+), 648 deletions(-) create mode 100644 uv.lock diff --git a/README.md b/README.md index d17bdfa8..e3175f97 100644 --- a/README.md +++ b/README.md @@ -1,641 +1,7 @@ -# koyeb -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - - -This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Generator version: 7.14.0 -- Build package: org.openapitools.codegen.languages.PythonClientCodegen - -## Requirements. - -Python 3.9+ - -## Installation & Usage -### pip install - -If the python package is hosted on a repository, you can install directly using: - -```sh -pip install git+https://github.com/koyeb/koyeb-api-client-python.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/koyeb/koyeb-api-client-python.git`) - -Then import the package: -```python -import koyeb -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import koyeb -``` - -### Tests - -Execute `pytest` to run the tests. - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python - -import koyeb -from koyeb.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://app.koyeb.com -# See configuration.py for a list of all supported configuration parameters. -configuration = koyeb.Configuration( - host = "https://app.koyeb.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: Bearer -configuration.api_key['Bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Bearer'] = 'Bearer' - - -# Enter a context with an instance of the API client -with koyeb.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = koyeb.AppsApi(api_client) - app = koyeb.CreateApp() # CreateApp | - - try: - # Create App - api_response = api_instance.create_app(app) - print("The response of AppsApi->create_app:\n") - pprint(api_response) - except ApiException as e: - print("Exception when calling AppsApi->create_app: %s\n" % e) - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://app.koyeb.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AppsApi* | [**create_app**](docs/AppsApi.md#create_app) | **POST** /v1/apps | Create App -*AppsApi* | [**delete_app**](docs/AppsApi.md#delete_app) | **DELETE** /v1/apps/{id} | Delete App -*AppsApi* | [**get_app**](docs/AppsApi.md#get_app) | **GET** /v1/apps/{id} | Get App -*AppsApi* | [**list_app_events**](docs/AppsApi.md#list_app_events) | **GET** /v1/app_events | List App events -*AppsApi* | [**list_apps**](docs/AppsApi.md#list_apps) | **GET** /v1/apps | List App -*AppsApi* | [**pause_app**](docs/AppsApi.md#pause_app) | **POST** /v1/apps/{id}/pause | Pause App -*AppsApi* | [**resume_app**](docs/AppsApi.md#resume_app) | **POST** /v1/apps/{id}/resume | Resume App -*AppsApi* | [**update_app**](docs/AppsApi.md#update_app) | **PUT** /v1/apps/{id} | Update App -*AppsApi* | [**update_app2**](docs/AppsApi.md#update_app2) | **PATCH** /v1/apps/{id} | Update App -*ArchivesApi* | [**create_archive**](docs/ArchivesApi.md#create_archive) | **POST** /v1/archives | Create Archive -*CatalogDatacentersApi* | [**list_datacenters**](docs/CatalogDatacentersApi.md#list_datacenters) | **GET** /v1/catalog/datacenters | List datacenters -*CatalogInstanceUsageApi* | [**list_usage**](docs/CatalogInstanceUsageApi.md#list_usage) | **GET** /v1/catalog/usage | -*CatalogInstancesApi* | [**get_catalog_instance**](docs/CatalogInstancesApi.md#get_catalog_instance) | **GET** /v1/catalog/instances/{id} | Get Instance -*CatalogInstancesApi* | [**list_catalog_instances**](docs/CatalogInstancesApi.md#list_catalog_instances) | **GET** /v1/catalog/instances | List Instances -*CatalogRegionsApi* | [**get_region**](docs/CatalogRegionsApi.md#get_region) | **GET** /v1/catalog/regions/{id} | Get Region -*CatalogRegionsApi* | [**list_regions**](docs/CatalogRegionsApi.md#list_regions) | **GET** /v1/catalog/regions | List Region -*ComposeApi* | [**compose**](docs/ComposeApi.md#compose) | **POST** /v1/compose | Create resources from compose. -*CouponsApi* | [**redeem_coupon**](docs/CouponsApi.md#redeem_coupon) | **POST** /v1/coupons | Redeem Coupon -*CredentialsApi* | [**create_credential**](docs/CredentialsApi.md#create_credential) | **POST** /v1/credentials | Create credential -*CredentialsApi* | [**delete_credential**](docs/CredentialsApi.md#delete_credential) | **DELETE** /v1/credentials/{id} | Delete credential -*CredentialsApi* | [**get_credential**](docs/CredentialsApi.md#get_credential) | **GET** /v1/credentials/{id} | Get credential -*CredentialsApi* | [**list_credentials**](docs/CredentialsApi.md#list_credentials) | **GET** /v1/credentials | List credentials -*CredentialsApi* | [**update_credential**](docs/CredentialsApi.md#update_credential) | **PUT** /v1/credentials/{id} | Update credential -*CredentialsApi* | [**update_credential2**](docs/CredentialsApi.md#update_credential2) | **PATCH** /v1/credentials/{id} | Update credential -*DeploymentsApi* | [**cancel_deployment**](docs/DeploymentsApi.md#cancel_deployment) | **POST** /v1/deployments/{id}/cancel | Cancel Deployment -*DeploymentsApi* | [**get_deployment**](docs/DeploymentsApi.md#get_deployment) | **GET** /v1/deployments/{id} | Get Deployment -*DeploymentsApi* | [**get_deployment_scaling**](docs/DeploymentsApi.md#get_deployment_scaling) | **GET** /v1/deployment/{id}/scaling | Get Deployment Scaling -*DeploymentsApi* | [**list_deployment_events**](docs/DeploymentsApi.md#list_deployment_events) | **GET** /v1/deployment_events | List Deployment events -*DeploymentsApi* | [**list_deployments**](docs/DeploymentsApi.md#list_deployments) | **GET** /v1/deployments | List Deployments -*DockerHelperApi* | [**verify_docker_image**](docs/DockerHelperApi.md#verify_docker_image) | **GET** /v1/docker-helper/verify | Verify Docker Image -*DomainsApi* | [**create_domain**](docs/DomainsApi.md#create_domain) | **POST** /v1/domains | Create Domain -*DomainsApi* | [**delete_domain**](docs/DomainsApi.md#delete_domain) | **DELETE** /v1/domains/{id} | Delete Domain -*DomainsApi* | [**get_domain**](docs/DomainsApi.md#get_domain) | **GET** /v1/domains/{id} | Get Domain -*DomainsApi* | [**list_domains**](docs/DomainsApi.md#list_domains) | **GET** /v1/domains | List Domains -*DomainsApi* | [**refresh_domain_status**](docs/DomainsApi.md#refresh_domain_status) | **POST** /v1/domains/{id}/refresh | Refresh Domain Status -*DomainsApi* | [**update_domain**](docs/DomainsApi.md#update_domain) | **PATCH** /v1/domains/{id} | Update Domain -*InstancesApi* | [**exec_command**](docs/InstancesApi.md#exec_command) | **GET** /v1/streams/instances/exec | Exec Command -*InstancesApi* | [**get_instance**](docs/InstancesApi.md#get_instance) | **GET** /v1/instances/{id} | Get Instance -*InstancesApi* | [**list_instance_events**](docs/InstancesApi.md#list_instance_events) | **GET** /v1/instance_events | List Instance events -*InstancesApi* | [**list_instances**](docs/InstancesApi.md#list_instances) | **GET** /v1/instances | List Instances -*IntercomApi* | [**get_intercom_profile**](docs/IntercomApi.md#get_intercom_profile) | **GET** /v1/intercom/profile | Get intercom profile -*LogsApi* | [**query_logs**](docs/LogsApi.md#query_logs) | **GET** /v1/streams/logs/query | Query logs -*LogsApi* | [**tail_logs**](docs/LogsApi.md#tail_logs) | **GET** /v1/streams/logs/tail | Tails logs -*MetricsApi* | [**get_metrics**](docs/MetricsApi.md#get_metrics) | **GET** /v1/streams/metrics | Get Metrics -*OrganizationConfirmationsApi* | [**confirm_organization_action**](docs/OrganizationConfirmationsApi.md#confirm_organization_action) | **POST** /v1/organization_confirmations/{id} | Confirm organization action -*OrganizationInvitationsApi* | [**create_organization_invitation**](docs/OrganizationInvitationsApi.md#create_organization_invitation) | **POST** /v1/organization_invitations | Create Organization Invitation -*OrganizationInvitationsApi* | [**delete_organization_invitation**](docs/OrganizationInvitationsApi.md#delete_organization_invitation) | **DELETE** /v1/organization_invitations/{id} | Delete Organization Invitation -*OrganizationInvitationsApi* | [**get_organization_invitation**](docs/OrganizationInvitationsApi.md#get_organization_invitation) | **GET** /v1/organization_invitations/{id} | Get Organization Invitation -*OrganizationInvitationsApi* | [**list_organization_invitations**](docs/OrganizationInvitationsApi.md#list_organization_invitations) | **GET** /v1/organization_invitations | List Organization Invitations -*OrganizationInvitationsApi* | [**resend_organization_invitation**](docs/OrganizationInvitationsApi.md#resend_organization_invitation) | **POST** /v1/organization_invitations/{id}/resend | Resend Organization Invitation -*OrganizationMembersApi* | [**list_organization_members**](docs/OrganizationMembersApi.md#list_organization_members) | **GET** /v1/organization_members | List organization members -*OrganizationMembersApi* | [**remove_organization_member**](docs/OrganizationMembersApi.md#remove_organization_member) | **DELETE** /v1/organization_members/{id} | Remove an organization member -*OrganizationQuotasApi* | [**get_quotas**](docs/OrganizationQuotasApi.md#get_quotas) | **GET** /v1/organizations/{organization_id}/quotas | -*PaymentMethodsApi* | [**confirm_payment_authorization**](docs/PaymentMethodsApi.md#confirm_payment_authorization) | **POST** /v1/payment_methods/{id}/confirm | Confirm payment authorization -*PaymentMethodsApi* | [**create_payment_authorization**](docs/PaymentMethodsApi.md#create_payment_authorization) | **POST** /v1/payment_methods | Create payment authorization -*PaymentMethodsApi* | [**delete_payment_method**](docs/PaymentMethodsApi.md#delete_payment_method) | **DELETE** /v1/payment_methods/{id} | Delete payment method -*PaymentMethodsApi* | [**get_payment_method**](docs/PaymentMethodsApi.md#get_payment_method) | **GET** /v1/payment_methods/{id} | Get payment method -*PaymentMethodsApi* | [**list_payment_methods**](docs/PaymentMethodsApi.md#list_payment_methods) | **GET** /v1/payment_methods | List payment methods -*PersistentVolumesApi* | [**create_persistent_volume**](docs/PersistentVolumesApi.md#create_persistent_volume) | **POST** /v1/volumes | Create a PersistentVolume -*PersistentVolumesApi* | [**delete_persistent_volume**](docs/PersistentVolumesApi.md#delete_persistent_volume) | **DELETE** /v1/volumes/{id} | Delete a PersistentVolume -*PersistentVolumesApi* | [**get_persistent_volume**](docs/PersistentVolumesApi.md#get_persistent_volume) | **GET** /v1/volumes/{id} | Get a PersistentVolume -*PersistentVolumesApi* | [**list_persistent_volume_events**](docs/PersistentVolumesApi.md#list_persistent_volume_events) | **GET** /v1/volume_events | List Persistent Volume events -*PersistentVolumesApi* | [**list_persistent_volumes**](docs/PersistentVolumesApi.md#list_persistent_volumes) | **GET** /v1/volumes | List all PersistentVolumes -*PersistentVolumesApi* | [**update_persistent_volume**](docs/PersistentVolumesApi.md#update_persistent_volume) | **POST** /v1/volumes/{id} | Update a PersistentVolume -*ProfileApi* | [**accept_organization_invitation**](docs/ProfileApi.md#accept_organization_invitation) | **POST** /v1/account/organization_invitations/{id}/accept | Accept Organization Invitation -*ProfileApi* | [**clear_idenfy_verification_result**](docs/ProfileApi.md#clear_idenfy_verification_result) | **POST** /v1/account/idenfy | ClearIdenfyVerificationResult marks the current result for idenfy as superseded -*ProfileApi* | [**decline_organization_invitation**](docs/ProfileApi.md#decline_organization_invitation) | **POST** /v1/account/organization_invitations/{id}/decline | Decline Organization Invitation -*ProfileApi* | [**get_current_organization**](docs/ProfileApi.md#get_current_organization) | **GET** /v1/account/organization | Get Current Organization -*ProfileApi* | [**get_current_user**](docs/ProfileApi.md#get_current_user) | **GET** /v1/account/profile | Get Current User -*ProfileApi* | [**get_idenfy_token**](docs/ProfileApi.md#get_idenfy_token) | **GET** /v1/account/idenfy | Begin a session with iDenfy, emit an authToken -*ProfileApi* | [**get_o_auth_options**](docs/ProfileApi.md#get_o_auth_options) | **GET** /v1/account/oauth | Get OAuth Providers -*ProfileApi* | [**get_user_organization_invitation**](docs/ProfileApi.md#get_user_organization_invitation) | **GET** /v1/account/organization_invitations/{id} | Get User Organization Invitation -*ProfileApi* | [**get_user_settings**](docs/ProfileApi.md#get_user_settings) | **GET** /v1/account/settings | -*ProfileApi* | [**list_user_organization_invitations**](docs/ProfileApi.md#list_user_organization_invitations) | **GET** /v1/account/organization_invitations | List User Organization Invitations -*ProfileApi* | [**list_user_organizations**](docs/ProfileApi.md#list_user_organizations) | **GET** /v1/account/organizations | List User Organizations -*ProfileApi* | [**login_method**](docs/ProfileApi.md#login_method) | **GET** /v1/account/login_method | Get the login method for an email address -*ProfileApi* | [**o_auth_callback**](docs/ProfileApi.md#o_auth_callback) | **POST** /v1/account/oauth | Authenticate using OAuth -*ProfileApi* | [**resend_email_validation**](docs/ProfileApi.md#resend_email_validation) | **POST** /v1/account/resend_validation | Resend Email Verification -*ProfileApi* | [**reset_password**](docs/ProfileApi.md#reset_password) | **POST** /v1/account/reset_password | Reset Password -*ProfileApi* | [**signup**](docs/ProfileApi.md#signup) | **POST** /v1/account/signup | Signup -*ProfileApi* | [**update_password**](docs/ProfileApi.md#update_password) | **POST** /v1/account/update_password | Update Password -*ProfileApi* | [**update_user**](docs/ProfileApi.md#update_user) | **PUT** /v1/account/profile | Update User -*ProfileApi* | [**update_user2**](docs/ProfileApi.md#update_user2) | **PATCH** /v1/account/profile | Update User -*ProfileApi* | [**update_user_settings**](docs/ProfileApi.md#update_user_settings) | **PATCH** /v1/account/settings | -*ProfileApi* | [**update_user_v2**](docs/ProfileApi.md#update_user_v2) | **PUT** /v2/account/profile | Update User V2 -*ProfileApi* | [**update_user_v22**](docs/ProfileApi.md#update_user_v22) | **PATCH** /v2/account/profile | Update User V2 -*ProfileApi* | [**validate**](docs/ProfileApi.md#validate) | **POST** /v1/account/validate/{id} | Validate -*ProvisioningApi* | [**create_stage_attempt**](docs/ProvisioningApi.md#create_stage_attempt) | **POST** /v1/provisioning/{deployment_id}/status/{stage}/{attempt} | Create an attempt for a stage -*ProvisioningApi* | [**declare_stage_progress**](docs/ProvisioningApi.md#declare_stage_progress) | **PATCH** /v1/provisioning/{deployment_id}/status/{stage}/{attempt} | Declare stage progress -*ProvisioningApi* | [**declare_step_progress**](docs/ProvisioningApi.md#declare_step_progress) | **PATCH** /v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step} | Declare step progress -*QuotasApi* | [**review_organization_capacity**](docs/QuotasApi.md#review_organization_capacity) | **POST** /v1/quotas/capacity | DEPRECATED: Review Organization Capacity -*RegionalDeploymentsApi* | [**get_regional_deployment**](docs/RegionalDeploymentsApi.md#get_regional_deployment) | **GET** /v1/regional_deployments/{id} | Get Regional Deployment -*RegionalDeploymentsApi* | [**list_regional_deployment_events**](docs/RegionalDeploymentsApi.md#list_regional_deployment_events) | **GET** /v1/regional_deployment_events | List Regional Deployment events -*RegionalDeploymentsApi* | [**list_regional_deployments**](docs/RegionalDeploymentsApi.md#list_regional_deployments) | **GET** /v1/regional_deployments | List Regional Deployments -*RepositoriesApi* | [**list_branches**](docs/RepositoriesApi.md#list_branches) | **GET** /v1/git/branches | List Branches -*RepositoriesApi* | [**list_repositories**](docs/RepositoriesApi.md#list_repositories) | **GET** /v1/git/repositories | List Repositories -*RepositoriesApi* | [**resync_organization**](docs/RepositoriesApi.md#resync_organization) | **POST** /v1/git/sync/organization/{organization_id} | Resync Organization -*SearchApi* | [**search**](docs/SearchApi.md#search) | **GET** /v1/search | Search -*SecretsApi* | [**create_secret**](docs/SecretsApi.md#create_secret) | **POST** /v1/secrets | Create Secret -*SecretsApi* | [**delete_secret**](docs/SecretsApi.md#delete_secret) | **DELETE** /v1/secrets/{id} | Delete Secret -*SecretsApi* | [**get_secret**](docs/SecretsApi.md#get_secret) | **GET** /v1/secrets/{id} | Get Secret -*SecretsApi* | [**list_secrets**](docs/SecretsApi.md#list_secrets) | **GET** /v1/secrets | List Secrets -*SecretsApi* | [**reveal_secret**](docs/SecretsApi.md#reveal_secret) | **POST** /v1/secrets/{id}/reveal | Reveal Secret -*SecretsApi* | [**update_secret**](docs/SecretsApi.md#update_secret) | **PUT** /v1/secrets/{id} | Update Secret -*SecretsApi* | [**update_secret2**](docs/SecretsApi.md#update_secret2) | **PATCH** /v1/secrets/{id} | Update Secret -*ServicesApi* | [**autocomplete**](docs/ServicesApi.md#autocomplete) | **POST** /v1/services-autocomplete | Autocomplete definition -*ServicesApi* | [**create_service**](docs/ServicesApi.md#create_service) | **POST** /v1/services | Create Service -*ServicesApi* | [**delete_service**](docs/ServicesApi.md#delete_service) | **DELETE** /v1/services/{id} | Delete Service -*ServicesApi* | [**get_service**](docs/ServicesApi.md#get_service) | **GET** /v1/services/{id} | Get Service -*ServicesApi* | [**list_service_events**](docs/ServicesApi.md#list_service_events) | **GET** /v1/service_events | List Service events -*ServicesApi* | [**list_services**](docs/ServicesApi.md#list_services) | **GET** /v1/services | List Services -*ServicesApi* | [**pause_service**](docs/ServicesApi.md#pause_service) | **POST** /v1/services/{id}/pause | Pause Service -*ServicesApi* | [**re_deploy**](docs/ServicesApi.md#re_deploy) | **POST** /v1/services/{id}/redeploy | ReDeploy Service -*ServicesApi* | [**resume_service**](docs/ServicesApi.md#resume_service) | **POST** /v1/services/{id}/resume | Resume Service -*ServicesApi* | [**update_service**](docs/ServicesApi.md#update_service) | **PUT** /v1/services/{id} | Update Service -*ServicesApi* | [**update_service2**](docs/ServicesApi.md#update_service2) | **PATCH** /v1/services/{id} | Update Service -*SessionsApi* | [**login**](docs/SessionsApi.md#login) | **POST** /v1/account/login | Login user -*SessionsApi* | [**logout**](docs/SessionsApi.md#logout) | **DELETE** /v1/account/logout | Logout user -*SessionsApi* | [**new_session**](docs/SessionsApi.md#new_session) | **POST** /v1/account/session | New session -*SessionsApi* | [**refresh_token**](docs/SessionsApi.md#refresh_token) | **PUT** /v1/account/refresh | Refresh token -*SnapshotsApi* | [**create_snapshot**](docs/SnapshotsApi.md#create_snapshot) | **POST** /v1/snapshots | Create a Snapshot -*SnapshotsApi* | [**delete_snapshot**](docs/SnapshotsApi.md#delete_snapshot) | **DELETE** /v1/snapshots/{id} | Delete a Snapshot -*SnapshotsApi* | [**get_snapshot**](docs/SnapshotsApi.md#get_snapshot) | **GET** /v1/snapshots/{id} | Get a Snapshot -*SnapshotsApi* | [**list_snapshots**](docs/SnapshotsApi.md#list_snapshots) | **GET** /v1/snapshots | List all Snapshots -*SnapshotsApi* | [**update_snapshot**](docs/SnapshotsApi.md#update_snapshot) | **POST** /v1/snapshots/{id} | Update a Snapshot -*SubscriptionsApi* | [**get_subscription**](docs/SubscriptionsApi.md#get_subscription) | **GET** /v1/subscriptions/{id} | Get Subscription -*SummaryApi* | [**get_organization_summary**](docs/SummaryApi.md#get_organization_summary) | **GET** /v1/organizations/{organization_id}/summary | Get organization usage summary -*UsagesApi* | [**get_organization_usage**](docs/UsagesApi.md#get_organization_usage) | **GET** /v1/usages | Get organization usage -*UsagesApi* | [**get_organization_usage_details**](docs/UsagesApi.md#get_organization_usage_details) | **GET** /v1/usages/details | Get organization usage details -*UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /v1/users/{id} | Delete user -*UsersApi* | [**delete_user_v2**](docs/UsersApi.md#delete_user_v2) | **DELETE** /v2/users/{id} | V2 Delete user -*ActivityApi* | [**get_account_activities**](docs/ActivityApi.md#get_account_activities) | **GET** /v1/account/activities | -*ActivityApi* | [**list_activities**](docs/ActivityApi.md#list_activities) | **GET** /v1/activities | List Activities -*ActivityApi* | [**list_notifications**](docs/ActivityApi.md#list_notifications) | **GET** /v1/notifications | List Notifications -*BillingApi* | [**has_unpaid_invoices**](docs/BillingApi.md#has_unpaid_invoices) | **GET** /v1/billing/has_unpaid_invoices | Experimental: Has unpaid invoices -*BillingApi* | [**manage**](docs/BillingApi.md#manage) | **GET** /v1/billing/manage | -*BillingApi* | [**next_invoice**](docs/BillingApi.md#next_invoice) | **GET** /v1/billing/next_invoice | Experimental: Fetch next invoice -*InviteApi* | [**create_invite**](docs/InviteApi.md#create_invite) | **POST** /v1/account/invite | -*OrganizationApi* | [**create_access_token**](docs/OrganizationApi.md#create_access_token) | **POST** /v1/organizations/{id}/access_token | CreateAccessToken -*OrganizationApi* | [**create_budget**](docs/OrganizationApi.md#create_budget) | **POST** /v1/organizations/{organization_id}/budget | Create Budget -*OrganizationApi* | [**create_organization**](docs/OrganizationApi.md#create_organization) | **POST** /v1/organizations | Create Organization -*OrganizationApi* | [**deactivate_organization**](docs/OrganizationApi.md#deactivate_organization) | **POST** /v1/organizations/{id}/deactivate | Deactivate an Organization -*OrganizationApi* | [**delete_budget**](docs/OrganizationApi.md#delete_budget) | **DELETE** /v1/organizations/{organization_id}/budget | Delete Budget -*OrganizationApi* | [**delete_organization**](docs/OrganizationApi.md#delete_organization) | **DELETE** /v1/organizations/{id} | Delete an Organization -*OrganizationApi* | [**get_budget**](docs/OrganizationApi.md#get_budget) | **GET** /v1/organizations/{organization_id}/budget | Get Budget -*OrganizationApi* | [**get_github_installation**](docs/OrganizationApi.md#get_github_installation) | **GET** /v1/github/installation | Fetch Github Installation configuration -*OrganizationApi* | [**get_organization**](docs/OrganizationApi.md#get_organization) | **GET** /v1/organizations/{id} | Get Organization -*OrganizationApi* | [**github_installation**](docs/OrganizationApi.md#github_installation) | **POST** /v1/github/installation | Start Github Installation -*OrganizationApi* | [**reactivate_organization**](docs/OrganizationApi.md#reactivate_organization) | **POST** /v1/organizations/{id}/reactivate | Reactivate an Organization -*OrganizationApi* | [**switch_organization**](docs/OrganizationApi.md#switch_organization) | **POST** /v1/organizations/{id}/switch | Switch Organization context -*OrganizationApi* | [**unscope_organization_token**](docs/OrganizationApi.md#unscope_organization_token) | **POST** /v1/unscope_organization_token | Unscope Organization Token -*OrganizationApi* | [**update_budget**](docs/OrganizationApi.md#update_budget) | **PUT** /v1/organizations/{organization_id}/budget | Update Budget -*OrganizationApi* | [**update_organization**](docs/OrganizationApi.md#update_organization) | **PUT** /v1/organizations/{id} | Update Organization -*OrganizationApi* | [**update_organization2**](docs/OrganizationApi.md#update_organization2) | **PATCH** /v1/organizations/{id} | Update Organization -*OrganizationApi* | [**update_organization_plan**](docs/OrganizationApi.md#update_organization_plan) | **POST** /v1/organizations/{id}/plan | Update Organization plan -*OrganizationApi* | [**upsert_signup_qualification**](docs/OrganizationApi.md#upsert_signup_qualification) | **POST** /v1/organizations/{id}/signup_qualification | Upsert Organization's signup qualification -*SsoApi* | [**canny_auth**](docs/SsoApi.md#canny_auth) | **POST** /v1/sso/canny | -*SsoApi* | [**discourse_auth**](docs/SsoApi.md#discourse_auth) | **POST** /v1/sso/discourse | - - -## Documentation For Models - - - [AcceptOrganizationInvitationReply](docs/AcceptOrganizationInvitationReply.md) - - [Action](docs/Action.md) - - [Activity](docs/Activity.md) - - [ActivityList](docs/ActivityList.md) - - [App](docs/App.md) - - [AppEvent](docs/AppEvent.md) - - [AppListItem](docs/AppListItem.md) - - [AppStatus](docs/AppStatus.md) - - [AppUsage](docs/AppUsage.md) - - [AppsSummary](docs/AppsSummary.md) - - [Archive](docs/Archive.md) - - [ArchiveDeploymentMetadata](docs/ArchiveDeploymentMetadata.md) - - [ArchiveSource](docs/ArchiveSource.md) - - [AutoRelease](docs/AutoRelease.md) - - [AutoReleaseGroup](docs/AutoReleaseGroup.md) - - [AutocompleteReply](docs/AutocompleteReply.md) - - [AutocompleteRequest](docs/AutocompleteRequest.md) - - [AvailabilityLevel](docs/AvailabilityLevel.md) - - [AzureContainerRegistryConfiguration](docs/AzureContainerRegistryConfiguration.md) - - [Budget](docs/Budget.md) - - [BuildpackBuilder](docs/BuildpackBuilder.md) - - [CannyAuthReply](docs/CannyAuthReply.md) - - [CatalogGPUDetails](docs/CatalogGPUDetails.md) - - [CatalogInstance](docs/CatalogInstance.md) - - [CatalogInstanceListItem](docs/CatalogInstanceListItem.md) - - [CatalogUsage](docs/CatalogUsage.md) - - [ClearIdenfyVerificationResultRequest](docs/ClearIdenfyVerificationResultRequest.md) - - [ComposeReply](docs/ComposeReply.md) - - [ConfigFile](docs/ConfigFile.md) - - [ConfirmPaymentAuthorizationReply](docs/ConfirmPaymentAuthorizationReply.md) - - [CreateAccessTokenReply](docs/CreateAccessTokenReply.md) - - [CreateAccessTokenRequest](docs/CreateAccessTokenRequest.md) - - [CreateAccountRequest](docs/CreateAccountRequest.md) - - [CreateApp](docs/CreateApp.md) - - [CreateAppReply](docs/CreateAppReply.md) - - [CreateArchive](docs/CreateArchive.md) - - [CreateArchiveReply](docs/CreateArchiveReply.md) - - [CreateBudgetReply](docs/CreateBudgetReply.md) - - [CreateCompose](docs/CreateCompose.md) - - [CreateCredential](docs/CreateCredential.md) - - [CreateCredentialReply](docs/CreateCredentialReply.md) - - [CreateDomain](docs/CreateDomain.md) - - [CreateDomainReply](docs/CreateDomainReply.md) - - [CreateOrganizationInvitationReply](docs/CreateOrganizationInvitationReply.md) - - [CreateOrganizationInvitationRequest](docs/CreateOrganizationInvitationRequest.md) - - [CreateOrganizationReply](docs/CreateOrganizationReply.md) - - [CreateOrganizationRequest](docs/CreateOrganizationRequest.md) - - [CreatePaymentAuthorizationReply](docs/CreatePaymentAuthorizationReply.md) - - [CreatePersistentVolumeReply](docs/CreatePersistentVolumeReply.md) - - [CreatePersistentVolumeRequest](docs/CreatePersistentVolumeRequest.md) - - [CreateSecret](docs/CreateSecret.md) - - [CreateSecretReply](docs/CreateSecretReply.md) - - [CreateService](docs/CreateService.md) - - [CreateServiceReply](docs/CreateServiceReply.md) - - [CreateSnapshotReply](docs/CreateSnapshotReply.md) - - [CreateSnapshotRequest](docs/CreateSnapshotRequest.md) - - [CreateStageAttemptRequest](docs/CreateStageAttemptRequest.md) - - [Credential](docs/Credential.md) - - [CredentialType](docs/CredentialType.md) - - [DatabaseDeploymentMetadata](docs/DatabaseDeploymentMetadata.md) - - [DatabaseRolePassword](docs/DatabaseRolePassword.md) - - [DatabaseSource](docs/DatabaseSource.md) - - [DatabaseUsage](docs/DatabaseUsage.md) - - [DatabaseUsageDetails](docs/DatabaseUsageDetails.md) - - [DatacenterListItem](docs/DatacenterListItem.md) - - [DeactivateOrganizationReply](docs/DeactivateOrganizationReply.md) - - [DeactivateOrganizationRequest](docs/DeactivateOrganizationRequest.md) - - [DeclareStageProgressRequest](docs/DeclareStageProgressRequest.md) - - [DeclareStepProgressRequest](docs/DeclareStepProgressRequest.md) - - [DeclineOrganizationInvitationReply](docs/DeclineOrganizationInvitationReply.md) - - [DeleteOrganizationReply](docs/DeleteOrganizationReply.md) - - [DeletePersistentVolumeReply](docs/DeletePersistentVolumeReply.md) - - [DeleteSnapshotReply](docs/DeleteSnapshotReply.md) - - [DeleteUserReply](docs/DeleteUserReply.md) - - [Deployment](docs/Deployment.md) - - [DeploymentDatabaseInfo](docs/DeploymentDatabaseInfo.md) - - [DeploymentDefinition](docs/DeploymentDefinition.md) - - [DeploymentDefinitionType](docs/DeploymentDefinitionType.md) - - [DeploymentEnv](docs/DeploymentEnv.md) - - [DeploymentEvent](docs/DeploymentEvent.md) - - [DeploymentHealthCheck](docs/DeploymentHealthCheck.md) - - [DeploymentInstanceType](docs/DeploymentInstanceType.md) - - [DeploymentListItem](docs/DeploymentListItem.md) - - [DeploymentMetadata](docs/DeploymentMetadata.md) - - [DeploymentNeonPostgresDatabaseInfo](docs/DeploymentNeonPostgresDatabaseInfo.md) - - [DeploymentNeonPostgresDatabaseInfoRole](docs/DeploymentNeonPostgresDatabaseInfoRole.md) - - [DeploymentPort](docs/DeploymentPort.md) - - [DeploymentProvisioningInfo](docs/DeploymentProvisioningInfo.md) - - [DeploymentProvisioningInfoStage](docs/DeploymentProvisioningInfoStage.md) - - [DeploymentProvisioningInfoStageBuildAttempt](docs/DeploymentProvisioningInfoStageBuildAttempt.md) - - [DeploymentProvisioningInfoStageBuildAttemptBuildStep](docs/DeploymentProvisioningInfoStageBuildAttemptBuildStep.md) - - [DeploymentProvisioningInfoStageStatus](docs/DeploymentProvisioningInfoStageStatus.md) - - [DeploymentProxyPort](docs/DeploymentProxyPort.md) - - [DeploymentProxyPortMetadata](docs/DeploymentProxyPortMetadata.md) - - [DeploymentRole](docs/DeploymentRole.md) - - [DeploymentRoute](docs/DeploymentRoute.md) - - [DeploymentScaling](docs/DeploymentScaling.md) - - [DeploymentScalingTarget](docs/DeploymentScalingTarget.md) - - [DeploymentScalingTargetAverageCPU](docs/DeploymentScalingTargetAverageCPU.md) - - [DeploymentScalingTargetAverageMem](docs/DeploymentScalingTargetAverageMem.md) - - [DeploymentScalingTargetConcurrentRequests](docs/DeploymentScalingTargetConcurrentRequests.md) - - [DeploymentScalingTargetRequestsPerSecond](docs/DeploymentScalingTargetRequestsPerSecond.md) - - [DeploymentScalingTargetRequestsResponseTime](docs/DeploymentScalingTargetRequestsResponseTime.md) - - [DeploymentScalingTargetSleepIdleDelay](docs/DeploymentScalingTargetSleepIdleDelay.md) - - [DeploymentStatus](docs/DeploymentStatus.md) - - [DeploymentStrategy](docs/DeploymentStrategy.md) - - [DeploymentStrategyType](docs/DeploymentStrategyType.md) - - [DeploymentVolume](docs/DeploymentVolume.md) - - [DesiredDeployment](docs/DesiredDeployment.md) - - [DesiredDeploymentGroup](docs/DesiredDeploymentGroup.md) - - [DigitalOceanRegistryConfiguration](docs/DigitalOceanRegistryConfiguration.md) - - [DiscourseAuthReply](docs/DiscourseAuthReply.md) - - [DiscourseAuthRequest](docs/DiscourseAuthRequest.md) - - [DockerBuilder](docs/DockerBuilder.md) - - [DockerHubRegistryConfiguration](docs/DockerHubRegistryConfiguration.md) - - [DockerSource](docs/DockerSource.md) - - [Domain](docs/Domain.md) - - [DomainLoadBalancerKoyeb](docs/DomainLoadBalancerKoyeb.md) - - [DomainLoadBalancerQuotas](docs/DomainLoadBalancerQuotas.md) - - [DomainStatus](docs/DomainStatus.md) - - [DomainType](docs/DomainType.md) - - [DomainsSummary](docs/DomainsSummary.md) - - [Env](docs/Env.md) - - [Error](docs/Error.md) - - [ErrorField](docs/ErrorField.md) - - [ErrorWithFields](docs/ErrorWithFields.md) - - [ExecCommandIO](docs/ExecCommandIO.md) - - [ExecCommandReply](docs/ExecCommandReply.md) - - [ExecCommandRequestBody](docs/ExecCommandRequestBody.md) - - [ExecCommandRequestIdType](docs/ExecCommandRequestIdType.md) - - [ExecCommandRequestTerminalSize](docs/ExecCommandRequestTerminalSize.md) - - [GCPContainerRegistryConfiguration](docs/GCPContainerRegistryConfiguration.md) - - [GetAppReply](docs/GetAppReply.md) - - [GetBudgetReply](docs/GetBudgetReply.md) - - [GetCatalogInstanceReply](docs/GetCatalogInstanceReply.md) - - [GetCredentialReply](docs/GetCredentialReply.md) - - [GetDeploymentReply](docs/GetDeploymentReply.md) - - [GetDeploymentScalingReply](docs/GetDeploymentScalingReply.md) - - [GetDeploymentScalingReplyItem](docs/GetDeploymentScalingReplyItem.md) - - [GetDomainReply](docs/GetDomainReply.md) - - [GetGithubInstallationReply](docs/GetGithubInstallationReply.md) - - [GetIdenfyTokenReply](docs/GetIdenfyTokenReply.md) - - [GetInstanceReply](docs/GetInstanceReply.md) - - [GetIntercomProfileReply](docs/GetIntercomProfileReply.md) - - [GetMetricsReply](docs/GetMetricsReply.md) - - [GetMetricsReplyMetric](docs/GetMetricsReplyMetric.md) - - [GetOAuthOptionsReply](docs/GetOAuthOptionsReply.md) - - [GetOrganizationInvitationReply](docs/GetOrganizationInvitationReply.md) - - [GetOrganizationReply](docs/GetOrganizationReply.md) - - [GetOrganizationSummaryReply](docs/GetOrganizationSummaryReply.md) - - [GetOrganizationUsageDetailsReply](docs/GetOrganizationUsageDetailsReply.md) - - [GetOrganizationUsageReply](docs/GetOrganizationUsageReply.md) - - [GetPaymentMethodReply](docs/GetPaymentMethodReply.md) - - [GetPersistentVolumeReply](docs/GetPersistentVolumeReply.md) - - [GetQuotasReply](docs/GetQuotasReply.md) - - [GetRegionReply](docs/GetRegionReply.md) - - [GetRegionalDeploymentReply](docs/GetRegionalDeploymentReply.md) - - [GetSecretReply](docs/GetSecretReply.md) - - [GetServiceReply](docs/GetServiceReply.md) - - [GetSnapshotReply](docs/GetSnapshotReply.md) - - [GetSubscriptionReply](docs/GetSubscriptionReply.md) - - [GetUserOrganizationInvitationReply](docs/GetUserOrganizationInvitationReply.md) - - [GetUserSettingsReply](docs/GetUserSettingsReply.md) - - [GitDeploymentMetadata](docs/GitDeploymentMetadata.md) - - [GitEnvDeploymentMetadata](docs/GitEnvDeploymentMetadata.md) - - [GitHubRegistryConfiguration](docs/GitHubRegistryConfiguration.md) - - [GitLabRegistryConfiguration](docs/GitLabRegistryConfiguration.md) - - [GitSource](docs/GitSource.md) - - [GithubInstallationReply](docs/GithubInstallationReply.md) - - [GithubInstallationRequest](docs/GithubInstallationRequest.md) - - [GoogleProtobufAny](docs/GoogleProtobufAny.md) - - [GoogleProtobufNullValue](docs/GoogleProtobufNullValue.md) - - [GoogleRpcStatus](docs/GoogleRpcStatus.md) - - [HTTPHeader](docs/HTTPHeader.md) - - [HTTPHealthCheck](docs/HTTPHealthCheck.md) - - [HasUnpaidInvoicesReply](docs/HasUnpaidInvoicesReply.md) - - [Instance](docs/Instance.md) - - [InstanceAvailability](docs/InstanceAvailability.md) - - [InstanceEvent](docs/InstanceEvent.md) - - [InstanceListItem](docs/InstanceListItem.md) - - [InstanceStatus](docs/InstanceStatus.md) - - [InstanceUsage](docs/InstanceUsage.md) - - [InstancesSummary](docs/InstancesSummary.md) - - [InviteUserRequest](docs/InviteUserRequest.md) - - [KgitproxyBranch](docs/KgitproxyBranch.md) - - [KgitproxyGitHubRepository](docs/KgitproxyGitHubRepository.md) - - [KgitproxyGithubInstallationStatus](docs/KgitproxyGithubInstallationStatus.md) - - [KgitproxyIndexingStatus](docs/KgitproxyIndexingStatus.md) - - [KgitproxyListBranchesReply](docs/KgitproxyListBranchesReply.md) - - [KgitproxyListRepositoriesReply](docs/KgitproxyListRepositoriesReply.md) - - [KgitproxyRepository](docs/KgitproxyRepository.md) - - [KgitproxyRepositoryProvider](docs/KgitproxyRepositoryProvider.md) - - [KsearchApp](docs/KsearchApp.md) - - [KsearchGlobalDeployment](docs/KsearchGlobalDeployment.md) - - [KsearchInstance](docs/KsearchInstance.md) - - [KsearchOrganization](docs/KsearchOrganization.md) - - [KsearchRegionalDeployment](docs/KsearchRegionalDeployment.md) - - [KsearchSearchReply](docs/KsearchSearchReply.md) - - [KsearchService](docs/KsearchService.md) - - [KsearchUser](docs/KsearchUser.md) - - [ListAppEventsReply](docs/ListAppEventsReply.md) - - [ListAppsReply](docs/ListAppsReply.md) - - [ListCatalogInstancesReply](docs/ListCatalogInstancesReply.md) - - [ListCredentialsReply](docs/ListCredentialsReply.md) - - [ListDatacentersReply](docs/ListDatacentersReply.md) - - [ListDeploymentEventsReply](docs/ListDeploymentEventsReply.md) - - [ListDeploymentsReply](docs/ListDeploymentsReply.md) - - [ListDomainsReply](docs/ListDomainsReply.md) - - [ListInstanceEventsReply](docs/ListInstanceEventsReply.md) - - [ListInstancesReply](docs/ListInstancesReply.md) - - [ListOrganizationInvitationsReply](docs/ListOrganizationInvitationsReply.md) - - [ListOrganizationMembersReply](docs/ListOrganizationMembersReply.md) - - [ListPaymentMethodsReply](docs/ListPaymentMethodsReply.md) - - [ListPersistentVolumeEventsReply](docs/ListPersistentVolumeEventsReply.md) - - [ListPersistentVolumesReply](docs/ListPersistentVolumesReply.md) - - [ListRegionalDeploymentEventsReply](docs/ListRegionalDeploymentEventsReply.md) - - [ListRegionalDeploymentsReply](docs/ListRegionalDeploymentsReply.md) - - [ListRegionsReply](docs/ListRegionsReply.md) - - [ListSecretsReply](docs/ListSecretsReply.md) - - [ListServiceEventsReply](docs/ListServiceEventsReply.md) - - [ListServicesReply](docs/ListServicesReply.md) - - [ListSnapshotsReply](docs/ListSnapshotsReply.md) - - [ListUsageReply](docs/ListUsageReply.md) - - [ListUserOrganizationInvitationsReply](docs/ListUserOrganizationInvitationsReply.md) - - [ListUserOrganizationsReply](docs/ListUserOrganizationsReply.md) - - [LogEntry](docs/LogEntry.md) - - [LoginMethodReply](docs/LoginMethodReply.md) - - [LoginMethodReplyMethod](docs/LoginMethodReplyMethod.md) - - [LoginReply](docs/LoginReply.md) - - [LoginRequest](docs/LoginRequest.md) - - [ManageReply](docs/ManageReply.md) - - [MembersSummary](docs/MembersSummary.md) - - [MetricName](docs/MetricName.md) - - [NeonPostgresDatabase](docs/NeonPostgresDatabase.md) - - [NeonPostgresDatabaseDeploymentMetadata](docs/NeonPostgresDatabaseDeploymentMetadata.md) - - [NeonPostgresDatabaseNeonDatabase](docs/NeonPostgresDatabaseNeonDatabase.md) - - [NeonPostgresDatabaseNeonRole](docs/NeonPostgresDatabaseNeonRole.md) - - [NeonPostgresSummary](docs/NeonPostgresSummary.md) - - [NextInvoiceReply](docs/NextInvoiceReply.md) - - [NextInvoiceReplyDiscount](docs/NextInvoiceReplyDiscount.md) - - [NextInvoiceReplyDiscountType](docs/NextInvoiceReplyDiscountType.md) - - [NextInvoiceReplyLine](docs/NextInvoiceReplyLine.md) - - [NextInvoiceReplyLinePeriod](docs/NextInvoiceReplyLinePeriod.md) - - [NextInvoiceReplyLinePrice](docs/NextInvoiceReplyLinePrice.md) - - [Notification](docs/Notification.md) - - [NotificationList](docs/NotificationList.md) - - [OAuthCallbackReply](docs/OAuthCallbackReply.md) - - [OAuthCallbackRequest](docs/OAuthCallbackRequest.md) - - [OAuthProvider](docs/OAuthProvider.md) - - [Object](docs/Object.md) - - [Organization](docs/Organization.md) - - [OrganizationDeactivationReason](docs/OrganizationDeactivationReason.md) - - [OrganizationDetailedStatus](docs/OrganizationDetailedStatus.md) - - [OrganizationInvitation](docs/OrganizationInvitation.md) - - [OrganizationInvitationStatus](docs/OrganizationInvitationStatus.md) - - [OrganizationMember](docs/OrganizationMember.md) - - [OrganizationMemberStatus](docs/OrganizationMemberStatus.md) - - [OrganizationStatus](docs/OrganizationStatus.md) - - [OrganizationSummary](docs/OrganizationSummary.md) - - [PaymentMethod](docs/PaymentMethod.md) - - [PaymentMethodStatus](docs/PaymentMethodStatus.md) - - [PeriodUsage](docs/PeriodUsage.md) - - [PersistentVolume](docs/PersistentVolume.md) - - [PersistentVolumeBackingStore](docs/PersistentVolumeBackingStore.md) - - [PersistentVolumeEvent](docs/PersistentVolumeEvent.md) - - [PersistentVolumeQuotas](docs/PersistentVolumeQuotas.md) - - [PersistentVolumeStatus](docs/PersistentVolumeStatus.md) - - [Plan](docs/Plan.md) - - [Port](docs/Port.md) - - [PrivateRegistryConfiguration](docs/PrivateRegistryConfiguration.md) - - [ProxyPortProtocol](docs/ProxyPortProtocol.md) - - [PublicOrganization](docs/PublicOrganization.md) - - [PublicUser](docs/PublicUser.md) - - [QueryLogsReply](docs/QueryLogsReply.md) - - [QueryLogsReplyPagination](docs/QueryLogsReplyPagination.md) - - [Quotas](docs/Quotas.md) - - [ReactivateOrganizationReply](docs/ReactivateOrganizationReply.md) - - [RedeemCouponRequest](docs/RedeemCouponRequest.md) - - [RedeployReply](docs/RedeployReply.md) - - [RedeployRequestInfo](docs/RedeployRequestInfo.md) - - [Region](docs/Region.md) - - [RegionAvailability](docs/RegionAvailability.md) - - [RegionListItem](docs/RegionListItem.md) - - [RegionUsage](docs/RegionUsage.md) - - [RegionalDeployment](docs/RegionalDeployment.md) - - [RegionalDeploymentDefinition](docs/RegionalDeploymentDefinition.md) - - [RegionalDeploymentDefinitionType](docs/RegionalDeploymentDefinitionType.md) - - [RegionalDeploymentEvent](docs/RegionalDeploymentEvent.md) - - [RegionalDeploymentListItem](docs/RegionalDeploymentListItem.md) - - [RegionalDeploymentRole](docs/RegionalDeploymentRole.md) - - [RegionalDeploymentStatus](docs/RegionalDeploymentStatus.md) - - [RegionalDeploymentVolume](docs/RegionalDeploymentVolume.md) - - [RemoveOrganizationMemberReply](docs/RemoveOrganizationMemberReply.md) - - [ResendOrganizationInvitationReply](docs/ResendOrganizationInvitationReply.md) - - [ResetPasswordRequest](docs/ResetPasswordRequest.md) - - [RevealSecretReply](docs/RevealSecretReply.md) - - [ReviewOrganizationCapacityReply](docs/ReviewOrganizationCapacityReply.md) - - [ReviewOrganizationCapacityRequest](docs/ReviewOrganizationCapacityRequest.md) - - [Route](docs/Route.md) - - [Sample](docs/Sample.md) - - [ScaleToZeroQuotas](docs/ScaleToZeroQuotas.md) - - [Scaling](docs/Scaling.md) - - [Secret](docs/Secret.md) - - [SecretType](docs/SecretType.md) - - [SecretsSummary](docs/SecretsSummary.md) - - [Service](docs/Service.md) - - [ServiceEvent](docs/ServiceEvent.md) - - [ServiceListItem](docs/ServiceListItem.md) - - [ServiceState](docs/ServiceState.md) - - [ServiceStatus](docs/ServiceStatus.md) - - [ServiceSummary](docs/ServiceSummary.md) - - [ServiceType](docs/ServiceType.md) - - [ServiceUsage](docs/ServiceUsage.md) - - [Snapshot](docs/Snapshot.md) - - [SnapshotStatus](docs/SnapshotStatus.md) - - [SnapshotType](docs/SnapshotType.md) - - [StreamResultOfExecCommandReply](docs/StreamResultOfExecCommandReply.md) - - [StreamResultOfLogEntry](docs/StreamResultOfLogEntry.md) - - [Subscription](docs/Subscription.md) - - [SubscriptionPaymentFailure](docs/SubscriptionPaymentFailure.md) - - [SubscriptionPaymentFailureStripeSDK](docs/SubscriptionPaymentFailureStripeSDK.md) - - [SubscriptionStatus](docs/SubscriptionStatus.md) - - [TCPHealthCheck](docs/TCPHealthCheck.md) - - [Token](docs/Token.md) - - [TriggerDeploymentMetadata](docs/TriggerDeploymentMetadata.md) - - [TriggerDeploymentMetadataActorType](docs/TriggerDeploymentMetadataActorType.md) - - [TriggerDeploymentMetadataTriggerType](docs/TriggerDeploymentMetadataTriggerType.md) - - [TriggerGitDeploymentMetadata](docs/TriggerGitDeploymentMetadata.md) - - [TriggerGitDeploymentMetadataProvider](docs/TriggerGitDeploymentMetadataProvider.md) - - [UpdateApp](docs/UpdateApp.md) - - [UpdateAppReply](docs/UpdateAppReply.md) - - [UpdateBudgetReply](docs/UpdateBudgetReply.md) - - [UpdateBudgetRequest](docs/UpdateBudgetRequest.md) - - [UpdateCredentialReply](docs/UpdateCredentialReply.md) - - [UpdateDomain](docs/UpdateDomain.md) - - [UpdateDomainReply](docs/UpdateDomainReply.md) - - [UpdateOrganizationPlanReply](docs/UpdateOrganizationPlanReply.md) - - [UpdateOrganizationPlanRequest](docs/UpdateOrganizationPlanRequest.md) - - [UpdateOrganizationReply](docs/UpdateOrganizationReply.md) - - [UpdatePasswordRequest](docs/UpdatePasswordRequest.md) - - [UpdatePersistentVolumeReply](docs/UpdatePersistentVolumeReply.md) - - [UpdatePersistentVolumeRequest](docs/UpdatePersistentVolumeRequest.md) - - [UpdateSecretReply](docs/UpdateSecretReply.md) - - [UpdateService](docs/UpdateService.md) - - [UpdateServiceReply](docs/UpdateServiceReply.md) - - [UpdateSnapshotReply](docs/UpdateSnapshotReply.md) - - [UpdateSnapshotRequest](docs/UpdateSnapshotRequest.md) - - [UpdateUserRequestUserUpdateBody](docs/UpdateUserRequestUserUpdateBody.md) - - [UpdateUserSettingsReply](docs/UpdateUserSettingsReply.md) - - [UpdateUserSettingsRequest](docs/UpdateUserSettingsRequest.md) - - [UpsertSignupQualificationReply](docs/UpsertSignupQualificationReply.md) - - [UpsertSignupQualificationRequest](docs/UpsertSignupQualificationRequest.md) - - [Usage](docs/Usage.md) - - [UsageDetails](docs/UsageDetails.md) - - [User](docs/User.md) - - [UserFlags](docs/UserFlags.md) - - [UserReply](docs/UserReply.md) - - [UserRoleRole](docs/UserRoleRole.md) - - [UserSettings](docs/UserSettings.md) - - [VerifyDockerImageReply](docs/VerifyDockerImageReply.md) - - [VerifyDockerImageReplyErrCode](docs/VerifyDockerImageReplyErrCode.md) - - - -## Documentation For Authorization - - -Authentication schemes defined for the API: - -### Bearer - -- **Type**: API key -- **API key parameter name**: Authorization -- **Location**: HTTP header - - -## Author - +# Koyeb python sdk +This is the official Python SDK for Koyeb, a platform that allows you to deploy and manage applications and services in the cloud. +# Modules +- `koyeb.api`: Contains the API client and methods to interact with Koyeb's REST API. [Documentation](./koyeb/api_README.md) diff --git a/pyproject.toml b/pyproject.toml index e3ee33da..e7173668 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,24 +1,22 @@ [project] name = "koyeb-sdk" version = "1.0.0" -description = "Koyeb Rest API" -authors = [ - {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, -] +description = "Koyeb python sdk" +authors = [{ name = "Koyeb team", email = "support@koyeb.com" }] license = "Apache-2.0" readme = "README.md" -keywords = ["OpenAPI", "OpenAPI-Generator", "Koyeb Rest API"] +keywords = ["Koyeb", "Koyeb API client", "SDK", "API client"] requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", "python-dateutil (>=2.8.2)", "pydantic (>=2)", - "typing-extensions (>=4.7.1)" + "typing-extensions (>=4.7.1)", ] [project.urls] -Repository = "https://github.com/koyeb/koyeb-api-client-python" +Repository = "https://github.com/koyeb/koyeb-python-sdk" [tool.poetry] requires-poetry = ">=2.0" @@ -81,9 +79,7 @@ disallow_any_generics = true #warn_return_any = true [[tool.mypy.overrides]] -module = [ - "koyeb.configuration", -] +module = ["koyeb.configuration"] warn_unused_ignores = true strict_equality = true extra_checks = true diff --git a/uv.lock b/uv.lock new file mode 100644 index 00000000..58af2921 --- /dev/null +++ b/uv.lock @@ -0,0 +1,224 @@ +version = 1 +revision = 3 +requires-python = ">=3.9" + +[[package]] +name = "annotated-types" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, +] + +[[package]] +name = "koyeb-sdk" +version = "1.0.0" +source = { editable = "." } +dependencies = [ + { name = "pydantic" }, + { name = "python-dateutil" }, + { name = "typing-extensions" }, + { name = "urllib3" }, +] + +[package.metadata] +requires-dist = [ + { name = "pydantic", specifier = ">=2" }, + { name = "python-dateutil", specifier = ">=2.8.2" }, + { name = "typing-extensions", specifier = ">=4.7.1" }, + { name = "urllib3", specifier = ">=2.1.0,<3.0.0" }, +] + +[[package]] +name = "pydantic" +version = "2.12.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f3/1e/4f0a3233767010308f2fd6bd0814597e3f63f1dc98304a9112b8759df4ff/pydantic-2.12.3.tar.gz", hash = "sha256:1da1c82b0fc140bb0103bc1441ffe062154c8d38491189751ee00fd8ca65ce74", size = 819383, upload-time = "2025-10-17T15:04:21.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a1/6b/83661fa77dcefa195ad5f8cd9af3d1a7450fd57cc883ad04d65446ac2029/pydantic-2.12.3-py3-none-any.whl", hash = "sha256:6986454a854bc3bc6e5443e1369e06a3a456af9d339eda45510f517d9ea5c6bf", size = 462431, upload-time = "2025-10-17T15:04:19.346Z" }, +] + +[[package]] +name = "pydantic-core" +version = "2.41.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/18/d0944e8eaaa3efd0a91b0f1fc537d3be55ad35091b6a87638211ba691964/pydantic_core-2.41.4.tar.gz", hash = "sha256:70e47929a9d4a1905a67e4b687d5946026390568a8e952b92824118063cee4d5", size = 457557, upload-time = "2025-10-14T10:23:47.909Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/3d/9b8ca77b0f76fcdbf8bc6b72474e264283f461284ca84ac3fde570c6c49a/pydantic_core-2.41.4-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2442d9a4d38f3411f22eb9dd0912b7cbf4b7d5b6c92c4173b75d3e1ccd84e36e", size = 2111197, upload-time = "2025-10-14T10:19:43.303Z" }, + { url = "https://files.pythonhosted.org/packages/59/92/b7b0fe6ed4781642232755cb7e56a86e2041e1292f16d9ae410a0ccee5ac/pydantic_core-2.41.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:30a9876226dda131a741afeab2702e2d127209bde3c65a2b8133f428bc5d006b", size = 1917909, upload-time = "2025-10-14T10:19:45.194Z" }, + { url = "https://files.pythonhosted.org/packages/52/8c/3eb872009274ffa4fb6a9585114e161aa1a0915af2896e2d441642929fe4/pydantic_core-2.41.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d55bbac04711e2980645af68b97d445cdbcce70e5216de444a6c4b6943ebcccd", size = 1969905, upload-time = "2025-10-14T10:19:46.567Z" }, + { url = "https://files.pythonhosted.org/packages/f4/21/35adf4a753bcfaea22d925214a0c5b880792e3244731b3f3e6fec0d124f7/pydantic_core-2.41.4-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e1d778fb7849a42d0ee5927ab0f7453bf9f85eef8887a546ec87db5ddb178945", size = 2051938, upload-time = "2025-10-14T10:19:48.237Z" }, + { url = "https://files.pythonhosted.org/packages/7d/d0/cdf7d126825e36d6e3f1eccf257da8954452934ede275a8f390eac775e89/pydantic_core-2.41.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1b65077a4693a98b90ec5ad8f203ad65802a1b9b6d4a7e48066925a7e1606706", size = 2250710, upload-time = "2025-10-14T10:19:49.619Z" }, + { url = "https://files.pythonhosted.org/packages/2e/1c/af1e6fd5ea596327308f9c8d1654e1285cc3d8de0d584a3c9d7705bf8a7c/pydantic_core-2.41.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:62637c769dee16eddb7686bf421be48dfc2fae93832c25e25bc7242e698361ba", size = 2367445, upload-time = "2025-10-14T10:19:51.269Z" }, + { url = "https://files.pythonhosted.org/packages/d3/81/8cece29a6ef1b3a92f956ea6da6250d5b2d2e7e4d513dd3b4f0c7a83dfea/pydantic_core-2.41.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2dfe3aa529c8f501babf6e502936b9e8d4698502b2cfab41e17a028d91b1ac7b", size = 2072875, upload-time = "2025-10-14T10:19:52.671Z" }, + { url = "https://files.pythonhosted.org/packages/e3/37/a6a579f5fc2cd4d5521284a0ab6a426cc6463a7b3897aeb95b12f1ba607b/pydantic_core-2.41.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ca2322da745bf2eeb581fc9ea3bbb31147702163ccbcbf12a3bb630e4bf05e1d", size = 2191329, upload-time = "2025-10-14T10:19:54.214Z" }, + { url = "https://files.pythonhosted.org/packages/ae/03/505020dc5c54ec75ecba9f41119fd1e48f9e41e4629942494c4a8734ded1/pydantic_core-2.41.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e8cd3577c796be7231dcf80badcf2e0835a46665eaafd8ace124d886bab4d700", size = 2151658, upload-time = "2025-10-14T10:19:55.843Z" }, + { url = "https://files.pythonhosted.org/packages/cb/5d/2c0d09fb53aa03bbd2a214d89ebfa6304be7df9ed86ee3dc7770257f41ee/pydantic_core-2.41.4-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:1cae8851e174c83633f0833e90636832857297900133705ee158cf79d40f03e6", size = 2316777, upload-time = "2025-10-14T10:19:57.607Z" }, + { url = "https://files.pythonhosted.org/packages/ea/4b/c2c9c8f5e1f9c864b57d08539d9d3db160e00491c9f5ee90e1bfd905e644/pydantic_core-2.41.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a26d950449aae348afe1ac8be5525a00ae4235309b729ad4d3399623125b43c9", size = 2320705, upload-time = "2025-10-14T10:19:59.016Z" }, + { url = "https://files.pythonhosted.org/packages/28/c3/a74c1c37f49c0a02c89c7340fafc0ba816b29bd495d1a31ce1bdeacc6085/pydantic_core-2.41.4-cp310-cp310-win32.whl", hash = "sha256:0cf2a1f599efe57fa0051312774280ee0f650e11152325e41dfd3018ef2c1b57", size = 1975464, upload-time = "2025-10-14T10:20:00.581Z" }, + { url = "https://files.pythonhosted.org/packages/d6/23/5dd5c1324ba80303368f7569e2e2e1a721c7d9eb16acb7eb7b7f85cb1be2/pydantic_core-2.41.4-cp310-cp310-win_amd64.whl", hash = "sha256:a8c2e340d7e454dc3340d3d2e8f23558ebe78c98aa8f68851b04dcb7bc37abdc", size = 2024497, upload-time = "2025-10-14T10:20:03.018Z" }, + { url = "https://files.pythonhosted.org/packages/62/4c/f6cbfa1e8efacd00b846764e8484fe173d25b8dab881e277a619177f3384/pydantic_core-2.41.4-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:28ff11666443a1a8cf2a044d6a545ebffa8382b5f7973f22c36109205e65dc80", size = 2109062, upload-time = "2025-10-14T10:20:04.486Z" }, + { url = "https://files.pythonhosted.org/packages/21/f8/40b72d3868896bfcd410e1bd7e516e762d326201c48e5b4a06446f6cf9e8/pydantic_core-2.41.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:61760c3925d4633290292bad462e0f737b840508b4f722247d8729684f6539ae", size = 1916301, upload-time = "2025-10-14T10:20:06.857Z" }, + { url = "https://files.pythonhosted.org/packages/94/4d/d203dce8bee7faeca791671c88519969d98d3b4e8f225da5b96dad226fc8/pydantic_core-2.41.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eae547b7315d055b0de2ec3965643b0ab82ad0106a7ffd29615ee9f266a02827", size = 1968728, upload-time = "2025-10-14T10:20:08.353Z" }, + { url = "https://files.pythonhosted.org/packages/65/f5/6a66187775df87c24d526985b3a5d78d861580ca466fbd9d4d0e792fcf6c/pydantic_core-2.41.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ef9ee5471edd58d1fcce1c80ffc8783a650e3e3a193fe90d52e43bb4d87bff1f", size = 2050238, upload-time = "2025-10-14T10:20:09.766Z" }, + { url = "https://files.pythonhosted.org/packages/5e/b9/78336345de97298cf53236b2f271912ce11f32c1e59de25a374ce12f9cce/pydantic_core-2.41.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:15dd504af121caaf2c95cb90c0ebf71603c53de98305621b94da0f967e572def", size = 2249424, upload-time = "2025-10-14T10:20:11.732Z" }, + { url = "https://files.pythonhosted.org/packages/99/bb/a4584888b70ee594c3d374a71af5075a68654d6c780369df269118af7402/pydantic_core-2.41.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3a926768ea49a8af4d36abd6a8968b8790f7f76dd7cbd5a4c180db2b4ac9a3a2", size = 2366047, upload-time = "2025-10-14T10:20:13.647Z" }, + { url = "https://files.pythonhosted.org/packages/5f/8d/17fc5de9d6418e4d2ae8c675f905cdafdc59d3bf3bf9c946b7ab796a992a/pydantic_core-2.41.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6916b9b7d134bff5440098a4deb80e4cb623e68974a87883299de9124126c2a8", size = 2071163, upload-time = "2025-10-14T10:20:15.307Z" }, + { url = "https://files.pythonhosted.org/packages/54/e7/03d2c5c0b8ed37a4617430db68ec5e7dbba66358b629cd69e11b4d564367/pydantic_core-2.41.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5cf90535979089df02e6f17ffd076f07237efa55b7343d98760bde8743c4b265", size = 2190585, upload-time = "2025-10-14T10:20:17.3Z" }, + { url = "https://files.pythonhosted.org/packages/be/fc/15d1c9fe5ad9266a5897d9b932b7f53d7e5cfc800573917a2c5d6eea56ec/pydantic_core-2.41.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:7533c76fa647fade2d7ec75ac5cc079ab3f34879626dae5689b27790a6cf5a5c", size = 2150109, upload-time = "2025-10-14T10:20:19.143Z" }, + { url = "https://files.pythonhosted.org/packages/26/ef/e735dd008808226c83ba56972566138665b71477ad580fa5a21f0851df48/pydantic_core-2.41.4-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:37e516bca9264cbf29612539801ca3cd5d1be465f940417b002905e6ed79d38a", size = 2315078, upload-time = "2025-10-14T10:20:20.742Z" }, + { url = "https://files.pythonhosted.org/packages/90/00/806efdcf35ff2ac0f938362350cd9827b8afb116cc814b6b75cf23738c7c/pydantic_core-2.41.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0c19cb355224037c83642429b8ce261ae108e1c5fbf5c028bac63c77b0f8646e", size = 2318737, upload-time = "2025-10-14T10:20:22.306Z" }, + { url = "https://files.pythonhosted.org/packages/41/7e/6ac90673fe6cb36621a2283552897838c020db343fa86e513d3f563b196f/pydantic_core-2.41.4-cp311-cp311-win32.whl", hash = "sha256:09c2a60e55b357284b5f31f5ab275ba9f7f70b7525e18a132ec1f9160b4f1f03", size = 1974160, upload-time = "2025-10-14T10:20:23.817Z" }, + { url = "https://files.pythonhosted.org/packages/e0/9d/7c5e24ee585c1f8b6356e1d11d40ab807ffde44d2db3b7dfd6d20b09720e/pydantic_core-2.41.4-cp311-cp311-win_amd64.whl", hash = "sha256:711156b6afb5cb1cb7c14a2cc2c4a8b4c717b69046f13c6b332d8a0a8f41ca3e", size = 2021883, upload-time = "2025-10-14T10:20:25.48Z" }, + { url = "https://files.pythonhosted.org/packages/33/90/5c172357460fc28b2871eb4a0fb3843b136b429c6fa827e4b588877bf115/pydantic_core-2.41.4-cp311-cp311-win_arm64.whl", hash = "sha256:6cb9cf7e761f4f8a8589a45e49ed3c0d92d1d696a45a6feaee8c904b26efc2db", size = 1968026, upload-time = "2025-10-14T10:20:27.039Z" }, + { url = "https://files.pythonhosted.org/packages/e9/81/d3b3e95929c4369d30b2a66a91db63c8ed0a98381ae55a45da2cd1cc1288/pydantic_core-2.41.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:ab06d77e053d660a6faaf04894446df7b0a7e7aba70c2797465a0a1af00fc887", size = 2099043, upload-time = "2025-10-14T10:20:28.561Z" }, + { url = "https://files.pythonhosted.org/packages/58/da/46fdac49e6717e3a94fc9201403e08d9d61aa7a770fab6190b8740749047/pydantic_core-2.41.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53ff33e603a9c1179a9364b0a24694f183717b2e0da2b5ad43c316c956901b2", size = 1910699, upload-time = "2025-10-14T10:20:30.217Z" }, + { url = "https://files.pythonhosted.org/packages/1e/63/4d948f1b9dd8e991a5a98b77dd66c74641f5f2e5225fee37994b2e07d391/pydantic_core-2.41.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:304c54176af2c143bd181d82e77c15c41cbacea8872a2225dd37e6544dce9999", size = 1952121, upload-time = "2025-10-14T10:20:32.246Z" }, + { url = "https://files.pythonhosted.org/packages/b2/a7/e5fc60a6f781fc634ecaa9ecc3c20171d238794cef69ae0af79ac11b89d7/pydantic_core-2.41.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:025ba34a4cf4fb32f917d5d188ab5e702223d3ba603be4d8aca2f82bede432a4", size = 2041590, upload-time = "2025-10-14T10:20:34.332Z" }, + { url = "https://files.pythonhosted.org/packages/70/69/dce747b1d21d59e85af433428978a1893c6f8a7068fa2bb4a927fba7a5ff/pydantic_core-2.41.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b9f5f30c402ed58f90c70e12eff65547d3ab74685ffe8283c719e6bead8ef53f", size = 2219869, upload-time = "2025-10-14T10:20:35.965Z" }, + { url = "https://files.pythonhosted.org/packages/83/6a/c070e30e295403bf29c4df1cb781317b6a9bac7cd07b8d3acc94d501a63c/pydantic_core-2.41.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dd96e5d15385d301733113bcaa324c8bcf111275b7675a9c6e88bfb19fc05e3b", size = 2345169, upload-time = "2025-10-14T10:20:37.627Z" }, + { url = "https://files.pythonhosted.org/packages/f0/83/06d001f8043c336baea7fd202a9ac7ad71f87e1c55d8112c50b745c40324/pydantic_core-2.41.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98f348cbb44fae6e9653c1055db7e29de67ea6a9ca03a5fa2c2e11a47cff0e47", size = 2070165, upload-time = "2025-10-14T10:20:39.246Z" }, + { url = "https://files.pythonhosted.org/packages/14/0a/e567c2883588dd12bcbc110232d892cf385356f7c8a9910311ac997ab715/pydantic_core-2.41.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ec22626a2d14620a83ca583c6f5a4080fa3155282718b6055c2ea48d3ef35970", size = 2189067, upload-time = "2025-10-14T10:20:41.015Z" }, + { url = "https://files.pythonhosted.org/packages/f4/1d/3d9fca34273ba03c9b1c5289f7618bc4bd09c3ad2289b5420481aa051a99/pydantic_core-2.41.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:3a95d4590b1f1a43bf33ca6d647b990a88f4a3824a8c4572c708f0b45a5290ed", size = 2132997, upload-time = "2025-10-14T10:20:43.106Z" }, + { url = "https://files.pythonhosted.org/packages/52/70/d702ef7a6cd41a8afc61f3554922b3ed8d19dd54c3bd4bdbfe332e610827/pydantic_core-2.41.4-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:f9672ab4d398e1b602feadcffcdd3af44d5f5e6ddc15bc7d15d376d47e8e19f8", size = 2307187, upload-time = "2025-10-14T10:20:44.849Z" }, + { url = "https://files.pythonhosted.org/packages/68/4c/c06be6e27545d08b802127914156f38d10ca287a9e8489342793de8aae3c/pydantic_core-2.41.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:84d8854db5f55fead3b579f04bda9a36461dab0730c5d570e1526483e7bb8431", size = 2305204, upload-time = "2025-10-14T10:20:46.781Z" }, + { url = "https://files.pythonhosted.org/packages/b0/e5/35ae4919bcd9f18603419e23c5eaf32750224a89d41a8df1a3704b69f77e/pydantic_core-2.41.4-cp312-cp312-win32.whl", hash = "sha256:9be1c01adb2ecc4e464392c36d17f97e9110fbbc906bcbe1c943b5b87a74aabd", size = 1972536, upload-time = "2025-10-14T10:20:48.39Z" }, + { url = "https://files.pythonhosted.org/packages/1e/c2/49c5bb6d2a49eb2ee3647a93e3dae7080c6409a8a7558b075027644e879c/pydantic_core-2.41.4-cp312-cp312-win_amd64.whl", hash = "sha256:d682cf1d22bab22a5be08539dca3d1593488a99998f9f412137bc323179067ff", size = 2031132, upload-time = "2025-10-14T10:20:50.421Z" }, + { url = "https://files.pythonhosted.org/packages/06/23/936343dbcba6eec93f73e95eb346810fc732f71ba27967b287b66f7b7097/pydantic_core-2.41.4-cp312-cp312-win_arm64.whl", hash = "sha256:833eebfd75a26d17470b58768c1834dfc90141b7afc6eb0429c21fc5a21dcfb8", size = 1969483, upload-time = "2025-10-14T10:20:52.35Z" }, + { url = "https://files.pythonhosted.org/packages/13/d0/c20adabd181a029a970738dfe23710b52a31f1258f591874fcdec7359845/pydantic_core-2.41.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:85e050ad9e5f6fe1004eec65c914332e52f429bc0ae12d6fa2092407a462c746", size = 2105688, upload-time = "2025-10-14T10:20:54.448Z" }, + { url = "https://files.pythonhosted.org/packages/00/b6/0ce5c03cec5ae94cca220dfecddc453c077d71363b98a4bbdb3c0b22c783/pydantic_core-2.41.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7393f1d64792763a48924ba31d1e44c2cfbc05e3b1c2c9abb4ceeadd912cced", size = 1910807, upload-time = "2025-10-14T10:20:56.115Z" }, + { url = "https://files.pythonhosted.org/packages/68/3e/800d3d02c8beb0b5c069c870cbb83799d085debf43499c897bb4b4aaff0d/pydantic_core-2.41.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94dab0940b0d1fb28bcab847adf887c66a27a40291eedf0b473be58761c9799a", size = 1956669, upload-time = "2025-10-14T10:20:57.874Z" }, + { url = "https://files.pythonhosted.org/packages/60/a4/24271cc71a17f64589be49ab8bd0751f6a0a03046c690df60989f2f95c2c/pydantic_core-2.41.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:de7c42f897e689ee6f9e93c4bec72b99ae3b32a2ade1c7e4798e690ff5246e02", size = 2051629, upload-time = "2025-10-14T10:21:00.006Z" }, + { url = "https://files.pythonhosted.org/packages/68/de/45af3ca2f175d91b96bfb62e1f2d2f1f9f3b14a734afe0bfeff079f78181/pydantic_core-2.41.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:664b3199193262277b8b3cd1e754fb07f2c6023289c815a1e1e8fb415cb247b1", size = 2224049, upload-time = "2025-10-14T10:21:01.801Z" }, + { url = "https://files.pythonhosted.org/packages/af/8f/ae4e1ff84672bf869d0a77af24fd78387850e9497753c432875066b5d622/pydantic_core-2.41.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d95b253b88f7d308b1c0b417c4624f44553ba4762816f94e6986819b9c273fb2", size = 2342409, upload-time = "2025-10-14T10:21:03.556Z" }, + { url = "https://files.pythonhosted.org/packages/18/62/273dd70b0026a085c7b74b000394e1ef95719ea579c76ea2f0cc8893736d/pydantic_core-2.41.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a1351f5bbdbbabc689727cb91649a00cb9ee7203e0a6e54e9f5ba9e22e384b84", size = 2069635, upload-time = "2025-10-14T10:21:05.385Z" }, + { url = "https://files.pythonhosted.org/packages/30/03/cf485fff699b4cdaea469bc481719d3e49f023241b4abb656f8d422189fc/pydantic_core-2.41.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1affa4798520b148d7182da0615d648e752de4ab1a9566b7471bc803d88a062d", size = 2194284, upload-time = "2025-10-14T10:21:07.122Z" }, + { url = "https://files.pythonhosted.org/packages/f9/7e/c8e713db32405dfd97211f2fc0a15d6bf8adb7640f3d18544c1f39526619/pydantic_core-2.41.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7b74e18052fea4aa8dea2fb7dbc23d15439695da6cbe6cfc1b694af1115df09d", size = 2137566, upload-time = "2025-10-14T10:21:08.981Z" }, + { url = "https://files.pythonhosted.org/packages/04/f7/db71fd4cdccc8b75990f79ccafbbd66757e19f6d5ee724a6252414483fb4/pydantic_core-2.41.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:285b643d75c0e30abda9dc1077395624f314a37e3c09ca402d4015ef5979f1a2", size = 2316809, upload-time = "2025-10-14T10:21:10.805Z" }, + { url = "https://files.pythonhosted.org/packages/76/63/a54973ddb945f1bca56742b48b144d85c9fc22f819ddeb9f861c249d5464/pydantic_core-2.41.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:f52679ff4218d713b3b33f88c89ccbf3a5c2c12ba665fb80ccc4192b4608dbab", size = 2311119, upload-time = "2025-10-14T10:21:12.583Z" }, + { url = "https://files.pythonhosted.org/packages/f8/03/5d12891e93c19218af74843a27e32b94922195ded2386f7b55382f904d2f/pydantic_core-2.41.4-cp313-cp313-win32.whl", hash = "sha256:ecde6dedd6fff127c273c76821bb754d793be1024bc33314a120f83a3c69460c", size = 1981398, upload-time = "2025-10-14T10:21:14.584Z" }, + { url = "https://files.pythonhosted.org/packages/be/d8/fd0de71f39db91135b7a26996160de71c073d8635edfce8b3c3681be0d6d/pydantic_core-2.41.4-cp313-cp313-win_amd64.whl", hash = "sha256:d081a1f3800f05409ed868ebb2d74ac39dd0c1ff6c035b5162356d76030736d4", size = 2030735, upload-time = "2025-10-14T10:21:16.432Z" }, + { url = "https://files.pythonhosted.org/packages/72/86/c99921c1cf6650023c08bfab6fe2d7057a5142628ef7ccfa9921f2dda1d5/pydantic_core-2.41.4-cp313-cp313-win_arm64.whl", hash = "sha256:f8e49c9c364a7edcbe2a310f12733aad95b022495ef2a8d653f645e5d20c1564", size = 1973209, upload-time = "2025-10-14T10:21:18.213Z" }, + { url = "https://files.pythonhosted.org/packages/36/0d/b5706cacb70a8414396efdda3d72ae0542e050b591119e458e2490baf035/pydantic_core-2.41.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:ed97fd56a561f5eb5706cebe94f1ad7c13b84d98312a05546f2ad036bafe87f4", size = 1877324, upload-time = "2025-10-14T10:21:20.363Z" }, + { url = "https://files.pythonhosted.org/packages/de/2d/cba1fa02cfdea72dfb3a9babb067c83b9dff0bbcb198368e000a6b756ea7/pydantic_core-2.41.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a870c307bf1ee91fc58a9a61338ff780d01bfae45922624816878dce784095d2", size = 1884515, upload-time = "2025-10-14T10:21:22.339Z" }, + { url = "https://files.pythonhosted.org/packages/07/ea/3df927c4384ed9b503c9cc2d076cf983b4f2adb0c754578dfb1245c51e46/pydantic_core-2.41.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d25e97bc1f5f8f7985bdc2335ef9e73843bb561eb1fa6831fdfc295c1c2061cf", size = 2042819, upload-time = "2025-10-14T10:21:26.683Z" }, + { url = "https://files.pythonhosted.org/packages/6a/ee/df8e871f07074250270a3b1b82aad4cd0026b588acd5d7d3eb2fcb1471a3/pydantic_core-2.41.4-cp313-cp313t-win_amd64.whl", hash = "sha256:d405d14bea042f166512add3091c1af40437c2e7f86988f3915fabd27b1e9cd2", size = 1995866, upload-time = "2025-10-14T10:21:28.951Z" }, + { url = "https://files.pythonhosted.org/packages/fc/de/b20f4ab954d6d399499c33ec4fafc46d9551e11dc1858fb7f5dca0748ceb/pydantic_core-2.41.4-cp313-cp313t-win_arm64.whl", hash = "sha256:19f3684868309db5263a11bace3c45d93f6f24afa2ffe75a647583df22a2ff89", size = 1970034, upload-time = "2025-10-14T10:21:30.869Z" }, + { url = "https://files.pythonhosted.org/packages/54/28/d3325da57d413b9819365546eb9a6e8b7cbd9373d9380efd5f74326143e6/pydantic_core-2.41.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:e9205d97ed08a82ebb9a307e92914bb30e18cdf6f6b12ca4bedadb1588a0bfe1", size = 2102022, upload-time = "2025-10-14T10:21:32.809Z" }, + { url = "https://files.pythonhosted.org/packages/9e/24/b58a1bc0d834bf1acc4361e61233ee217169a42efbdc15a60296e13ce438/pydantic_core-2.41.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:82df1f432b37d832709fbcc0e24394bba04a01b6ecf1ee87578145c19cde12ac", size = 1905495, upload-time = "2025-10-14T10:21:34.812Z" }, + { url = "https://files.pythonhosted.org/packages/fb/a4/71f759cc41b7043e8ecdaab81b985a9b6cad7cec077e0b92cff8b71ecf6b/pydantic_core-2.41.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc3b4cc4539e055cfa39a3763c939f9d409eb40e85813257dcd761985a108554", size = 1956131, upload-time = "2025-10-14T10:21:36.924Z" }, + { url = "https://files.pythonhosted.org/packages/b0/64/1e79ac7aa51f1eec7c4cda8cbe456d5d09f05fdd68b32776d72168d54275/pydantic_core-2.41.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b1eb1754fce47c63d2ff57fdb88c351a6c0150995890088b33767a10218eaa4e", size = 2052236, upload-time = "2025-10-14T10:21:38.927Z" }, + { url = "https://files.pythonhosted.org/packages/e9/e3/a3ffc363bd4287b80f1d43dc1c28ba64831f8dfc237d6fec8f2661138d48/pydantic_core-2.41.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e6ab5ab30ef325b443f379ddb575a34969c333004fca5a1daa0133a6ffaad616", size = 2223573, upload-time = "2025-10-14T10:21:41.574Z" }, + { url = "https://files.pythonhosted.org/packages/28/27/78814089b4d2e684a9088ede3790763c64693c3d1408ddc0a248bc789126/pydantic_core-2.41.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:31a41030b1d9ca497634092b46481b937ff9397a86f9f51bd41c4767b6fc04af", size = 2342467, upload-time = "2025-10-14T10:21:44.018Z" }, + { url = "https://files.pythonhosted.org/packages/92/97/4de0e2a1159cb85ad737e03306717637842c88c7fd6d97973172fb183149/pydantic_core-2.41.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a44ac1738591472c3d020f61c6df1e4015180d6262ebd39bf2aeb52571b60f12", size = 2063754, upload-time = "2025-10-14T10:21:46.466Z" }, + { url = "https://files.pythonhosted.org/packages/0f/50/8cb90ce4b9efcf7ae78130afeb99fd1c86125ccdf9906ef64b9d42f37c25/pydantic_core-2.41.4-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d72f2b5e6e82ab8f94ea7d0d42f83c487dc159c5240d8f83beae684472864e2d", size = 2196754, upload-time = "2025-10-14T10:21:48.486Z" }, + { url = "https://files.pythonhosted.org/packages/34/3b/ccdc77af9cd5082723574a1cc1bcae7a6acacc829d7c0a06201f7886a109/pydantic_core-2.41.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:c4d1e854aaf044487d31143f541f7aafe7b482ae72a022c664b2de2e466ed0ad", size = 2137115, upload-time = "2025-10-14T10:21:50.63Z" }, + { url = "https://files.pythonhosted.org/packages/ca/ba/e7c7a02651a8f7c52dc2cff2b64a30c313e3b57c7d93703cecea76c09b71/pydantic_core-2.41.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b568af94267729d76e6ee5ececda4e283d07bbb28e8148bb17adad93d025d25a", size = 2317400, upload-time = "2025-10-14T10:21:52.959Z" }, + { url = "https://files.pythonhosted.org/packages/2c/ba/6c533a4ee8aec6b812c643c49bb3bd88d3f01e3cebe451bb85512d37f00f/pydantic_core-2.41.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6d55fb8b1e8929b341cc313a81a26e0d48aa3b519c1dbaadec3a6a2b4fcad025", size = 2312070, upload-time = "2025-10-14T10:21:55.419Z" }, + { url = "https://files.pythonhosted.org/packages/22/ae/f10524fcc0ab8d7f96cf9a74c880243576fd3e72bd8ce4f81e43d22bcab7/pydantic_core-2.41.4-cp314-cp314-win32.whl", hash = "sha256:5b66584e549e2e32a1398df11da2e0a7eff45d5c2d9db9d5667c5e6ac764d77e", size = 1982277, upload-time = "2025-10-14T10:21:57.474Z" }, + { url = "https://files.pythonhosted.org/packages/b4/dc/e5aa27aea1ad4638f0c3fb41132f7eb583bd7420ee63204e2d4333a3bbf9/pydantic_core-2.41.4-cp314-cp314-win_amd64.whl", hash = "sha256:557a0aab88664cc552285316809cab897716a372afaf8efdbef756f8b890e894", size = 2024608, upload-time = "2025-10-14T10:21:59.557Z" }, + { url = "https://files.pythonhosted.org/packages/3e/61/51d89cc2612bd147198e120a13f150afbf0bcb4615cddb049ab10b81b79e/pydantic_core-2.41.4-cp314-cp314-win_arm64.whl", hash = "sha256:3f1ea6f48a045745d0d9f325989d8abd3f1eaf47dd00485912d1a3a63c623a8d", size = 1967614, upload-time = "2025-10-14T10:22:01.847Z" }, + { url = "https://files.pythonhosted.org/packages/0d/c2/472f2e31b95eff099961fa050c376ab7156a81da194f9edb9f710f68787b/pydantic_core-2.41.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6c1fe4c5404c448b13188dd8bd2ebc2bdd7e6727fa61ff481bcc2cca894018da", size = 1876904, upload-time = "2025-10-14T10:22:04.062Z" }, + { url = "https://files.pythonhosted.org/packages/4a/07/ea8eeb91173807ecdae4f4a5f4b150a520085b35454350fc219ba79e66a3/pydantic_core-2.41.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:523e7da4d43b113bf8e7b49fa4ec0c35bf4fe66b2230bfc5c13cc498f12c6c3e", size = 1882538, upload-time = "2025-10-14T10:22:06.39Z" }, + { url = "https://files.pythonhosted.org/packages/1e/29/b53a9ca6cd366bfc928823679c6a76c7a4c69f8201c0ba7903ad18ebae2f/pydantic_core-2.41.4-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5729225de81fb65b70fdb1907fcf08c75d498f4a6f15af005aabb1fdadc19dfa", size = 2041183, upload-time = "2025-10-14T10:22:08.812Z" }, + { url = "https://files.pythonhosted.org/packages/c7/3d/f8c1a371ceebcaf94d6dd2d77c6cf4b1c078e13a5837aee83f760b4f7cfd/pydantic_core-2.41.4-cp314-cp314t-win_amd64.whl", hash = "sha256:de2cfbb09e88f0f795fd90cf955858fc2c691df65b1f21f0aa00b99f3fbc661d", size = 1993542, upload-time = "2025-10-14T10:22:11.332Z" }, + { url = "https://files.pythonhosted.org/packages/8a/ac/9fc61b4f9d079482a290afe8d206b8f490e9fd32d4fc03ed4fc698214e01/pydantic_core-2.41.4-cp314-cp314t-win_arm64.whl", hash = "sha256:d34f950ae05a83e0ede899c595f312ca976023ea1db100cd5aa188f7005e3ab0", size = 1973897, upload-time = "2025-10-14T10:22:13.444Z" }, + { url = "https://files.pythonhosted.org/packages/2c/36/f86d582be5fb47d4014506cd9ddd10a3979b6d0f2d237aa6ad3e7033b3ea/pydantic_core-2.41.4-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:646e76293345954acea6966149683047b7b2ace793011922208c8e9da12b0062", size = 2112444, upload-time = "2025-10-14T10:22:16.165Z" }, + { url = "https://files.pythonhosted.org/packages/ba/e5/63c521dc2dd106ba6b5941c080617ea9db252f8a7d5625231e9d761bc28c/pydantic_core-2.41.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:cc8e85a63085a137d286e2791037f5fdfff0aabb8b899483ca9c496dd5797338", size = 1938218, upload-time = "2025-10-14T10:22:19.443Z" }, + { url = "https://files.pythonhosted.org/packages/30/56/c84b638a3e6e9f5a612b9f5abdad73182520423de43669d639ed4f14b011/pydantic_core-2.41.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:692c622c8f859a17c156492783902d8370ac7e121a611bd6fe92cc71acf9ee8d", size = 1971449, upload-time = "2025-10-14T10:22:21.567Z" }, + { url = "https://files.pythonhosted.org/packages/99/c6/e974aade34fc7a0248fdfd0a373d62693502a407c596ab3470165e38183c/pydantic_core-2.41.4-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d1e2906efb1031a532600679b424ef1d95d9f9fb507f813951f23320903adbd7", size = 2054023, upload-time = "2025-10-14T10:22:24.229Z" }, + { url = "https://files.pythonhosted.org/packages/4f/91/2507dda801f50980a38d1353c313e8f51349a42b008e63a4e45bf4620562/pydantic_core-2.41.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e04e2f7f8916ad3ddd417a7abdd295276a0bf216993d9318a5d61cc058209166", size = 2251614, upload-time = "2025-10-14T10:22:26.498Z" }, + { url = "https://files.pythonhosted.org/packages/b2/ad/05d886bc96938f4d31bed24e8d3fc3496d9aea7e77bcff6e4b93127c6de7/pydantic_core-2.41.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df649916b81822543d1c8e0e1d079235f68acdc7d270c911e8425045a8cfc57e", size = 2378807, upload-time = "2025-10-14T10:22:28.733Z" }, + { url = "https://files.pythonhosted.org/packages/6a/0a/d26e1bb9a80b9fc12cc30d9288193fbc9e60a799e55843804ee37bd38a9c/pydantic_core-2.41.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:66c529f862fdba70558061bb936fe00ddbaaa0c647fd26e4a4356ef1d6561891", size = 2076891, upload-time = "2025-10-14T10:22:30.853Z" }, + { url = "https://files.pythonhosted.org/packages/d9/66/af014e3a294d9933ebfecf11a5d858709014bd2315fa9616195374dd82f0/pydantic_core-2.41.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fc3b4c5a1fd3a311563ed866c2c9b62da06cb6398bee186484ce95c820db71cb", size = 2192179, upload-time = "2025-10-14T10:22:33.481Z" }, + { url = "https://files.pythonhosted.org/packages/e7/3e/79783f97024037d0ea6e1b3ebcd761463a925199e04ce2625727e9f27d06/pydantic_core-2.41.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:6e0fc40d84448f941df9b3334c4b78fe42f36e3bf631ad54c3047a0cdddc2514", size = 2153067, upload-time = "2025-10-14T10:22:35.792Z" }, + { url = "https://files.pythonhosted.org/packages/b3/97/ea83b0f87d9e742405fb687d5682e7a26334eef2c82a2de06bfbdc305fab/pydantic_core-2.41.4-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:44e7625332683b6c1c8b980461475cde9595eff94447500e80716db89b0da005", size = 2319048, upload-time = "2025-10-14T10:22:38.144Z" }, + { url = "https://files.pythonhosted.org/packages/64/4a/36d8c966a0b086362ac10a7ee75978ed15c5f2dfdfc02a1578d19d3802fb/pydantic_core-2.41.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:170ee6835f6c71081d031ef1c3b4dc4a12b9efa6a9540f93f95b82f3c7571ae8", size = 2321830, upload-time = "2025-10-14T10:22:40.337Z" }, + { url = "https://files.pythonhosted.org/packages/a2/6e/d80cc4909dde5f6842861288aa1a7181e7afbfc50940c862ed2848df15bd/pydantic_core-2.41.4-cp39-cp39-win32.whl", hash = "sha256:3adf61415efa6ce977041ba9745183c0e1f637ca849773afa93833e04b163feb", size = 1976706, upload-time = "2025-10-14T10:22:42.61Z" }, + { url = "https://files.pythonhosted.org/packages/29/ee/5bda8d960d4a8b24a7eeb8a856efa9c865a7a6cab714ed387b29507dc278/pydantic_core-2.41.4-cp39-cp39-win_amd64.whl", hash = "sha256:a238dd3feee263eeaeb7dc44aea4ba1364682c4f9f9467e6af5596ba322c2332", size = 2027640, upload-time = "2025-10-14T10:22:44.907Z" }, + { url = "https://files.pythonhosted.org/packages/b0/12/5ba58daa7f453454464f92b3ca7b9d7c657d8641c48e370c3ebc9a82dd78/pydantic_core-2.41.4-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:a1b2cfec3879afb742a7b0bcfa53e4f22ba96571c9e54d6a3afe1052d17d843b", size = 2122139, upload-time = "2025-10-14T10:22:47.288Z" }, + { url = "https://files.pythonhosted.org/packages/21/fb/6860126a77725c3108baecd10fd3d75fec25191d6381b6eb2ac660228eac/pydantic_core-2.41.4-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:d175600d975b7c244af6eb9c9041f10059f20b8bbffec9e33fdd5ee3f67cdc42", size = 1936674, upload-time = "2025-10-14T10:22:49.555Z" }, + { url = "https://files.pythonhosted.org/packages/de/be/57dcaa3ed595d81f8757e2b44a38240ac5d37628bce25fb20d02c7018776/pydantic_core-2.41.4-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0f184d657fa4947ae5ec9c47bd7e917730fa1cbb78195037e32dcbab50aca5ee", size = 1956398, upload-time = "2025-10-14T10:22:52.19Z" }, + { url = "https://files.pythonhosted.org/packages/2f/1d/679a344fadb9695f1a6a294d739fbd21d71fa023286daeea8c0ed49e7c2b/pydantic_core-2.41.4-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ed810568aeffed3edc78910af32af911c835cc39ebbfacd1f0ab5dd53028e5c", size = 2138674, upload-time = "2025-10-14T10:22:54.499Z" }, + { url = "https://files.pythonhosted.org/packages/c4/48/ae937e5a831b7c0dc646b2ef788c27cd003894882415300ed21927c21efa/pydantic_core-2.41.4-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:4f5d640aeebb438517150fdeec097739614421900e4a08db4a3ef38898798537", size = 2112087, upload-time = "2025-10-14T10:22:56.818Z" }, + { url = "https://files.pythonhosted.org/packages/5e/db/6db8073e3d32dae017da7e0d16a9ecb897d0a4d92e00634916e486097961/pydantic_core-2.41.4-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:4a9ab037b71927babc6d9e7fc01aea9e66dc2a4a34dff06ef0724a4049629f94", size = 1920387, upload-time = "2025-10-14T10:22:59.342Z" }, + { url = "https://files.pythonhosted.org/packages/0d/c1/dd3542d072fcc336030d66834872f0328727e3b8de289c662faa04aa270e/pydantic_core-2.41.4-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e4dab9484ec605c3016df9ad4fd4f9a390bc5d816a3b10c6550f8424bb80b18c", size = 1951495, upload-time = "2025-10-14T10:23:02.089Z" }, + { url = "https://files.pythonhosted.org/packages/2b/c6/db8d13a1f8ab3f1eb08c88bd00fd62d44311e3456d1e85c0e59e0a0376e7/pydantic_core-2.41.4-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bd8a5028425820731d8c6c098ab642d7b8b999758e24acae03ed38a66eca8335", size = 2139008, upload-time = "2025-10-14T10:23:04.539Z" }, + { url = "https://files.pythonhosted.org/packages/5d/d4/912e976a2dd0b49f31c98a060ca90b353f3b73ee3ea2fd0030412f6ac5ec/pydantic_core-2.41.4-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:1e5ab4fc177dd41536b3c32b2ea11380dd3d4619a385860621478ac2d25ceb00", size = 2106739, upload-time = "2025-10-14T10:23:06.934Z" }, + { url = "https://files.pythonhosted.org/packages/71/f0/66ec5a626c81eba326072d6ee2b127f8c139543f1bf609b4842978d37833/pydantic_core-2.41.4-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:3d88d0054d3fa11ce936184896bed3c1c5441d6fa483b498fac6a5d0dd6f64a9", size = 1932549, upload-time = "2025-10-14T10:23:09.24Z" }, + { url = "https://files.pythonhosted.org/packages/c4/af/625626278ca801ea0a658c2dcf290dc9f21bb383098e99e7c6a029fccfc0/pydantic_core-2.41.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b2a054a8725f05b4b6503357e0ac1c4e8234ad3b0c2ac130d6ffc66f0e170e2", size = 2135093, upload-time = "2025-10-14T10:23:11.626Z" }, + { url = "https://files.pythonhosted.org/packages/20/f6/2fba049f54e0f4975fef66be654c597a1d005320fa141863699180c7697d/pydantic_core-2.41.4-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b0d9db5a161c99375a0c68c058e227bee1d89303300802601d76a3d01f74e258", size = 2187971, upload-time = "2025-10-14T10:23:14.437Z" }, + { url = "https://files.pythonhosted.org/packages/0e/80/65ab839a2dfcd3b949202f9d920c34f9de5a537c3646662bdf2f7d999680/pydantic_core-2.41.4-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:6273ea2c8ffdac7b7fda2653c49682db815aebf4a89243a6feccf5e36c18c347", size = 2147939, upload-time = "2025-10-14T10:23:16.831Z" }, + { url = "https://files.pythonhosted.org/packages/44/58/627565d3d182ce6dfda18b8e1c841eede3629d59c9d7cbc1e12a03aeb328/pydantic_core-2.41.4-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:4c973add636efc61de22530b2ef83a65f39b6d6f656df97f678720e20de26caa", size = 2311400, upload-time = "2025-10-14T10:23:19.234Z" }, + { url = "https://files.pythonhosted.org/packages/24/06/8a84711162ad5a5f19a88cead37cca81b4b1f294f46260ef7334ae4f24d3/pydantic_core-2.41.4-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:b69d1973354758007f46cf2d44a4f3d0933f10b6dc9bf15cf1356e037f6f731a", size = 2316840, upload-time = "2025-10-14T10:23:21.738Z" }, + { url = "https://files.pythonhosted.org/packages/aa/8b/b7bb512a4682a2f7fbfae152a755d37351743900226d29bd953aaf870eaa/pydantic_core-2.41.4-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:3619320641fd212aaf5997b6ca505e97540b7e16418f4a241f44cdf108ffb50d", size = 2149135, upload-time = "2025-10-14T10:23:24.379Z" }, + { url = "https://files.pythonhosted.org/packages/7e/7d/138e902ed6399b866f7cfe4435d22445e16fff888a1c00560d9dc79a780f/pydantic_core-2.41.4-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:491535d45cd7ad7e4a2af4a5169b0d07bebf1adfd164b0368da8aa41e19907a5", size = 2104721, upload-time = "2025-10-14T10:23:26.906Z" }, + { url = "https://files.pythonhosted.org/packages/47/13/0525623cf94627f7b53b4c2034c81edc8491cbfc7c28d5447fa318791479/pydantic_core-2.41.4-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:54d86c0cada6aba4ec4c047d0e348cbad7063b87ae0f005d9f8c9ad04d4a92a2", size = 1931608, upload-time = "2025-10-14T10:23:29.306Z" }, + { url = "https://files.pythonhosted.org/packages/d6/f9/744bc98137d6ef0a233f808bfc9b18cf94624bf30836a18d3b05d08bf418/pydantic_core-2.41.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eca1124aced216b2500dc2609eade086d718e8249cb9696660ab447d50a758bd", size = 2132986, upload-time = "2025-10-14T10:23:32.057Z" }, + { url = "https://files.pythonhosted.org/packages/17/c8/629e88920171173f6049386cc71f893dff03209a9ef32b4d2f7e7c264bcf/pydantic_core-2.41.4-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6c9024169becccf0cb470ada03ee578d7348c119a0d42af3dcf9eda96e3a247c", size = 2187516, upload-time = "2025-10-14T10:23:34.871Z" }, + { url = "https://files.pythonhosted.org/packages/2e/0f/4f2734688d98488782218ca61bcc118329bf5de05bb7fe3adc7dd79b0b86/pydantic_core-2.41.4-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:26895a4268ae5a2849269f4991cdc97236e4b9c010e51137becf25182daac405", size = 2146146, upload-time = "2025-10-14T10:23:37.342Z" }, + { url = "https://files.pythonhosted.org/packages/ed/f2/ab385dbd94a052c62224b99cf99002eee99dbec40e10006c78575aead256/pydantic_core-2.41.4-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:ca4df25762cf71308c446e33c9b1fdca2923a3f13de616e2a949f38bf21ff5a8", size = 2311296, upload-time = "2025-10-14T10:23:40.145Z" }, + { url = "https://files.pythonhosted.org/packages/fc/8e/e4f12afe1beeb9823bba5375f8f258df0cc61b056b0195fb1cf9f62a1a58/pydantic_core-2.41.4-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:5a28fcedd762349519276c36634e71853b4541079cab4acaaac60c4421827308", size = 2315386, upload-time = "2025-10-14T10:23:42.624Z" }, + { url = "https://files.pythonhosted.org/packages/48/f7/925f65d930802e3ea2eb4d5afa4cb8730c8dc0d2cb89a59dc4ed2fcb2d74/pydantic_core-2.41.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:c173ddcd86afd2535e2b695217e82191580663a1d1928239f877f5a1649ef39f", size = 2147775, upload-time = "2025-10-14T10:23:45.406Z" }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.15.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" }, +] + +[[package]] +name = "urllib3" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185, upload-time = "2025-06-18T14:07:41.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" }, +] From ed77923e52f14deecdd21ddae69473a7f64b9f0a Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 16:36:25 +0100 Subject: [PATCH 8/9] Update tests --- .github/workflows/python.yml | 16 +- .openapi-generator/FILES | 402 ----------------------------------- pyproject.toml | 6 + uv.lock | 197 +++++++++++++++++ 4 files changed, 207 insertions(+), 414 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index b994989f..3311f04a 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,15 +1,9 @@ -# NOTE: This file is auto generated by OpenAPI Generator. -# URL: https://openapi-generator.tech -# -# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - name: koyeb Python package on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest strategy: matrix: @@ -23,18 +17,16 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade uv pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi - name: Lint with flake8 # disable for now, as there are many pydantic errors if: false run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + uv run pytest diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 961ec2ee..9e76dc5b 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -812,406 +812,4 @@ koyeb/api/models/verify_docker_image_reply.py koyeb/api/models/verify_docker_image_reply_err_code.py koyeb/api/rest.py koyeb/api/test/__init__.py -koyeb/api/test/test_accept_organization_invitation_reply.py -koyeb/api/test/test_action.py -koyeb/api/test/test_activity.py -koyeb/api/test/test_activity_api.py -koyeb/api/test/test_activity_list.py -koyeb/api/test/test_app.py -koyeb/api/test/test_app_event.py -koyeb/api/test/test_app_list_item.py -koyeb/api/test/test_app_status.py -koyeb/api/test/test_app_usage.py -koyeb/api/test/test_apps_api.py -koyeb/api/test/test_apps_summary.py -koyeb/api/test/test_archive.py -koyeb/api/test/test_archive_deployment_metadata.py -koyeb/api/test/test_archive_source.py -koyeb/api/test/test_archives_api.py -koyeb/api/test/test_auto_release.py -koyeb/api/test/test_auto_release_group.py -koyeb/api/test/test_autocomplete_reply.py -koyeb/api/test/test_autocomplete_request.py -koyeb/api/test/test_availability_level.py -koyeb/api/test/test_azure_container_registry_configuration.py -koyeb/api/test/test_billing_api.py -koyeb/api/test/test_budget.py -koyeb/api/test/test_buildpack_builder.py -koyeb/api/test/test_canny_auth_reply.py -koyeb/api/test/test_catalog_datacenters_api.py -koyeb/api/test/test_catalog_gpu_details.py -koyeb/api/test/test_catalog_instance.py -koyeb/api/test/test_catalog_instance_list_item.py -koyeb/api/test/test_catalog_instance_usage_api.py -koyeb/api/test/test_catalog_instances_api.py -koyeb/api/test/test_catalog_regions_api.py -koyeb/api/test/test_catalog_usage.py -koyeb/api/test/test_clear_idenfy_verification_result_request.py -koyeb/api/test/test_compose_api.py -koyeb/api/test/test_compose_reply.py -koyeb/api/test/test_config_file.py -koyeb/api/test/test_confirm_payment_authorization_reply.py -koyeb/api/test/test_coupons_api.py -koyeb/api/test/test_create_access_token_reply.py -koyeb/api/test/test_create_access_token_request.py -koyeb/api/test/test_create_account_request.py -koyeb/api/test/test_create_app.py -koyeb/api/test/test_create_app_reply.py -koyeb/api/test/test_create_archive.py -koyeb/api/test/test_create_archive_reply.py -koyeb/api/test/test_create_budget_reply.py -koyeb/api/test/test_create_compose.py -koyeb/api/test/test_create_credential.py -koyeb/api/test/test_create_credential_reply.py -koyeb/api/test/test_create_domain.py -koyeb/api/test/test_create_domain_reply.py -koyeb/api/test/test_create_organization_invitation_reply.py -koyeb/api/test/test_create_organization_invitation_request.py -koyeb/api/test/test_create_organization_reply.py -koyeb/api/test/test_create_organization_request.py -koyeb/api/test/test_create_payment_authorization_reply.py -koyeb/api/test/test_create_persistent_volume_reply.py -koyeb/api/test/test_create_persistent_volume_request.py -koyeb/api/test/test_create_secret.py -koyeb/api/test/test_create_secret_reply.py -koyeb/api/test/test_create_service.py -koyeb/api/test/test_create_service_reply.py -koyeb/api/test/test_create_snapshot_reply.py -koyeb/api/test/test_create_snapshot_request.py -koyeb/api/test/test_create_stage_attempt_request.py -koyeb/api/test/test_credential.py -koyeb/api/test/test_credential_type.py -koyeb/api/test/test_credentials_api.py -koyeb/api/test/test_database_deployment_metadata.py -koyeb/api/test/test_database_role_password.py -koyeb/api/test/test_database_source.py -koyeb/api/test/test_database_usage.py -koyeb/api/test/test_database_usage_details.py -koyeb/api/test/test_datacenter_list_item.py -koyeb/api/test/test_deactivate_organization_reply.py -koyeb/api/test/test_deactivate_organization_request.py -koyeb/api/test/test_declare_stage_progress_request.py -koyeb/api/test/test_declare_step_progress_request.py -koyeb/api/test/test_decline_organization_invitation_reply.py -koyeb/api/test/test_delete_organization_reply.py -koyeb/api/test/test_delete_persistent_volume_reply.py -koyeb/api/test/test_delete_snapshot_reply.py -koyeb/api/test/test_delete_user_reply.py -koyeb/api/test/test_deployment.py -koyeb/api/test/test_deployment_database_info.py -koyeb/api/test/test_deployment_definition.py -koyeb/api/test/test_deployment_definition_type.py -koyeb/api/test/test_deployment_env.py -koyeb/api/test/test_deployment_event.py -koyeb/api/test/test_deployment_health_check.py -koyeb/api/test/test_deployment_instance_type.py -koyeb/api/test/test_deployment_list_item.py -koyeb/api/test/test_deployment_metadata.py -koyeb/api/test/test_deployment_neon_postgres_database_info.py -koyeb/api/test/test_deployment_neon_postgres_database_info_role.py -koyeb/api/test/test_deployment_port.py -koyeb/api/test/test_deployment_provisioning_info.py -koyeb/api/test/test_deployment_provisioning_info_stage.py -koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py -koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py -koyeb/api/test/test_deployment_provisioning_info_stage_status.py -koyeb/api/test/test_deployment_proxy_port.py -koyeb/api/test/test_deployment_proxy_port_metadata.py -koyeb/api/test/test_deployment_role.py -koyeb/api/test/test_deployment_route.py -koyeb/api/test/test_deployment_scaling.py -koyeb/api/test/test_deployment_scaling_target.py -koyeb/api/test/test_deployment_scaling_target_average_cpu.py -koyeb/api/test/test_deployment_scaling_target_average_mem.py -koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py -koyeb/api/test/test_deployment_scaling_target_requests_per_second.py -koyeb/api/test/test_deployment_scaling_target_requests_response_time.py -koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py -koyeb/api/test/test_deployment_status.py -koyeb/api/test/test_deployment_strategy.py -koyeb/api/test/test_deployment_strategy_type.py -koyeb/api/test/test_deployment_volume.py -koyeb/api/test/test_deployments_api.py -koyeb/api/test/test_desired_deployment.py -koyeb/api/test/test_desired_deployment_group.py -koyeb/api/test/test_digital_ocean_registry_configuration.py -koyeb/api/test/test_discourse_auth_reply.py -koyeb/api/test/test_discourse_auth_request.py -koyeb/api/test/test_docker_builder.py -koyeb/api/test/test_docker_helper_api.py -koyeb/api/test/test_docker_hub_registry_configuration.py -koyeb/api/test/test_docker_source.py -koyeb/api/test/test_domain.py -koyeb/api/test/test_domain_load_balancer_koyeb.py -koyeb/api/test/test_domain_load_balancer_quotas.py -koyeb/api/test/test_domain_status.py -koyeb/api/test/test_domain_type.py -koyeb/api/test/test_domains_api.py -koyeb/api/test/test_domains_summary.py -koyeb/api/test/test_env.py -koyeb/api/test/test_error.py -koyeb/api/test/test_error_field.py -koyeb/api/test/test_error_with_fields.py -koyeb/api/test/test_exec_command_io.py -koyeb/api/test/test_exec_command_reply.py -koyeb/api/test/test_exec_command_request_body.py -koyeb/api/test/test_exec_command_request_id_type.py -koyeb/api/test/test_exec_command_request_terminal_size.py -koyeb/api/test/test_gcp_container_registry_configuration.py -koyeb/api/test/test_get_app_reply.py -koyeb/api/test/test_get_budget_reply.py -koyeb/api/test/test_get_catalog_instance_reply.py -koyeb/api/test/test_get_credential_reply.py -koyeb/api/test/test_get_deployment_reply.py -koyeb/api/test/test_get_deployment_scaling_reply.py -koyeb/api/test/test_get_deployment_scaling_reply_item.py -koyeb/api/test/test_get_domain_reply.py -koyeb/api/test/test_get_github_installation_reply.py -koyeb/api/test/test_get_idenfy_token_reply.py -koyeb/api/test/test_get_instance_reply.py -koyeb/api/test/test_get_intercom_profile_reply.py -koyeb/api/test/test_get_metrics_reply.py -koyeb/api/test/test_get_metrics_reply_metric.py -koyeb/api/test/test_get_o_auth_options_reply.py -koyeb/api/test/test_get_organization_invitation_reply.py -koyeb/api/test/test_get_organization_reply.py -koyeb/api/test/test_get_organization_summary_reply.py -koyeb/api/test/test_get_organization_usage_details_reply.py -koyeb/api/test/test_get_organization_usage_reply.py -koyeb/api/test/test_get_payment_method_reply.py -koyeb/api/test/test_get_persistent_volume_reply.py -koyeb/api/test/test_get_quotas_reply.py -koyeb/api/test/test_get_region_reply.py -koyeb/api/test/test_get_regional_deployment_reply.py -koyeb/api/test/test_get_secret_reply.py -koyeb/api/test/test_get_service_reply.py -koyeb/api/test/test_get_snapshot_reply.py -koyeb/api/test/test_get_subscription_reply.py -koyeb/api/test/test_get_user_organization_invitation_reply.py -koyeb/api/test/test_get_user_settings_reply.py -koyeb/api/test/test_git_deployment_metadata.py -koyeb/api/test/test_git_env_deployment_metadata.py -koyeb/api/test/test_git_hub_registry_configuration.py -koyeb/api/test/test_git_lab_registry_configuration.py -koyeb/api/test/test_git_source.py -koyeb/api/test/test_github_installation_reply.py -koyeb/api/test/test_github_installation_request.py -koyeb/api/test/test_google_protobuf_any.py -koyeb/api/test/test_google_protobuf_null_value.py -koyeb/api/test/test_google_rpc_status.py -koyeb/api/test/test_has_unpaid_invoices_reply.py -koyeb/api/test/test_http_header.py -koyeb/api/test/test_http_health_check.py -koyeb/api/test/test_instance.py -koyeb/api/test/test_instance_availability.py -koyeb/api/test/test_instance_event.py -koyeb/api/test/test_instance_list_item.py -koyeb/api/test/test_instance_status.py -koyeb/api/test/test_instance_usage.py -koyeb/api/test/test_instances_api.py -koyeb/api/test/test_instances_summary.py -koyeb/api/test/test_intercom_api.py -koyeb/api/test/test_invite_api.py -koyeb/api/test/test_invite_user_request.py -koyeb/api/test/test_kgitproxy_branch.py -koyeb/api/test/test_kgitproxy_git_hub_repository.py -koyeb/api/test/test_kgitproxy_github_installation_status.py -koyeb/api/test/test_kgitproxy_indexing_status.py -koyeb/api/test/test_kgitproxy_list_branches_reply.py -koyeb/api/test/test_kgitproxy_list_repositories_reply.py -koyeb/api/test/test_kgitproxy_repository.py -koyeb/api/test/test_kgitproxy_repository_provider.py -koyeb/api/test/test_ksearch_app.py -koyeb/api/test/test_ksearch_global_deployment.py -koyeb/api/test/test_ksearch_instance.py -koyeb/api/test/test_ksearch_organization.py -koyeb/api/test/test_ksearch_regional_deployment.py -koyeb/api/test/test_ksearch_search_reply.py -koyeb/api/test/test_ksearch_service.py -koyeb/api/test/test_ksearch_user.py -koyeb/api/test/test_list_app_events_reply.py -koyeb/api/test/test_list_apps_reply.py -koyeb/api/test/test_list_catalog_instances_reply.py -koyeb/api/test/test_list_credentials_reply.py -koyeb/api/test/test_list_datacenters_reply.py -koyeb/api/test/test_list_deployment_events_reply.py -koyeb/api/test/test_list_deployments_reply.py -koyeb/api/test/test_list_domains_reply.py -koyeb/api/test/test_list_instance_events_reply.py -koyeb/api/test/test_list_instances_reply.py -koyeb/api/test/test_list_organization_invitations_reply.py -koyeb/api/test/test_list_organization_members_reply.py -koyeb/api/test/test_list_payment_methods_reply.py -koyeb/api/test/test_list_persistent_volume_events_reply.py -koyeb/api/test/test_list_persistent_volumes_reply.py -koyeb/api/test/test_list_regional_deployment_events_reply.py -koyeb/api/test/test_list_regional_deployments_reply.py -koyeb/api/test/test_list_regions_reply.py -koyeb/api/test/test_list_secrets_reply.py -koyeb/api/test/test_list_service_events_reply.py -koyeb/api/test/test_list_services_reply.py -koyeb/api/test/test_list_snapshots_reply.py -koyeb/api/test/test_list_usage_reply.py -koyeb/api/test/test_list_user_organization_invitations_reply.py -koyeb/api/test/test_list_user_organizations_reply.py -koyeb/api/test/test_log_entry.py -koyeb/api/test/test_login_method_reply.py -koyeb/api/test/test_login_method_reply_method.py -koyeb/api/test/test_login_reply.py -koyeb/api/test/test_login_request.py -koyeb/api/test/test_logs_api.py -koyeb/api/test/test_manage_reply.py -koyeb/api/test/test_members_summary.py -koyeb/api/test/test_metric_name.py -koyeb/api/test/test_metrics_api.py -koyeb/api/test/test_neon_postgres_database.py -koyeb/api/test/test_neon_postgres_database_deployment_metadata.py -koyeb/api/test/test_neon_postgres_database_neon_database.py -koyeb/api/test/test_neon_postgres_database_neon_role.py -koyeb/api/test/test_neon_postgres_summary.py -koyeb/api/test/test_next_invoice_reply.py -koyeb/api/test/test_next_invoice_reply_discount.py -koyeb/api/test/test_next_invoice_reply_discount_type.py -koyeb/api/test/test_next_invoice_reply_line.py -koyeb/api/test/test_next_invoice_reply_line_period.py -koyeb/api/test/test_next_invoice_reply_line_price.py -koyeb/api/test/test_notification.py -koyeb/api/test/test_notification_list.py -koyeb/api/test/test_o_auth_callback_reply.py -koyeb/api/test/test_o_auth_callback_request.py -koyeb/api/test/test_o_auth_provider.py -koyeb/api/test/test_object.py -koyeb/api/test/test_organization.py -koyeb/api/test/test_organization_api.py -koyeb/api/test/test_organization_confirmations_api.py -koyeb/api/test/test_organization_deactivation_reason.py -koyeb/api/test/test_organization_detailed_status.py -koyeb/api/test/test_organization_invitation.py -koyeb/api/test/test_organization_invitation_status.py -koyeb/api/test/test_organization_invitations_api.py -koyeb/api/test/test_organization_member.py -koyeb/api/test/test_organization_member_status.py -koyeb/api/test/test_organization_members_api.py -koyeb/api/test/test_organization_quotas_api.py -koyeb/api/test/test_organization_status.py -koyeb/api/test/test_organization_summary.py -koyeb/api/test/test_payment_method.py -koyeb/api/test/test_payment_method_status.py -koyeb/api/test/test_payment_methods_api.py -koyeb/api/test/test_period_usage.py -koyeb/api/test/test_persistent_volume.py -koyeb/api/test/test_persistent_volume_backing_store.py -koyeb/api/test/test_persistent_volume_event.py -koyeb/api/test/test_persistent_volume_quotas.py -koyeb/api/test/test_persistent_volume_status.py -koyeb/api/test/test_persistent_volumes_api.py -koyeb/api/test/test_plan.py -koyeb/api/test/test_port.py -koyeb/api/test/test_private_registry_configuration.py -koyeb/api/test/test_profile_api.py -koyeb/api/test/test_provisioning_api.py -koyeb/api/test/test_proxy_port_protocol.py -koyeb/api/test/test_public_organization.py -koyeb/api/test/test_public_user.py -koyeb/api/test/test_query_logs_reply.py -koyeb/api/test/test_query_logs_reply_pagination.py -koyeb/api/test/test_quotas.py -koyeb/api/test/test_quotas_api.py -koyeb/api/test/test_reactivate_organization_reply.py -koyeb/api/test/test_redeem_coupon_request.py -koyeb/api/test/test_redeploy_reply.py -koyeb/api/test/test_redeploy_request_info.py -koyeb/api/test/test_region.py -koyeb/api/test/test_region_availability.py -koyeb/api/test/test_region_list_item.py -koyeb/api/test/test_region_usage.py -koyeb/api/test/test_regional_deployment.py -koyeb/api/test/test_regional_deployment_definition.py -koyeb/api/test/test_regional_deployment_definition_type.py -koyeb/api/test/test_regional_deployment_event.py -koyeb/api/test/test_regional_deployment_list_item.py -koyeb/api/test/test_regional_deployment_role.py -koyeb/api/test/test_regional_deployment_status.py -koyeb/api/test/test_regional_deployment_volume.py -koyeb/api/test/test_regional_deployments_api.py -koyeb/api/test/test_remove_organization_member_reply.py -koyeb/api/test/test_repositories_api.py -koyeb/api/test/test_resend_organization_invitation_reply.py -koyeb/api/test/test_reset_password_request.py -koyeb/api/test/test_reveal_secret_reply.py -koyeb/api/test/test_review_organization_capacity_reply.py -koyeb/api/test/test_review_organization_capacity_request.py -koyeb/api/test/test_route.py -koyeb/api/test/test_sample.py -koyeb/api/test/test_scale_to_zero_quotas.py -koyeb/api/test/test_scaling.py -koyeb/api/test/test_search_api.py -koyeb/api/test/test_secret.py -koyeb/api/test/test_secret_type.py -koyeb/api/test/test_secrets_api.py -koyeb/api/test/test_secrets_summary.py -koyeb/api/test/test_service.py -koyeb/api/test/test_service_event.py -koyeb/api/test/test_service_list_item.py -koyeb/api/test/test_service_state.py -koyeb/api/test/test_service_status.py -koyeb/api/test/test_service_summary.py -koyeb/api/test/test_service_type.py -koyeb/api/test/test_service_usage.py -koyeb/api/test/test_services_api.py -koyeb/api/test/test_sessions_api.py -koyeb/api/test/test_snapshot.py -koyeb/api/test/test_snapshot_status.py -koyeb/api/test/test_snapshot_type.py -koyeb/api/test/test_snapshots_api.py -koyeb/api/test/test_sso_api.py -koyeb/api/test/test_stream_result_of_exec_command_reply.py -koyeb/api/test/test_stream_result_of_log_entry.py -koyeb/api/test/test_subscription.py -koyeb/api/test/test_subscription_payment_failure.py -koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py -koyeb/api/test/test_subscription_status.py -koyeb/api/test/test_subscriptions_api.py -koyeb/api/test/test_summary_api.py -koyeb/api/test/test_tcp_health_check.py -koyeb/api/test/test_token.py -koyeb/api/test/test_trigger_deployment_metadata.py -koyeb/api/test/test_trigger_deployment_metadata_actor_type.py -koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py -koyeb/api/test/test_trigger_git_deployment_metadata.py -koyeb/api/test/test_trigger_git_deployment_metadata_provider.py -koyeb/api/test/test_update_app.py -koyeb/api/test/test_update_app_reply.py -koyeb/api/test/test_update_budget_reply.py -koyeb/api/test/test_update_budget_request.py -koyeb/api/test/test_update_credential_reply.py -koyeb/api/test/test_update_domain.py -koyeb/api/test/test_update_domain_reply.py -koyeb/api/test/test_update_organization_plan_reply.py -koyeb/api/test/test_update_organization_plan_request.py -koyeb/api/test/test_update_organization_reply.py -koyeb/api/test/test_update_password_request.py -koyeb/api/test/test_update_persistent_volume_reply.py -koyeb/api/test/test_update_persistent_volume_request.py -koyeb/api/test/test_update_secret_reply.py -koyeb/api/test/test_update_service.py -koyeb/api/test/test_update_service_reply.py -koyeb/api/test/test_update_snapshot_reply.py -koyeb/api/test/test_update_snapshot_request.py -koyeb/api/test/test_update_user_request_user_update_body.py -koyeb/api/test/test_update_user_settings_reply.py -koyeb/api/test/test_update_user_settings_request.py -koyeb/api/test/test_upsert_signup_qualification_reply.py -koyeb/api/test/test_upsert_signup_qualification_request.py -koyeb/api/test/test_usage.py -koyeb/api/test/test_usage_details.py -koyeb/api/test/test_usages_api.py -koyeb/api/test/test_user.py -koyeb/api/test/test_user_flags.py -koyeb/api/test/test_user_reply.py -koyeb/api/test/test_user_role_role.py -koyeb/api/test/test_user_settings.py -koyeb/api/test/test_users_api.py -koyeb/api/test/test_verify_docker_image_reply.py -koyeb/api/test/test_verify_docker_image_reply_err_code.py koyeb/api_README.md diff --git a/pyproject.toml b/pyproject.toml index e7173668..6e0683e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,12 @@ packages = ["koyeb"] requires = ["setuptools"] build-backend = "setuptools.build_meta" +[dependency-groups] +dev = [ + "flake8>=7.3.0", + "pytest>=8.4.2", +] + [tool.pylint.'MESSAGES CONTROL'] extension-pkg-whitelist = "pydantic" diff --git a/uv.lock b/uv.lock index 58af2921..5d1dc4ae 100644 --- a/uv.lock +++ b/uv.lock @@ -1,6 +1,10 @@ version = 1 revision = 3 requires-python = ">=3.9" +resolution-markers = [ + "python_full_version >= '3.10'", + "python_full_version < '3.10'", +] [[package]] name = "annotated-types" @@ -11,6 +15,65 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, ] +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0b/9f/a65090624ecf468cdca03533906e7c69ed7588582240cfe7cc9e770b50eb/exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88", size = 29749, upload-time = "2025-05-10T17:42:51.123Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/36/f4/c6e662dade71f56cd2f3735141b265c3c79293c109549c1e6933b0651ffc/exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10", size = 16674, upload-time = "2025-05-10T17:42:49.33Z" }, +] + +[[package]] +name = "flake8" +version = "7.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mccabe" }, + { name = "pycodestyle" }, + { name = "pyflakes" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9b/af/fbfe3c4b5a657d79e5c47a2827a362f9e1b763336a52f926126aa6dc7123/flake8-7.3.0.tar.gz", hash = "sha256:fe044858146b9fc69b551a4b490d69cf960fcb78ad1edcb84e7fbb1b4a8e3872", size = 48326, upload-time = "2025-06-20T19:31:35.838Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9f/56/13ab06b4f93ca7cac71078fbe37fcea175d3216f31f85c3168a6bbd0bb9a/flake8-7.3.0-py2.py3-none-any.whl", hash = "sha256:b9696257b9ce8beb888cdbe31cf885c90d31928fe202be0889a7cdafad32f01e", size = 57922, upload-time = "2025-06-20T19:31:34.425Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793, upload-time = "2025-03-19T20:09:59.721Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050, upload-time = "2025-03-19T20:10:01.071Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, +] + [[package]] name = "koyeb-sdk" version = "1.0.0" @@ -22,6 +85,12 @@ dependencies = [ { name = "urllib3" }, ] +[package.dev-dependencies] +dev = [ + { name = "flake8" }, + { name = "pytest" }, +] + [package.metadata] requires-dist = [ { name = "pydantic", specifier = ">=2" }, @@ -30,6 +99,48 @@ requires-dist = [ { name = "urllib3", specifier = ">=2.1.0,<3.0.0" }, ] +[package.metadata.requires-dev] +dev = [ + { name = "flake8", specifier = ">=7.3.0" }, + { name = "pytest", specifier = ">=8.4.2" }, +] + +[[package]] +name = "mccabe" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e7/ff/0ffefdcac38932a54d2b5eed4e0ba8a408f215002cd178ad1df0f2806ff8/mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325", size = 9658, upload-time = "2022-01-24T01:14:51.113Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/27/1a/1f68f9ba0c207934b35b86a8ca3aad8395a3d6dd7921c0686e23853ff5a9/mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e", size = 7350, upload-time = "2022-01-24T01:14:49.62Z" }, +] + +[[package]] +name = "packaging" +version = "25.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload-time = "2025-04-19T11:48:59.673Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, +] + +[[package]] +name = "pycodestyle" +version = "2.14.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/11/e0/abfd2a0d2efe47670df87f3e3a0e2edda42f055053c85361f19c0e2c1ca8/pycodestyle-2.14.0.tar.gz", hash = "sha256:c4b5b517d278089ff9d0abdec919cd97262a3367449ea1c8b49b91529167b783", size = 39472, upload-time = "2025-06-20T18:49:48.75Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d7/27/a58ddaf8c588a3ef080db9d0b7e0b97215cee3a45df74f3a94dbbf5c893a/pycodestyle-2.14.0-py2.py3-none-any.whl", hash = "sha256:dd6bf7cb4ee77f8e016f9c8e74a35ddd9f67e1d5fd4184d86c3b98e07099f42d", size = 31594, upload-time = "2025-06-20T18:49:47.491Z" }, +] + [[package]] name = "pydantic" version = "2.12.3" @@ -172,6 +283,43 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/48/f7/925f65d930802e3ea2eb4d5afa4cb8730c8dc0d2cb89a59dc4ed2fcb2d74/pydantic_core-2.41.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:c173ddcd86afd2535e2b695217e82191580663a1d1928239f877f5a1649ef39f", size = 2147775, upload-time = "2025-10-14T10:23:45.406Z" }, ] +[[package]] +name = "pyflakes" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/45/dc/fd034dc20b4b264b3d015808458391acbf9df40b1e54750ef175d39180b1/pyflakes-3.4.0.tar.gz", hash = "sha256:b24f96fafb7d2ab0ec5075b7350b3d2d2218eab42003821c06344973d3ea2f58", size = 64669, upload-time = "2025-06-20T18:45:27.834Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c2/2f/81d580a0fb83baeb066698975cb14a618bdbed7720678566f1b046a95fe8/pyflakes-3.4.0-py2.py3-none-any.whl", hash = "sha256:f742a7dbd0d9cb9ea41e9a24a918996e8170c799fa528688d40dd582c8265f4f", size = 63551, upload-time = "2025-06-20T18:45:26.937Z" }, +] + +[[package]] +name = "pygments" +version = "2.19.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" }, +] + +[[package]] +name = "pytest" +version = "8.4.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "iniconfig", version = "2.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "iniconfig", version = "2.3.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a3/5c/00a0e072241553e1a7496d638deababa67c5058571567b92a7eaa258397c/pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01", size = 1519618, upload-time = "2025-09-04T14:34:22.711Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a8/a4/20da314d277121d6534b3a980b29035dcd51e6744bd79075a6ce8fa4eb8d/pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79", size = 365750, upload-time = "2025-09-04T14:34:20.226Z" }, +] + [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -193,6 +341,55 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, ] +[[package]] +name = "tomli" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/52/ed/3f73f72945444548f33eba9a87fc7a6e969915e7b1acc8260b30e1f76a2f/tomli-2.3.0.tar.gz", hash = "sha256:64be704a875d2a59753d80ee8a533c3fe183e3f06807ff7dc2232938ccb01549", size = 17392, upload-time = "2025-10-08T22:01:47.119Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/2e/299f62b401438d5fe1624119c723f5d877acc86a4c2492da405626665f12/tomli-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:88bd15eb972f3664f5ed4b57c1634a97153b4bac4479dcb6a495f41921eb7f45", size = 153236, upload-time = "2025-10-08T22:01:00.137Z" }, + { url = "https://files.pythonhosted.org/packages/86/7f/d8fffe6a7aefdb61bced88fcb5e280cfd71e08939da5894161bd71bea022/tomli-2.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:883b1c0d6398a6a9d29b508c331fa56adbcdff647f6ace4dfca0f50e90dfd0ba", size = 148084, upload-time = "2025-10-08T22:01:01.63Z" }, + { url = "https://files.pythonhosted.org/packages/47/5c/24935fb6a2ee63e86d80e4d3b58b222dafaf438c416752c8b58537c8b89a/tomli-2.3.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d1381caf13ab9f300e30dd8feadb3de072aeb86f1d34a8569453ff32a7dea4bf", size = 234832, upload-time = "2025-10-08T22:01:02.543Z" }, + { url = "https://files.pythonhosted.org/packages/89/da/75dfd804fc11e6612846758a23f13271b76d577e299592b4371a4ca4cd09/tomli-2.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a0e285d2649b78c0d9027570d4da3425bdb49830a6156121360b3f8511ea3441", size = 242052, upload-time = "2025-10-08T22:01:03.836Z" }, + { url = "https://files.pythonhosted.org/packages/70/8c/f48ac899f7b3ca7eb13af73bacbc93aec37f9c954df3c08ad96991c8c373/tomli-2.3.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a154a9ae14bfcf5d8917a59b51ffd5a3ac1fd149b71b47a3a104ca4edcfa845", size = 239555, upload-time = "2025-10-08T22:01:04.834Z" }, + { url = "https://files.pythonhosted.org/packages/ba/28/72f8afd73f1d0e7829bfc093f4cb98ce0a40ffc0cc997009ee1ed94ba705/tomli-2.3.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:74bf8464ff93e413514fefd2be591c3b0b23231a77f901db1eb30d6f712fc42c", size = 245128, upload-time = "2025-10-08T22:01:05.84Z" }, + { url = "https://files.pythonhosted.org/packages/b6/eb/a7679c8ac85208706d27436e8d421dfa39d4c914dcf5fa8083a9305f58d9/tomli-2.3.0-cp311-cp311-win32.whl", hash = "sha256:00b5f5d95bbfc7d12f91ad8c593a1659b6387b43f054104cda404be6bda62456", size = 96445, upload-time = "2025-10-08T22:01:06.896Z" }, + { url = "https://files.pythonhosted.org/packages/0a/fe/3d3420c4cb1ad9cb462fb52967080575f15898da97e21cb6f1361d505383/tomli-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:4dc4ce8483a5d429ab602f111a93a6ab1ed425eae3122032db7e9acf449451be", size = 107165, upload-time = "2025-10-08T22:01:08.107Z" }, + { url = "https://files.pythonhosted.org/packages/ff/b7/40f36368fcabc518bb11c8f06379a0fd631985046c038aca08c6d6a43c6e/tomli-2.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d7d86942e56ded512a594786a5ba0a5e521d02529b3826e7761a05138341a2ac", size = 154891, upload-time = "2025-10-08T22:01:09.082Z" }, + { url = "https://files.pythonhosted.org/packages/f9/3f/d9dd692199e3b3aab2e4e4dd948abd0f790d9ded8cd10cbaae276a898434/tomli-2.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:73ee0b47d4dad1c5e996e3cd33b8a76a50167ae5f96a2607cbe8cc773506ab22", size = 148796, upload-time = "2025-10-08T22:01:10.266Z" }, + { url = "https://files.pythonhosted.org/packages/60/83/59bff4996c2cf9f9387a0f5a3394629c7efa5ef16142076a23a90f1955fa/tomli-2.3.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:792262b94d5d0a466afb5bc63c7daa9d75520110971ee269152083270998316f", size = 242121, upload-time = "2025-10-08T22:01:11.332Z" }, + { url = "https://files.pythonhosted.org/packages/45/e5/7c5119ff39de8693d6baab6c0b6dcb556d192c165596e9fc231ea1052041/tomli-2.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4f195fe57ecceac95a66a75ac24d9d5fbc98ef0962e09b2eddec5d39375aae52", size = 250070, upload-time = "2025-10-08T22:01:12.498Z" }, + { url = "https://files.pythonhosted.org/packages/45/12/ad5126d3a278f27e6701abde51d342aa78d06e27ce2bb596a01f7709a5a2/tomli-2.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e31d432427dcbf4d86958c184b9bfd1e96b5b71f8eb17e6d02531f434fd335b8", size = 245859, upload-time = "2025-10-08T22:01:13.551Z" }, + { url = "https://files.pythonhosted.org/packages/fb/a1/4d6865da6a71c603cfe6ad0e6556c73c76548557a8d658f9e3b142df245f/tomli-2.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7b0882799624980785240ab732537fcfc372601015c00f7fc367c55308c186f6", size = 250296, upload-time = "2025-10-08T22:01:14.614Z" }, + { url = "https://files.pythonhosted.org/packages/a0/b7/a7a7042715d55c9ba6e8b196d65d2cb662578b4d8cd17d882d45322b0d78/tomli-2.3.0-cp312-cp312-win32.whl", hash = "sha256:ff72b71b5d10d22ecb084d345fc26f42b5143c5533db5e2eaba7d2d335358876", size = 97124, upload-time = "2025-10-08T22:01:15.629Z" }, + { url = "https://files.pythonhosted.org/packages/06/1e/f22f100db15a68b520664eb3328fb0ae4e90530887928558112c8d1f4515/tomli-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:1cb4ed918939151a03f33d4242ccd0aa5f11b3547d0cf30f7c74a408a5b99878", size = 107698, upload-time = "2025-10-08T22:01:16.51Z" }, + { url = "https://files.pythonhosted.org/packages/89/48/06ee6eabe4fdd9ecd48bf488f4ac783844fd777f547b8d1b61c11939974e/tomli-2.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5192f562738228945d7b13d4930baffda67b69425a7f0da96d360b0a3888136b", size = 154819, upload-time = "2025-10-08T22:01:17.964Z" }, + { url = "https://files.pythonhosted.org/packages/f1/01/88793757d54d8937015c75dcdfb673c65471945f6be98e6a0410fba167ed/tomli-2.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:be71c93a63d738597996be9528f4abe628d1adf5e6eb11607bc8fe1a510b5dae", size = 148766, upload-time = "2025-10-08T22:01:18.959Z" }, + { url = "https://files.pythonhosted.org/packages/42/17/5e2c956f0144b812e7e107f94f1cc54af734eb17b5191c0bbfb72de5e93e/tomli-2.3.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c4665508bcbac83a31ff8ab08f424b665200c0e1e645d2bd9ab3d3e557b6185b", size = 240771, upload-time = "2025-10-08T22:01:20.106Z" }, + { url = "https://files.pythonhosted.org/packages/d5/f4/0fbd014909748706c01d16824eadb0307115f9562a15cbb012cd9b3512c5/tomli-2.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4021923f97266babc6ccab9f5068642a0095faa0a51a246a6a02fccbb3514eaf", size = 248586, upload-time = "2025-10-08T22:01:21.164Z" }, + { url = "https://files.pythonhosted.org/packages/30/77/fed85e114bde5e81ecf9bc5da0cc69f2914b38f4708c80ae67d0c10180c5/tomli-2.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4ea38c40145a357d513bffad0ed869f13c1773716cf71ccaa83b0fa0cc4e42f", size = 244792, upload-time = "2025-10-08T22:01:22.417Z" }, + { url = "https://files.pythonhosted.org/packages/55/92/afed3d497f7c186dc71e6ee6d4fcb0acfa5f7d0a1a2878f8beae379ae0cc/tomli-2.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ad805ea85eda330dbad64c7ea7a4556259665bdf9d2672f5dccc740eb9d3ca05", size = 248909, upload-time = "2025-10-08T22:01:23.859Z" }, + { url = "https://files.pythonhosted.org/packages/f8/84/ef50c51b5a9472e7265ce1ffc7f24cd4023d289e109f669bdb1553f6a7c2/tomli-2.3.0-cp313-cp313-win32.whl", hash = "sha256:97d5eec30149fd3294270e889b4234023f2c69747e555a27bd708828353ab606", size = 96946, upload-time = "2025-10-08T22:01:24.893Z" }, + { url = "https://files.pythonhosted.org/packages/b2/b7/718cd1da0884f281f95ccfa3a6cc572d30053cba64603f79d431d3c9b61b/tomli-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:0c95ca56fbe89e065c6ead5b593ee64b84a26fca063b5d71a1122bf26e533999", size = 107705, upload-time = "2025-10-08T22:01:26.153Z" }, + { url = "https://files.pythonhosted.org/packages/19/94/aeafa14a52e16163008060506fcb6aa1949d13548d13752171a755c65611/tomli-2.3.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:cebc6fe843e0733ee827a282aca4999b596241195f43b4cc371d64fc6639da9e", size = 154244, upload-time = "2025-10-08T22:01:27.06Z" }, + { url = "https://files.pythonhosted.org/packages/db/e4/1e58409aa78eefa47ccd19779fc6f36787edbe7d4cd330eeeedb33a4515b/tomli-2.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4c2ef0244c75aba9355561272009d934953817c49f47d768070c3c94355c2aa3", size = 148637, upload-time = "2025-10-08T22:01:28.059Z" }, + { url = "https://files.pythonhosted.org/packages/26/b6/d1eccb62f665e44359226811064596dd6a366ea1f985839c566cd61525ae/tomli-2.3.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c22a8bf253bacc0cf11f35ad9808b6cb75ada2631c2d97c971122583b129afbc", size = 241925, upload-time = "2025-10-08T22:01:29.066Z" }, + { url = "https://files.pythonhosted.org/packages/70/91/7cdab9a03e6d3d2bb11beae108da5bdc1c34bdeb06e21163482544ddcc90/tomli-2.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0eea8cc5c5e9f89c9b90c4896a8deefc74f518db5927d0e0e8d4a80953d774d0", size = 249045, upload-time = "2025-10-08T22:01:31.98Z" }, + { url = "https://files.pythonhosted.org/packages/15/1b/8c26874ed1f6e4f1fcfeb868db8a794cbe9f227299402db58cfcc858766c/tomli-2.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b74a0e59ec5d15127acdabd75ea17726ac4c5178ae51b85bfe39c4f8a278e879", size = 245835, upload-time = "2025-10-08T22:01:32.989Z" }, + { url = "https://files.pythonhosted.org/packages/fd/42/8e3c6a9a4b1a1360c1a2a39f0b972cef2cc9ebd56025168c4137192a9321/tomli-2.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b5870b50c9db823c595983571d1296a6ff3e1b88f734a4c8f6fc6188397de005", size = 253109, upload-time = "2025-10-08T22:01:34.052Z" }, + { url = "https://files.pythonhosted.org/packages/22/0c/b4da635000a71b5f80130937eeac12e686eefb376b8dee113b4a582bba42/tomli-2.3.0-cp314-cp314-win32.whl", hash = "sha256:feb0dacc61170ed7ab602d3d972a58f14ee3ee60494292d384649a3dc38ef463", size = 97930, upload-time = "2025-10-08T22:01:35.082Z" }, + { url = "https://files.pythonhosted.org/packages/b9/74/cb1abc870a418ae99cd5c9547d6bce30701a954e0e721821df483ef7223c/tomli-2.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:b273fcbd7fc64dc3600c098e39136522650c49bca95df2d11cf3b626422392c8", size = 107964, upload-time = "2025-10-08T22:01:36.057Z" }, + { url = "https://files.pythonhosted.org/packages/54/78/5c46fff6432a712af9f792944f4fcd7067d8823157949f4e40c56b8b3c83/tomli-2.3.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:940d56ee0410fa17ee1f12b817b37a4d4e4dc4d27340863cc67236c74f582e77", size = 163065, upload-time = "2025-10-08T22:01:37.27Z" }, + { url = "https://files.pythonhosted.org/packages/39/67/f85d9bd23182f45eca8939cd2bc7050e1f90c41f4a2ecbbd5963a1d1c486/tomli-2.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f85209946d1fe94416debbb88d00eb92ce9cd5266775424ff81bc959e001acaf", size = 159088, upload-time = "2025-10-08T22:01:38.235Z" }, + { url = "https://files.pythonhosted.org/packages/26/5a/4b546a0405b9cc0659b399f12b6adb750757baf04250b148d3c5059fc4eb/tomli-2.3.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a56212bdcce682e56b0aaf79e869ba5d15a6163f88d5451cbde388d48b13f530", size = 268193, upload-time = "2025-10-08T22:01:39.712Z" }, + { url = "https://files.pythonhosted.org/packages/42/4f/2c12a72ae22cf7b59a7fe75b3465b7aba40ea9145d026ba41cb382075b0e/tomli-2.3.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5f3ffd1e098dfc032d4d3af5c0ac64f6d286d98bc148698356847b80fa4de1b", size = 275488, upload-time = "2025-10-08T22:01:40.773Z" }, + { url = "https://files.pythonhosted.org/packages/92/04/a038d65dbe160c3aa5a624e93ad98111090f6804027d474ba9c37c8ae186/tomli-2.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e01decd096b1530d97d5d85cb4dff4af2d8347bd35686654a004f8dea20fc67", size = 272669, upload-time = "2025-10-08T22:01:41.824Z" }, + { url = "https://files.pythonhosted.org/packages/be/2f/8b7c60a9d1612a7cbc39ffcca4f21a73bf368a80fc25bccf8253e2563267/tomli-2.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8a35dd0e643bb2610f156cca8db95d213a90015c11fee76c946aa62b7ae7e02f", size = 279709, upload-time = "2025-10-08T22:01:43.177Z" }, + { url = "https://files.pythonhosted.org/packages/7e/46/cc36c679f09f27ded940281c38607716c86cf8ba4a518d524e349c8b4874/tomli-2.3.0-cp314-cp314t-win32.whl", hash = "sha256:a1f7f282fe248311650081faafa5f4732bdbfef5d45fe3f2e702fbc6f2d496e0", size = 107563, upload-time = "2025-10-08T22:01:44.233Z" }, + { url = "https://files.pythonhosted.org/packages/84/ff/426ca8683cf7b753614480484f6437f568fd2fda2edbdf57a2d3d8b27a0b/tomli-2.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:70a251f8d4ba2d9ac2542eecf008b3c8a9fc5c3f9f02c56a9d7952612be2fdba", size = 119756, upload-time = "2025-10-08T22:01:45.234Z" }, + { url = "https://files.pythonhosted.org/packages/77/b8/0135fadc89e73be292b473cb820b4f5a08197779206b33191e801feeae40/tomli-2.3.0-py3-none-any.whl", hash = "sha256:e95b1af3c5b07d9e643909b5abbec77cd9f1217e6d0bca72b0234736b9fb1f1b", size = 14408, upload-time = "2025-10-08T22:01:46.04Z" }, +] + [[package]] name = "typing-extensions" version = "4.15.0" From ddbe143e20a4fba5caa5aafff65a5cc6ce9e708b Mon Sep 17 00:00:00 2001 From: Bastien Chatelard Date: Wed, 29 Oct 2025 16:37:22 +0100 Subject: [PATCH 9/9] Remove unsupported python version --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3311f04a..471d6449 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3