diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index b994989f..471d6449 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -1,19 +1,13 @@
-# 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:
- 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
@@ -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 7ed1ccc7..9e76dc5b 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -1,1216 +1,815 @@
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_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 42447acb..ce8074f4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,22 @@
-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
OPENAPI_GENERATOR_VERSION?=latest
-PACKAGE_VERSION?=2025.7.0
+PACKAGE_VERSION?=1.0.0
-.PHONY: gen
-gen: clean spec/openapi.json
- 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:
black koyeb test
-.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 -L -s $(KOYEB_API)/public.swagger.json > spec/openapi.json
test:
python -m unitest
diff --git a/README.md b/README.md
index ab4ebc9e..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: 2025.7.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/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/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/__init__.py b/koyeb/__init__.py
index 9300dba5..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__ = "2025.7.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/api/deployments_api.py b/koyeb/api/api/deployments_api.py
new file mode 100644
index 00000000..fe21409b
--- /dev/null
+++ b/koyeb/api/api/deployments_api.py
@@ -0,0 +1,1601 @@
+# 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, StrictInt, StrictStr, field_validator
+from typing import Any, Dict, List, Optional
+from typing_extensions import Annotated
+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.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class DeploymentsApi:
+ """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 cancel_deployment(
+ self,
+ 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)]
+ ]
+ ] = 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,
+ ) -> object:
+ """Cancel Deployment
+
+ Deployment cancellation is allowed for the following status: - pending - provisioning - scheduled
+
+ :param id: The id of the deployment to cancel. (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._cancel_deployment_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ 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.")],
+ _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[object]:
+ """Cancel Deployment
+
+ Deployment cancellation is allowed for the following status: - pending - provisioning - scheduled
+
+ :param id: The id of the deployment to cancel. (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._cancel_deployment_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ 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.")],
+ _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:
+ """Cancel Deployment
+
+ Deployment cancellation is allowed for the following status: - pending - provisioning - scheduled
+
+ :param id: The id of the deployment to cancel. (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._cancel_deployment_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': "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
+ )
+ return response_data.response
+
+
+ def _cancel_deployment_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='POST',
+ resource_path='/v1/deployments/{id}/cancel',
+ 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 get_deployment(
+ self,
+ id: Annotated[StrictStr, Field(description="The id of the deployment")],
+ _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,
+ ) -> GetDeploymentReply:
+ """Get Deployment
+
+
+ :param id: The id of the deployment (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._get_deployment_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_deployment_with_http_info(
+ self,
+ id: Annotated[StrictStr, Field(description="The id of the deployment")],
+ _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[GetDeploymentReply]:
+ """Get Deployment
+
+
+ :param id: The id of the deployment (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._get_deployment_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_deployment_without_preload_content(
+ self,
+ id: Annotated[StrictStr, Field(description="The id of the deployment")],
+ _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:
+ """Get Deployment
+
+
+ :param id: The id of the deployment (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._get_deployment_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': "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
+ )
+ return response_data.response
+
+
+ def _get_deployment_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='GET',
+ resource_path='/v1/deployments/{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 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,
+ _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,
+ ) -> GetDeploymentScalingReply:
+ """Get Deployment Scaling
+
+
+ :param id: (required)
+ :type id: str
+ :param region: (Optional) Filter on region
+ :type region: str
+ :param replica_index: (Optional) Filter on replica_index
+ :type replica_index: int
+ :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._get_deployment_scaling_serialize(
+ id=id,
+ region=region,
+ replica_index=replica_index,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[GetDeploymentScalingReply]:
+ """Get Deployment Scaling
+
+
+ :param id: (required)
+ :type id: str
+ :param region: (Optional) Filter on region
+ :type region: str
+ :param replica_index: (Optional) Filter on replica_index
+ :type replica_index: int
+ :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._get_deployment_scaling_serialize(
+ id=id,
+ region=region,
+ replica_index=replica_index,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """Get Deployment Scaling
+
+
+ :param id: (required)
+ :type id: str
+ :param region: (Optional) Filter on region
+ :type region: str
+ :param replica_index: (Optional) Filter on replica_index
+ :type replica_index: int
+ :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._get_deployment_scaling_serialize(
+ id=id,
+ region=region,
+ replica_index=replica_index,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_deployment_scaling_serialize(
+ self,
+ id,
+ region,
+ replica_index,
+ _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
+ if region is not None:
+
+ _query_params.append(('region', region))
+
+ if replica_index is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/deployment/{id}/scaling',
+ 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 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,
+ _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,
+ ) -> ListDeploymentEventsReply:
+ """List Deployment events
+
+
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param types: (Optional) Filter on deployment event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_deployment_events_serialize(
+ deployment_id=deployment_id,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListDeploymentEventsReply]:
+ """List Deployment events
+
+
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param types: (Optional) Filter on deployment event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_deployment_events_serialize(
+ deployment_id=deployment_id,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Deployment events
+
+
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param types: (Optional) Filter on deployment event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_deployment_events_serialize(
+ deployment_id=deployment_id,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_deployment_events_serialize(
+ self,
+ deployment_id,
+ types,
+ limit,
+ offset,
+ order,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'types': 'multi',
+ }
+
+ _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 deployment_id is not None:
+
+ _query_params.append(('deployment_id', deployment_id))
+
+ if types is not None:
+
+ _query_params.append(('types', types))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if order is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/deployment_events',
+ 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 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,
+ _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,
+ ) -> ListDeploymentsReply:
+ """List Deployments
+
+
+ :param app_id: (Optional) Filter on application id
+ :type app_id: str
+ :param service_id: (Optional) Filter on service id
+ :type service_id: str
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param statuses: (Optional) Filter on 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
+ (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._list_deployments_serialize(
+ app_id=app_id,
+ service_id=service_id,
+ limit=limit,
+ offset=offset,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListDeploymentsReply]:
+ """List Deployments
+
+
+ :param app_id: (Optional) Filter on application id
+ :type app_id: str
+ :param service_id: (Optional) Filter on service id
+ :type service_id: str
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param statuses: (Optional) Filter on 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
+ (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._list_deployments_serialize(
+ app_id=app_id,
+ service_id=service_id,
+ limit=limit,
+ offset=offset,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Deployments
+
+
+ :param app_id: (Optional) Filter on application id
+ :type app_id: str
+ :param service_id: (Optional) Filter on service id
+ :type service_id: str
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param statuses: (Optional) Filter on 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
+ (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._list_deployments_serialize(
+ app_id=app_id,
+ service_id=service_id,
+ limit=limit,
+ offset=offset,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_deployments_serialize(
+ self,
+ app_id,
+ service_id,
+ limit,
+ offset,
+ statuses,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'statuses': 'multi',
+ }
+
+ _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 app_id is not None:
+
+ _query_params.append(('app_id', app_id))
+
+ if service_id is not None:
+
+ _query_params.append(('service_id', service_id))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/deployments',
+ 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/api/docker_helper_api.py b/koyeb/api/api/docker_helper_api.py
new file mode 100644
index 00000000..82c8d987
--- /dev/null
+++ b/koyeb/api/api/docker_helper_api.py
@@ -0,0 +1,337 @@
+# 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 import Optional
+from typing_extensions import Annotated
+from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply
+
+from koyeb.api.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class DockerHelperApi:
+ """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 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,
+ _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,
+ ) -> VerifyDockerImageReply:
+ """Verify Docker Image
+
+ Verify if a docker image is reachable
+
+ :param image: The full image uri to be verified
+ :type image: str
+ :param secret_id: (Optional) the id of the secret to use to authenticate to the registry
+ :type secret_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._verify_docker_image_serialize(
+ image=image,
+ secret_id=secret_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[VerifyDockerImageReply]:
+ """Verify Docker Image
+
+ Verify if a docker image is reachable
+
+ :param image: The full image uri to be verified
+ :type image: str
+ :param secret_id: (Optional) the id of the secret to use to authenticate to the registry
+ :type secret_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._verify_docker_image_serialize(
+ image=image,
+ secret_id=secret_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """Verify Docker Image
+
+ Verify if a docker image is reachable
+
+ :param image: The full image uri to be verified
+ :type image: str
+ :param secret_id: (Optional) the id of the secret to use to authenticate to the registry
+ :type secret_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._verify_docker_image_serialize(
+ image=image,
+ secret_id=secret_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _verify_docker_image_serialize(
+ self,
+ image,
+ secret_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
+ # process the query parameters
+ if image is not None:
+
+ _query_params.append(('image', image))
+
+ if secret_id is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/docker-helper/verify',
+ 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/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/api/instances_api.py b/koyeb/api/api/instances_api.py
new file mode 100644
index 00000000..abe0c65f
--- /dev/null
+++ b/koyeb/api/api/instances_api.py
@@ -0,0 +1,1552 @@
+# 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 datetime import datetime
+from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator
+from typing import List, Optional, Union
+from typing_extensions import Annotated
+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.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class InstancesApi:
+ """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 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,
+ 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,
+ _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,
+ ) -> StreamResultOfExecCommandReply:
+ """Exec Command
+
+ 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.
+
+ :param id: ID of the resource to exec on.
+ :type id: str
+ :param body_command: Command to exec. Mandatory in the first frame sent
+ :type body_command: List[str]
+ :param body_tty_size_height:
+ :type body_tty_size_height: int
+ :param body_tty_size_width:
+ :type body_tty_size_width: int
+ :param body_stdin_data: Data is base64 encoded
+ :type body_stdin_data: bytearray
+ :param body_stdin_close: Indicate last data frame
+ :type body_stdin_close: bool
+ :param body_disable_tty: Disable TTY. It's enough to specify it in the first frame
+ :type body_disable_tty: bool
+ :param id_type: When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.
+ :type id_type: 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._exec_command_serialize(
+ id=id,
+ body_command=body_command,
+ body_tty_size_height=body_tty_size_height,
+ body_tty_size_width=body_tty_size_width,
+ body_stdin_data=body_stdin_data,
+ body_stdin_close=body_stdin_close,
+ body_disable_tty=body_disable_tty,
+ id_type=id_type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ 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,
+ _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[StreamResultOfExecCommandReply]:
+ """Exec Command
+
+ 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.
+
+ :param id: ID of the resource to exec on.
+ :type id: str
+ :param body_command: Command to exec. Mandatory in the first frame sent
+ :type body_command: List[str]
+ :param body_tty_size_height:
+ :type body_tty_size_height: int
+ :param body_tty_size_width:
+ :type body_tty_size_width: int
+ :param body_stdin_data: Data is base64 encoded
+ :type body_stdin_data: bytearray
+ :param body_stdin_close: Indicate last data frame
+ :type body_stdin_close: bool
+ :param body_disable_tty: Disable TTY. It's enough to specify it in the first frame
+ :type body_disable_tty: bool
+ :param id_type: When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.
+ :type id_type: 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._exec_command_serialize(
+ id=id,
+ body_command=body_command,
+ body_tty_size_height=body_tty_size_height,
+ body_tty_size_width=body_tty_size_width,
+ body_stdin_data=body_stdin_data,
+ body_stdin_close=body_stdin_close,
+ body_disable_tty=body_disable_tty,
+ id_type=id_type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ 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,
+ _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:
+ """Exec Command
+
+ 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.
+
+ :param id: ID of the resource to exec on.
+ :type id: str
+ :param body_command: Command to exec. Mandatory in the first frame sent
+ :type body_command: List[str]
+ :param body_tty_size_height:
+ :type body_tty_size_height: int
+ :param body_tty_size_width:
+ :type body_tty_size_width: int
+ :param body_stdin_data: Data is base64 encoded
+ :type body_stdin_data: bytearray
+ :param body_stdin_close: Indicate last data frame
+ :type body_stdin_close: bool
+ :param body_disable_tty: Disable TTY. It's enough to specify it in the first frame
+ :type body_disable_tty: bool
+ :param id_type: When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.
+ :type id_type: 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._exec_command_serialize(
+ id=id,
+ body_command=body_command,
+ body_tty_size_height=body_tty_size_height,
+ body_tty_size_width=body_tty_size_width,
+ body_stdin_data=body_stdin_data,
+ body_stdin_close=body_stdin_close,
+ body_disable_tty=body_disable_tty,
+ id_type=id_type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _exec_command_serialize(
+ self,
+ id,
+ body_command,
+ body_tty_size_height,
+ body_tty_size_width,
+ body_stdin_data,
+ body_stdin_close,
+ body_disable_tty,
+ id_type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'body.command': 'multi',
+ }
+
+ _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 id is not None:
+
+ _query_params.append(('id', id))
+
+ if body_command is not None:
+
+ _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))
+
+ if body_tty_size_width is not None:
+
+ _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))
+
+ if body_stdin_close is not None:
+
+ _query_params.append(('body.stdin.close', body_stdin_close))
+
+ if body_disable_tty is not None:
+
+ _query_params.append(('body.disableTty', body_disable_tty))
+
+ if id_type is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/streams/instances/exec',
+ 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 get_instance(
+ self,
+ id: Annotated[StrictStr, Field(description="The id of the instance")],
+ _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,
+ ) -> GetInstanceReply:
+ """Get Instance
+
+
+ :param id: The id of the instance (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._get_instance_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_instance_with_http_info(
+ self,
+ id: Annotated[StrictStr, Field(description="The id of the instance")],
+ _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[GetInstanceReply]:
+ """Get Instance
+
+
+ :param id: The id of the instance (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._get_instance_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_instance_without_preload_content(
+ self,
+ id: Annotated[StrictStr, Field(description="The id of the instance")],
+ _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:
+ """Get Instance
+
+
+ :param id: The id of the instance (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._get_instance_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': "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
+ )
+ return response_data.response
+
+
+ def _get_instance_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='GET',
+ resource_path='/v1/instances/{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 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,
+ _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,
+ ) -> ListInstanceEventsReply:
+ """List Instance events
+
+
+ :param instance_ids: (Optional) Filter on list of instance id
+ :type instance_ids: List[str]
+ :param types: (Optional) Filter on instance event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_instance_events_serialize(
+ instance_ids=instance_ids,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListInstanceEventsReply]:
+ """List Instance events
+
+
+ :param instance_ids: (Optional) Filter on list of instance id
+ :type instance_ids: List[str]
+ :param types: (Optional) Filter on instance event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_instance_events_serialize(
+ instance_ids=instance_ids,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Instance events
+
+
+ :param instance_ids: (Optional) Filter on list of instance id
+ :type instance_ids: List[str]
+ :param types: (Optional) Filter on instance event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_instance_events_serialize(
+ instance_ids=instance_ids,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_instance_events_serialize(
+ self,
+ instance_ids,
+ types,
+ limit,
+ offset,
+ order,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'instance_ids': 'multi',
+ 'types': 'multi',
+ }
+
+ _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 instance_ids is not None:
+
+ _query_params.append(('instance_ids', instance_ids))
+
+ if types is not None:
+
+ _query_params.append(('types', types))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if order is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/instance_events',
+ 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 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,
+ _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,
+ ) -> ListInstancesReply:
+ """List Instances
+
+
+ :param app_id: (Optional) Filter on application id
+ :type app_id: str
+ :param service_id: (Optional) Filter on service id
+ :type service_id: str
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param regional_deployment_id: (Optional) Filter on regional deployment id
+ :type regional_deployment_id: str
+ :param allocation_id: (Optional) Filter on allocation id
+ :type allocation_id: str
+ :param replica_index: (Optional) Filter on replica index
+ :type replica_index: str
+ :param statuses: (Optional) Filter on instance statuses
+ :type statuses: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param starting_time: (Optional) The starting time of the period of running instance
+ :type starting_time: datetime
+ :param ending_time: (Optional) The ending time of the period of running instance
+ :type ending_time: datetime
+ :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._list_instances_serialize(
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ regional_deployment_id=regional_deployment_id,
+ allocation_id=allocation_id,
+ replica_index=replica_index,
+ statuses=statuses,
+ limit=limit,
+ offset=offset,
+ order=order,
+ starting_time=starting_time,
+ ending_time=ending_time,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListInstancesReply]:
+ """List Instances
+
+
+ :param app_id: (Optional) Filter on application id
+ :type app_id: str
+ :param service_id: (Optional) Filter on service id
+ :type service_id: str
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param regional_deployment_id: (Optional) Filter on regional deployment id
+ :type regional_deployment_id: str
+ :param allocation_id: (Optional) Filter on allocation id
+ :type allocation_id: str
+ :param replica_index: (Optional) Filter on replica index
+ :type replica_index: str
+ :param statuses: (Optional) Filter on instance statuses
+ :type statuses: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param starting_time: (Optional) The starting time of the period of running instance
+ :type starting_time: datetime
+ :param ending_time: (Optional) The ending time of the period of running instance
+ :type ending_time: datetime
+ :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._list_instances_serialize(
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ regional_deployment_id=regional_deployment_id,
+ allocation_id=allocation_id,
+ replica_index=replica_index,
+ statuses=statuses,
+ limit=limit,
+ offset=offset,
+ order=order,
+ starting_time=starting_time,
+ ending_time=ending_time,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Instances
+
+
+ :param app_id: (Optional) Filter on application id
+ :type app_id: str
+ :param service_id: (Optional) Filter on service id
+ :type service_id: str
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param regional_deployment_id: (Optional) Filter on regional deployment id
+ :type regional_deployment_id: str
+ :param allocation_id: (Optional) Filter on allocation id
+ :type allocation_id: str
+ :param replica_index: (Optional) Filter on replica index
+ :type replica_index: str
+ :param statuses: (Optional) Filter on instance statuses
+ :type statuses: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param starting_time: (Optional) The starting time of the period of running instance
+ :type starting_time: datetime
+ :param ending_time: (Optional) The ending time of the period of running instance
+ :type ending_time: datetime
+ :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._list_instances_serialize(
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ regional_deployment_id=regional_deployment_id,
+ allocation_id=allocation_id,
+ replica_index=replica_index,
+ statuses=statuses,
+ limit=limit,
+ offset=offset,
+ order=order,
+ starting_time=starting_time,
+ ending_time=ending_time,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_instances_serialize(
+ self,
+ app_id,
+ service_id,
+ deployment_id,
+ regional_deployment_id,
+ allocation_id,
+ replica_index,
+ statuses,
+ limit,
+ offset,
+ order,
+ starting_time,
+ ending_time,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'statuses': 'multi',
+ }
+
+ _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 app_id is not None:
+
+ _query_params.append(('app_id', app_id))
+
+ if service_id is not None:
+
+ _query_params.append(('service_id', service_id))
+
+ if deployment_id is not None:
+
+ _query_params.append(('deployment_id', deployment_id))
+
+ if regional_deployment_id is not None:
+
+ _query_params.append(('regional_deployment_id', regional_deployment_id))
+
+ if allocation_id is not None:
+
+ _query_params.append(('allocation_id', allocation_id))
+
+ if replica_index is not None:
+
+ _query_params.append(('replica_index', replica_index))
+
+ if statuses is not None:
+
+ _query_params.append(('statuses', statuses))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if order is not None:
+
+ _query_params.append(('order', order))
+
+ if starting_time is not None:
+ if isinstance(starting_time, datetime):
+ _query_params.append(
+ (
+ 'starting_time',
+ starting_time.strftime(
+ self.api_client.configuration.datetime_format
+ )
+ )
+ )
+ else:
+ _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.strftime(
+ self.api_client.configuration.datetime_format
+ )
+ )
+ )
+ else:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/instances',
+ 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/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/api/logs_api.py b/koyeb/api/api/logs_api.py
new file mode 100644
index 00000000..df6433b0
--- /dev/null
+++ b/koyeb/api/api/logs_api.py
@@ -0,0 +1,998 @@
+# 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 datetime import datetime
+from pydantic import Field, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from koyeb.api.models.query_logs_reply import QueryLogsReply
+from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry
+
+from koyeb.api.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class LogsApi:
+ """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 query_logs(
+ self,
+ type: Optional[StrictStr] = None,
+ app_id: Optional[StrictStr] = None,
+ service_id: Optional[StrictStr] = None,
+ deployment_id: Optional[StrictStr] = None,
+ 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,
+ _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,
+ ) -> QueryLogsReply:
+ """Query logs
+
+
+ :param type:
+ :type type: str
+ :param app_id:
+ :type app_id: str
+ :param service_id:
+ :type service_id: str
+ :param deployment_id:
+ :type deployment_id: str
+ :param instance_id:
+ :type instance_id: str
+ :param stream:
+ :type stream: str
+ :param regional_deployment_id:
+ :type regional_deployment_id: str
+ :param start: (Optional) Must always be before `end`. Defaults to 15 minutes ago.
+ :type start: datetime
+ :param end: (Optional) Must always be after `start`. Defaults to now.
+ :type end: datetime
+ :param order: (Optional) `asc` or `desc`. Defaults to `desc`.
+ :type order: str
+ :param limit: (Optional) Defaults to 100. Maximum of 1000.
+ :type limit: str
+ :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
+ :type regex: str
+ :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
+ :type text: 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._query_logs_serialize(
+ type=type,
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ instance_id=instance_id,
+ stream=stream,
+ regional_deployment_id=regional_deployment_id,
+ start=start,
+ end=end,
+ order=order,
+ limit=limit,
+ regex=regex,
+ text=text,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 query_logs_with_http_info(
+ self,
+ type: Optional[StrictStr] = None,
+ app_id: Optional[StrictStr] = None,
+ service_id: Optional[StrictStr] = None,
+ deployment_id: Optional[StrictStr] = None,
+ 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,
+ _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[QueryLogsReply]:
+ """Query logs
+
+
+ :param type:
+ :type type: str
+ :param app_id:
+ :type app_id: str
+ :param service_id:
+ :type service_id: str
+ :param deployment_id:
+ :type deployment_id: str
+ :param instance_id:
+ :type instance_id: str
+ :param stream:
+ :type stream: str
+ :param regional_deployment_id:
+ :type regional_deployment_id: str
+ :param start: (Optional) Must always be before `end`. Defaults to 15 minutes ago.
+ :type start: datetime
+ :param end: (Optional) Must always be after `start`. Defaults to now.
+ :type end: datetime
+ :param order: (Optional) `asc` or `desc`. Defaults to `desc`.
+ :type order: str
+ :param limit: (Optional) Defaults to 100. Maximum of 1000.
+ :type limit: str
+ :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
+ :type regex: str
+ :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
+ :type text: 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._query_logs_serialize(
+ type=type,
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ instance_id=instance_id,
+ stream=stream,
+ regional_deployment_id=regional_deployment_id,
+ start=start,
+ end=end,
+ order=order,
+ limit=limit,
+ regex=regex,
+ text=text,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 query_logs_without_preload_content(
+ self,
+ type: Optional[StrictStr] = None,
+ app_id: Optional[StrictStr] = None,
+ service_id: Optional[StrictStr] = None,
+ deployment_id: Optional[StrictStr] = None,
+ 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,
+ _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:
+ """Query logs
+
+
+ :param type:
+ :type type: str
+ :param app_id:
+ :type app_id: str
+ :param service_id:
+ :type service_id: str
+ :param deployment_id:
+ :type deployment_id: str
+ :param instance_id:
+ :type instance_id: str
+ :param stream:
+ :type stream: str
+ :param regional_deployment_id:
+ :type regional_deployment_id: str
+ :param start: (Optional) Must always be before `end`. Defaults to 15 minutes ago.
+ :type start: datetime
+ :param end: (Optional) Must always be after `start`. Defaults to now.
+ :type end: datetime
+ :param order: (Optional) `asc` or `desc`. Defaults to `desc`.
+ :type order: str
+ :param limit: (Optional) Defaults to 100. Maximum of 1000.
+ :type limit: str
+ :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
+ :type regex: str
+ :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
+ :type text: 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._query_logs_serialize(
+ type=type,
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ instance_id=instance_id,
+ stream=stream,
+ regional_deployment_id=regional_deployment_id,
+ start=start,
+ end=end,
+ order=order,
+ limit=limit,
+ regex=regex,
+ text=text,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _query_logs_serialize(
+ self,
+ type,
+ app_id,
+ service_id,
+ deployment_id,
+ instance_id,
+ stream,
+ regional_deployment_id,
+ start,
+ end,
+ order,
+ limit,
+ regex,
+ text,
+ _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 type is not None:
+
+ _query_params.append(('type', type))
+
+ if app_id is not None:
+
+ _query_params.append(('app_id', app_id))
+
+ if service_id is not None:
+
+ _query_params.append(('service_id', service_id))
+
+ if deployment_id is not None:
+
+ _query_params.append(('deployment_id', deployment_id))
+
+ if instance_id is not None:
+
+ _query_params.append(('instance_id', instance_id))
+
+ if stream is not None:
+
+ _query_params.append(('stream', stream))
+
+ if regional_deployment_id is not None:
+
+ _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
+ )
+ )
+ )
+ else:
+ _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
+ )
+ )
+ )
+ else:
+ _query_params.append(('end', end))
+
+ if order is not None:
+
+ _query_params.append(('order', order))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if regex is not None:
+
+ _query_params.append(('regex', regex))
+
+ if text is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/streams/logs/query',
+ 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 tail_logs(
+ self,
+ type: Optional[StrictStr] = None,
+ app_id: Optional[StrictStr] = None,
+ service_id: Optional[StrictStr] = None,
+ deployment_id: Optional[StrictStr] = None,
+ regional_deployment_id: Optional[StrictStr] = None,
+ instance_id: Optional[StrictStr] = None,
+ 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,
+ _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,
+ ) -> StreamResultOfLogEntry:
+ """Tails logs
+
+
+ :param type:
+ :type type: str
+ :param app_id:
+ :type app_id: str
+ :param service_id:
+ :type service_id: str
+ :param deployment_id:
+ :type deployment_id: str
+ :param regional_deployment_id:
+ :type regional_deployment_id: str
+ :param instance_id:
+ :type instance_id: str
+ :param stream:
+ :type stream: str
+ :param start:
+ :type start: datetime
+ :param limit:
+ :type limit: str
+ :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
+ :type regex: str
+ :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
+ :type text: 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._tail_logs_serialize(
+ type=type,
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ regional_deployment_id=regional_deployment_id,
+ instance_id=instance_id,
+ stream=stream,
+ start=start,
+ limit=limit,
+ regex=regex,
+ text=text,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 tail_logs_with_http_info(
+ self,
+ type: Optional[StrictStr] = None,
+ app_id: Optional[StrictStr] = None,
+ service_id: Optional[StrictStr] = None,
+ deployment_id: Optional[StrictStr] = None,
+ regional_deployment_id: Optional[StrictStr] = None,
+ instance_id: Optional[StrictStr] = None,
+ 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,
+ _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[StreamResultOfLogEntry]:
+ """Tails logs
+
+
+ :param type:
+ :type type: str
+ :param app_id:
+ :type app_id: str
+ :param service_id:
+ :type service_id: str
+ :param deployment_id:
+ :type deployment_id: str
+ :param regional_deployment_id:
+ :type regional_deployment_id: str
+ :param instance_id:
+ :type instance_id: str
+ :param stream:
+ :type stream: str
+ :param start:
+ :type start: datetime
+ :param limit:
+ :type limit: str
+ :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
+ :type regex: str
+ :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
+ :type text: 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._tail_logs_serialize(
+ type=type,
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ regional_deployment_id=regional_deployment_id,
+ instance_id=instance_id,
+ stream=stream,
+ start=start,
+ limit=limit,
+ regex=regex,
+ text=text,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 tail_logs_without_preload_content(
+ self,
+ type: Optional[StrictStr] = None,
+ app_id: Optional[StrictStr] = None,
+ service_id: Optional[StrictStr] = None,
+ deployment_id: Optional[StrictStr] = None,
+ regional_deployment_id: Optional[StrictStr] = None,
+ instance_id: Optional[StrictStr] = None,
+ 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,
+ _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:
+ """Tails logs
+
+
+ :param type:
+ :type type: str
+ :param app_id:
+ :type app_id: str
+ :param service_id:
+ :type service_id: str
+ :param deployment_id:
+ :type deployment_id: str
+ :param regional_deployment_id:
+ :type regional_deployment_id: str
+ :param instance_id:
+ :type instance_id: str
+ :param stream:
+ :type stream: str
+ :param start:
+ :type start: datetime
+ :param limit:
+ :type limit: str
+ :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
+ :type regex: str
+ :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
+ :type text: 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._tail_logs_serialize(
+ type=type,
+ app_id=app_id,
+ service_id=service_id,
+ deployment_id=deployment_id,
+ regional_deployment_id=regional_deployment_id,
+ instance_id=instance_id,
+ stream=stream,
+ start=start,
+ limit=limit,
+ regex=regex,
+ text=text,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _tail_logs_serialize(
+ self,
+ type,
+ app_id,
+ service_id,
+ deployment_id,
+ regional_deployment_id,
+ instance_id,
+ stream,
+ start,
+ limit,
+ regex,
+ text,
+ _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 type is not None:
+
+ _query_params.append(('type', type))
+
+ if app_id is not None:
+
+ _query_params.append(('app_id', app_id))
+
+ if service_id is not None:
+
+ _query_params.append(('service_id', service_id))
+
+ if deployment_id is not None:
+
+ _query_params.append(('deployment_id', deployment_id))
+
+ if regional_deployment_id is not None:
+
+ _query_params.append(('regional_deployment_id', regional_deployment_id))
+
+ if instance_id is not None:
+
+ _query_params.append(('instance_id', instance_id))
+
+ if stream is not None:
+
+ _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
+ )
+ )
+ )
+ else:
+ _query_params.append(('start', start))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if regex is not None:
+
+ _query_params.append(('regex', regex))
+
+ if text is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/streams/logs/tail',
+ 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/api/metrics_api.py b/koyeb/api/api/metrics_api.py
new file mode 100644
index 00000000..b005347e
--- /dev/null
+++ b/koyeb/api/api/metrics_api.py
@@ -0,0 +1,421 @@
+# 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 datetime import datetime
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from koyeb.api.models.get_metrics_reply import GetMetricsReply
+
+from koyeb.api.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class MetricsApi:
+ """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 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,
+ _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,
+ ) -> GetMetricsReply:
+ """Get Metrics
+
+
+ :param service_id: ID of the service to query instances metrics for. Ignored if instance_id is set.
+ :type service_id: str
+ :param instance_id: ID of the instance to query metrics for.
+ :type instance_id: str
+ :param name: Metric to query.
+ :type name: str
+ :param start: (Optional) Defaults to an hour prior to end.
+ :type start: datetime
+ :param end: (Optional) Defaults to now.
+ :type end: datetime
+ :param step: (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.
+ :type step: 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._get_metrics_serialize(
+ service_id=service_id,
+ instance_id=instance_id,
+ name=name,
+ start=start,
+ end=end,
+ step=step,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[GetMetricsReply]:
+ """Get Metrics
+
+
+ :param service_id: ID of the service to query instances metrics for. Ignored if instance_id is set.
+ :type service_id: str
+ :param instance_id: ID of the instance to query metrics for.
+ :type instance_id: str
+ :param name: Metric to query.
+ :type name: str
+ :param start: (Optional) Defaults to an hour prior to end.
+ :type start: datetime
+ :param end: (Optional) Defaults to now.
+ :type end: datetime
+ :param step: (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.
+ :type step: 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._get_metrics_serialize(
+ service_id=service_id,
+ instance_id=instance_id,
+ name=name,
+ start=start,
+ end=end,
+ step=step,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """Get Metrics
+
+
+ :param service_id: ID of the service to query instances metrics for. Ignored if instance_id is set.
+ :type service_id: str
+ :param instance_id: ID of the instance to query metrics for.
+ :type instance_id: str
+ :param name: Metric to query.
+ :type name: str
+ :param start: (Optional) Defaults to an hour prior to end.
+ :type start: datetime
+ :param end: (Optional) Defaults to now.
+ :type end: datetime
+ :param step: (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.
+ :type step: 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._get_metrics_serialize(
+ service_id=service_id,
+ instance_id=instance_id,
+ name=name,
+ start=start,
+ end=end,
+ step=step,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_metrics_serialize(
+ self,
+ service_id,
+ instance_id,
+ name,
+ start,
+ end,
+ step,
+ _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 service_id is not None:
+
+ _query_params.append(('service_id', service_id))
+
+ if instance_id is not None:
+
+ _query_params.append(('instance_id', instance_id))
+
+ if name is not None:
+
+ _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
+ )
+ )
+ )
+ else:
+ _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
+ )
+ )
+ )
+ else:
+ _query_params.append(('end', end))
+
+ if step is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/streams/metrics',
+ 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/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/api/organization_members_api.py b/koyeb/api/api/organization_members_api.py
new file mode 100644
index 00000000..bcd68a7c
--- /dev/null
+++ b/koyeb/api/api/organization_members_api.py
@@ -0,0 +1,663 @@
+# 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, field_validator
+from typing import List, Optional
+from typing_extensions import Annotated
+from koyeb.api.models.list_organization_members_reply import ListOrganizationMembersReply
+from koyeb.api.models.remove_organization_member_reply import RemoveOrganizationMemberReply
+
+from koyeb.api.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class OrganizationMembersApi:
+ """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 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,
+ _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,
+ ) -> ListOrganizationMembersReply:
+ """List organization members
+
+
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param organization_id: (Optional) Filter for an organization
+ :type organization_id: str
+ :param user_id: (Optional) Filter for an user
+ :type user_id: str
+ :param organization_statuses: (Optional) Filter for organization statuses
+ :type organization_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
+ (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._list_organization_members_serialize(
+ limit=limit,
+ offset=offset,
+ organization_id=organization_id,
+ user_id=user_id,
+ organization_statuses=organization_statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListOrganizationMembersReply]:
+ """List organization members
+
+
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param organization_id: (Optional) Filter for an organization
+ :type organization_id: str
+ :param user_id: (Optional) Filter for an user
+ :type user_id: str
+ :param organization_statuses: (Optional) Filter for organization statuses
+ :type organization_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
+ (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._list_organization_members_serialize(
+ limit=limit,
+ offset=offset,
+ organization_id=organization_id,
+ user_id=user_id,
+ organization_statuses=organization_statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List organization members
+
+
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param organization_id: (Optional) Filter for an organization
+ :type organization_id: str
+ :param user_id: (Optional) Filter for an user
+ :type user_id: str
+ :param organization_statuses: (Optional) Filter for organization statuses
+ :type organization_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
+ (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._list_organization_members_serialize(
+ limit=limit,
+ offset=offset,
+ organization_id=organization_id,
+ user_id=user_id,
+ organization_statuses=organization_statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_organization_members_serialize(
+ self,
+ limit,
+ offset,
+ organization_id,
+ user_id,
+ organization_statuses,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'organization_statuses': 'multi',
+ }
+
+ _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 limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if organization_id is not None:
+
+ _query_params.append(('organization_id', organization_id))
+
+ if user_id is not None:
+
+ _query_params.append(('user_id', user_id))
+
+ if organization_statuses is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/organization_members',
+ 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 remove_organization_member(
+ self,
+ id: StrictStr,
+ _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,
+ ) -> RemoveOrganizationMemberReply:
+ """Remove an organization member
+
+
+ :param id: (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._remove_organization_member_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def remove_organization_member_with_http_info(
+ self,
+ id: StrictStr,
+ _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[RemoveOrganizationMemberReply]:
+ """Remove an organization member
+
+
+ :param id: (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._remove_organization_member_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def remove_organization_member_without_preload_content(
+ self,
+ id: StrictStr,
+ _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:
+ """Remove an organization member
+
+
+ :param id: (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._remove_organization_member_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': "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
+ )
+ return response_data.response
+
+
+ def _remove_organization_member_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/organization_members/{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/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/api/profile_api.py b/koyeb/api/api/profile_api.py
new file mode 100644
index 00000000..348af53c
--- /dev/null
+++ b/koyeb/api/api/profile_api.py
@@ -0,0 +1,6637 @@
+# 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, field_validator
+from typing import Any, Dict, List, Optional
+from typing_extensions import Annotated
+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:
+ """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 accept_organization_invitation(
+ self,
+ 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)]
+ ]
+ ] = 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,
+ ) -> AcceptOrganizationInvitationReply:
+ """Accept Organization Invitation
+
+
+ :param id: The id of the organization invitation to accept (required)
+ :type id: str
+ :param body: (required)
+ :type body: object
+ :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._accept_organization_invitation_serialize(
+ id=id,
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 accept_organization_invitation_with_http_info(
+ self,
+ 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)]
+ ]
+ ] = 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[AcceptOrganizationInvitationReply]:
+ """Accept Organization Invitation
+
+
+ :param id: The id of the organization invitation to accept (required)
+ :type id: str
+ :param body: (required)
+ :type body: object
+ :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._accept_organization_invitation_serialize(
+ id=id,
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 accept_organization_invitation_without_preload_content(
+ self,
+ 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)]
+ ]
+ ] = 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:
+ """Accept Organization Invitation
+
+
+ :param id: The id of the organization invitation to accept (required)
+ :type id: str
+ :param body: (required)
+ :type body: object
+ :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._accept_organization_invitation_serialize(
+ id=id,
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _accept_organization_invitation_serialize(
+ self,
+ id,
+ body,
+ _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
+ 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='POST',
+ resource_path='/v1/account/organization_invitations/{id}/accept',
+ 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 clear_idenfy_verification_result(
+ self,
+ body: ClearIdenfyVerificationResultRequest,
+ _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,
+ ) -> object:
+ """ClearIdenfyVerificationResult marks the current result for idenfy as superseded
+
+
+ :param body: (required)
+ :type body: ClearIdenfyVerificationResultRequest
+ :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._clear_idenfy_verification_result_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 clear_idenfy_verification_result_with_http_info(
+ self,
+ body: ClearIdenfyVerificationResultRequest,
+ _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[object]:
+ """ClearIdenfyVerificationResult marks the current result for idenfy as superseded
+
+
+ :param body: (required)
+ :type body: ClearIdenfyVerificationResultRequest
+ :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._clear_idenfy_verification_result_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 clear_idenfy_verification_result_without_preload_content(
+ self,
+ body: ClearIdenfyVerificationResultRequest,
+ _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:
+ """ClearIdenfyVerificationResult marks the current result for idenfy as superseded
+
+
+ :param body: (required)
+ :type body: ClearIdenfyVerificationResultRequest
+ :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._clear_idenfy_verification_result_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _clear_idenfy_verification_result_serialize(
+ self,
+ body,
+ _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
+ # process the header parameters
+ # 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/idenfy',
+ 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 decline_organization_invitation(
+ self,
+ 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)]
+ ]
+ ] = 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,
+ ) -> DeclineOrganizationInvitationReply:
+ """Decline Organization Invitation
+
+
+ :param id: The id of the organization invitation to decline (required)
+ :type id: str
+ :param body: (required)
+ :type body: object
+ :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._decline_organization_invitation_serialize(
+ id=id,
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 decline_organization_invitation_with_http_info(
+ self,
+ 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)]
+ ]
+ ] = 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[DeclineOrganizationInvitationReply]:
+ """Decline Organization Invitation
+
+
+ :param id: The id of the organization invitation to decline (required)
+ :type id: str
+ :param body: (required)
+ :type body: object
+ :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._decline_organization_invitation_serialize(
+ id=id,
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 decline_organization_invitation_without_preload_content(
+ self,
+ 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)]
+ ]
+ ] = 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:
+ """Decline Organization Invitation
+
+
+ :param id: The id of the organization invitation to decline (required)
+ :type id: str
+ :param body: (required)
+ :type body: object
+ :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._decline_organization_invitation_serialize(
+ id=id,
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _decline_organization_invitation_serialize(
+ self,
+ id,
+ body,
+ _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
+ 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='POST',
+ resource_path='/v1/account/organization_invitations/{id}/decline',
+ 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 get_current_organization(
+ self,
+ _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,
+ ) -> GetOrganizationReply:
+ """Get Current Organization
+
+
+ :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._get_current_organization_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 get_current_organization_with_http_info(
+ self,
+ _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[GetOrganizationReply]:
+ """Get Current Organization
+
+
+ :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._get_current_organization_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 get_current_organization_without_preload_content(
+ self,
+ _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:
+ """Get Current Organization
+
+
+ :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._get_current_organization_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_current_organization_serialize(
+ self,
+ _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
+ # 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='GET',
+ resource_path='/v1/account/organization',
+ 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 get_current_user(
+ self,
+ _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:
+ """Get Current User
+
+
+ :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._get_current_user_serialize(
+ _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 get_current_user_with_http_info(
+ self,
+ _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]:
+ """Get Current User
+
+
+ :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._get_current_user_serialize(
+ _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 get_current_user_without_preload_content(
+ self,
+ _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:
+ """Get Current User
+
+
+ :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._get_current_user_serialize(
+ _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 _get_current_user_serialize(
+ self,
+ _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
+ # 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='GET',
+ resource_path='/v1/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 get_idenfy_token(
+ self,
+ _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,
+ ) -> GetIdenfyTokenReply:
+ """Begin a session with iDenfy, emit an authToken
+
+
+ :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._get_idenfy_token_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 get_idenfy_token_with_http_info(
+ self,
+ _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[GetIdenfyTokenReply]:
+ """Begin a session with iDenfy, emit an authToken
+
+
+ :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._get_idenfy_token_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 get_idenfy_token_without_preload_content(
+ self,
+ _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:
+ """Begin a session with iDenfy, emit an authToken
+
+
+ :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._get_idenfy_token_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_idenfy_token_serialize(
+ self,
+ _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
+ # 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='GET',
+ resource_path='/v1/account/idenfy',
+ 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 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,
+ _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,
+ ) -> GetOAuthOptionsReply:
+ """Get OAuth Providers
+
+
+ :param action: Which authentication flow is being initiated
+ :type action: str
+ :param metadata: A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state
+ :type metadata: 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._get_o_auth_options_serialize(
+ action=action,
+ metadata=metadata,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[GetOAuthOptionsReply]:
+ """Get OAuth Providers
+
+
+ :param action: Which authentication flow is being initiated
+ :type action: str
+ :param metadata: A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state
+ :type metadata: 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._get_o_auth_options_serialize(
+ action=action,
+ metadata=metadata,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """Get OAuth Providers
+
+
+ :param action: Which authentication flow is being initiated
+ :type action: str
+ :param metadata: A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state
+ :type metadata: 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._get_o_auth_options_serialize(
+ action=action,
+ metadata=metadata,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_o_auth_options_serialize(
+ self,
+ action,
+ metadata,
+ _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 action is not None:
+
+ _query_params.append(('action', action))
+
+ if metadata is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/account/oauth',
+ 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 get_user_organization_invitation(
+ self,
+ 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)]
+ ]
+ ] = 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,
+ ) -> GetUserOrganizationInvitationReply:
+ """Get User Organization Invitation
+
+
+ :param id: The id of the organization invitation to get (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._get_user_organization_invitation_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ 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")],
+ _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[GetUserOrganizationInvitationReply]:
+ """Get User Organization Invitation
+
+
+ :param id: The id of the organization invitation to get (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._get_user_organization_invitation_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ 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")],
+ _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:
+ """Get User Organization Invitation
+
+
+ :param id: The id of the organization invitation to get (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._get_user_organization_invitation_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': "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
+ )
+ return response_data.response
+
+
+ def _get_user_organization_invitation_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='GET',
+ resource_path='/v1/account/organization_invitations/{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 get_user_settings(
+ self,
+ _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,
+ ) -> GetUserSettingsReply:
+ """get_user_settings
+
+
+ :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._get_user_settings_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 get_user_settings_with_http_info(
+ self,
+ _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[GetUserSettingsReply]:
+ """get_user_settings
+
+
+ :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._get_user_settings_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 get_user_settings_without_preload_content(
+ self,
+ _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:
+ """get_user_settings
+
+
+ :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._get_user_settings_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_settings_serialize(
+ self,
+ _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
+ # 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='GET',
+ 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 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,
+ _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,
+ ) -> ListUserOrganizationInvitationsReply:
+ """List User Organization Invitations
+
+
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param statuses: (Optional) Filter on organization invitation 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
+ (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._list_user_organization_invitations_serialize(
+ limit=limit,
+ offset=offset,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListUserOrganizationInvitationsReply]:
+ """List User Organization Invitations
+
+
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param statuses: (Optional) Filter on organization invitation 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
+ (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._list_user_organization_invitations_serialize(
+ limit=limit,
+ offset=offset,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List User Organization Invitations
+
+
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param statuses: (Optional) Filter on organization invitation 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
+ (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._list_user_organization_invitations_serialize(
+ limit=limit,
+ offset=offset,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_user_organization_invitations_serialize(
+ self,
+ limit,
+ offset,
+ statuses,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'statuses': 'multi',
+ }
+
+ _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 limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/account/organization_invitations',
+ 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 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,
+ _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,
+ ) -> ListUserOrganizationsReply:
+ """List User Organizations
+
+ List all organizations that the current user is a member of.
+
+ :param limit: (Optional) Define pagination limit
+ :type limit: str
+ :param offset: (Optional) Define pagination offset
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param search: (Optional) Fuzzy case-insensitive search based on organization name or organization id
+ :type search: str
+ :param statuses: (Optional) Only return organizations which status match one in the list
+ :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
+ (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._list_user_organizations_serialize(
+ limit=limit,
+ offset=offset,
+ order=order,
+ search=search,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListUserOrganizationsReply]:
+ """List User Organizations
+
+ List all organizations that the current user is a member of.
+
+ :param limit: (Optional) Define pagination limit
+ :type limit: str
+ :param offset: (Optional) Define pagination offset
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param search: (Optional) Fuzzy case-insensitive search based on organization name or organization id
+ :type search: str
+ :param statuses: (Optional) Only return organizations which status match one in the list
+ :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
+ (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._list_user_organizations_serialize(
+ limit=limit,
+ offset=offset,
+ order=order,
+ search=search,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List User Organizations
+
+ List all organizations that the current user is a member of.
+
+ :param limit: (Optional) Define pagination limit
+ :type limit: str
+ :param offset: (Optional) Define pagination offset
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param search: (Optional) Fuzzy case-insensitive search based on organization name or organization id
+ :type search: str
+ :param statuses: (Optional) Only return organizations which status match one in the list
+ :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
+ (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._list_user_organizations_serialize(
+ limit=limit,
+ offset=offset,
+ order=order,
+ search=search,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_user_organizations_serialize(
+ self,
+ limit,
+ offset,
+ order,
+ search,
+ statuses,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'statuses': 'multi',
+ }
+
+ _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 limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if order is not None:
+
+ _query_params.append(('order', order))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/account/organizations',
+ 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 login_method(
+ self,
+ email: 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,
+ ) -> LoginMethodReply:
+ """Get the login method for an email address
+
+
+ :param email:
+ :type email: 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._login_method_serialize(
+ email=email,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 login_method_with_http_info(
+ self,
+ email: 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[LoginMethodReply]:
+ """Get the login method for an email address
+
+
+ :param email:
+ :type email: 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._login_method_serialize(
+ email=email,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 login_method_without_preload_content(
+ self,
+ email: 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:
+ """Get the login method for an email address
+
+
+ :param email:
+ :type email: 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._login_method_serialize(
+ email=email,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _login_method_serialize(
+ self,
+ email,
+ _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 email is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/account/login_method',
+ 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 o_auth_callback(
+ self,
+ body: OAuthCallbackRequest,
+ 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)]
+ ]
+ ] = 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,
+ ) -> OAuthCallbackReply:
+ """Authenticate using OAuth
+
+
+ :param body: (required)
+ :type body: OAuthCallbackRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._o_auth_callback_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 o_auth_callback_with_http_info(
+ self,
+ body: OAuthCallbackRequest,
+ 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)]
+ ]
+ ] = 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[OAuthCallbackReply]:
+ """Authenticate using OAuth
+
+
+ :param body: (required)
+ :type body: OAuthCallbackRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._o_auth_callback_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 o_auth_callback_without_preload_content(
+ self,
+ body: OAuthCallbackRequest,
+ 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)]
+ ]
+ ] = 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:
+ """Authenticate using OAuth
+
+
+ :param body: (required)
+ :type body: OAuthCallbackRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._o_auth_callback_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _o_auth_callback_serialize(
+ self,
+ body,
+ seon_fp,
+ _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
+ # process the header parameters
+ if seon_fp is not None:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/oauth',
+ 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 resend_email_validation(
+ self,
+ body: Dict[str, Any],
+ _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,
+ ) -> object:
+ """Resend Email Verification
+
+
+ :param body: (required)
+ :type body: object
+ :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._resend_email_validation_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 resend_email_validation_with_http_info(
+ self,
+ body: Dict[str, Any],
+ _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[object]:
+ """Resend Email Verification
+
+
+ :param body: (required)
+ :type body: object
+ :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._resend_email_validation_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 resend_email_validation_without_preload_content(
+ self,
+ body: Dict[str, Any],
+ _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:
+ """Resend Email Verification
+
+
+ :param body: (required)
+ :type body: object
+ :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._resend_email_validation_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _resend_email_validation_serialize(
+ self,
+ body,
+ _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
+ # process the header parameters
+ # 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/resend_validation',
+ 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 reset_password(
+ self,
+ body: ResetPasswordRequest,
+ _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,
+ ) -> object:
+ """Reset Password
+
+
+ :param body: (required)
+ :type body: ResetPasswordRequest
+ :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._reset_password_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 reset_password_with_http_info(
+ self,
+ body: ResetPasswordRequest,
+ _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[object]:
+ """Reset Password
+
+
+ :param body: (required)
+ :type body: ResetPasswordRequest
+ :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._reset_password_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 reset_password_without_preload_content(
+ self,
+ body: ResetPasswordRequest,
+ _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:
+ """Reset Password
+
+
+ :param body: (required)
+ :type body: ResetPasswordRequest
+ :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._reset_password_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _reset_password_serialize(
+ self,
+ body,
+ _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
+ # process the header parameters
+ # 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/reset_password',
+ 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 signup(
+ self,
+ body: Annotated[CreateAccountRequest, Field(description="Create new account")],
+ 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)]
+ ]
+ ] = 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,
+ ) -> LoginReply:
+ """Signup
+
+
+ :param body: Create new account (required)
+ :type body: CreateAccountRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._signup_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 signup_with_http_info(
+ self,
+ body: Annotated[CreateAccountRequest, Field(description="Create new account")],
+ 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)]
+ ]
+ ] = 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[LoginReply]:
+ """Signup
+
+
+ :param body: Create new account (required)
+ :type body: CreateAccountRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._signup_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 signup_without_preload_content(
+ self,
+ body: Annotated[CreateAccountRequest, Field(description="Create new account")],
+ 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)]
+ ]
+ ] = 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:
+ """Signup
+
+
+ :param body: Create new account (required)
+ :type body: CreateAccountRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._signup_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _signup_serialize(
+ self,
+ body,
+ seon_fp,
+ _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
+ # process the header parameters
+ if seon_fp is not None:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/signup',
+ 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_password(
+ self,
+ body: UpdatePasswordRequest,
+ 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)]
+ ]
+ ] = 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,
+ ) -> LoginReply:
+ """Update Password
+
+
+ :param body: (required)
+ :type body: UpdatePasswordRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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_password_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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_password_with_http_info(
+ self,
+ body: UpdatePasswordRequest,
+ 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)]
+ ]
+ ] = 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[LoginReply]:
+ """Update Password
+
+
+ :param body: (required)
+ :type body: UpdatePasswordRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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_password_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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_password_without_preload_content(
+ self,
+ body: UpdatePasswordRequest,
+ 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)]
+ ]
+ ] = 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 Password
+
+
+ :param body: (required)
+ :type body: UpdatePasswordRequest
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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_password_serialize(
+ body=body,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_password_serialize(
+ self,
+ body,
+ seon_fp,
+ _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
+ # process the header parameters
+ if seon_fp is not None:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/update_password',
+ 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(
+ 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
+
+
+ :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_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_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
+
+
+ :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_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_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
+
+
+ :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_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_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='PUT',
+ resource_path='/v1/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 update_user2(
+ 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
+
+
+ :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_user2_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_user2_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
+
+
+ :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_user2_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_user2_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
+
+
+ :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_user2_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_user2_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='/v1/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 update_user_settings(
+ self,
+ body: UpdateUserSettingsRequest,
+ _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,
+ ) -> UpdateUserSettingsReply:
+ """update_user_settings
+
+
+ :param body: (required)
+ :type body: UpdateUserSettingsRequest
+ :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_settings_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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_settings_with_http_info(
+ self,
+ body: UpdateUserSettingsRequest,
+ _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[UpdateUserSettingsReply]:
+ """update_user_settings
+
+
+ :param body: (required)
+ :type body: UpdateUserSettingsRequest
+ :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_settings_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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_settings_without_preload_content(
+ self,
+ body: UpdateUserSettingsRequest,
+ _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_settings
+
+
+ :param body: (required)
+ :type body: UpdateUserSettingsRequest
+ :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_settings_serialize(
+ body=body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_user_settings_serialize(
+ self,
+ body,
+ _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
+ # process the header parameters
+ # 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # 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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ 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 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,
+ _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,
+ ) -> LoginReply:
+ """Validate
+
+
+ :param id: (required)
+ :type id: str
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._validate_serialize(
+ id=id,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 validate_with_http_info(
+ self,
+ id: StrictStr,
+ 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)]
+ ]
+ ] = 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[LoginReply]:
+ """Validate
+
+
+ :param id: (required)
+ :type id: str
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._validate_serialize(
+ id=id,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 validate_without_preload_content(
+ self,
+ id: StrictStr,
+ 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)]
+ ]
+ ] = 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:
+ """Validate
+
+
+ :param id: (required)
+ :type id: str
+ :param seon_fp: Seon Fingerprint
+ :type seon_fp: 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._validate_serialize(
+ id=id,
+ seon_fp=seon_fp,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _validate_serialize(
+ self,
+ id,
+ seon_fp,
+ _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
+ if seon_fp is not None:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/account/validate/{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/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/api/regional_deployments_api.py b/koyeb/api/api/regional_deployments_api.py
new file mode 100644
index 00000000..a5db06e2
--- /dev/null
+++ b/koyeb/api/api/regional_deployments_api.py
@@ -0,0 +1,982 @@
+# 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 import List, Optional
+from typing_extensions import Annotated
+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.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class RegionalDeploymentsApi:
+ """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 get_regional_deployment(
+ self,
+ 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)]
+ ]
+ ] = 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,
+ ) -> GetRegionalDeploymentReply:
+ """Get Regional Deployment
+
+ Experimental: use at your own risk
+
+ :param id: The id of the regional deployment (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._get_regional_deployment_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ 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")],
+ _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[GetRegionalDeploymentReply]:
+ """Get Regional Deployment
+
+ Experimental: use at your own risk
+
+ :param id: The id of the regional deployment (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._get_regional_deployment_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': "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
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ 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")],
+ _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:
+ """Get Regional Deployment
+
+ Experimental: use at your own risk
+
+ :param id: The id of the regional deployment (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._get_regional_deployment_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': "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
+ )
+ return response_data.response
+
+
+ def _get_regional_deployment_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='GET',
+ resource_path='/v1/regional_deployments/{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 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,
+ _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,
+ ) -> ListRegionalDeploymentEventsReply:
+ """List Regional Deployment events
+
+
+ :param regional_deployment_id: (Optional) Filter on regional deployment id
+ :type regional_deployment_id: str
+ :param types: (Optional) Filter on regional deployment event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_regional_deployment_events_serialize(
+ regional_deployment_id=regional_deployment_id,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListRegionalDeploymentEventsReply]:
+ """List Regional Deployment events
+
+
+ :param regional_deployment_id: (Optional) Filter on regional deployment id
+ :type regional_deployment_id: str
+ :param types: (Optional) Filter on regional deployment event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_regional_deployment_events_serialize(
+ regional_deployment_id=regional_deployment_id,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Regional Deployment events
+
+
+ :param regional_deployment_id: (Optional) Filter on regional deployment id
+ :type regional_deployment_id: str
+ :param types: (Optional) Filter on regional deployment event types
+ :type types: List[str]
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: 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._list_regional_deployment_events_serialize(
+ regional_deployment_id=regional_deployment_id,
+ types=types,
+ limit=limit,
+ offset=offset,
+ order=order,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_regional_deployment_events_serialize(
+ self,
+ regional_deployment_id,
+ types,
+ limit,
+ offset,
+ order,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ 'types': 'multi',
+ }
+
+ _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 regional_deployment_id is not None:
+
+ _query_params.append(('regional_deployment_id', regional_deployment_id))
+
+ if types is not None:
+
+ _query_params.append(('types', types))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if order is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/regional_deployment_events',
+ 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 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,
+ _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,
+ ) -> ListRegionalDeploymentsReply:
+ """List Regional Deployments
+
+ Experimental: use at your own risk
+
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: 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._list_regional_deployments_serialize(
+ deployment_id=deployment_id,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[ListRegionalDeploymentsReply]:
+ """List Regional Deployments
+
+ Experimental: use at your own risk
+
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: 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._list_regional_deployments_serialize(
+ deployment_id=deployment_id,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Regional Deployments
+
+ Experimental: use at your own risk
+
+ :param deployment_id: (Optional) Filter on deployment id
+ :type deployment_id: str
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: 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._list_regional_deployments_serialize(
+ deployment_id=deployment_id,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_regional_deployments_serialize(
+ self,
+ deployment_id,
+ limit,
+ offset,
+ _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 deployment_id is not None:
+
+ _query_params.append(('deployment_id', deployment_id))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/regional_deployments',
+ 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/api/repositories_api.py b/koyeb/api/api/repositories_api.py
new file mode 100644
index 00000000..5468c01d
--- /dev/null
+++ b/koyeb/api/api/repositories_api.py
@@ -0,0 +1,974 @@
+# 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 import Any, Dict, Optional
+from typing_extensions import Annotated
+from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply
+from koyeb.api.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply
+
+from koyeb.api.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class RepositoriesApi:
+ """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 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,
+ _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,
+ ) -> KgitproxyListBranchesReply:
+ """List Branches
+
+
+ :param repository_id: (Optional) Filter on one repository.
+ :type repository_id: str
+ :param name: (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.
+ :type name: str
+ :param limit: (Optional) The number of items to return.
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return.
+ :type offset: 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._list_branches_serialize(
+ repository_id=repository_id,
+ name=name,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[KgitproxyListBranchesReply]:
+ """List Branches
+
+
+ :param repository_id: (Optional) Filter on one repository.
+ :type repository_id: str
+ :param name: (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.
+ :type name: str
+ :param limit: (Optional) The number of items to return.
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return.
+ :type offset: 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._list_branches_serialize(
+ repository_id=repository_id,
+ name=name,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Branches
+
+
+ :param repository_id: (Optional) Filter on one repository.
+ :type repository_id: str
+ :param name: (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.
+ :type name: str
+ :param limit: (Optional) The number of items to return.
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return.
+ :type offset: 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._list_branches_serialize(
+ repository_id=repository_id,
+ name=name,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_branches_serialize(
+ self,
+ repository_id,
+ name,
+ limit,
+ offset,
+ _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 repository_id is not None:
+
+ _query_params.append(('repository_id', repository_id))
+
+ if name is not None:
+
+ _query_params.append(('name', name))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/git/branches',
+ 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 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,
+ _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,
+ ) -> KgitproxyListRepositoriesReply:
+ """List Repositories
+
+
+ :param name: (Optional) Filter on repository name using a fuzzy search.
+ :type name: str
+ :param name_search_op: (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.
+ :type name_search_op: str
+ :param limit: (Optional) The number of items to return.
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return.
+ :type offset: 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._list_repositories_serialize(
+ name=name,
+ name_search_op=name_search_op,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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[KgitproxyListRepositoriesReply]:
+ """List Repositories
+
+
+ :param name: (Optional) Filter on repository name using a fuzzy search.
+ :type name: str
+ :param name_search_op: (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.
+ :type name_search_op: str
+ :param limit: (Optional) The number of items to return.
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return.
+ :type offset: 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._list_repositories_serialize(
+ name=name,
+ name_search_op=name_search_op,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 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,
+ _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:
+ """List Repositories
+
+
+ :param name: (Optional) Filter on repository name using a fuzzy search.
+ :type name: str
+ :param name_search_op: (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.
+ :type name_search_op: str
+ :param limit: (Optional) The number of items to return.
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return.
+ :type offset: 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._list_repositories_serialize(
+ name=name,
+ name_search_op=name_search_op,
+ limit=limit,
+ offset=offset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_repositories_serialize(
+ self,
+ name,
+ name_search_op,
+ limit,
+ offset,
+ _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 name is not None:
+
+ _query_params.append(('name', name))
+
+ if name_search_op is not None:
+
+ _query_params.append(('name_search_op', name_search_op))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/git/repositories',
+ 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 resync_organization(
+ self,
+ organization_id: StrictStr,
+ _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,
+ ) -> object:
+ """Resync Organization
+
+
+ :param organization_id: (required)
+ :type organization_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._resync_organization_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 resync_organization_with_http_info(
+ self,
+ organization_id: StrictStr,
+ _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[object]:
+ """Resync Organization
+
+
+ :param organization_id: (required)
+ :type organization_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._resync_organization_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ 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 resync_organization_without_preload_content(
+ self,
+ organization_id: StrictStr,
+ _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:
+ """Resync Organization
+
+
+ :param organization_id: (required)
+ :type organization_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._resync_organization_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _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",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _resync_organization_serialize(
+ self,
+ organization_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 organization_id is not None:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v1/git/sync/organization/{organization_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/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/api/usages_api.py b/koyeb/api/api/usages_api.py
new file mode 100644
index 00000000..c15b411b
--- /dev/null
+++ b/koyeb/api/api/usages_api.py
@@ -0,0 +1,697 @@
+# 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 datetime import datetime
+from pydantic import Field, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from koyeb.api.models.get_organization_usage_details_reply import GetOrganizationUsageDetailsReply
+from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply
+
+from koyeb.api.api_client import ApiClient, RequestSerialized
+from koyeb.api.api_response import ApiResponse
+from koyeb.api.rest import RESTResponseType
+
+
+class UsagesApi:
+ """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 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,
+ _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,
+ ) -> GetOrganizationUsageReply:
+ """Get organization usage
+
+
+ :param starting_time: The starting time of the period to get data from
+ :type starting_time: datetime
+ :param ending_time: The ending time of the period to get data from
+ :type ending_time: datetime
+ :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._get_organization_usage_serialize(
+ starting_time=starting_time,
+ ending_time=ending_time,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsageReply",
+ }
+ 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 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,
+ _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[GetOrganizationUsageReply]:
+ """Get organization usage
+
+
+ :param starting_time: The starting time of the period to get data from
+ :type starting_time: datetime
+ :param ending_time: The ending time of the period to get data from
+ :type ending_time: datetime
+ :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._get_organization_usage_serialize(
+ starting_time=starting_time,
+ ending_time=ending_time,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsageReply",
+ }
+ 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 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,
+ _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:
+ """Get organization usage
+
+
+ :param starting_time: The starting time of the period to get data from
+ :type starting_time: datetime
+ :param ending_time: The ending time of the period to get data from
+ :type ending_time: datetime
+ :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._get_organization_usage_serialize(
+ starting_time=starting_time,
+ ending_time=ending_time,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsageReply",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_usage_serialize(
+ self,
+ starting_time,
+ ending_time,
+ _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 starting_time is not None:
+ if isinstance(starting_time, datetime):
+ _query_params.append(
+ (
+ 'starting_time',
+ starting_time.strftime(
+ self.api_client.configuration.datetime_format
+ )
+ )
+ )
+ else:
+ _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.strftime(
+ self.api_client.configuration.datetime_format
+ )
+ )
+ )
+ else:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/usages',
+ 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 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,
+ _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,
+ ) -> GetOrganizationUsageDetailsReply:
+ """Get organization usage details
+
+
+ :param starting_time: The starting time of the period to get data from
+ :type starting_time: datetime
+ :param ending_time: The ending time of the period to get data from
+ :type ending_time: datetime
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param accept: If defined with the value 'text/csv', a csv file is returned
+ :type accept: 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._get_organization_usage_details_serialize(
+ starting_time=starting_time,
+ ending_time=ending_time,
+ limit=limit,
+ offset=offset,
+ order=order,
+ accept=accept,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsageDetailsReply",
+ }
+ 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 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,
+ _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[GetOrganizationUsageDetailsReply]:
+ """Get organization usage details
+
+
+ :param starting_time: The starting time of the period to get data from
+ :type starting_time: datetime
+ :param ending_time: The ending time of the period to get data from
+ :type ending_time: datetime
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param accept: If defined with the value 'text/csv', a csv file is returned
+ :type accept: 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._get_organization_usage_details_serialize(
+ starting_time=starting_time,
+ ending_time=ending_time,
+ limit=limit,
+ offset=offset,
+ order=order,
+ accept=accept,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsageDetailsReply",
+ }
+ 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 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,
+ _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:
+ """Get organization usage details
+
+
+ :param starting_time: The starting time of the period to get data from
+ :type starting_time: datetime
+ :param ending_time: The ending time of the period to get data from
+ :type ending_time: datetime
+ :param limit: (Optional) The number of items to return
+ :type limit: str
+ :param offset: (Optional) The offset in the list of item to return
+ :type offset: str
+ :param order: (Optional) Sorts the list in the ascending or the descending order
+ :type order: str
+ :param accept: If defined with the value 'text/csv', a csv file is returned
+ :type accept: 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._get_organization_usage_details_serialize(
+ starting_time=starting_time,
+ ending_time=ending_time,
+ limit=limit,
+ offset=offset,
+ order=order,
+ accept=accept,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizationUsageDetailsReply",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_usage_details_serialize(
+ self,
+ starting_time,
+ ending_time,
+ limit,
+ offset,
+ order,
+ accept,
+ _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 starting_time is not None:
+ if isinstance(starting_time, datetime):
+ _query_params.append(
+ (
+ 'starting_time',
+ starting_time.strftime(
+ self.api_client.configuration.datetime_format
+ )
+ )
+ )
+ else:
+ _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.strftime(
+ self.api_client.configuration.datetime_format
+ )
+ )
+ )
+ else:
+ _query_params.append(('ending_time', ending_time))
+
+ if limit is not None:
+
+ _query_params.append(('limit', limit))
+
+ if offset is not None:
+
+ _query_params.append(('offset', offset))
+
+ if order is not None:
+
+ _query_params.append(('order', order))
+
+ # process the header parameters
+ if accept is not None:
+ _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(
+ [
+ '*/*'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Bearer'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v1/usages/details',
+ 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/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 43b5ca45..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/2025.7.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/api/configuration.py b/koyeb/api/configuration.py
new file mode 100644
index 00000000..948add11
--- /dev/null
+++ b/koyeb/api/configuration.py
@@ -0,0 +1,606 @@
+# 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 copy
+import http.client as httplib
+import logging
+from logging import FileHandler
+import multiprocessing
+import sys
+from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
+from typing_extensions import NotRequired, Self
+
+import urllib3
+
+
+JSON_SCHEMA_VALIDATION_KEYWORDS = {
+ 'multipleOf', 'maximum', 'exclusiveMaximum',
+ 'minimum', 'exclusiveMinimum', 'maxLength',
+ 'minLength', 'pattern', 'maxItems', 'minItems'
+}
+
+ServerVariablesT = Dict[str, str]
+
+GenericAuthSetting = TypedDict(
+ "GenericAuthSetting",
+ {
+ "type": str,
+ "in": str,
+ "key": str,
+ "value": str,
+ },
+)
+
+
+OAuth2AuthSetting = TypedDict(
+ "OAuth2AuthSetting",
+ {
+ "type": Literal["oauth2"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+APIKeyAuthSetting = TypedDict(
+ "APIKeyAuthSetting",
+ {
+ "type": Literal["api_key"],
+ "in": str,
+ "key": str,
+ "value": Optional[str],
+ },
+)
+
+
+BasicAuthSetting = TypedDict(
+ "BasicAuthSetting",
+ {
+ "type": Literal["basic"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": Optional[str],
+ },
+)
+
+
+BearerFormatAuthSetting = TypedDict(
+ "BearerFormatAuthSetting",
+ {
+ "type": Literal["bearer"],
+ "in": Literal["header"],
+ "format": Literal["JWT"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+BearerAuthSetting = TypedDict(
+ "BearerAuthSetting",
+ {
+ "type": Literal["bearer"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+HTTPSignatureAuthSetting = TypedDict(
+ "HTTPSignatureAuthSetting",
+ {
+ "type": Literal["http-signature"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": None,
+ },
+)
+
+
+AuthSettings = TypedDict(
+ "AuthSettings",
+ {
+ "Bearer": APIKeyAuthSetting,
+ },
+ total=False,
+)
+
+
+class HostSettingVariable(TypedDict):
+ description: str
+ default_value: str
+ enum_values: List[str]
+
+
+class HostSetting(TypedDict):
+ url: str
+ description: str
+ variables: NotRequired[Dict[str, HostSettingVariable]]
+
+
+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.
+ :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,
+ 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
+ """
+ self._base_path = "https://app.koyeb.com" if host is None else host
+ """Default Base url
+ """
+ self.server_index = 0 if server_index is None and host is None else server_index
+ self.server_operation_index = server_operation_index or {}
+ """Default server index
+ """
+ self.server_variables = server_variables or {}
+ self.server_operation_variables = server_operation_variables or {}
+ """Default server variables
+ """
+ self.ignore_operation_servers = ignore_operation_servers
+ """Ignore operation servers
+ """
+ self.temp_folder_path = None
+ """Temp file folder for downloading files
+ """
+ # Authentication Settings
+ self.api_key = {}
+ if api_key:
+ self.api_key = api_key
+ """dict to store API key(s)
+ """
+ self.api_key_prefix = {}
+ if api_key_prefix:
+ self.api_key_prefix = api_key_prefix
+ """dict to store API prefix (e.g. Bearer)
+ """
+ self.refresh_api_key_hook = None
+ """function hook to refresh API key if expired
+ """
+ self.username = username
+ """Username for HTTP basic authentication
+ """
+ self.password = password
+ """Password for HTTP basic authentication
+ """
+ self.access_token = access_token
+ """Access token
+ """
+ self.logger = {}
+ """Logging Settings
+ """
+ self.logger["package_logger"] = logging.getLogger("koyeb.api")
+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")
+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'
+ """Log format
+ """
+ self.logger_stream_handler = None
+ """Log stream handler
+ """
+ self.logger_file_handler: Optional[FileHandler] = None
+ """Log file handler
+ """
+ self.logger_file = None
+ """Debug file location
+ """
+ if debug is not None:
+ self.debug = debug
+ else:
+ self.__debug = False
+ """Debug switch
+ """
+
+ self.verify_ssl = True
+ """SSL/TLS verification
+ Set this to false to skip verifying SSL certificate when calling API
+ from https server.
+ """
+ self.ssl_ca_cert = ssl_ca_cert
+ """Set this to customize the certificate file to verify the peer.
+ """
+ self.ca_cert_data = ca_cert_data
+ """Set this to verify the peer using PEM (str) or DER (bytes)
+ certificate data.
+ """
+ self.cert_file = cert_file
+ """client certificate file
+ """
+ self.key_file = key_file
+ """client key file
+ """
+ self.assert_hostname = None
+ """Set this to True/False to enable/disable SSL hostname verification.
+ """
+ self.tls_server_name = None
+ """SSL/TLS Server Name Indication (SNI)
+ Set this to the SNI value expected by the server.
+ """
+
+ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
+ """urllib3 connection pool's maximum number of connections saved
+ per pool. urllib3 uses 1 connection as default value, but this is
+ not the best value when you are making a lot of possibly parallel
+ requests to the same host, which is often the case here.
+ cpu_count * 5 is used as default value to increase performance.
+ """
+
+ self.proxy: Optional[str] = None
+ """Proxy URL
+ """
+ self.proxy_headers = None
+ """Proxy headers
+ """
+ self.safe_chars_for_path_param = ''
+ """Safe chars for path_param
+ """
+ self.retries = retries
+ """Adding retries to override urllib3 default value 3
+ """
+ # Enable client side validation
+ self.client_side_validation = True
+
+ self.socket_options = None
+ """Options to pass down to the underlying urllib3 socket
+ """
+
+ self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
+ """datetime format
+ """
+
+ self.date_format = "%Y-%m-%d"
+ """date format
+ """
+
+ 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'):
+ setattr(result, k, copy.deepcopy(v, memo))
+ # shallow copy of loggers
+ result.logger = copy.copy(self.logger)
+ # use setters to configure loggers
+ result.logger_file = self.logger_file
+ result.debug = self.debug
+ return result
+
+ def __setattr__(self, name: str, value: Any) -> None:
+ object.__setattr__(self, name, value)
+
+ @classmethod
+ def set_default(cls, default: Optional[Self]) -> None:
+ """Set default instance of configuration.
+
+ It stores default configuration, which can be
+ returned by get_default_copy method.
+
+ :param default: object of Configuration
+ """
+ cls._default = default
+
+ @classmethod
+ def get_default_copy(cls) -> Self:
+ """Deprecated. Please use `get_default` instead.
+
+ Deprecated. Please use `get_default` instead.
+
+ :return: The configuration object.
+ """
+ return cls.get_default()
+
+ @classmethod
+ def get_default(cls) -> Self:
+ """Return the default configuration.
+
+ This method returns newly created, based on default constructor,
+ object of Configuration class or returns a copy of default
+ configuration.
+
+ :return: The configuration object.
+ """
+ if cls._default is None:
+ cls._default = cls()
+ return cls._default
+
+ @property
+ def logger_file(self) -> Optional[str]:
+ """The logger file.
+
+ If the logger_file is None, then add stream handler and remove file
+ handler. Otherwise, add file handler and remove stream handler.
+
+ :param value: The logger_file path.
+ :type: str
+ """
+ return self.__logger_file
+
+ @logger_file.setter
+ def logger_file(self, value: Optional[str]) -> None:
+ """The logger file.
+
+ If the logger_file is None, then add stream handler and remove file
+ handler. Otherwise, add file handler and remove stream handler.
+
+ :param value: The logger_file path.
+ :type: str
+ """
+ self.__logger_file = value
+ if self.__logger_file:
+ # If set logging file,
+ # then add file handler and remove stream handler.
+ self.logger_file_handler = logging.FileHandler(self.__logger_file)
+ self.logger_file_handler.setFormatter(self.logger_formatter)
+ for _, logger in self.logger.items():
+ logger.addHandler(self.logger_file_handler)
+
+ @property
+ def debug(self) -> bool:
+ """Debug status
+
+ :param value: The debug status, True or False.
+ :type: bool
+ """
+ return self.__debug
+
+ @debug.setter
+ def debug(self, value: bool) -> None:
+ """Debug status
+
+ :param value: The debug status, True or False.
+ :type: bool
+ """
+ self.__debug = value
+ if self.__debug:
+ # if debug status is True, turn on debug logging
+ for _, logger in self.logger.items():
+ logger.setLevel(logging.DEBUG)
+ # turn on httplib debug
+ httplib.HTTPConnection.debuglevel = 1
+ else:
+ # if debug status is False, turn off debug logging,
+ # setting log level to default `logging.WARNING`
+ for _, logger in self.logger.items():
+ logger.setLevel(logging.WARNING)
+ # turn off httplib debug
+ httplib.HTTPConnection.debuglevel = 0
+
+ @property
+ def logger_format(self) -> str:
+ """The logger format.
+
+ The logger_formatter will be updated when sets logger_format.
+
+ :param value: The format string.
+ :type: str
+ """
+ return self.__logger_format
+
+ @logger_format.setter
+ def logger_format(self, value: str) -> None:
+ """The logger format.
+
+ The logger_formatter will be updated when sets logger_format.
+
+ :param value: The format string.
+ :type: str
+ """
+ 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]:
+ """Gets API key (with prefix if set).
+
+ :param identifier: The identifier of apiKey.
+ :param alias: The alternative identifier of apiKey.
+ :return: The token for api key authentication.
+ """
+ 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)
+ if key:
+ prefix = self.api_key_prefix.get(identifier)
+ if prefix:
+ return "%s %s" % (prefix, key)
+ else:
+ return key
+
+ return None
+
+ def get_basic_auth_token(self) -> Optional[str]:
+ """Gets HTTP basic authentication header (string).
+
+ :return: The token for basic HTTP authentication.
+ """
+ username = ""
+ if self.username is not None:
+ username = self.username
+ password = ""
+ if self.password is not None:
+ password = self.password
+ return urllib3.util.make_headers(
+ basic_auth=username + ':' + password
+ ).get('authorization')
+
+ 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',
+ ),
+ }
+ return auth
+
+ def to_debug_report(self) -> str:
+ """Gets the essential information for debugging.
+
+ :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)
+
+ def get_host_settings(self) -> List[HostSetting]:
+ """Gets an array of host settings
+
+ :return: An array of host settings
+ """
+ return [
+ {
+ '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,
+ ) -> str:
+ """Gets host URL based on the index and variables
+ :param index: array index of the host settings
+ :param variables: hash of variable and the corresponding value
+ :param servers: an array of host settings or None
+ :return: URL based on host settings
+ """
+ if index is None:
+ return self._base_path
+
+ variables = {} if variables is None else variables
+ servers = self.get_host_settings() if servers is None else servers
+
+ try:
+ server = servers[index]
+ except IndexError:
+ raise ValueError(
+ "Invalid index {0} when selecting the host settings. "
+ "Must be less than {1}".format(index, len(servers)))
+
+ 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'])
+
+ 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']))
+
+ url = url.replace("{" + variable_name + "}", used_value)
+
+ return url
+
+ @property
+ def host(self) -> str:
+ """Return generated host."""
+ return self.get_host_from_settings(self.server_index, variables=self.server_variables)
+
+ @host.setter
+ def host(self, value: str) -> None:
+ """Fix base path."""
+ self._base_path = value
+ self.server_index = None
diff --git a/koyeb/api/deployments_api.py b/koyeb/api/deployments_api.py
deleted file mode 100644
index ae841e55..00000000
--- a/koyeb/api/deployments_api.py
+++ /dev/null
@@ -1,1606 +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, 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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class DeploymentsApi:
- """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 cancel_deployment(
- self,
- 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)]
- ],
- ] = 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,
- ) -> object:
- """Cancel Deployment
-
- Deployment cancellation is allowed for the following status: - pending - provisioning - scheduled
-
- :param id: The id of the deployment to cancel. (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._cancel_deployment_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- 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.")
- ],
- _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[object]:
- """Cancel Deployment
-
- Deployment cancellation is allowed for the following status: - pending - provisioning - scheduled
-
- :param id: The id of the deployment to cancel. (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._cancel_deployment_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- 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.")
- ],
- _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:
- """Cancel Deployment
-
- Deployment cancellation is allowed for the following status: - pending - provisioning - scheduled
-
- :param id: The id of the deployment to cancel. (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._cancel_deployment_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": "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
- )
- return response_data.response
-
- def _cancel_deployment_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="POST",
- resource_path="/v1/deployments/{id}/cancel",
- 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 get_deployment(
- self,
- id: Annotated[StrictStr, Field(description="The id of the deployment")],
- _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,
- ) -> GetDeploymentReply:
- """Get Deployment
-
-
- :param id: The id of the deployment (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._get_deployment_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
- @validate_call
- def get_deployment_with_http_info(
- self,
- id: Annotated[StrictStr, Field(description="The id of the deployment")],
- _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[GetDeploymentReply]:
- """Get Deployment
-
-
- :param id: The id of the deployment (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._get_deployment_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
- @validate_call
- def get_deployment_without_preload_content(
- self,
- id: Annotated[StrictStr, Field(description="The id of the deployment")],
- _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:
- """Get Deployment
-
-
- :param id: The id of the deployment (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._get_deployment_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": "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
- )
- return response_data.response
-
- def _get_deployment_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="GET",
- resource_path="/v1/deployments/{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 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,
- _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,
- ) -> GetDeploymentScalingReply:
- """Get Deployment Scaling
-
-
- :param id: (required)
- :type id: str
- :param region: (Optional) Filter on region
- :type region: str
- :param replica_index: (Optional) Filter on replica_index
- :type replica_index: int
- :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._get_deployment_scaling_serialize(
- id=id,
- region=region,
- replica_index=replica_index,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[GetDeploymentScalingReply]:
- """Get Deployment Scaling
-
-
- :param id: (required)
- :type id: str
- :param region: (Optional) Filter on region
- :type region: str
- :param replica_index: (Optional) Filter on replica_index
- :type replica_index: int
- :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._get_deployment_scaling_serialize(
- id=id,
- region=region,
- replica_index=replica_index,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """Get Deployment Scaling
-
-
- :param id: (required)
- :type id: str
- :param region: (Optional) Filter on region
- :type region: str
- :param replica_index: (Optional) Filter on replica_index
- :type replica_index: int
- :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._get_deployment_scaling_serialize(
- id=id,
- region=region,
- replica_index=replica_index,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_deployment_scaling_serialize(
- self,
- id,
- region,
- replica_index,
- _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
- if region is not None:
-
- _query_params.append(("region", region))
-
- if replica_index is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/deployment/{id}/scaling",
- 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 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,
- _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,
- ) -> ListDeploymentEventsReply:
- """List Deployment events
-
-
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param types: (Optional) Filter on deployment event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_deployment_events_serialize(
- deployment_id=deployment_id,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListDeploymentEventsReply]:
- """List Deployment events
-
-
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param types: (Optional) Filter on deployment event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_deployment_events_serialize(
- deployment_id=deployment_id,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Deployment events
-
-
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param types: (Optional) Filter on deployment event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_deployment_events_serialize(
- deployment_id=deployment_id,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_deployment_events_serialize(
- self,
- deployment_id,
- types,
- limit,
- offset,
- order,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "types": "multi",
- }
-
- _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 deployment_id is not None:
-
- _query_params.append(("deployment_id", deployment_id))
-
- if types is not None:
-
- _query_params.append(("types", types))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if order is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/deployment_events",
- 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 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,
- _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,
- ) -> ListDeploymentsReply:
- """List Deployments
-
-
- :param app_id: (Optional) Filter on application id
- :type app_id: str
- :param service_id: (Optional) Filter on service id
- :type service_id: str
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param statuses: (Optional) Filter on 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
- (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._list_deployments_serialize(
- app_id=app_id,
- service_id=service_id,
- limit=limit,
- offset=offset,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListDeploymentsReply]:
- """List Deployments
-
-
- :param app_id: (Optional) Filter on application id
- :type app_id: str
- :param service_id: (Optional) Filter on service id
- :type service_id: str
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param statuses: (Optional) Filter on 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
- (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._list_deployments_serialize(
- app_id=app_id,
- service_id=service_id,
- limit=limit,
- offset=offset,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Deployments
-
-
- :param app_id: (Optional) Filter on application id
- :type app_id: str
- :param service_id: (Optional) Filter on service id
- :type service_id: str
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param statuses: (Optional) Filter on 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
- (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._list_deployments_serialize(
- app_id=app_id,
- service_id=service_id,
- limit=limit,
- offset=offset,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_deployments_serialize(
- self,
- app_id,
- service_id,
- limit,
- offset,
- statuses,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "statuses": "multi",
- }
-
- _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 app_id is not None:
-
- _query_params.append(("app_id", app_id))
-
- if service_id is not None:
-
- _query_params.append(("service_id", service_id))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- 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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/deployments",
- 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/docker_helper_api.py b/koyeb/api/docker_helper_api.py
deleted file mode 100644
index 069ff2f7..00000000
--- a/koyeb/api/docker_helper_api.py
+++ /dev/null
@@ -1,337 +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 import Optional
-from typing_extensions import Annotated
-from koyeb.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
-
-
-class DockerHelperApi:
- """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 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,
- _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,
- ) -> VerifyDockerImageReply:
- """Verify Docker Image
-
- Verify if a docker image is reachable
-
- :param image: The full image uri to be verified
- :type image: str
- :param secret_id: (Optional) the id of the secret to use to authenticate to the registry
- :type secret_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._verify_docker_image_serialize(
- image=image,
- secret_id=secret_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[VerifyDockerImageReply]:
- """Verify Docker Image
-
- Verify if a docker image is reachable
-
- :param image: The full image uri to be verified
- :type image: str
- :param secret_id: (Optional) the id of the secret to use to authenticate to the registry
- :type secret_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._verify_docker_image_serialize(
- image=image,
- secret_id=secret_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """Verify Docker Image
-
- Verify if a docker image is reachable
-
- :param image: The full image uri to be verified
- :type image: str
- :param secret_id: (Optional) the id of the secret to use to authenticate to the registry
- :type secret_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._verify_docker_image_serialize(
- image=image,
- secret_id=secret_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _verify_docker_image_serialize(
- self,
- image,
- secret_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
- # process the query parameters
- if image is not None:
-
- _query_params.append(("image", image))
-
- if secret_id is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/docker-helper/verify",
- 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/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/instances_api.py b/koyeb/api/instances_api.py
deleted file mode 100644
index 856386e1..00000000
--- a/koyeb/api/instances_api.py
+++ /dev/null
@@ -1,1705 +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 datetime import datetime
-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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class InstancesApi:
- """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 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,
- 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,
- _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,
- ) -> StreamResultOfExecCommandReply:
- """Exec Command
-
- 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.
-
- :param id: ID of the resource to exec on.
- :type id: str
- :param body_command: Command to exec. Mandatory in the first frame sent
- :type body_command: List[str]
- :param body_tty_size_height:
- :type body_tty_size_height: int
- :param body_tty_size_width:
- :type body_tty_size_width: int
- :param body_stdin_data: Data is base64 encoded
- :type body_stdin_data: bytearray
- :param body_stdin_close: Indicate last data frame
- :type body_stdin_close: bool
- :param body_disable_tty: Disable TTY. It's enough to specify it in the first frame
- :type body_disable_tty: bool
- :param id_type: When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.
- :type id_type: 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._exec_command_serialize(
- id=id,
- body_command=body_command,
- body_tty_size_height=body_tty_size_height,
- body_tty_size_width=body_tty_size_width,
- body_stdin_data=body_stdin_data,
- body_stdin_close=body_stdin_close,
- body_disable_tty=body_disable_tty,
- id_type=id_type,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- 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,
- _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[StreamResultOfExecCommandReply]:
- """Exec Command
-
- 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.
-
- :param id: ID of the resource to exec on.
- :type id: str
- :param body_command: Command to exec. Mandatory in the first frame sent
- :type body_command: List[str]
- :param body_tty_size_height:
- :type body_tty_size_height: int
- :param body_tty_size_width:
- :type body_tty_size_width: int
- :param body_stdin_data: Data is base64 encoded
- :type body_stdin_data: bytearray
- :param body_stdin_close: Indicate last data frame
- :type body_stdin_close: bool
- :param body_disable_tty: Disable TTY. It's enough to specify it in the first frame
- :type body_disable_tty: bool
- :param id_type: When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.
- :type id_type: 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._exec_command_serialize(
- id=id,
- body_command=body_command,
- body_tty_size_height=body_tty_size_height,
- body_tty_size_width=body_tty_size_width,
- body_stdin_data=body_stdin_data,
- body_stdin_close=body_stdin_close,
- body_disable_tty=body_disable_tty,
- id_type=id_type,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- 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,
- _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:
- """Exec Command
-
- 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.
-
- :param id: ID of the resource to exec on.
- :type id: str
- :param body_command: Command to exec. Mandatory in the first frame sent
- :type body_command: List[str]
- :param body_tty_size_height:
- :type body_tty_size_height: int
- :param body_tty_size_width:
- :type body_tty_size_width: int
- :param body_stdin_data: Data is base64 encoded
- :type body_stdin_data: bytearray
- :param body_stdin_close: Indicate last data frame
- :type body_stdin_close: bool
- :param body_disable_tty: Disable TTY. It's enough to specify it in the first frame
- :type body_disable_tty: bool
- :param id_type: When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.
- :type id_type: 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._exec_command_serialize(
- id=id,
- body_command=body_command,
- body_tty_size_height=body_tty_size_height,
- body_tty_size_width=body_tty_size_width,
- body_stdin_data=body_stdin_data,
- body_stdin_close=body_stdin_close,
- body_disable_tty=body_disable_tty,
- id_type=id_type,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _exec_command_serialize(
- self,
- id,
- body_command,
- body_tty_size_height,
- body_tty_size_width,
- body_stdin_data,
- body_stdin_close,
- body_disable_tty,
- id_type,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "body.command": "multi",
- }
-
- _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 id is not None:
-
- _query_params.append(("id", id))
-
- if body_command is not None:
-
- _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))
-
- if body_tty_size_width is not None:
-
- _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))
-
- if body_stdin_close is not None:
-
- _query_params.append(("body.stdin.close", body_stdin_close))
-
- if body_disable_tty is not None:
-
- _query_params.append(("body.disableTty", body_disable_tty))
-
- if id_type is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/streams/instances/exec",
- 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 get_instance(
- self,
- id: Annotated[StrictStr, Field(description="The id of the instance")],
- _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,
- ) -> GetInstanceReply:
- """Get Instance
-
-
- :param id: The id of the instance (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._get_instance_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
- @validate_call
- def get_instance_with_http_info(
- self,
- id: Annotated[StrictStr, Field(description="The id of the instance")],
- _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[GetInstanceReply]:
- """Get Instance
-
-
- :param id: The id of the instance (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._get_instance_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
- @validate_call
- def get_instance_without_preload_content(
- self,
- id: Annotated[StrictStr, Field(description="The id of the instance")],
- _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:
- """Get Instance
-
-
- :param id: The id of the instance (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._get_instance_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": "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
- )
- return response_data.response
-
- def _get_instance_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="GET",
- resource_path="/v1/instances/{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 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,
- _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,
- ) -> ListInstanceEventsReply:
- """List Instance events
-
-
- :param instance_ids: (Optional) Filter on list of instance id
- :type instance_ids: List[str]
- :param types: (Optional) Filter on instance event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_instance_events_serialize(
- instance_ids=instance_ids,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListInstanceEventsReply]:
- """List Instance events
-
-
- :param instance_ids: (Optional) Filter on list of instance id
- :type instance_ids: List[str]
- :param types: (Optional) Filter on instance event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_instance_events_serialize(
- instance_ids=instance_ids,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Instance events
-
-
- :param instance_ids: (Optional) Filter on list of instance id
- :type instance_ids: List[str]
- :param types: (Optional) Filter on instance event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_instance_events_serialize(
- instance_ids=instance_ids,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_instance_events_serialize(
- self,
- instance_ids,
- types,
- limit,
- offset,
- order,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "instance_ids": "multi",
- "types": "multi",
- }
-
- _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 instance_ids is not None:
-
- _query_params.append(("instance_ids", instance_ids))
-
- if types is not None:
-
- _query_params.append(("types", types))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if order is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/instance_events",
- 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 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,
- _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,
- ) -> ListInstancesReply:
- """List Instances
-
-
- :param app_id: (Optional) Filter on application id
- :type app_id: str
- :param service_id: (Optional) Filter on service id
- :type service_id: str
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param regional_deployment_id: (Optional) Filter on regional deployment id
- :type regional_deployment_id: str
- :param allocation_id: (Optional) Filter on allocation id
- :type allocation_id: str
- :param replica_index: (Optional) Filter on replica index
- :type replica_index: str
- :param statuses: (Optional) Filter on instance statuses
- :type statuses: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param starting_time: (Optional) The starting time of the period of running instance
- :type starting_time: datetime
- :param ending_time: (Optional) The ending time of the period of running instance
- :type ending_time: datetime
- :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._list_instances_serialize(
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- regional_deployment_id=regional_deployment_id,
- allocation_id=allocation_id,
- replica_index=replica_index,
- statuses=statuses,
- limit=limit,
- offset=offset,
- order=order,
- starting_time=starting_time,
- ending_time=ending_time,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListInstancesReply]:
- """List Instances
-
-
- :param app_id: (Optional) Filter on application id
- :type app_id: str
- :param service_id: (Optional) Filter on service id
- :type service_id: str
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param regional_deployment_id: (Optional) Filter on regional deployment id
- :type regional_deployment_id: str
- :param allocation_id: (Optional) Filter on allocation id
- :type allocation_id: str
- :param replica_index: (Optional) Filter on replica index
- :type replica_index: str
- :param statuses: (Optional) Filter on instance statuses
- :type statuses: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param starting_time: (Optional) The starting time of the period of running instance
- :type starting_time: datetime
- :param ending_time: (Optional) The ending time of the period of running instance
- :type ending_time: datetime
- :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._list_instances_serialize(
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- regional_deployment_id=regional_deployment_id,
- allocation_id=allocation_id,
- replica_index=replica_index,
- statuses=statuses,
- limit=limit,
- offset=offset,
- order=order,
- starting_time=starting_time,
- ending_time=ending_time,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Instances
-
-
- :param app_id: (Optional) Filter on application id
- :type app_id: str
- :param service_id: (Optional) Filter on service id
- :type service_id: str
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param regional_deployment_id: (Optional) Filter on regional deployment id
- :type regional_deployment_id: str
- :param allocation_id: (Optional) Filter on allocation id
- :type allocation_id: str
- :param replica_index: (Optional) Filter on replica index
- :type replica_index: str
- :param statuses: (Optional) Filter on instance statuses
- :type statuses: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param starting_time: (Optional) The starting time of the period of running instance
- :type starting_time: datetime
- :param ending_time: (Optional) The ending time of the period of running instance
- :type ending_time: datetime
- :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._list_instances_serialize(
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- regional_deployment_id=regional_deployment_id,
- allocation_id=allocation_id,
- replica_index=replica_index,
- statuses=statuses,
- limit=limit,
- offset=offset,
- order=order,
- starting_time=starting_time,
- ending_time=ending_time,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_instances_serialize(
- self,
- app_id,
- service_id,
- deployment_id,
- regional_deployment_id,
- allocation_id,
- replica_index,
- statuses,
- limit,
- offset,
- order,
- starting_time,
- ending_time,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "statuses": "multi",
- }
-
- _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 app_id is not None:
-
- _query_params.append(("app_id", app_id))
-
- if service_id is not None:
-
- _query_params.append(("service_id", service_id))
-
- if deployment_id is not None:
-
- _query_params.append(("deployment_id", deployment_id))
-
- if regional_deployment_id is not None:
-
- _query_params.append(("regional_deployment_id", regional_deployment_id))
-
- if allocation_id is not None:
-
- _query_params.append(("allocation_id", allocation_id))
-
- if replica_index is not None:
-
- _query_params.append(("replica_index", replica_index))
-
- if statuses is not None:
-
- _query_params.append(("statuses", statuses))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if order is not None:
-
- _query_params.append(("order", order))
-
- if starting_time is not None:
- if isinstance(starting_time, datetime):
- _query_params.append(
- (
- "starting_time",
- starting_time.strftime(
- self.api_client.configuration.datetime_format
- ),
- )
- )
- else:
- _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.strftime(
- self.api_client.configuration.datetime_format
- ),
- )
- )
- else:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/instances",
- 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/logs_api.py b/koyeb/api/logs_api.py
deleted file mode 100644
index dfe76b3b..00000000
--- a/koyeb/api/logs_api.py
+++ /dev/null
@@ -1,1055 +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 datetime import datetime
-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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class LogsApi:
- """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 query_logs(
- self,
- type: Optional[StrictStr] = None,
- app_id: Optional[StrictStr] = None,
- service_id: Optional[StrictStr] = None,
- deployment_id: Optional[StrictStr] = None,
- 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,
- _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,
- ) -> QueryLogsReply:
- """Query logs
-
-
- :param type:
- :type type: str
- :param app_id:
- :type app_id: str
- :param service_id:
- :type service_id: str
- :param deployment_id:
- :type deployment_id: str
- :param instance_id:
- :type instance_id: str
- :param stream:
- :type stream: str
- :param regional_deployment_id:
- :type regional_deployment_id: str
- :param start: (Optional) Must always be before `end`. Defaults to 15 minutes ago.
- :type start: datetime
- :param end: (Optional) Must always be after `start`. Defaults to now.
- :type end: datetime
- :param order: (Optional) `asc` or `desc`. Defaults to `desc`.
- :type order: str
- :param limit: (Optional) Defaults to 100. Maximum of 1000.
- :type limit: str
- :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
- :type regex: str
- :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
- :type text: 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._query_logs_serialize(
- type=type,
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- instance_id=instance_id,
- stream=stream,
- regional_deployment_id=regional_deployment_id,
- start=start,
- end=end,
- order=order,
- limit=limit,
- regex=regex,
- text=text,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 query_logs_with_http_info(
- self,
- type: Optional[StrictStr] = None,
- app_id: Optional[StrictStr] = None,
- service_id: Optional[StrictStr] = None,
- deployment_id: Optional[StrictStr] = None,
- 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,
- _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[QueryLogsReply]:
- """Query logs
-
-
- :param type:
- :type type: str
- :param app_id:
- :type app_id: str
- :param service_id:
- :type service_id: str
- :param deployment_id:
- :type deployment_id: str
- :param instance_id:
- :type instance_id: str
- :param stream:
- :type stream: str
- :param regional_deployment_id:
- :type regional_deployment_id: str
- :param start: (Optional) Must always be before `end`. Defaults to 15 minutes ago.
- :type start: datetime
- :param end: (Optional) Must always be after `start`. Defaults to now.
- :type end: datetime
- :param order: (Optional) `asc` or `desc`. Defaults to `desc`.
- :type order: str
- :param limit: (Optional) Defaults to 100. Maximum of 1000.
- :type limit: str
- :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
- :type regex: str
- :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
- :type text: 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._query_logs_serialize(
- type=type,
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- instance_id=instance_id,
- stream=stream,
- regional_deployment_id=regional_deployment_id,
- start=start,
- end=end,
- order=order,
- limit=limit,
- regex=regex,
- text=text,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 query_logs_without_preload_content(
- self,
- type: Optional[StrictStr] = None,
- app_id: Optional[StrictStr] = None,
- service_id: Optional[StrictStr] = None,
- deployment_id: Optional[StrictStr] = None,
- 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,
- _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:
- """Query logs
-
-
- :param type:
- :type type: str
- :param app_id:
- :type app_id: str
- :param service_id:
- :type service_id: str
- :param deployment_id:
- :type deployment_id: str
- :param instance_id:
- :type instance_id: str
- :param stream:
- :type stream: str
- :param regional_deployment_id:
- :type regional_deployment_id: str
- :param start: (Optional) Must always be before `end`. Defaults to 15 minutes ago.
- :type start: datetime
- :param end: (Optional) Must always be after `start`. Defaults to now.
- :type end: datetime
- :param order: (Optional) `asc` or `desc`. Defaults to `desc`.
- :type order: str
- :param limit: (Optional) Defaults to 100. Maximum of 1000.
- :type limit: str
- :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
- :type regex: str
- :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
- :type text: 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._query_logs_serialize(
- type=type,
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- instance_id=instance_id,
- stream=stream,
- regional_deployment_id=regional_deployment_id,
- start=start,
- end=end,
- order=order,
- limit=limit,
- regex=regex,
- text=text,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _query_logs_serialize(
- self,
- type,
- app_id,
- service_id,
- deployment_id,
- instance_id,
- stream,
- regional_deployment_id,
- start,
- end,
- order,
- limit,
- regex,
- text,
- _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 type is not None:
-
- _query_params.append(("type", type))
-
- if app_id is not None:
-
- _query_params.append(("app_id", app_id))
-
- if service_id is not None:
-
- _query_params.append(("service_id", service_id))
-
- if deployment_id is not None:
-
- _query_params.append(("deployment_id", deployment_id))
-
- if instance_id is not None:
-
- _query_params.append(("instance_id", instance_id))
-
- if stream is not None:
-
- _query_params.append(("stream", stream))
-
- if regional_deployment_id is not None:
-
- _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),
- )
- )
- else:
- _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))
- )
- else:
- _query_params.append(("end", end))
-
- if order is not None:
-
- _query_params.append(("order", order))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if regex is not None:
-
- _query_params.append(("regex", regex))
-
- if text is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/streams/logs/query",
- 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 tail_logs(
- self,
- type: Optional[StrictStr] = None,
- app_id: Optional[StrictStr] = None,
- service_id: Optional[StrictStr] = None,
- deployment_id: Optional[StrictStr] = None,
- regional_deployment_id: Optional[StrictStr] = None,
- instance_id: Optional[StrictStr] = None,
- 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,
- _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,
- ) -> StreamResultOfLogEntry:
- """Tails logs
-
-
- :param type:
- :type type: str
- :param app_id:
- :type app_id: str
- :param service_id:
- :type service_id: str
- :param deployment_id:
- :type deployment_id: str
- :param regional_deployment_id:
- :type regional_deployment_id: str
- :param instance_id:
- :type instance_id: str
- :param stream:
- :type stream: str
- :param start:
- :type start: datetime
- :param limit:
- :type limit: str
- :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
- :type regex: str
- :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
- :type text: 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._tail_logs_serialize(
- type=type,
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- regional_deployment_id=regional_deployment_id,
- instance_id=instance_id,
- stream=stream,
- start=start,
- limit=limit,
- regex=regex,
- text=text,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 tail_logs_with_http_info(
- self,
- type: Optional[StrictStr] = None,
- app_id: Optional[StrictStr] = None,
- service_id: Optional[StrictStr] = None,
- deployment_id: Optional[StrictStr] = None,
- regional_deployment_id: Optional[StrictStr] = None,
- instance_id: Optional[StrictStr] = None,
- 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,
- _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[StreamResultOfLogEntry]:
- """Tails logs
-
-
- :param type:
- :type type: str
- :param app_id:
- :type app_id: str
- :param service_id:
- :type service_id: str
- :param deployment_id:
- :type deployment_id: str
- :param regional_deployment_id:
- :type regional_deployment_id: str
- :param instance_id:
- :type instance_id: str
- :param stream:
- :type stream: str
- :param start:
- :type start: datetime
- :param limit:
- :type limit: str
- :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
- :type regex: str
- :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
- :type text: 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._tail_logs_serialize(
- type=type,
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- regional_deployment_id=regional_deployment_id,
- instance_id=instance_id,
- stream=stream,
- start=start,
- limit=limit,
- regex=regex,
- text=text,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 tail_logs_without_preload_content(
- self,
- type: Optional[StrictStr] = None,
- app_id: Optional[StrictStr] = None,
- service_id: Optional[StrictStr] = None,
- deployment_id: Optional[StrictStr] = None,
- regional_deployment_id: Optional[StrictStr] = None,
- instance_id: Optional[StrictStr] = None,
- 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,
- _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:
- """Tails logs
-
-
- :param type:
- :type type: str
- :param app_id:
- :type app_id: str
- :param service_id:
- :type service_id: str
- :param deployment_id:
- :type deployment_id: str
- :param regional_deployment_id:
- :type regional_deployment_id: str
- :param instance_id:
- :type instance_id: str
- :param stream:
- :type stream: str
- :param start:
- :type start: datetime
- :param limit:
- :type limit: str
- :param regex: (Optional) Apply a regex to filter logs. Can't be used with `text`.
- :type regex: str
- :param text: (Optional) Looks for this string in logs. Can't be used with `regex`.
- :type text: 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._tail_logs_serialize(
- type=type,
- app_id=app_id,
- service_id=service_id,
- deployment_id=deployment_id,
- regional_deployment_id=regional_deployment_id,
- instance_id=instance_id,
- stream=stream,
- start=start,
- limit=limit,
- regex=regex,
- text=text,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _tail_logs_serialize(
- self,
- type,
- app_id,
- service_id,
- deployment_id,
- regional_deployment_id,
- instance_id,
- stream,
- start,
- limit,
- regex,
- text,
- _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 type is not None:
-
- _query_params.append(("type", type))
-
- if app_id is not None:
-
- _query_params.append(("app_id", app_id))
-
- if service_id is not None:
-
- _query_params.append(("service_id", service_id))
-
- if deployment_id is not None:
-
- _query_params.append(("deployment_id", deployment_id))
-
- if regional_deployment_id is not None:
-
- _query_params.append(("regional_deployment_id", regional_deployment_id))
-
- if instance_id is not None:
-
- _query_params.append(("instance_id", instance_id))
-
- if stream is not None:
-
- _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),
- )
- )
- else:
- _query_params.append(("start", start))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if regex is not None:
-
- _query_params.append(("regex", regex))
-
- if text is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/streams/logs/tail",
- 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/metrics_api.py b/koyeb/api/metrics_api.py
deleted file mode 100644
index e1e1bb23..00000000
--- a/koyeb/api/metrics_api.py
+++ /dev/null
@@ -1,453 +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 datetime import datetime
-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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class MetricsApi:
- """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 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,
- _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,
- ) -> GetMetricsReply:
- """Get Metrics
-
-
- :param service_id: ID of the service to query instances metrics for. Ignored if instance_id is set.
- :type service_id: str
- :param instance_id: ID of the instance to query metrics for.
- :type instance_id: str
- :param name: Metric to query.
- :type name: str
- :param start: (Optional) Defaults to an hour prior to end.
- :type start: datetime
- :param end: (Optional) Defaults to now.
- :type end: datetime
- :param step: (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.
- :type step: 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._get_metrics_serialize(
- service_id=service_id,
- instance_id=instance_id,
- name=name,
- start=start,
- end=end,
- step=step,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[GetMetricsReply]:
- """Get Metrics
-
-
- :param service_id: ID of the service to query instances metrics for. Ignored if instance_id is set.
- :type service_id: str
- :param instance_id: ID of the instance to query metrics for.
- :type instance_id: str
- :param name: Metric to query.
- :type name: str
- :param start: (Optional) Defaults to an hour prior to end.
- :type start: datetime
- :param end: (Optional) Defaults to now.
- :type end: datetime
- :param step: (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.
- :type step: 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._get_metrics_serialize(
- service_id=service_id,
- instance_id=instance_id,
- name=name,
- start=start,
- end=end,
- step=step,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """Get Metrics
-
-
- :param service_id: ID of the service to query instances metrics for. Ignored if instance_id is set.
- :type service_id: str
- :param instance_id: ID of the instance to query metrics for.
- :type instance_id: str
- :param name: Metric to query.
- :type name: str
- :param start: (Optional) Defaults to an hour prior to end.
- :type start: datetime
- :param end: (Optional) Defaults to now.
- :type end: datetime
- :param step: (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.
- :type step: 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._get_metrics_serialize(
- service_id=service_id,
- instance_id=instance_id,
- name=name,
- start=start,
- end=end,
- step=step,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_metrics_serialize(
- self,
- service_id,
- instance_id,
- name,
- start,
- end,
- step,
- _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 service_id is not None:
-
- _query_params.append(("service_id", service_id))
-
- if instance_id is not None:
-
- _query_params.append(("instance_id", instance_id))
-
- if name is not None:
-
- _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),
- )
- )
- else:
- _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))
- )
- else:
- _query_params.append(("end", end))
-
- if step is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/streams/metrics",
- 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/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/api/models/accept_organization_invitation_reply.py b/koyeb/api/models/accept_organization_invitation_reply.py
new file mode 100644
index 00000000..b1f48036
--- /dev/null
+++ b/koyeb/api/models/accept_organization_invitation_reply.py
@@ -0,0 +1,91 @@
+# 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.organization_invitation import OrganizationInvitation
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AcceptOrganizationInvitationReply(BaseModel):
+ """
+ AcceptOrganizationInvitationReply
+ """ # noqa: E501
+ invitation: Optional[OrganizationInvitation] = None
+ __properties: ClassVar[List[str]] = ["invitation"]
+
+ 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 AcceptOrganizationInvitationReply 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 invitation
+ if self.invitation:
+ _dict['invitation'] = self.invitation.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AcceptOrganizationInvitationReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/action.py b/koyeb/api/models/action.py
new file mode 100644
index 00000000..2c83db3f
--- /dev/null
+++ b/koyeb/api/models/action.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 Action(str, Enum):
+ """
+ Action
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/activity.py b/koyeb/api/models/activity.py
new file mode 100644
index 00000000..d3edacb8
--- /dev/null
+++ b/koyeb/api/models/activity.py
@@ -0,0 +1,105 @@
+# 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.object import Object
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Activity(BaseModel):
+ """
+ Activity
+ """ # 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"]
+
+ 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 Activity 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 actor
+ if self.actor:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Activity 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"),
+ "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/api/models/activity_list.py b/koyeb/api/models/activity_list.py
new file mode 100644
index 00000000..db8df01a
--- /dev/null
+++ b/koyeb/api/models/activity_list.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.activity import Activity
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ActivityList(BaseModel):
+ """
+ ActivityList
+ """ # noqa: E501
+ activities: Optional[List[Activity]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ has_next: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["activities", "limit", "offset", "has_next"]
+
+ 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 ActivityList 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 each item in activities (list)
+ _items = []
+ if self.activities:
+ for _item_activities in self.activities:
+ if _item_activities:
+ _items.append(_item_activities.to_dict())
+ _dict['activities'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ActivityList from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/app.py b/koyeb/api/models/app.py
new file mode 100644
index 00000000..5772aeed
--- /dev/null
+++ b/koyeb/api/models/app.py
@@ -0,0 +1,123 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ started_at: Optional[datetime] = None
+ succeeded_at: Optional[datetime] = None
+ paused_at: Optional[datetime] = None
+ resumed_at: Optional[datetime] = None
+ terminated_at: Optional[datetime] = None
+ status: Optional[AppStatus] = AppStatus.STARTING
+ 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"]
+
+ 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 App 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 each item in domains (list)
+ _items = []
+ if self.domains:
+ for _item_domains in self.domains:
+ if _item_domains:
+ _items.append(_item_domains.to_dict())
+ _dict['domains'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of App 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"),
+ "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/api/models/app_event.py b/koyeb/api/models/app_event.py
new file mode 100644
index 00000000..5c8dc0fb
--- /dev/null
+++ b/koyeb/api/models/app_event.py
@@ -0,0 +1,100 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class AppEvent(BaseModel):
+ """
+ AppEvent
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ when: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 AppEvent 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 AppEvent 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"),
+ "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/api/models/app_list_item.py b/koyeb/api/models/app_list_item.py
new file mode 100644
index 00000000..a7b4cb8e
--- /dev/null
+++ b/koyeb/api/models/app_list_item.py
@@ -0,0 +1,111 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ updated_at: Optional[datetime] = None
+ created_at: Optional[datetime] = None
+ 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"]
+
+ 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 AppListItem 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 each item in domains (list)
+ _items = []
+ if self.domains:
+ for _item_domains in self.domains:
+ if _item_domains:
+ _items.append(_item_domains.to_dict())
+ _dict['domains'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AppListItem 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"),
+ "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/api/models/app_usage.py b/koyeb/api/models/app_usage.py
new file mode 100644
index 00000000..f921e893
--- /dev/null
+++ b/koyeb/api/models/app_usage.py
@@ -0,0 +1,109 @@
+# 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.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
+ app_id: Optional[StrictStr] = None
+ app_name: Optional[StrictStr] = None
+ services: Optional[List[ServiceUsage]] = None
+ databases: Optional[List[DatabaseUsage]] = None
+ __properties: ClassVar[List[str]] = ["app_id", "app_name", "services", "databases"]
+
+ 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 AppUsage 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 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
+ # 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AppUsage from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/archive.py b/koyeb/api/models/archive.py
new file mode 100644
index 00000000..1da38bae
--- /dev/null
+++ b/koyeb/api/models/archive.py
@@ -0,0 +1,98 @@
+# 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, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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"]
+
+ 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 Archive 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 Archive 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"),
+ "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/api/models/archive_source.py b/koyeb/api/models/archive_source.py
new file mode 100644
index 00000000..bee9a97b
--- /dev/null
+++ b/koyeb/api/models/archive_source.py
@@ -0,0 +1,99 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ buildpack: Optional[BuildpackBuilder] = None
+ docker: Optional[DockerBuilder] = None
+ __properties: ClassVar[List[str]] = ["id", "buildpack", "docker"]
+
+ 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 ArchiveSource 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 buildpack
+ if self.buildpack:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ArchiveSource 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"),
+ "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/api/models/autocomplete_request.py b/koyeb/api/models/autocomplete_request.py
new file mode 100644
index 00000000..952027b7
--- /dev/null
+++ b/koyeb/api/models/autocomplete_request.py
@@ -0,0 +1,91 @@
+# 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_definition import DeploymentDefinition
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AutocompleteRequest(BaseModel):
+ """
+ AutocompleteRequest
+ """ # noqa: E501
+ definition: Optional[DeploymentDefinition] = None
+ __properties: ClassVar[List[str]] = ["definition"]
+
+ 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 AutocompleteRequest 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 definition
+ if self.definition:
+ _dict['definition'] = self.definition.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AutocompleteRequest from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/availability_level.py b/koyeb/api/models/availability_level.py
new file mode 100644
index 00000000..b3af7346
--- /dev/null
+++ b/koyeb/api/models/availability_level.py
@@ -0,0 +1,39 @@
+# 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 AvailabilityLevel(str, Enum):
+ """
+ AvailabilityLevel
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/catalog_instance.py b/koyeb/api/models/catalog_instance.py
new file mode 100644
index 00000000..1ebe10ad
--- /dev/null
+++ b/koyeb/api/models/catalog_instance.py
@@ -0,0 +1,127 @@
+# 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, Field, StrictBool, StrictFloat, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional, Union
+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
+ id: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ 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
+ price_hourly: Optional[StrictStr] = None
+ price_monthly: Optional[StrictStr] = None
+ 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.")
+ display_name: Optional[StrictStr] = None
+ aliases: Optional[List[StrictStr]] = None
+ type: Optional[StrictStr] = None
+ gpu: Optional[CatalogGPUDetails] = None
+ 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"]
+
+ 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 CatalogInstance 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 gpu
+ if self.gpu:
+ _dict['gpu'] = self.gpu.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CatalogInstance 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"),
+ "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/api/models/catalog_instance_list_item.py b/koyeb/api/models/catalog_instance_list_item.py
new file mode 100644
index 00000000..45fb4829
--- /dev/null
+++ b/koyeb/api/models/catalog_instance_list_item.py
@@ -0,0 +1,127 @@
+# 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, Field, StrictBool, StrictFloat, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional, Union
+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
+ id: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ 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
+ price_hourly: Optional[StrictStr] = None
+ price_monthly: Optional[StrictStr] = None
+ 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.")
+ display_name: Optional[StrictStr] = None
+ aliases: Optional[List[StrictStr]] = None
+ type: Optional[StrictStr] = None
+ gpu: Optional[CatalogGPUDetails] = None
+ 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"]
+
+ 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 CatalogInstanceListItem 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 gpu
+ if self.gpu:
+ _dict['gpu'] = self.gpu.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CatalogInstanceListItem 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"),
+ "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/api/models/catalog_usage.py b/koyeb/api/models/catalog_usage.py
new file mode 100644
index 00000000..b0c714bf
--- /dev/null
+++ b/koyeb/api/models/catalog_usage.py
@@ -0,0 +1,100 @@
+# 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.instance_availability import InstanceAvailability
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CatalogUsage(BaseModel):
+ """
+ CatalogUsage
+ """ # noqa: E501
+ instances: Optional[Dict[str, InstanceAvailability]] = None
+ __properties: ClassVar[List[str]] = ["instances"]
+
+ 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 CatalogUsage 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 each value in instances (dict)
+ _field_dict = {}
+ 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CatalogUsage from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/compose_reply.py b/koyeb/api/models/compose_reply.py
new file mode 100644
index 00000000..4a80f27b
--- /dev/null
+++ b/koyeb/api/models/compose_reply.py
@@ -0,0 +1,101 @@
+# 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.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
+ app: Optional[App] = None
+ services: Optional[List[Service]] = None
+ __properties: ClassVar[List[str]] = ["app", "services"]
+
+ 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 ComposeReply 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 app
+ if self.app:
+ _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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ComposeReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/create_compose.py b/koyeb/api/models/create_compose.py
new file mode 100644
index 00000000..8aaeb38f
--- /dev/null
+++ b/koyeb/api/models/create_compose.py
@@ -0,0 +1,101 @@
+# 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.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
+ app: Optional[CreateApp] = None
+ services: Optional[List[CreateService]] = None
+ __properties: ClassVar[List[str]] = ["app", "services"]
+
+ 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 CreateCompose 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 app
+ if self.app:
+ _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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateCompose from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/create_credential.py b/koyeb/api/models/create_credential.py
new file mode 100644
index 00000000..2fed6e3f
--- /dev/null
+++ b/koyeb/api/models/create_credential.py
@@ -0,0 +1,94 @@
+# 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.credential_type import CredentialType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateCredential(BaseModel):
+ """
+ CreateCredential
+ """ # 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"]
+
+ 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 CreateCredential 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 CreateCredential 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"),
+ "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/api/models/create_domain.py b/koyeb/api/models/create_domain.py
new file mode 100644
index 00000000..54a1f43d
--- /dev/null
+++ b/koyeb/api/models/create_domain.py
@@ -0,0 +1,100 @@
+# 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.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
+ 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"]
+
+ 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 CreateDomain 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 koyeb
+ if self.koyeb:
+ _dict['koyeb'] = self.koyeb.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateDomain 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 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/api/models/create_organization_invitation_reply.py b/koyeb/api/models/create_organization_invitation_reply.py
new file mode 100644
index 00000000..7f78715a
--- /dev/null
+++ b/koyeb/api/models/create_organization_invitation_reply.py
@@ -0,0 +1,91 @@
+# 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.organization_invitation import OrganizationInvitation
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationInvitationReply(BaseModel):
+ """
+ CreateOrganizationInvitationReply
+ """ # noqa: E501
+ invitation: Optional[OrganizationInvitation] = None
+ __properties: ClassVar[List[str]] = ["invitation"]
+
+ 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 CreateOrganizationInvitationReply 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 invitation
+ if self.invitation:
+ _dict['invitation'] = self.invitation.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationInvitationReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/create_persistent_volume_request.py b/koyeb/api/models/create_persistent_volume_request.py
new file mode 100644
index 00000000..84ff734f
--- /dev/null
+++ b/koyeb/api/models/create_persistent_volume_request.py
@@ -0,0 +1,98 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 CreatePersistentVolumeRequest 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 CreatePersistentVolumeRequest from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/create_service.py b/koyeb/api/models/create_service.py
new file mode 100644
index 00000000..afd61faf
--- /dev/null
+++ b/koyeb/api/models/create_service.py
@@ -0,0 +1,93 @@
+# 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.deployment_definition import DeploymentDefinition
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateService(BaseModel):
+ """
+ CreateService
+ """ # noqa: E501
+ app_id: Optional[StrictStr] = None
+ definition: Optional[DeploymentDefinition] = None
+ __properties: ClassVar[List[str]] = ["app_id", "definition"]
+
+ 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 CreateService 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 definition
+ if self.definition:
+ _dict['definition'] = self.definition.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateService from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/create_stage_attempt_request.py b/koyeb/api/models/create_stage_attempt_request.py
new file mode 100644
index 00000000..37564f3a
--- /dev/null
+++ b/koyeb/api/models/create_stage_attempt_request.py
@@ -0,0 +1,97 @@
+# 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.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateStageAttemptRequest(BaseModel):
+ """
+ CreateStageAttemptRequest
+ """ # noqa: E501
+ secret: Optional[StrictStr] = None
+ 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"]
+
+ 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 CreateStageAttemptRequest 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 CreateStageAttemptRequest from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/credential.py b/koyeb/api/models/credential.py
new file mode 100644
index 00000000..46ba4c9a
--- /dev/null
+++ b/koyeb/api/models/credential.py
@@ -0,0 +1,107 @@
+# 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.credential_type import CredentialType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Credential(BaseModel):
+ """
+ Credential
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ type: Optional[CredentialType] = CredentialType.INVALID
+ name: Optional[StrictStr] = None
+ token: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ user_id: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 Credential 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 Credential 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"),
+ "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/api/models/credential_type.py b/koyeb/api/models/credential_type.py
new file mode 100644
index 00000000..bf4708ee
--- /dev/null
+++ b/koyeb/api/models/credential_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 CredentialType(str, Enum):
+ """
+ CredentialType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/database_deployment_metadata.py b/koyeb/api/models/database_deployment_metadata.py
new file mode 100644
index 00000000..dbf1d0b1
--- /dev/null
+++ b/koyeb/api/models/database_deployment_metadata.py
@@ -0,0 +1,91 @@
+# 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.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatabaseDeploymentMetadata(BaseModel):
+ """
+ DatabaseDeploymentMetadata
+ """ # noqa: E501
+ neon_postgres: Optional[NeonPostgresDatabaseDeploymentMetadata] = None
+ __properties: ClassVar[List[str]] = ["neon_postgres"]
+
+ 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 DatabaseDeploymentMetadata 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 neon_postgres
+ if self.neon_postgres:
+ _dict['neon_postgres'] = self.neon_postgres.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatabaseDeploymentMetadata from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/database_source.py b/koyeb/api/models/database_source.py
new file mode 100644
index 00000000..06ef4d40
--- /dev/null
+++ b/koyeb/api/models/database_source.py
@@ -0,0 +1,91 @@
+# 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.neon_postgres_database import NeonPostgresDatabase
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatabaseSource(BaseModel):
+ """
+ DatabaseSource
+ """ # noqa: E501
+ neon_postgres: Optional[NeonPostgresDatabase] = None
+ __properties: ClassVar[List[str]] = ["neon_postgres"]
+
+ 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 DatabaseSource 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 neon_postgres
+ if self.neon_postgres:
+ _dict['neon_postgres'] = self.neon_postgres.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatabaseSource from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/database_usage.py b/koyeb/api/models/database_usage.py
new file mode 100644
index 00000000..f62bae78
--- /dev/null
+++ b/koyeb/api/models/database_usage.py
@@ -0,0 +1,93 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatabaseUsage(BaseModel):
+ """
+ DatabaseUsage
+ """ # 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"]
+
+ 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 DatabaseUsage 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 DatabaseUsage from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/database_usage_details.py b/koyeb/api/models/database_usage_details.py
new file mode 100644
index 00000000..5b855288
--- /dev/null
+++ b/koyeb/api/models/database_usage_details.py
@@ -0,0 +1,104 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatabaseUsageDetails(BaseModel):
+ """
+ DatabaseUsageDetails
+ """ # noqa: E501
+ organization_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ app_name: Optional[StrictStr] = None
+ service_id: Optional[StrictStr] = None
+ service_name: Optional[StrictStr] = None
+ compute_time_seconds: Optional[StrictInt] = None
+ 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"]
+
+ 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 DatabaseUsageDetails 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 DatabaseUsageDetails from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/datacenter_list_item.py b/koyeb/api/models/datacenter_list_item.py
new file mode 100644
index 00000000..529f28fb
--- /dev/null
+++ b/koyeb/api/models/datacenter_list_item.py
@@ -0,0 +1,97 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class DatacenterListItem(BaseModel):
+ """
+ DatacenterListItem
+ """ # 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"]
+
+ 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 DatacenterListItem 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 DatacenterListItem 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"),
+ "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/api/models/declare_stage_progress_request.py b/koyeb/api/models/declare_stage_progress_request.py
new file mode 100644
index 00000000..19fdebf0
--- /dev/null
+++ b/koyeb/api/models/declare_stage_progress_request.py
@@ -0,0 +1,101 @@
+# 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_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeclareStageProgressRequest(BaseModel):
+ """
+ DeclareStageProgressRequest
+ """ # noqa: E501
+ secret: Optional[StrictStr] = None
+ 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"]
+
+ 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 DeclareStageProgressRequest 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 DeclareStageProgressRequest from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/declare_step_progress_request.py b/koyeb/api/models/declare_step_progress_request.py
new file mode 100644
index 00000000..afe0038c
--- /dev/null
+++ b/koyeb/api/models/declare_step_progress_request.py
@@ -0,0 +1,97 @@
+# 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.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeclareStepProgressRequest(BaseModel):
+ """
+ DeclareStepProgressRequest
+ """ # noqa: E501
+ secret: Optional[StrictStr] = None
+ 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"]
+
+ 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 DeclareStepProgressRequest 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 DeclareStepProgressRequest from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/deployment_database_info.py b/koyeb/api/models/deployment_database_info.py
new file mode 100644
index 00000000..b6ce5b17
--- /dev/null
+++ b/koyeb/api/models/deployment_database_info.py
@@ -0,0 +1,91 @@
+# 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_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeploymentDatabaseInfo(BaseModel):
+ """
+ DeploymentDatabaseInfo
+ """ # noqa: E501
+ neon_postgres: Optional[DeploymentNeonPostgresDatabaseInfo] = None
+ __properties: ClassVar[List[str]] = ["neon_postgres"]
+
+ 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 DeploymentDatabaseInfo 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 neon_postgres
+ if self.neon_postgres:
+ _dict['neon_postgres'] = self.neon_postgres.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentDatabaseInfo from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/deployment_definition_type.py b/koyeb/api/models/deployment_definition_type.py
new file mode 100644
index 00000000..ab9668ba
--- /dev/null
+++ b/koyeb/api/models/deployment_definition_type.py
@@ -0,0 +1,39 @@
+# 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 DeploymentDefinitionType(str, Enum):
+ """
+ DeploymentDefinitionType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/deployment_event.py b/koyeb/api/models/deployment_event.py
new file mode 100644
index 00000000..c324e39c
--- /dev/null
+++ b/koyeb/api/models/deployment_event.py
@@ -0,0 +1,100 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class DeploymentEvent(BaseModel):
+ """
+ DeploymentEvent
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ when: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ deployment_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 DeploymentEvent 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 DeploymentEvent 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"),
+ "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/api/models/deployment_health_check.py b/koyeb/api/models/deployment_health_check.py
new file mode 100644
index 00000000..e6e200cf
--- /dev/null
+++ b/koyeb/api/models/deployment_health_check.py
@@ -0,0 +1,105 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 DeploymentHealthCheck 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 tcp
+ if self.tcp:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentHealthCheck from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/deployment_list_item.py b/koyeb/api/models/deployment_list_item.py
new file mode 100644
index 00000000..bb77e859
--- /dev/null
+++ b/koyeb/api/models/deployment_list_item.py
@@ -0,0 +1,143 @@
+# 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.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
+ 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
+ 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"]
+
+ 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 DeploymentListItem 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 DeploymentListItem 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,
+ "version": obj.get("version"),
+ "deployment_group": obj.get("deployment_group")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/deployment_metadata.py b/koyeb/api/models/deployment_metadata.py
new file mode 100644
index 00000000..0bb9b5b6
--- /dev/null
+++ b/koyeb/api/models/deployment_metadata.py
@@ -0,0 +1,119 @@
+# 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.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
+ 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"]
+
+ 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 DeploymentMetadata 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 trigger
+ if self.trigger:
+ _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()
+ # 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 archive
+ if self.archive:
+ _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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentMetadata from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/deployment_neon_postgres_database_info.py b/koyeb/api/models/deployment_neon_postgres_database_info.py
new file mode 100644
index 00000000..414734f1
--- /dev/null
+++ b/koyeb/api/models/deployment_neon_postgres_database_info.py
@@ -0,0 +1,122 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ active_time_seconds: Optional[StrictStr] = None
+ compute_time_seconds: Optional[StrictStr] = None
+ written_data_bytes: Optional[StrictStr] = None
+ data_transfer_bytes: Optional[StrictStr] = None
+ data_storage_bytes_hour: Optional[StrictStr] = None
+ server_host: Optional[StrictStr] = None
+ server_port: Optional[StrictInt] = None
+ endpoint_state: Optional[StrictStr] = None
+ endpoint_last_active: Optional[datetime] = None
+ default_branch_id: Optional[StrictStr] = None
+ default_branch_name: Optional[StrictStr] = None
+ 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"]
+
+ 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 DeploymentNeonPostgresDatabaseInfo 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 each item in roles (list)
+ _items = []
+ if self.roles:
+ for _item_roles in self.roles:
+ if _item_roles:
+ _items.append(_item_roles.to_dict())
+ _dict['roles'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentNeonPostgresDatabaseInfo from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/deployment_provisioning_info.py b/koyeb/api/models/deployment_provisioning_info.py
new file mode 100644
index 00000000..7c0454c1
--- /dev/null
+++ b/koyeb/api/models/deployment_provisioning_info.py
@@ -0,0 +1,99 @@
+# 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, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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.")
+ __properties: ClassVar[List[str]] = ["sha", "image", "stages"]
+
+ 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 DeploymentProvisioningInfo 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 each item in stages (list)
+ _items = []
+ if self.stages:
+ for _item_stages in self.stages:
+ if _item_stages:
+ _items.append(_item_stages.to_dict())
+ _dict['stages'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentProvisioningInfo from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/deployment_provisioning_info_stage.py b/koyeb/api/models/deployment_provisioning_info_stage.py
new file mode 100644
index 00000000..8c2c6d2e
--- /dev/null
+++ b/koyeb/api/models/deployment_provisioning_info_stage.py
@@ -0,0 +1,107 @@
+# 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.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
+ name: Optional[StrictStr] = None
+ 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"]
+
+ 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 DeploymentProvisioningInfoStage 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 each item in build_attempts (list)
+ _items = []
+ if self.build_attempts:
+ for _item_build_attempts in self.build_attempts:
+ if _item_build_attempts:
+ _items.append(_item_build_attempts.to_dict())
+ _dict['build_attempts'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentProvisioningInfoStage 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"),
+ "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/api/models/deployment_provisioning_info_stage_build_attempt.py b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py
new file mode 100644
index 00000000..de0f8ecd
--- /dev/null
+++ b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py
@@ -0,0 +1,115 @@
+# 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, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ id: Optional[StrictInt] = None
+ status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN
+ messages: Optional[List[StrictStr]] = None
+ started_at: Optional[datetime] = None
+ finished_at: Optional[datetime] = None
+ steps: Optional[List[DeploymentProvisioningInfoStageBuildAttemptBuildStep]] = None
+ 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"]
+
+ 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 DeploymentProvisioningInfoStageBuildAttempt 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 each item in steps (list)
+ _items = []
+ if self.steps:
+ for _item_steps in self.steps:
+ if _item_steps:
+ _items.append(_item_steps.to_dict())
+ _dict['steps'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentProvisioningInfoStageBuildAttempt 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"),
+ "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/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py
new file mode 100644
index 00000000..e5864591
--- /dev/null
+++ b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py
@@ -0,0 +1,97 @@
+# 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.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DeploymentProvisioningInfoStageBuildAttemptBuildStep(BaseModel):
+ """
+ DeploymentProvisioningInfoStageBuildAttemptBuildStep
+ """ # noqa: E501
+ name: Optional[StrictStr] = None
+ 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"]
+
+ 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 DeploymentProvisioningInfoStageBuildAttemptBuildStep 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 DeploymentProvisioningInfoStageBuildAttemptBuildStep 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"),
+ "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/api/models/deployment_provisioning_info_stage_status.py b/koyeb/api/models/deployment_provisioning_info_stage_status.py
new file mode 100644
index 00000000..38fe449d
--- /dev/null
+++ b/koyeb/api/models/deployment_provisioning_info_stage_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 DeploymentProvisioningInfoStageStatus(str, Enum):
+ """
+ DeploymentProvisioningInfoStageStatus
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/deployment_proxy_port_metadata.py b/koyeb/api/models/deployment_proxy_port_metadata.py
new file mode 100644
index 00000000..0cef6d39
--- /dev/null
+++ b/koyeb/api/models/deployment_proxy_port_metadata.py
@@ -0,0 +1,94 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ host: Optional[StrictStr] = None
+ public_port: Optional[StrictInt] = None
+ port: Optional[StrictInt] = None
+ protocol: Optional[ProxyPortProtocol] = ProxyPortProtocol.TCP
+ __properties: ClassVar[List[str]] = ["host", "public_port", "port", "protocol"]
+
+ 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 DeploymentProxyPortMetadata 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 DeploymentProxyPortMetadata from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/deployment_role.py b/koyeb/api/models/deployment_role.py
new file mode 100644
index 00000000..da8fe3d3
--- /dev/null
+++ b/koyeb/api/models/deployment_role.py
@@ -0,0 +1,39 @@
+# 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 DeploymentRole(str, Enum):
+ """
+ DeploymentRole
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/deployment_scaling.py b/koyeb/api/models/deployment_scaling.py
new file mode 100644
index 00000000..a38abdf1
--- /dev/null
+++ b/koyeb/api/models/deployment_scaling.py
@@ -0,0 +1,101 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ scopes: Optional[List[StrictStr]] = None
+ min: Optional[StrictInt] = None
+ max: Optional[StrictInt] = None
+ targets: Optional[List[DeploymentScalingTarget]] = None
+ __properties: ClassVar[List[str]] = ["scopes", "min", "max", "targets"]
+
+ 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 DeploymentScaling 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 each item in targets (list)
+ _items = []
+ if self.targets:
+ for _item_targets in self.targets:
+ if _item_targets:
+ _items.append(_item_targets.to_dict())
+ _dict['targets'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeploymentScaling from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/deployment_scaling_target_sleep_idle_delay.py b/koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py
new file mode 100644
index 00000000..5c924be5
--- /dev/null
+++ b/koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py
@@ -0,0 +1,91 @@
+# 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, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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"]
+
+ 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 DeploymentScalingTargetSleepIdleDelay 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 DeploymentScalingTargetSleepIdleDelay from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/deployment_strategy.py b/koyeb/api/models/deployment_strategy.py
new file mode 100644
index 00000000..f392a041
--- /dev/null
+++ b/koyeb/api/models/deployment_strategy.py
@@ -0,0 +1,88 @@
+# 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_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
+ __properties: ClassVar[List[str]] = ["type"]
+
+ 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 DeploymentStrategy 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 DeploymentStrategy from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/docker_builder.py b/koyeb/api/models/docker_builder.py
new file mode 100644
index 00000000..64388dde
--- /dev/null
+++ b/koyeb/api/models/docker_builder.py
@@ -0,0 +1,97 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class DockerBuilder(BaseModel):
+ """
+ DockerBuilder
+ """ # 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"]
+
+ 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 DockerBuilder 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 DockerBuilder from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/docker_source.py b/koyeb/api/models/docker_source.py
new file mode 100644
index 00000000..f70fd015
--- /dev/null
+++ b/koyeb/api/models/docker_source.py
@@ -0,0 +1,97 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class DockerSource(BaseModel):
+ """
+ DockerSource
+ """ # 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"]
+
+ 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 DockerSource 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 DockerSource from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/domain.py b/koyeb/api/models/domain.py
new file mode 100644
index 00000000..2d24d5e7
--- /dev/null
+++ b/koyeb/api/models/domain.py
@@ -0,0 +1,122 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ status: Optional[DomainStatus] = DomainStatus.PENDING
+ type: Optional[DomainType] = DomainType.AUTOASSIGNED
+ app_id: Optional[StrictStr] = None
+ deployment_group: Optional[StrictStr] = None
+ verified_at: Optional[datetime] = None
+ intended_cname: Optional[StrictStr] = None
+ messages: Optional[List[StrictStr]] = None
+ 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"]
+
+ 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 Domain 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 koyeb
+ if self.koyeb:
+ _dict['koyeb'] = self.koyeb.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Domain 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"),
+ "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/api/models/domain_status.py b/koyeb/api/models/domain_status.py
new file mode 100644
index 00000000..1f441933
--- /dev/null
+++ b/koyeb/api/models/domain_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 DomainStatus(str, Enum):
+ """
+ DomainStatus
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/domain_type.py b/koyeb/api/models/domain_type.py
new file mode 100644
index 00000000..6ea6ca50
--- /dev/null
+++ b/koyeb/api/models/domain_type.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 DomainType(str, Enum):
+ """
+ DomainType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/error_with_fields.py b/koyeb/api/models/error_with_fields.py
new file mode 100644
index 00000000..4a3c574e
--- /dev/null
+++ b/koyeb/api/models/error_with_fields.py
@@ -0,0 +1,101 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.error_field import ErrorField
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ErrorWithFields(BaseModel):
+ """
+ ErrorWithFields
+ """ # noqa: E501
+ status: Optional[StrictInt] = None
+ code: Optional[StrictStr] = None
+ message: Optional[StrictStr] = None
+ fields: Optional[List[ErrorField]] = None
+ __properties: ClassVar[List[str]] = ["status", "code", "message", "fields"]
+
+ 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 ErrorWithFields 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 each item in fields (list)
+ _items = []
+ if self.fields:
+ for _item_fields in self.fields:
+ if _item_fields:
+ _items.append(_item_fields.to_dict())
+ _dict['fields'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ErrorWithFields from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/exec_command_io.py b/koyeb/api/models/exec_command_io.py
new file mode 100644
index 00000000..4d7f0155
--- /dev/null
+++ b/koyeb/api/models/exec_command_io.py
@@ -0,0 +1,100 @@
+# 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, Field, StrictBool, field_validator
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing_extensions import Annotated
+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")
+ __properties: ClassVar[List[str]] = ["data", "close"]
+
+ @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}=)?$/")
+ return value
+
+ 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 ExecCommandIO 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 ExecCommandIO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": obj.get("data"),
+ "close": obj.get("close")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/exec_command_reply.py b/koyeb/api/models/exec_command_reply.py
new file mode 100644
index 00000000..913a7305
--- /dev/null
+++ b/koyeb/api/models/exec_command_reply.py
@@ -0,0 +1,100 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ stdout: Optional[ExecCommandIO] = None
+ stderr: Optional[ExecCommandIO] = None
+ exited: Optional[StrictBool] = None
+ exit_code: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["stdout", "stderr", "exited", "exit_code"]
+
+ 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 ExecCommandReply 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 stdout
+ if self.stdout:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExecCommandReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/exec_command_request_body.py b/koyeb/api/models/exec_command_request_body.py
new file mode 100644
index 00000000..b56fc3c0
--- /dev/null
+++ b/koyeb/api/models/exec_command_request_body.py
@@ -0,0 +1,101 @@
+# 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, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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")
+ 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")
+ __properties: ClassVar[List[str]] = ["command", "tty_size", "stdin", "disableTty"]
+
+ 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 ExecCommandRequestBody 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 tty_size
+ if self.tty_size:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExecCommandRequestBody from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/exec_command_request_id_type.py b/koyeb/api/models/exec_command_request_id_type.py
new file mode 100644
index 00000000..9893c9dc
--- /dev/null
+++ b/koyeb/api/models/exec_command_request_id_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 ExecCommandRequestIdType(str, Enum):
+ """
+ ExecCommandRequestIdType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/get_deployment_scaling_reply.py b/koyeb/api/models/get_deployment_scaling_reply.py
new file mode 100644
index 00000000..013064e7
--- /dev/null
+++ b/koyeb/api/models/get_deployment_scaling_reply.py
@@ -0,0 +1,95 @@
+# 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.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetDeploymentScalingReply(BaseModel):
+ """
+ GetDeploymentScalingReply
+ """ # noqa: E501
+ replicas: Optional[List[GetDeploymentScalingReplyItem]] = None
+ __properties: ClassVar[List[str]] = ["replicas"]
+
+ 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 GetDeploymentScalingReply 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 each item in replicas (list)
+ _items = []
+ if self.replicas:
+ for _item_replicas in self.replicas:
+ if _item_replicas:
+ _items.append(_item_replicas.to_dict())
+ _dict['replicas'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetDeploymentScalingReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/get_deployment_scaling_reply_item.py b/koyeb/api/models/get_deployment_scaling_reply_item.py
new file mode 100644
index 00000000..f93fa1ec
--- /dev/null
+++ b/koyeb/api/models/get_deployment_scaling_reply_item.py
@@ -0,0 +1,99 @@
+# 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, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.instance import Instance
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetDeploymentScalingReplyItem(BaseModel):
+ """
+ GetDeploymentScalingReplyItem
+ """ # 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;")
+ __properties: ClassVar[List[str]] = ["region", "replica_index", "instances"]
+
+ 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 GetDeploymentScalingReplyItem 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetDeploymentScalingReplyItem from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/get_github_installation_reply.py b/koyeb/api/models/get_github_installation_reply.py
new file mode 100644
index 00000000..f042cc71
--- /dev/null
+++ b/koyeb/api/models/get_github_installation_reply.py
@@ -0,0 +1,108 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ installation_id: Optional[StrictStr] = None
+ installation_url: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ avatar_url: Optional[StrictStr] = None
+ status: Optional[KgitproxyGithubInstallationStatus] = KgitproxyGithubInstallationStatus.INVALID
+ installed_at: Optional[datetime] = None
+ suspended_at: Optional[datetime] = None
+ 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"]
+
+ 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 GetGithubInstallationReply 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 GetGithubInstallationReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/get_organization_invitation_reply.py b/koyeb/api/models/get_organization_invitation_reply.py
new file mode 100644
index 00000000..58cb7137
--- /dev/null
+++ b/koyeb/api/models/get_organization_invitation_reply.py
@@ -0,0 +1,91 @@
+# 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.organization_invitation import OrganizationInvitation
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetOrganizationInvitationReply(BaseModel):
+ """
+ GetOrganizationInvitationReply
+ """ # noqa: E501
+ invitation: Optional[OrganizationInvitation] = None
+ __properties: ClassVar[List[str]] = ["invitation"]
+
+ 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 GetOrganizationInvitationReply 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 invitation
+ if self.invitation:
+ _dict['invitation'] = self.invitation.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationInvitationReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/get_organization_usage_details_reply.py b/koyeb/api/models/get_organization_usage_details_reply.py
new file mode 100644
index 00000000..39b38beb
--- /dev/null
+++ b/koyeb/api/models/get_organization_usage_details_reply.py
@@ -0,0 +1,113 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 GetOrganizationUsageDetailsReply 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 each item in usage_details (list)
+ _items = []
+ if self.usage_details:
+ for _item_usage_details in self.usage_details:
+ if _item_usage_details:
+ _items.append(_item_usage_details.to_dict())
+ _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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetOrganizationUsageDetailsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/get_payment_method_reply.py b/koyeb/api/models/get_payment_method_reply.py
new file mode 100644
index 00000000..dd33e4c5
--- /dev/null
+++ b/koyeb/api/models/get_payment_method_reply.py
@@ -0,0 +1,91 @@
+# 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.payment_method import PaymentMethod
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPaymentMethodReply(BaseModel):
+ """
+ GetPaymentMethodReply
+ """ # noqa: E501
+ payment_method: Optional[PaymentMethod] = None
+ __properties: ClassVar[List[str]] = ["payment_method"]
+
+ 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 GetPaymentMethodReply 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 payment_method
+ if self.payment_method:
+ _dict['payment_method'] = self.payment_method.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPaymentMethodReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/get_regional_deployment_reply.py b/koyeb/api/models/get_regional_deployment_reply.py
new file mode 100644
index 00000000..4b025b3b
--- /dev/null
+++ b/koyeb/api/models/get_regional_deployment_reply.py
@@ -0,0 +1,91 @@
+# 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.regional_deployment import RegionalDeployment
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetRegionalDeploymentReply(BaseModel):
+ """
+ GetRegionalDeploymentReply
+ """ # noqa: E501
+ regional_deployment: Optional[RegionalDeployment] = None
+ __properties: ClassVar[List[str]] = ["regional_deployment"]
+
+ 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 GetRegionalDeploymentReply 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 regional_deployment
+ if self.regional_deployment:
+ _dict['regional_deployment'] = self.regional_deployment.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetRegionalDeploymentReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/git_deployment_metadata.py b/koyeb/api/models/git_deployment_metadata.py
new file mode 100644
index 00000000..422b67f8
--- /dev/null
+++ b/koyeb/api/models/git_deployment_metadata.py
@@ -0,0 +1,93 @@
+# 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.git_env_deployment_metadata import GitEnvDeploymentMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GitDeploymentMetadata(BaseModel):
+ """
+ GitDeploymentMetadata
+ """ # noqa: E501
+ last_provisioned_deployment_id: Optional[StrictStr] = None
+ git_env: Optional[GitEnvDeploymentMetadata] = None
+ __properties: ClassVar[List[str]] = ["last_provisioned_deployment_id", "git_env"]
+
+ 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 GitDeploymentMetadata 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 git_env
+ if self.git_env:
+ _dict['git_env'] = self.git_env.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GitDeploymentMetadata from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/git_source.py b/koyeb/api/models/git_source.py
new file mode 100644
index 00000000..de75355c
--- /dev/null
+++ b/koyeb/api/models/git_source.py
@@ -0,0 +1,113 @@
+# 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, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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.")
+ branch: Optional[StrictStr] = None
+ tag: Optional[StrictStr] = None
+ sha: Optional[StrictStr] = None
+ build_command: Optional[StrictStr] = None
+ run_command: Optional[StrictStr] = None
+ no_deploy_on_push: Optional[StrictBool] = None
+ 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"]
+
+ 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 GitSource 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 buildpack
+ if self.buildpack:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GitSource from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/google_protobuf_null_value.py b/koyeb/api/models/google_protobuf_null_value.py
new file mode 100644
index 00000000..3b72b255
--- /dev/null
+++ b/koyeb/api/models/google_protobuf_null_value.py
@@ -0,0 +1,36 @@
+# 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 GoogleProtobufNullValue(str, Enum):
+ """
+ `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/instance.py b/koyeb/api/models/instance.py
new file mode 100644
index 00000000..f103f470
--- /dev/null
+++ b/koyeb/api/models/instance.py
@@ -0,0 +1,125 @@
+# 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, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.instance_status import InstanceStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Instance(BaseModel):
+ """
+ Instance
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ service_id: Optional[StrictStr] = None
+ regional_deployment_id: Optional[StrictStr] = None
+ allocation_id: Optional[StrictStr] = None
+ type: Optional[StrictStr] = None
+ replica_index: Optional[StrictInt] = None
+ region: Optional[StrictStr] = None
+ datacenter: Optional[StrictStr] = None
+ hypervisor: Optional[StrictStr] = None
+ status: Optional[InstanceStatus] = InstanceStatus.ALLOCATING
+ messages: Optional[List[StrictStr]] = None
+ 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"]
+
+ 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 Instance 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 Instance 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"),
+ "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/api/models/instance_availability.py b/koyeb/api/models/instance_availability.py
new file mode 100644
index 00000000..78ba4f2a
--- /dev/null
+++ b/koyeb/api/models/instance_availability.py
@@ -0,0 +1,103 @@
+# 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.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
+ regions: Optional[Dict[str, RegionAvailability]] = None
+ availability: Optional[AvailabilityLevel] = AvailabilityLevel.UNKNOWN
+ __properties: ClassVar[List[str]] = ["regions", "availability"]
+
+ 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 InstanceAvailability 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 each value in regions (dict)
+ _field_dict = {}
+ if self.regions:
+ 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InstanceAvailability from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/instance_event.py b/koyeb/api/models/instance_event.py
new file mode 100644
index 00000000..0884c912
--- /dev/null
+++ b/koyeb/api/models/instance_event.py
@@ -0,0 +1,100 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class InstanceEvent(BaseModel):
+ """
+ InstanceEvent
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ when: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ instance_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 InstanceEvent 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 InstanceEvent 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"),
+ "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/api/models/instance_list_item.py b/koyeb/api/models/instance_list_item.py
new file mode 100644
index 00000000..9d2462a9
--- /dev/null
+++ b/koyeb/api/models/instance_list_item.py
@@ -0,0 +1,117 @@
+# 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, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.instance_status import InstanceStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InstanceListItem(BaseModel):
+ """
+ InstanceListItem
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ service_id: Optional[StrictStr] = None
+ regional_deployment_id: Optional[StrictStr] = None
+ allocation_id: Optional[StrictStr] = None
+ type: Optional[StrictStr] = None
+ replica_index: Optional[StrictInt] = None
+ region: Optional[StrictStr] = None
+ 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"]
+
+ 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 InstanceListItem 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 InstanceListItem 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"),
+ "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/api/models/kgitproxy_branch.py b/koyeb/api/models/kgitproxy_branch.py
new file mode 100644
index 00000000..6d03553e
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_branch.py
@@ -0,0 +1,100 @@
+# 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.kgitproxy_repository_provider import KgitproxyRepositoryProvider
+from typing import Optional, Set
+from typing_extensions import Self
+
+class KgitproxyBranch(BaseModel):
+ """
+ KgitproxyBranch
+ """ # 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"]
+
+ 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 KgitproxyBranch 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 KgitproxyBranch 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"),
+ "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/api/models/kgitproxy_github_installation_status.py b/koyeb/api/models/kgitproxy_github_installation_status.py
new file mode 100644
index 00000000..9d281028
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_github_installation_status.py
@@ -0,0 +1,39 @@
+# 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 KgitproxyGithubInstallationStatus(str, Enum):
+ """
+ KgitproxyGithubInstallationStatus
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/kgitproxy_indexing_status.py b/koyeb/api/models/kgitproxy_indexing_status.py
new file mode 100644
index 00000000..50cf2426
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_indexing_status.py
@@ -0,0 +1,39 @@
+# 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 KgitproxyIndexingStatus(str, Enum):
+ """
+ KgitproxyIndexingStatus
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/kgitproxy_list_branches_reply.py b/koyeb/api/models/kgitproxy_list_branches_reply.py
new file mode 100644
index 00000000..6dfaef56
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_list_branches_reply.py
@@ -0,0 +1,101 @@
+# 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, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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.")
+ __properties: ClassVar[List[str]] = ["branches", "limit", "offset", "count"]
+
+ 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 KgitproxyListBranchesReply 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 each item in branches (list)
+ _items = []
+ if self.branches:
+ for _item_branches in self.branches:
+ if _item_branches:
+ _items.append(_item_branches.to_dict())
+ _dict['branches'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of KgitproxyListBranchesReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/kgitproxy_list_repositories_reply.py b/koyeb/api/models/kgitproxy_list_repositories_reply.py
new file mode 100644
index 00000000..8c2848eb
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_list_repositories_reply.py
@@ -0,0 +1,101 @@
+# 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, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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.")
+ __properties: ClassVar[List[str]] = ["repositories", "limit", "offset", "count"]
+
+ 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 KgitproxyListRepositoriesReply 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 each item in repositories (list)
+ _items = []
+ if self.repositories:
+ for _item_repositories in self.repositories:
+ if _item_repositories:
+ _items.append(_item_repositories.to_dict())
+ _dict['repositories'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of KgitproxyListRepositoriesReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/kgitproxy_repository.py b/koyeb/api/models/kgitproxy_repository.py
new file mode 100644
index 00000000..2ae437a5
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_repository.py
@@ -0,0 +1,113 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ url: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ is_private: Optional[StrictBool] = None
+ is_disabled: Optional[StrictBool] = None
+ default_branch: Optional[StrictStr] = None
+ 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"]
+
+ 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 KgitproxyRepository 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 github
+ if self.github:
+ _dict['github'] = self.github.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of KgitproxyRepository 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"),
+ "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/api/models/kgitproxy_repository_provider.py b/koyeb/api/models/kgitproxy_repository_provider.py
new file mode 100644
index 00000000..123d8ee8
--- /dev/null
+++ b/koyeb/api/models/kgitproxy_repository_provider.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 KgitproxyRepositoryProvider(str, Enum):
+ """
+ KgitproxyRepositoryProvider
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/ksearch_global_deployment.py b/koyeb/api/models/ksearch_global_deployment.py
new file mode 100644
index 00000000..2c23406c
--- /dev/null
+++ b/koyeb/api/models/ksearch_global_deployment.py
@@ -0,0 +1,93 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class KsearchGlobalDeployment(BaseModel):
+ """
+ KsearchGlobalDeployment
+ """ # 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"]
+
+ 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 KsearchGlobalDeployment 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 KsearchGlobalDeployment 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"),
+ "organization_id": obj.get("organization_id"),
+ "app_id": obj.get("app_id"),
+ "service_id": obj.get("service_id")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/ksearch_instance.py b/koyeb/api/models/ksearch_instance.py
new file mode 100644
index 00000000..45fe55ba
--- /dev/null
+++ b/koyeb/api/models/ksearch_instance.py
@@ -0,0 +1,95 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class KsearchInstance(BaseModel):
+ """
+ KsearchInstance
+ """ # 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"]
+
+ 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 KsearchInstance 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 KsearchInstance 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"),
+ "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/api/models/ksearch_regional_deployment.py b/koyeb/api/models/ksearch_regional_deployment.py
new file mode 100644
index 00000000..88da3ca6
--- /dev/null
+++ b/koyeb/api/models/ksearch_regional_deployment.py
@@ -0,0 +1,95 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class KsearchRegionalDeployment(BaseModel):
+ """
+ KsearchRegionalDeployment
+ """ # 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"]
+
+ 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 KsearchRegionalDeployment 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 KsearchRegionalDeployment 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"),
+ "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/api/models/ksearch_search_reply.py b/koyeb/api/models/ksearch_search_reply.py
new file mode 100644
index 00000000..6e8e7081
--- /dev/null
+++ b/koyeb/api/models/ksearch_search_reply.py
@@ -0,0 +1,155 @@
+# 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.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
+ organizations: Optional[List[KsearchOrganization]] = None
+ users: Optional[List[KsearchUser]] = None
+ apps: Optional[List[KsearchApp]] = None
+ services: Optional[List[KsearchService]] = None
+ 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"]
+
+ 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 KsearchSearchReply 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 each item in organizations (list)
+ _items = []
+ if self.organizations:
+ for _item_organizations in self.organizations:
+ if _item_organizations:
+ _items.append(_item_organizations.to_dict())
+ _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
+ # 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
+ # 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
+ # 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
+ # 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
+ # 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of KsearchSearchReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/list_app_events_reply.py b/koyeb/api/models/list_app_events_reply.py
new file mode 100644
index 00000000..f35e2c73
--- /dev/null
+++ b/koyeb/api/models/list_app_events_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.app_event import AppEvent
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListAppEventsReply(BaseModel):
+ """
+ ListAppEventsReply
+ """ # 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"]
+
+ 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 ListAppEventsReply 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 each item in events (list)
+ _items = []
+ if self.events:
+ for _item_events in self.events:
+ if _item_events:
+ _items.append(_item_events.to_dict())
+ _dict['events'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListAppEventsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_apps_reply.py b/koyeb/api/models/list_apps_reply.py
new file mode 100644
index 00000000..bda0210d
--- /dev/null
+++ b/koyeb/api/models/list_apps_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ apps: Optional[List[AppListItem]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ has_next: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["apps", "limit", "offset", "count", "has_next"]
+
+ 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 ListAppsReply 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListAppsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_catalog_instances_reply.py b/koyeb/api/models/list_catalog_instances_reply.py
new file mode 100644
index 00000000..0de65f35
--- /dev/null
+++ b/koyeb/api/models/list_catalog_instances_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ instances: Optional[List[CatalogInstanceListItem]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["instances", "limit", "offset", "count"]
+
+ 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 ListCatalogInstancesReply 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListCatalogInstancesReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_credentials_reply.py b/koyeb/api/models/list_credentials_reply.py
new file mode 100644
index 00000000..6d94f3b1
--- /dev/null
+++ b/koyeb/api/models/list_credentials_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.credential import Credential
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListCredentialsReply(BaseModel):
+ """
+ ListCredentialsReply
+ """ # noqa: E501
+ credentials: Optional[List[Credential]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["credentials", "limit", "offset", "count"]
+
+ 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 ListCredentialsReply 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 each item in credentials (list)
+ _items = []
+ if self.credentials:
+ for _item_credentials in self.credentials:
+ if _item_credentials:
+ _items.append(_item_credentials.to_dict())
+ _dict['credentials'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListCredentialsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_datacenters_reply.py b/koyeb/api/models/list_datacenters_reply.py
new file mode 100644
index 00000000..775e4304
--- /dev/null
+++ b/koyeb/api/models/list_datacenters_reply.py
@@ -0,0 +1,95 @@
+# 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.datacenter_list_item import DatacenterListItem
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListDatacentersReply(BaseModel):
+ """
+ ListDatacentersReply
+ """ # noqa: E501
+ datacenters: Optional[List[DatacenterListItem]] = None
+ __properties: ClassVar[List[str]] = ["datacenters"]
+
+ 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 ListDatacentersReply 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 each item in datacenters (list)
+ _items = []
+ if self.datacenters:
+ for _item_datacenters in self.datacenters:
+ if _item_datacenters:
+ _items.append(_item_datacenters.to_dict())
+ _dict['datacenters'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListDatacentersReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_deployment_events_reply.py b/koyeb/api/models/list_deployment_events_reply.py
new file mode 100644
index 00000000..25974cb8
--- /dev/null
+++ b/koyeb/api/models/list_deployment_events_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.deployment_event import DeploymentEvent
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListDeploymentEventsReply(BaseModel):
+ """
+ ListDeploymentEventsReply
+ """ # 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"]
+
+ 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 ListDeploymentEventsReply 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 each item in events (list)
+ _items = []
+ if self.events:
+ for _item_events in self.events:
+ if _item_events:
+ _items.append(_item_events.to_dict())
+ _dict['events'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListDeploymentEventsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_deployments_reply.py b/koyeb/api/models/list_deployments_reply.py
new file mode 100644
index 00000000..e99ea154
--- /dev/null
+++ b/koyeb/api/models/list_deployments_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 ListDeploymentsReply 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 each item in deployments (list)
+ _items = []
+ if self.deployments:
+ for _item_deployments in self.deployments:
+ if _item_deployments:
+ _items.append(_item_deployments.to_dict())
+ _dict['deployments'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListDeploymentsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/list_instance_events_reply.py b/koyeb/api/models/list_instance_events_reply.py
new file mode 100644
index 00000000..a46d93e6
--- /dev/null
+++ b/koyeb/api/models/list_instance_events_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.instance_event import InstanceEvent
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListInstanceEventsReply(BaseModel):
+ """
+ ListInstanceEventsReply
+ """ # 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"]
+
+ 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 ListInstanceEventsReply 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 each item in events (list)
+ _items = []
+ if self.events:
+ for _item_events in self.events:
+ if _item_events:
+ _items.append(_item_events.to_dict())
+ _dict['events'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListInstanceEventsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_instances_reply.py b/koyeb/api/models/list_instances_reply.py
new file mode 100644
index 00000000..f787df7a
--- /dev/null
+++ b/koyeb/api/models/list_instances_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 ListInstancesReply 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListInstancesReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_organization_invitations_reply.py b/koyeb/api/models/list_organization_invitations_reply.py
new file mode 100644
index 00000000..87188b99
--- /dev/null
+++ b/koyeb/api/models/list_organization_invitations_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.organization_invitation import OrganizationInvitation
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListOrganizationInvitationsReply(BaseModel):
+ """
+ ListOrganizationInvitationsReply
+ """ # noqa: E501
+ invitations: Optional[List[OrganizationInvitation]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["invitations", "limit", "offset", "count"]
+
+ 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 ListOrganizationInvitationsReply 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 each item in invitations (list)
+ _items = []
+ if self.invitations:
+ for _item_invitations in self.invitations:
+ if _item_invitations:
+ _items.append(_item_invitations.to_dict())
+ _dict['invitations'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListOrganizationInvitationsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_organization_members_reply.py b/koyeb/api/models/list_organization_members_reply.py
new file mode 100644
index 00000000..9c3fbd76
--- /dev/null
+++ b/koyeb/api/models/list_organization_members_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.organization_member import OrganizationMember
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListOrganizationMembersReply(BaseModel):
+ """
+ ListOrganizationMembersReply
+ """ # noqa: E501
+ members: Optional[List[OrganizationMember]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["members", "limit", "offset", "count"]
+
+ 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 ListOrganizationMembersReply 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 each item in members (list)
+ _items = []
+ if self.members:
+ for _item_members in self.members:
+ if _item_members:
+ _items.append(_item_members.to_dict())
+ _dict['members'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListOrganizationMembersReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_payment_methods_reply.py b/koyeb/api/models/list_payment_methods_reply.py
new file mode 100644
index 00000000..e3fa354a
--- /dev/null
+++ b/koyeb/api/models/list_payment_methods_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.payment_method import PaymentMethod
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListPaymentMethodsReply(BaseModel):
+ """
+ ListPaymentMethodsReply
+ """ # noqa: E501
+ payment_methods: Optional[List[PaymentMethod]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["payment_methods", "limit", "offset", "count"]
+
+ 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 ListPaymentMethodsReply 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 each item in payment_methods (list)
+ _items = []
+ if self.payment_methods:
+ for _item_payment_methods in self.payment_methods:
+ if _item_payment_methods:
+ _items.append(_item_payment_methods.to_dict())
+ _dict['payment_methods'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListPaymentMethodsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_persistent_volume_events_reply.py b/koyeb/api/models/list_persistent_volume_events_reply.py
new file mode 100644
index 00000000..db567ac9
--- /dev/null
+++ b/koyeb/api/models/list_persistent_volume_events_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 ListPersistentVolumeEventsReply 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 each item in events (list)
+ _items = []
+ if self.events:
+ for _item_events in self.events:
+ if _item_events:
+ _items.append(_item_events.to_dict())
+ _dict['events'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListPersistentVolumeEventsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_persistent_volumes_reply.py b/koyeb/api/models/list_persistent_volumes_reply.py
new file mode 100644
index 00000000..40120635
--- /dev/null
+++ b/koyeb/api/models/list_persistent_volumes_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.persistent_volume import PersistentVolume
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListPersistentVolumesReply(BaseModel):
+ """
+ ListPersistentVolumesReply
+ """ # noqa: E501
+ volumes: Optional[List[PersistentVolume]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ has_next: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["volumes", "limit", "offset", "has_next"]
+
+ 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 ListPersistentVolumesReply 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListPersistentVolumesReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_regional_deployment_events_reply.py b/koyeb/api/models/list_regional_deployment_events_reply.py
new file mode 100644
index 00000000..bf00c3b3
--- /dev/null
+++ b/koyeb/api/models/list_regional_deployment_events_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 ListRegionalDeploymentEventsReply 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 each item in events (list)
+ _items = []
+ if self.events:
+ for _item_events in self.events:
+ if _item_events:
+ _items.append(_item_events.to_dict())
+ _dict['events'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListRegionalDeploymentEventsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_regional_deployments_reply.py b/koyeb/api/models/list_regional_deployments_reply.py
new file mode 100644
index 00000000..89a2c444
--- /dev/null
+++ b/koyeb/api/models/list_regional_deployments_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 ListRegionalDeploymentsReply 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListRegionalDeploymentsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_regions_reply.py b/koyeb/api/models/list_regions_reply.py
new file mode 100644
index 00000000..f11cec40
--- /dev/null
+++ b/koyeb/api/models/list_regions_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ regions: Optional[List[RegionListItem]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["regions", "limit", "offset", "count"]
+
+ 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 ListRegionsReply 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 each item in regions (list)
+ _items = []
+ if self.regions:
+ for _item_regions in self.regions:
+ if _item_regions:
+ _items.append(_item_regions.to_dict())
+ _dict['regions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListRegionsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/list_service_events_reply.py b/koyeb/api/models/list_service_events_reply.py
new file mode 100644
index 00000000..ce24c623
--- /dev/null
+++ b/koyeb/api/models/list_service_events_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.service_event import ServiceEvent
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListServiceEventsReply(BaseModel):
+ """
+ ListServiceEventsReply
+ """ # 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"]
+
+ 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 ListServiceEventsReply 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 each item in events (list)
+ _items = []
+ if self.events:
+ for _item_events in self.events:
+ if _item_events:
+ _items.append(_item_events.to_dict())
+ _dict['events'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListServiceEventsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_services_reply.py b/koyeb/api/models/list_services_reply.py
new file mode 100644
index 00000000..312bba23
--- /dev/null
+++ b/koyeb/api/models/list_services_reply.py
@@ -0,0 +1,103 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 ListServicesReply 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 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListServicesReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/list_user_organization_invitations_reply.py b/koyeb/api/models/list_user_organization_invitations_reply.py
new file mode 100644
index 00000000..7c0afc0a
--- /dev/null
+++ b/koyeb/api/models/list_user_organization_invitations_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.organization_invitation import OrganizationInvitation
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListUserOrganizationInvitationsReply(BaseModel):
+ """
+ ListUserOrganizationInvitationsReply
+ """ # noqa: E501
+ invitations: Optional[List[OrganizationInvitation]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["invitations", "limit", "offset", "count"]
+
+ 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 ListUserOrganizationInvitationsReply 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 each item in invitations (list)
+ _items = []
+ if self.invitations:
+ for _item_invitations in self.invitations:
+ if _item_invitations:
+ _items.append(_item_invitations.to_dict())
+ _dict['invitations'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListUserOrganizationInvitationsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/list_user_organizations_reply.py b/koyeb/api/models/list_user_organizations_reply.py
new file mode 100644
index 00000000..efa0161c
--- /dev/null
+++ b/koyeb/api/models/list_user_organizations_reply.py
@@ -0,0 +1,101 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.organization import Organization
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListUserOrganizationsReply(BaseModel):
+ """
+ ListUserOrganizationsReply
+ """ # noqa: E501
+ organizations: Optional[List[Organization]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ has_next: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["organizations", "limit", "offset", "has_next"]
+
+ 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 ListUserOrganizationsReply 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 each item in organizations (list)
+ _items = []
+ if self.organizations:
+ for _item_organizations in self.organizations:
+ if _item_organizations:
+ _items.append(_item_organizations.to_dict())
+ _dict['organizations'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListUserOrganizationsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/login_method_reply_method.py b/koyeb/api/models/login_method_reply_method.py
new file mode 100644
index 00000000..a27e8297
--- /dev/null
+++ b/koyeb/api/models/login_method_reply_method.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 LoginMethodReplyMethod(str, Enum):
+ """
+ LoginMethodReplyMethod
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/neon_postgres_database.py b/koyeb/api/models/neon_postgres_database.py
new file mode 100644
index 00000000..f72eea2b
--- /dev/null
+++ b/koyeb/api/models/neon_postgres_database.py
@@ -0,0 +1,111 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 NeonPostgresDatabase 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 each item in roles (list)
+ _items = []
+ if self.roles:
+ for _item_roles in self.roles:
+ if _item_roles:
+ _items.append(_item_roles.to_dict())
+ _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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NeonPostgresDatabase from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/next_invoice_reply.py b/koyeb/api/models/next_invoice_reply.py
new file mode 100644
index 00000000..a8909b61
--- /dev/null
+++ b/koyeb/api/models/next_invoice_reply.py
@@ -0,0 +1,107 @@
+# 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.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
+ stripe_invoice: Optional[Dict[str, Any]] = None
+ lines: Optional[List[NextInvoiceReplyLine]] = None
+ discounts: Optional[List[NextInvoiceReplyDiscount]] = None
+ __properties: ClassVar[List[str]] = ["stripe_invoice", "lines", "discounts"]
+
+ 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 NextInvoiceReply 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 each item in lines (list)
+ _items = []
+ if self.lines:
+ for _item_lines in self.lines:
+ if _item_lines:
+ _items.append(_item_lines.to_dict())
+ _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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NextInvoiceReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/next_invoice_reply_discount.py b/koyeb/api/models/next_invoice_reply_discount.py
new file mode 100644
index 00000000..b441734e
--- /dev/null
+++ b/koyeb/api/models/next_invoice_reply_discount.py
@@ -0,0 +1,92 @@
+# 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.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
+ name: Optional[StrictStr] = None
+ amount: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["type", "name", "amount"]
+
+ 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 NextInvoiceReplyDiscount 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 NextInvoiceReplyDiscount from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/next_invoice_reply_discount_type.py b/koyeb/api/models/next_invoice_reply_discount_type.py
new file mode 100644
index 00000000..482f2960
--- /dev/null
+++ b/koyeb/api/models/next_invoice_reply_discount_type.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 NextInvoiceReplyDiscountType(str, Enum):
+ """
+ NextInvoiceReplyDiscountType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/next_invoice_reply_line.py b/koyeb/api/models/next_invoice_reply_line.py
new file mode 100644
index 00000000..58f9bfd2
--- /dev/null
+++ b/koyeb/api/models/next_invoice_reply_line.py
@@ -0,0 +1,103 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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"]
+
+ 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 NextInvoiceReplyLine 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 period
+ if self.period:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NextInvoiceReplyLine from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/notification.py b/koyeb/api/models/notification.py
new file mode 100644
index 00000000..723664a7
--- /dev/null
+++ b/koyeb/api/models/notification.py
@@ -0,0 +1,100 @@
+# 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.activity import Activity
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Notification(BaseModel):
+ """
+ Notification
+ """ # 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"]
+
+ 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 Notification 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 activity
+ if self.activity:
+ _dict['activity'] = self.activity.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Notification 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"),
+ "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/api/models/notification_list.py b/koyeb/api/models/notification_list.py
new file mode 100644
index 00000000..43a0d7b0
--- /dev/null
+++ b/koyeb/api/models/notification_list.py
@@ -0,0 +1,109 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from koyeb.api.models.notification import Notification
+from typing import Optional, Set
+from typing_extensions import Self
+
+class NotificationList(BaseModel):
+ """
+ NotificationList
+ """ # noqa: E501
+ notifications: Optional[List[Notification]] = None
+ limit: Optional[StrictInt] = None
+ offset: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
+ is_read: Optional[StrictBool] = None
+ 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"]
+
+ 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 NotificationList 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 each item in notifications (list)
+ _items = []
+ if self.notifications:
+ for _item_notifications in self.notifications:
+ if _item_notifications:
+ _items.append(_item_notifications.to_dict())
+ _dict['notifications'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NotificationList from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/o_auth_callback_request.py b/koyeb/api/models/o_auth_callback_request.py
new file mode 100644
index 00000000..f1976db8
--- /dev/null
+++ b/koyeb/api/models/o_auth_callback_request.py
@@ -0,0 +1,93 @@
+# 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, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OAuthCallbackRequest(BaseModel):
+ """
+ OAuthCallbackRequest
+ """ # 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"]
+
+ 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 OAuthCallbackRequest 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 OAuthCallbackRequest from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/organization_invitation.py b/koyeb/api/models/organization_invitation.py
new file mode 100644
index 00000000..192da45f
--- /dev/null
+++ b/koyeb/api/models/organization_invitation.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 datetime import datetime
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ id: Optional[StrictStr] = None
+ email: Optional[StrictStr] = None
+ role: Optional[UserRoleRole] = UserRoleRole.INVALID
+ status: Optional[OrganizationInvitationStatus] = OrganizationInvitationStatus.INVALID
+ expires_at: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ organization: Optional[PublicOrganization] = None
+ invitee_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 OrganizationInvitation 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 organization
+ if self.organization:
+ _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()
+ # override the default output from pydantic by calling `to_dict()` of inviter
+ if self.inviter:
+ _dict['inviter'] = self.inviter.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationInvitation 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"),
+ "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/api/models/organization_invitation_status.py b/koyeb/api/models/organization_invitation_status.py
new file mode 100644
index 00000000..256fce22
--- /dev/null
+++ b/koyeb/api/models/organization_invitation_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 OrganizationInvitationStatus(str, Enum):
+ """
+ OrganizationInvitationStatus
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/organization_member.py b/koyeb/api/models/organization_member.py
new file mode 100644
index 00000000..222293ce
--- /dev/null
+++ b/koyeb/api/models/organization_member.py
@@ -0,0 +1,112 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ user_id: Optional[StrictStr] = None
+ joined_at: Optional[datetime] = None
+ role: Optional[UserRoleRole] = UserRoleRole.INVALID
+ 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"]
+
+ 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 OrganizationMember 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 user
+ if self.user:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationMember 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"),
+ "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/api/models/organization_member_status.py b/koyeb/api/models/organization_member_status.py
new file mode 100644
index 00000000..eb1a7f38
--- /dev/null
+++ b/koyeb/api/models/organization_member_status.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 OrganizationMemberStatus(str, Enum):
+ """
+ OrganizationMemberStatus
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/organization_summary.py b/koyeb/api/models/organization_summary.py
new file mode 100644
index 00000000..10ae8a69
--- /dev/null
+++ b/koyeb/api/models/organization_summary.py
@@ -0,0 +1,138 @@
+# 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.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
+ organization_id: Optional[StrictStr] = None
+ instances: Optional[InstancesSummary] = None
+ apps: Optional[AppsSummary] = None
+ services: Optional[Dict[str, ServiceSummary]] = None
+ domains: Optional[DomainsSummary] = None
+ 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"]
+
+ 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 OrganizationSummary 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 instances
+ if self.instances:
+ _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()
+ # 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
+ # override the default output from pydantic by calling `to_dict()` of domains
+ if self.domains:
+ _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()
+ # 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()
+ # override the default output from pydantic by calling `to_dict()` of members
+ if self.members:
+ _dict['members'] = self.members.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationSummary from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/payment_method.py b/koyeb/api/models/payment_method.py
new file mode 100644
index 00000000..53e6c43a
--- /dev/null
+++ b/koyeb/api/models/payment_method.py
@@ -0,0 +1,129 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ version: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ type: Optional[StrictStr] = None
+ provider: Optional[StrictStr] = None
+ status: Optional[PaymentMethodStatus] = PaymentMethodStatus.INVALID
+ messages: Optional[List[StrictStr]] = None
+ stripe_payment_method_id: Optional[StrictStr] = None
+ authorization_verified_at: Optional[datetime] = None
+ authorization_canceled_at: Optional[datetime] = None
+ authorization_stripe_payment_intent_id: Optional[StrictStr] = None
+ authorization_stripe_payment_intent_client_secret: Optional[StrictStr] = None
+ card_brand: Optional[StrictStr] = None
+ card_country: Optional[StrictStr] = None
+ card_funding: Optional[StrictStr] = None
+ card_fingerprint: Optional[StrictStr] = None
+ 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"]
+
+ 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 PaymentMethod 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 PaymentMethod 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"),
+ "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/api/models/persistent_volume.py b/koyeb/api/models/persistent_volume.py
new file mode 100644
index 00000000..50e94590
--- /dev/null
+++ b/koyeb/api/models/persistent_volume.py
@@ -0,0 +1,116 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ snapshot_id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ deleted_at: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ service_id: Optional[StrictStr] = None
+ region: Optional[StrictStr] = None
+ 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"]
+
+ 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 PersistentVolume 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 PersistentVolume 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"),
+ "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/api/models/persistent_volume_event.py b/koyeb/api/models/persistent_volume_event.py
new file mode 100644
index 00000000..87e70ce4
--- /dev/null
+++ b/koyeb/api/models/persistent_volume_event.py
@@ -0,0 +1,100 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class PersistentVolumeEvent(BaseModel):
+ """
+ PersistentVolumeEvent
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ when: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ persistent_volume_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 PersistentVolumeEvent 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 PersistentVolumeEvent 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"),
+ "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/api/models/persistent_volume_quotas.py b/koyeb/api/models/persistent_volume_quotas.py
new file mode 100644
index 00000000..e274a251
--- /dev/null
+++ b/koyeb/api/models/persistent_volume_quotas.py
@@ -0,0 +1,91 @@
+# 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, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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"]
+
+ 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 PersistentVolumeQuotas 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 PersistentVolumeQuotas from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/proxy_port_protocol.py b/koyeb/api/models/proxy_port_protocol.py
new file mode 100644
index 00000000..3d253437
--- /dev/null
+++ b/koyeb/api/models/proxy_port_protocol.py
@@ -0,0 +1,36 @@
+# 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 ProxyPortProtocol(str, Enum):
+ """
+ ProxyPortProtocol
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/public_organization.py b/koyeb/api/models/public_organization.py
new file mode 100644
index 00000000..044d69e6
--- /dev/null
+++ b/koyeb/api/models/public_organization.py
@@ -0,0 +1,95 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ plan: Optional[Plan] = Plan.HOBBY
+ status: Optional[OrganizationStatus] = OrganizationStatus.WARNING
+ __properties: ClassVar[List[str]] = ["id", "name", "plan", "status"]
+
+ 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 PublicOrganization 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 PublicOrganization 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"),
+ "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/api/models/public_user.py b/koyeb/api/models/public_user.py
new file mode 100644
index 00000000..1905c848
--- /dev/null
+++ b/koyeb/api/models/public_user.py
@@ -0,0 +1,97 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class PublicUser(BaseModel):
+ """
+ PublicUser
+ """ # 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"]
+
+ 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 PublicUser 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 PublicUser 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"),
+ "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/api/models/query_logs_reply.py b/koyeb/api/models/query_logs_reply.py
new file mode 100644
index 00000000..0836d1f5
--- /dev/null
+++ b/koyeb/api/models/query_logs_reply.py
@@ -0,0 +1,101 @@
+# 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.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
+ data: Optional[List[LogEntry]] = None
+ pagination: Optional[QueryLogsReplyPagination] = None
+ __properties: ClassVar[List[str]] = ["data", "pagination"]
+
+ 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 QueryLogsReply 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 each item in data (list)
+ _items = []
+ if self.data:
+ for _item_data in self.data:
+ if _item_data:
+ _items.append(_item_data.to_dict())
+ _dict['data'] = _items
+ # override the default output from pydantic by calling `to_dict()` of pagination
+ if self.pagination:
+ _dict['pagination'] = self.pagination.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of QueryLogsReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/quotas.py b/koyeb/api/models/quotas.py
new file mode 100644
index 00000000..bb9b2375
--- /dev/null
+++ b/koyeb/api/models/quotas.py
@@ -0,0 +1,146 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ apps: Optional[StrictStr] = None
+ services: Optional[StrictStr] = None
+ domains: Optional[StrictStr] = None
+ services_by_app: Optional[StrictStr] = None
+ service_provisioning_concurrency: Optional[StrictStr] = None
+ memory_mb: Optional[StrictStr] = None
+ instance_types: Optional[List[StrictStr]] = None
+ regions: Optional[List[StrictStr]] = None
+ max_organization_members: Optional[StrictStr] = None
+ max_instances_by_type: Optional[Dict[str, StrictStr]] = None
+ persistent_volumes_by_region: Optional[Dict[str, PersistentVolumeQuotas]] = None
+ custom_domains: Optional[StrictStr] = None
+ domains_load_balancer: Optional[DomainLoadBalancerQuotas] = None
+ metrics_retention: Optional[StrictInt] = None
+ logs_retention: Optional[StrictInt] = None
+ access_reserved_subdomains: Optional[List[StrictStr]] = None
+ proxy_ports: Optional[StrictInt] = None
+ scale_to_zero: Optional[ScaleToZeroQuotas] = None
+ archives: Optional[StrictStr] = None
+ 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,
+ 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 Quotas 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 each value in persistent_volumes_by_region (dict)
+ _field_dict = {}
+ 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
+ # 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()
+ # 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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Quotas from a dict"""
+ if obj is None:
+ return None
+
+ 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"),
+ "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/api/models/redeploy_request_info.py b/koyeb/api/models/redeploy_request_info.py
new file mode 100644
index 00000000..6c4c2bc9
--- /dev/null
+++ b/koyeb/api/models/redeploy_request_info.py
@@ -0,0 +1,93 @@
+# 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, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class RedeployRequestInfo(BaseModel):
+ """
+ RedeployRequestInfo
+ """ # 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"]
+
+ 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 RedeployRequestInfo 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 RedeployRequestInfo from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/region.py b/koyeb/api/models/region.py
new file mode 100644
index 00000000..1b687af5
--- /dev/null
+++ b/koyeb/api/models/region.py
@@ -0,0 +1,101 @@
+# 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, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Region(BaseModel):
+ """
+ Region
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ coordinates: Optional[List[StrictStr]] = None
+ status: Optional[StrictStr] = None
+ 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"]
+
+ 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 Region 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 Region 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"),
+ "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/api/models/region_list_item.py b/koyeb/api/models/region_list_item.py
new file mode 100644
index 00000000..c475016e
--- /dev/null
+++ b/koyeb/api/models/region_list_item.py
@@ -0,0 +1,101 @@
+# 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, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class RegionListItem(BaseModel):
+ """
+ RegionListItem
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ coordinates: Optional[List[StrictStr]] = None
+ status: Optional[StrictStr] = None
+ 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"]
+
+ 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 RegionListItem 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 RegionListItem 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"),
+ "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/api/models/region_usage.py b/koyeb/api/models/region_usage.py
new file mode 100644
index 00000000..80344d33
--- /dev/null
+++ b/koyeb/api/models/region_usage.py
@@ -0,0 +1,100 @@
+# 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.instance_usage import InstanceUsage
+from typing import Optional, Set
+from typing_extensions import Self
+
+class RegionUsage(BaseModel):
+ """
+ RegionUsage
+ """ # noqa: E501
+ instances: Optional[Dict[str, InstanceUsage]] = None
+ __properties: ClassVar[List[str]] = ["instances"]
+
+ 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 RegionUsage 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 each value in instances (dict)
+ _field_dict = {}
+ 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RegionUsage from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/regional_deployment.py b/koyeb/api/models/regional_deployment.py
new file mode 100644
index 00000000..4bbdfb58
--- /dev/null
+++ b/koyeb/api/models/regional_deployment.py
@@ -0,0 +1,144 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ scheduled_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
+ region: Optional[StrictStr] = None
+ parent_id: Optional[StrictStr] = None
+ child_id: Optional[StrictStr] = None
+ status: Optional[RegionalDeploymentStatus] = RegionalDeploymentStatus.PENDING
+ messages: Optional[List[StrictStr]] = None
+ definition: Optional[RegionalDeploymentDefinition] = None
+ datacenters: Optional[List[StrictStr]] = None
+ metadata: Optional[Dict[str, Any]] = None
+ provisioning_info: Optional[DeploymentProvisioningInfo] = None
+ role: Optional[RegionalDeploymentRole] = RegionalDeploymentRole.INVALID
+ 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"]
+
+ 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 RegionalDeployment 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 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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RegionalDeployment 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"),
+ "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/api/models/regional_deployment_definition.py b/koyeb/api/models/regional_deployment_definition.py
new file mode 100644
index 00000000..ee8f0209
--- /dev/null
+++ b/koyeb/api/models/regional_deployment_definition.py
@@ -0,0 +1,188 @@
+# 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.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
+ name: Optional[StrictStr] = None
+ type: Optional[RegionalDeploymentDefinitionType] = RegionalDeploymentDefinitionType.INVALID
+ strategy: Optional[DeploymentStrategy] = None
+ routes: Optional[List[Route]] = None
+ ports: Optional[List[Port]] = None
+ env: Optional[List[Env]] = None
+ region: Optional[StrictStr] = None
+ scaling: Optional[Scaling] = None
+ instance_type: Optional[StrictStr] = None
+ deployment_group: Optional[StrictStr] = None
+ health_checks: Optional[List[DeploymentHealthCheck]] = None
+ volumes: Optional[List[RegionalDeploymentVolume]] = None
+ config_files: Optional[List[ConfigFile]] = None
+ skip_cache: Optional[StrictBool] = None
+ 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"]
+
+ 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 RegionalDeploymentDefinition 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 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 scaling
+ if self.scaling:
+ _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
+ # 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 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 RegionalDeploymentDefinition 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 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/api/models/regional_deployment_definition_type.py b/koyeb/api/models/regional_deployment_definition_type.py
new file mode 100644
index 00000000..c1624920
--- /dev/null
+++ b/koyeb/api/models/regional_deployment_definition_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 RegionalDeploymentDefinitionType(str, Enum):
+ """
+ RegionalDeploymentDefinitionType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/regional_deployment_event.py b/koyeb/api/models/regional_deployment_event.py
new file mode 100644
index 00000000..e9af1ab2
--- /dev/null
+++ b/koyeb/api/models/regional_deployment_event.py
@@ -0,0 +1,100 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class RegionalDeploymentEvent(BaseModel):
+ """
+ RegionalDeploymentEvent
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ when: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ regional_deployment_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 RegionalDeploymentEvent 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 RegionalDeploymentEvent 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"),
+ "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/api/models/regional_deployment_list_item.py b/koyeb/api/models/regional_deployment_list_item.py
new file mode 100644
index 00000000..281e1183
--- /dev/null
+++ b/koyeb/api/models/regional_deployment_list_item.py
@@ -0,0 +1,105 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ region: Optional[StrictStr] = None
+ 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"]
+
+ 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 RegionalDeploymentListItem 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 definition
+ if self.definition:
+ _dict['definition'] = self.definition.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RegionalDeploymentListItem 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"),
+ "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/api/models/regional_deployment_role.py b/koyeb/api/models/regional_deployment_role.py
new file mode 100644
index 00000000..1a17b3e3
--- /dev/null
+++ b/koyeb/api/models/regional_deployment_role.py
@@ -0,0 +1,39 @@
+# 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 RegionalDeploymentRole(str, Enum):
+ """
+ RegionalDeploymentRole
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/resend_organization_invitation_reply.py b/koyeb/api/models/resend_organization_invitation_reply.py
new file mode 100644
index 00000000..2b4b587a
--- /dev/null
+++ b/koyeb/api/models/resend_organization_invitation_reply.py
@@ -0,0 +1,91 @@
+# 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.organization_invitation import OrganizationInvitation
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ResendOrganizationInvitationReply(BaseModel):
+ """
+ ResendOrganizationInvitationReply
+ """ # noqa: E501
+ invitation: Optional[OrganizationInvitation] = None
+ __properties: ClassVar[List[str]] = ["invitation"]
+
+ 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 ResendOrganizationInvitationReply 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 invitation
+ if self.invitation:
+ _dict['invitation'] = self.invitation.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ResendOrganizationInvitationReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/scale_to_zero_quotas.py b/koyeb/api/models/scale_to_zero_quotas.py
new file mode 100644
index 00000000..faf8bc3a
--- /dev/null
+++ b/koyeb/api/models/scale_to_zero_quotas.py
@@ -0,0 +1,97 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ScaleToZeroQuotas(BaseModel):
+ """
+ ScaleToZeroQuotas
+ """ # 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"]
+
+ 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 ScaleToZeroQuotas 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 ScaleToZeroQuotas from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/scaling.py b/koyeb/api/models/scaling.py
new file mode 100644
index 00000000..1ca041ec
--- /dev/null
+++ b/koyeb/api/models/scaling.py
@@ -0,0 +1,99 @@
+# 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, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ min: Optional[StrictInt] = None
+ max: Optional[StrictInt] = None
+ targets: Optional[List[DeploymentScalingTarget]] = None
+ __properties: ClassVar[List[str]] = ["min", "max", "targets"]
+
+ 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 Scaling 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 each item in targets (list)
+ _items = []
+ if self.targets:
+ for _item_targets in self.targets:
+ if _item_targets:
+ _items.append(_item_targets.to_dict())
+ _dict['targets'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Scaling from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/secret_type.py b/koyeb/api/models/secret_type.py
new file mode 100644
index 00000000..241aca98
--- /dev/null
+++ b/koyeb/api/models/secret_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 SecretType(str, Enum):
+ """
+ SecretType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/service.py b/koyeb/api/models/service.py
new file mode 100644
index 00000000..164256ce
--- /dev/null
+++ b/koyeb/api/models/service.py
@@ -0,0 +1,130 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ started_at: Optional[datetime] = None
+ succeeded_at: Optional[datetime] = None
+ paused_at: Optional[datetime] = None
+ resumed_at: Optional[datetime] = None
+ terminated_at: Optional[datetime] = None
+ name: Optional[StrictStr] = None
+ type: Optional[ServiceType] = ServiceType.INVALID_TYPE
+ organization_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ status: Optional[ServiceStatus] = ServiceStatus.STARTING
+ messages: Optional[List[StrictStr]] = None
+ version: Optional[StrictStr] = None
+ active_deployment_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 Service 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 state
+ if self.state:
+ _dict['state'] = self.state.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Service 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"),
+ "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/api/models/service_event.py b/koyeb/api/models/service_event.py
new file mode 100644
index 00000000..27facaa7
--- /dev/null
+++ b/koyeb/api/models/service_event.py
@@ -0,0 +1,100 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class ServiceEvent(BaseModel):
+ """
+ ServiceEvent
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ when: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ service_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 ServiceEvent 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 ServiceEvent 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"),
+ "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/api/models/service_list_item.py b/koyeb/api/models/service_list_item.py
new file mode 100644
index 00000000..df76848b
--- /dev/null
+++ b/koyeb/api/models/service_list_item.py
@@ -0,0 +1,118 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ type: Optional[ServiceType] = ServiceType.INVALID_TYPE
+ organization_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ updated_at: Optional[datetime] = None
+ created_at: Optional[datetime] = None
+ status: Optional[ServiceStatus] = ServiceStatus.STARTING
+ messages: Optional[List[StrictStr]] = None
+ version: Optional[StrictStr] = None
+ 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"]
+
+ 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 ServiceListItem 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 state
+ if self.state:
+ _dict['state'] = self.state.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ServiceListItem 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"),
+ "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/api/models/service_state.py b/koyeb/api/models/service_state.py
new file mode 100644
index 00000000..73decf17
--- /dev/null
+++ b/koyeb/api/models/service_state.py
@@ -0,0 +1,97 @@
+# 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.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
+ desired_deployment: Optional[DesiredDeployment] = None
+ auto_release: Optional[AutoRelease] = None
+ __properties: ClassVar[List[str]] = ["desired_deployment", "auto_release"]
+
+ 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 ServiceState 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 desired_deployment
+ if self.desired_deployment:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ServiceState from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/service_type.py b/koyeb/api/models/service_type.py
new file mode 100644
index 00000000..cade14be
--- /dev/null
+++ b/koyeb/api/models/service_type.py
@@ -0,0 +1,39 @@
+# 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 ServiceType(str, Enum):
+ """
+ ServiceType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/service_usage.py b/koyeb/api/models/service_usage.py
new file mode 100644
index 00000000..3297852e
--- /dev/null
+++ b/koyeb/api/models/service_usage.py
@@ -0,0 +1,104 @@
+# 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.region_usage import RegionUsage
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ServiceUsage(BaseModel):
+ """
+ ServiceUsage
+ """ # noqa: E501
+ service_id: Optional[StrictStr] = None
+ service_name: Optional[StrictStr] = None
+ regions: Optional[Dict[str, RegionUsage]] = None
+ __properties: ClassVar[List[str]] = ["service_id", "service_name", "regions"]
+
+ 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 ServiceUsage 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 each value in regions (dict)
+ _field_dict = {}
+ if self.regions:
+ 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ServiceUsage from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/snapshot.py b/koyeb/api/models/snapshot.py
new file mode 100644
index 00000000..fc9bc7ba
--- /dev/null
+++ b/koyeb/api/models/snapshot.py
@@ -0,0 +1,110 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ id: Optional[StrictStr] = None
+ name: Optional[StrictStr] = None
+ size: Optional[StrictInt] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ deleted_at: Optional[datetime] = None
+ organization_id: Optional[StrictStr] = None
+ parent_volume_id: Optional[StrictStr] = None
+ 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"]
+
+ 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 Snapshot 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 Snapshot 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"),
+ "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/api/models/stream_result_of_exec_command_reply.py b/koyeb/api/models/stream_result_of_exec_command_reply.py
new file mode 100644
index 00000000..4842b4b2
--- /dev/null
+++ b/koyeb/api/models/stream_result_of_exec_command_reply.py
@@ -0,0 +1,97 @@
+# 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.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
+ result: Optional[ExecCommandReply] = None
+ error: Optional[GoogleRpcStatus] = None
+ __properties: ClassVar[List[str]] = ["result", "error"]
+
+ 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 StreamResultOfExecCommandReply 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 result
+ if self.result:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of StreamResultOfExecCommandReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/stream_result_of_log_entry.py b/koyeb/api/models/stream_result_of_log_entry.py
new file mode 100644
index 00000000..09dd065c
--- /dev/null
+++ b/koyeb/api/models/stream_result_of_log_entry.py
@@ -0,0 +1,97 @@
+# 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.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
+ result: Optional[LogEntry] = None
+ error: Optional[GoogleRpcStatus] = None
+ __properties: ClassVar[List[str]] = ["result", "error"]
+
+ 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 StreamResultOfLogEntry 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 result
+ if self.result:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of StreamResultOfLogEntry from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/subscription.py b/koyeb/api/models/subscription.py
new file mode 100644
index 00000000..b9b06196
--- /dev/null
+++ b/koyeb/api/models/subscription.py
@@ -0,0 +1,139 @@
+# 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.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
+ id: Optional[StrictStr] = None
+ created_at: Optional[datetime] = None
+ updated_at: Optional[datetime] = None
+ version: Optional[StrictStr] = None
+ organization_id: Optional[StrictStr] = None
+ stripe_subscription_id: Optional[StrictStr] = None
+ status: Optional[SubscriptionStatus] = SubscriptionStatus.INVALID
+ messages: Optional[List[StrictStr]] = None
+ has_pending_update: Optional[StrictBool] = None
+ stripe_pending_invoice_id: Optional[StrictStr] = None
+ terminate_at: Optional[datetime] = None
+ canceled_at: Optional[datetime] = None
+ terminated_at: Optional[datetime] = None
+ current_period_start: Optional[datetime] = None
+ current_period_end: Optional[datetime] = None
+ currency: Optional[StrictStr] = None
+ amount_payable: Optional[StrictStr] = None
+ amount_paid: Optional[StrictStr] = None
+ amount_remaining: Optional[StrictStr] = None
+ payment_failure: Optional[SubscriptionPaymentFailure] = None
+ trialing: Optional[StrictBool] = None
+ 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"]
+
+ 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 Subscription 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 payment_failure
+ if self.payment_failure:
+ _dict['payment_failure'] = self.payment_failure.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Subscription 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"),
+ "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/api/models/subscription_payment_failure.py b/koyeb/api/models/subscription_payment_failure.py
new file mode 100644
index 00000000..41caeb58
--- /dev/null
+++ b/koyeb/api/models/subscription_payment_failure.py
@@ -0,0 +1,110 @@
+# 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.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SubscriptionPaymentFailure(BaseModel):
+ """
+ SubscriptionPaymentFailure
+ """ # noqa: E501
+ failed_at: Optional[datetime] = None
+ next_attempt: Optional[datetime] = None
+ attempt_count: Optional[StrictStr] = None
+ error_code: Optional[StrictStr] = None
+ error_reason: Optional[StrictStr] = None
+ error_type: Optional[StrictStr] = None
+ error_message: Optional[StrictStr] = None
+ 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"]
+
+ 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 SubscriptionPaymentFailure 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 stripe_sdk
+ if self.stripe_sdk:
+ _dict['stripe_sdk'] = self.stripe_sdk.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SubscriptionPaymentFailure from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ 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/api/models/token.py b/koyeb/api/models/token.py
new file mode 100644
index 00000000..bc3778a2
--- /dev/null
+++ b/koyeb/api/models/token.py
@@ -0,0 +1,94 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class Token(BaseModel):
+ """
+ Token
+ """ # 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"]
+
+ 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 Token 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 Token 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"),
+ "user_id": obj.get("user_id"),
+ "organization_id": obj.get("organization_id"),
+ "expires_at": obj.get("expires_at")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/trigger_deployment_metadata.py b/koyeb/api/models/trigger_deployment_metadata.py
new file mode 100644
index 00000000..f7603d35
--- /dev/null
+++ b/koyeb/api/models/trigger_deployment_metadata.py
@@ -0,0 +1,97 @@
+# 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.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
+ git: Optional[TriggerGitDeploymentMetadata] = None
+ __properties: ClassVar[List[str]] = ["type", "actor", "git"]
+
+ 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 TriggerDeploymentMetadata 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 git
+ if self.git:
+ _dict['git'] = self.git.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TriggerDeploymentMetadata from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/trigger_deployment_metadata_actor_type.py b/koyeb/api/models/trigger_deployment_metadata_actor_type.py
new file mode 100644
index 00000000..a74aa835
--- /dev/null
+++ b/koyeb/api/models/trigger_deployment_metadata_actor_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 TriggerDeploymentMetadataActorType(str, Enum):
+ """
+ TriggerDeploymentMetadataActorType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/trigger_deployment_metadata_trigger_type.py b/koyeb/api/models/trigger_deployment_metadata_trigger_type.py
new file mode 100644
index 00000000..3aac8381
--- /dev/null
+++ b/koyeb/api/models/trigger_deployment_metadata_trigger_type.py
@@ -0,0 +1,39 @@
+# 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 TriggerDeploymentMetadataTriggerType(str, Enum):
+ """
+ TriggerDeploymentMetadataTriggerType
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/trigger_git_deployment_metadata.py b/koyeb/api/models/trigger_git_deployment_metadata.py
new file mode 100644
index 00000000..93502700
--- /dev/null
+++ b/koyeb/api/models/trigger_git_deployment_metadata.py
@@ -0,0 +1,102 @@
+# 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.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
+ repository: Optional[StrictStr] = None
+ branch: Optional[StrictStr] = None
+ sha: Optional[StrictStr] = None
+ message: Optional[StrictStr] = None
+ 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"]
+
+ 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 TriggerGitDeploymentMetadata 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 TriggerGitDeploymentMetadata from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/trigger_git_deployment_metadata_provider.py b/koyeb/api/models/trigger_git_deployment_metadata_provider.py
new file mode 100644
index 00000000..c2f10198
--- /dev/null
+++ b/koyeb/api/models/trigger_git_deployment_metadata_provider.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 TriggerGitDeploymentMetadataProvider(str, Enum):
+ """
+ TriggerGitDeploymentMetadataProvider
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/update_domain.py b/koyeb/api/models/update_domain.py
new file mode 100644
index 00000000..0ba886c7
--- /dev/null
+++ b/koyeb/api/models/update_domain.py
@@ -0,0 +1,89 @@
+# 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, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+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.")
+ __properties: ClassVar[List[str]] = ["app_id", "subdomain"]
+
+ 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 UpdateDomain 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 UpdateDomain from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _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/api/models/update_service.py b/koyeb/api/models/update_service.py
new file mode 100644
index 00000000..c0f10be6
--- /dev/null
+++ b/koyeb/api/models/update_service.py
@@ -0,0 +1,101 @@
+# 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, Field, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+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
+ 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.")
+ save_only: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["definition", "metadata", "skip_build", "save_only"]
+
+ 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 UpdateService 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 definition
+ if self.definition:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateService from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ 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/api/models/update_user_request_user_update_body.py b/koyeb/api/models/update_user_request_user_update_body.py
new file mode 100644
index 00000000..60beb530
--- /dev/null
+++ b/koyeb/api/models/update_user_request_user_update_body.py
@@ -0,0 +1,97 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateUserRequestUserUpdateBody(BaseModel):
+ """
+ UpdateUserRequestUserUpdateBody
+ """ # 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"]
+
+ 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 UpdateUserRequestUserUpdateBody 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 UpdateUserRequestUserUpdateBody 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"),
+ "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/api/models/usage.py b/koyeb/api/models/usage.py
new file mode 100644
index 00000000..02d8874b
--- /dev/null
+++ b/koyeb/api/models/usage.py
@@ -0,0 +1,102 @@
+# 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.period_usage import PeriodUsage
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Usage(BaseModel):
+ """
+ Usage
+ """ # noqa: E501
+ organization_id: Optional[StrictStr] = None
+ periods: Optional[Dict[str, PeriodUsage]] = None
+ __properties: ClassVar[List[str]] = ["organization_id", "periods"]
+
+ 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 Usage 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 each value in periods (dict)
+ _field_dict = {}
+ if self.periods:
+ 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
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Usage from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/usage_details.py b/koyeb/api/models/usage_details.py
new file mode 100644
index 00000000..c643f86d
--- /dev/null
+++ b/koyeb/api/models/usage_details.py
@@ -0,0 +1,112 @@
+# 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, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UsageDetails(BaseModel):
+ """
+ UsageDetails
+ """ # noqa: E501
+ organization_id: Optional[StrictStr] = None
+ instance_id: Optional[StrictStr] = None
+ app_id: Optional[StrictStr] = None
+ app_name: Optional[StrictStr] = None
+ service_id: Optional[StrictStr] = None
+ service_name: Optional[StrictStr] = None
+ regional_deployment_id: Optional[StrictStr] = None
+ region: Optional[StrictStr] = None
+ deployment_id: Optional[StrictStr] = None
+ instance_type: Optional[StrictStr] = None
+ 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"]
+
+ 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 UsageDetails 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 UsageDetails from a dict"""
+ if obj is None:
+ return None
+
+ 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")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/user.py b/koyeb/api/models/user.py
new file mode 100644
index 00000000..87d300fe
--- /dev/null
+++ b/koyeb/api/models/user.py
@@ -0,0 +1,117 @@
+# 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.user_flags import UserFlags
+from typing import Optional, Set
+from typing_extensions import Self
+
+class User(BaseModel):
+ """
+ User
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ email: Optional[StrictStr] = None
+ avatar_url: Optional[StrictStr] = None
+ two_factor_authentication: Optional[StrictBool] = None
+ last_login: Optional[datetime] = None
+ last_login_ip: Optional[StrictStr] = None
+ updated_at: Optional[datetime] = None
+ created_at: Optional[datetime] = None
+ newsletter_subscribed: Optional[StrictBool] = None
+ github_id: Optional[StrictStr] = None
+ github_user: Optional[StrictStr] = None
+ flags: Optional[List[UserFlags]] = None
+ 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"]
+
+ 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 User 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 User 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"),
+ "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/api/models/user_role_role.py b/koyeb/api/models/user_role_role.py
new file mode 100644
index 00000000..f964e609
--- /dev/null
+++ b/koyeb/api/models/user_role_role.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 UserRoleRole(str, Enum):
+ """
+ UserRoleRole
+ """
+
+ """
+ allowed enum values
+ """
+ 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/api/models/user_settings.py b/koyeb/api/models/user_settings.py
new file mode 100644
index 00000000..7bb700a2
--- /dev/null
+++ b/koyeb/api/models/user_settings.py
@@ -0,0 +1,91 @@
+# 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 typing import Optional, Set
+from typing_extensions import Self
+
+class UserSettings(BaseModel):
+ """
+ UserSettings
+ """ # 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"]
+
+ 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 UserSettings 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 UserSettings 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"),
+ "user_id": obj.get("user_id"),
+ "failed_deployment_email_notification": obj.get("failed_deployment_email_notification")
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/verify_docker_image_reply.py b/koyeb/api/models/verify_docker_image_reply.py
new file mode 100644
index 00000000..393f02b8
--- /dev/null
+++ b/koyeb/api/models/verify_docker_image_reply.py
@@ -0,0 +1,92 @@
+# 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.verify_docker_image_reply_err_code import VerifyDockerImageReplyErrCode
+from typing import Optional, Set
+from typing_extensions import Self
+
+class VerifyDockerImageReply(BaseModel):
+ """
+ VerifyDockerImageReply
+ """ # noqa: E501
+ success: Optional[StrictBool] = None
+ reason: Optional[StrictStr] = None
+ code: Optional[VerifyDockerImageReplyErrCode] = VerifyDockerImageReplyErrCode.UNKNOWN
+ __properties: ClassVar[List[str]] = ["success", "reason", "code"]
+
+ 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 VerifyDockerImageReply 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 VerifyDockerImageReply from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/koyeb/api/models/verify_docker_image_reply_err_code.py b/koyeb/api/models/verify_docker_image_reply_err_code.py
new file mode 100644
index 00000000..fb4d4ae6
--- /dev/null
+++ b/koyeb/api/models/verify_docker_image_reply_err_code.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 VerifyDockerImageReplyErrCode(str, Enum):
+ """
+ - UNKNOWN: Default value - AUTH_ACCESS_DENIED: The registry denied access to an authenticated request - ANON_ACCESS_DENIED: The registry denied access to an anonymous request - AUTH_NOT_FOUND: The image has not been found after an authenticated request - ANON_NOT_FOUND: The image has not been found after an anonymous request - REGISTRY_ERROR: The registry returned an error - TIMEOUT: The request to the registry timed out - DNS: There was an error trying to resolve the name of the registry - MALFORMED: The provided image name is malformed - INVALID_OS: The operating system is not supported - INVALID_ARCH: The architecture is not supported - INVALID_SCHEME: The scheme is not https - GENERIC: Generic catch-all error code
+ """
+
+ """
+ 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'
+
+ @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/api/organization_members_api.py b/koyeb/api/organization_members_api.py
deleted file mode 100644
index 1ab52319..00000000
--- a/koyeb/api/organization_members_api.py
+++ /dev/null
@@ -1,664 +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, 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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class OrganizationMembersApi:
- """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 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,
- _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,
- ) -> ListOrganizationMembersReply:
- """List organization members
-
-
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param organization_id: (Optional) Filter for an organization
- :type organization_id: str
- :param user_id: (Optional) Filter for an user
- :type user_id: str
- :param organization_statuses: (Optional) Filter for organization statuses
- :type organization_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
- (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._list_organization_members_serialize(
- limit=limit,
- offset=offset,
- organization_id=organization_id,
- user_id=user_id,
- organization_statuses=organization_statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListOrganizationMembersReply]:
- """List organization members
-
-
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param organization_id: (Optional) Filter for an organization
- :type organization_id: str
- :param user_id: (Optional) Filter for an user
- :type user_id: str
- :param organization_statuses: (Optional) Filter for organization statuses
- :type organization_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
- (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._list_organization_members_serialize(
- limit=limit,
- offset=offset,
- organization_id=organization_id,
- user_id=user_id,
- organization_statuses=organization_statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List organization members
-
-
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param organization_id: (Optional) Filter for an organization
- :type organization_id: str
- :param user_id: (Optional) Filter for an user
- :type user_id: str
- :param organization_statuses: (Optional) Filter for organization statuses
- :type organization_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
- (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._list_organization_members_serialize(
- limit=limit,
- offset=offset,
- organization_id=organization_id,
- user_id=user_id,
- organization_statuses=organization_statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_organization_members_serialize(
- self,
- limit,
- offset,
- organization_id,
- user_id,
- organization_statuses,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "organization_statuses": "multi",
- }
-
- _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 limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if organization_id is not None:
-
- _query_params.append(("organization_id", organization_id))
-
- if user_id is not None:
-
- _query_params.append(("user_id", user_id))
-
- if organization_statuses is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/organization_members",
- 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 remove_organization_member(
- self,
- id: StrictStr,
- _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,
- ) -> RemoveOrganizationMemberReply:
- """Remove an organization member
-
-
- :param id: (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._remove_organization_member_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
- @validate_call
- def remove_organization_member_with_http_info(
- self,
- id: StrictStr,
- _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[RemoveOrganizationMemberReply]:
- """Remove an organization member
-
-
- :param id: (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._remove_organization_member_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
- @validate_call
- def remove_organization_member_without_preload_content(
- self,
- id: StrictStr,
- _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:
- """Remove an organization member
-
-
- :param id: (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._remove_organization_member_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": "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
- )
- return response_data.response
-
- def _remove_organization_member_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/organization_members/{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/profile_api.py b/koyeb/api/profile_api.py
deleted file mode 100644
index ff0ad07c..00000000
--- a/koyeb/api/profile_api.py
+++ /dev/null
@@ -1,5783 +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, 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
-
-
-class ProfileApi:
- """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 accept_organization_invitation(
- self,
- 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)]
- ],
- ] = 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,
- ) -> AcceptOrganizationInvitationReply:
- """Accept Organization Invitation
-
-
- :param id: The id of the organization invitation to accept (required)
- :type id: str
- :param body: (required)
- :type body: object
- :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._accept_organization_invitation_serialize(
- id=id,
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 accept_organization_invitation_with_http_info(
- self,
- 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)]
- ],
- ] = 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[AcceptOrganizationInvitationReply]:
- """Accept Organization Invitation
-
-
- :param id: The id of the organization invitation to accept (required)
- :type id: str
- :param body: (required)
- :type body: object
- :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._accept_organization_invitation_serialize(
- id=id,
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 accept_organization_invitation_without_preload_content(
- self,
- 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)]
- ],
- ] = 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:
- """Accept Organization Invitation
-
-
- :param id: The id of the organization invitation to accept (required)
- :type id: str
- :param body: (required)
- :type body: object
- :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._accept_organization_invitation_serialize(
- id=id,
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _accept_organization_invitation_serialize(
- self,
- id,
- body,
- _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
- 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="POST",
- resource_path="/v1/account/organization_invitations/{id}/accept",
- 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 clear_idenfy_verification_result(
- self,
- body: ClearIdenfyVerificationResultRequest,
- _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,
- ) -> object:
- """ClearIdenfyVerificationResult marks the current result for idenfy as superseded
-
-
- :param body: (required)
- :type body: ClearIdenfyVerificationResultRequest
- :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._clear_idenfy_verification_result_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 clear_idenfy_verification_result_with_http_info(
- self,
- body: ClearIdenfyVerificationResultRequest,
- _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[object]:
- """ClearIdenfyVerificationResult marks the current result for idenfy as superseded
-
-
- :param body: (required)
- :type body: ClearIdenfyVerificationResultRequest
- :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._clear_idenfy_verification_result_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 clear_idenfy_verification_result_without_preload_content(
- self,
- body: ClearIdenfyVerificationResultRequest,
- _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:
- """ClearIdenfyVerificationResult marks the current result for idenfy as superseded
-
-
- :param body: (required)
- :type body: ClearIdenfyVerificationResultRequest
- :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._clear_idenfy_verification_result_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _clear_idenfy_verification_result_serialize(
- self,
- body,
- _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
- # process the header parameters
- # 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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/idenfy",
- 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 decline_organization_invitation(
- self,
- 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)]
- ],
- ] = 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,
- ) -> DeclineOrganizationInvitationReply:
- """Decline Organization Invitation
-
-
- :param id: The id of the organization invitation to decline (required)
- :type id: str
- :param body: (required)
- :type body: object
- :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._decline_organization_invitation_serialize(
- id=id,
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 decline_organization_invitation_with_http_info(
- self,
- 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)]
- ],
- ] = 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[DeclineOrganizationInvitationReply]:
- """Decline Organization Invitation
-
-
- :param id: The id of the organization invitation to decline (required)
- :type id: str
- :param body: (required)
- :type body: object
- :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._decline_organization_invitation_serialize(
- id=id,
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 decline_organization_invitation_without_preload_content(
- self,
- 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)]
- ],
- ] = 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:
- """Decline Organization Invitation
-
-
- :param id: The id of the organization invitation to decline (required)
- :type id: str
- :param body: (required)
- :type body: object
- :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._decline_organization_invitation_serialize(
- id=id,
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _decline_organization_invitation_serialize(
- self,
- id,
- body,
- _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
- 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="POST",
- resource_path="/v1/account/organization_invitations/{id}/decline",
- 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 get_current_organization(
- self,
- _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,
- ) -> GetOrganizationReply:
- """Get Current Organization
-
-
- :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._get_current_organization_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 get_current_organization_with_http_info(
- self,
- _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[GetOrganizationReply]:
- """Get Current Organization
-
-
- :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._get_current_organization_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 get_current_organization_without_preload_content(
- self,
- _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:
- """Get Current Organization
-
-
- :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._get_current_organization_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_current_organization_serialize(
- self,
- _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
- # 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="GET",
- resource_path="/v1/account/organization",
- 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 get_current_user(
- self,
- _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:
- """Get Current User
-
-
- :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._get_current_user_serialize(
- _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 get_current_user_with_http_info(
- self,
- _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]:
- """Get Current User
-
-
- :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._get_current_user_serialize(
- _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 get_current_user_without_preload_content(
- self,
- _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:
- """Get Current User
-
-
- :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._get_current_user_serialize(
- _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 _get_current_user_serialize(
- self,
- _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
- # 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="GET",
- resource_path="/v1/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 get_idenfy_token(
- self,
- _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,
- ) -> GetIdenfyTokenReply:
- """Begin a session with iDenfy, emit an authToken
-
-
- :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._get_idenfy_token_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 get_idenfy_token_with_http_info(
- self,
- _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[GetIdenfyTokenReply]:
- """Begin a session with iDenfy, emit an authToken
-
-
- :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._get_idenfy_token_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 get_idenfy_token_without_preload_content(
- self,
- _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:
- """Begin a session with iDenfy, emit an authToken
-
-
- :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._get_idenfy_token_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_idenfy_token_serialize(
- self,
- _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
- # 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="GET",
- resource_path="/v1/account/idenfy",
- 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 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,
- _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,
- ) -> GetOAuthOptionsReply:
- """Get OAuth Providers
-
-
- :param action: Which authentication flow is being initiated
- :type action: str
- :param metadata: A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state
- :type metadata: 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._get_o_auth_options_serialize(
- action=action,
- metadata=metadata,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[GetOAuthOptionsReply]:
- """Get OAuth Providers
-
-
- :param action: Which authentication flow is being initiated
- :type action: str
- :param metadata: A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state
- :type metadata: 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._get_o_auth_options_serialize(
- action=action,
- metadata=metadata,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """Get OAuth Providers
-
-
- :param action: Which authentication flow is being initiated
- :type action: str
- :param metadata: A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state
- :type metadata: 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._get_o_auth_options_serialize(
- action=action,
- metadata=metadata,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_o_auth_options_serialize(
- self,
- action,
- metadata,
- _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 action is not None:
-
- _query_params.append(("action", action))
-
- if metadata is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/account/oauth",
- 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 get_user_organization_invitation(
- self,
- 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)]
- ],
- ] = 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,
- ) -> GetUserOrganizationInvitationReply:
- """Get User Organization Invitation
-
-
- :param id: The id of the organization invitation to get (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._get_user_organization_invitation_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- 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")
- ],
- _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[GetUserOrganizationInvitationReply]:
- """Get User Organization Invitation
-
-
- :param id: The id of the organization invitation to get (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._get_user_organization_invitation_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- 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")
- ],
- _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:
- """Get User Organization Invitation
-
-
- :param id: The id of the organization invitation to get (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._get_user_organization_invitation_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": "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
- )
- return response_data.response
-
- def _get_user_organization_invitation_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="GET",
- resource_path="/v1/account/organization_invitations/{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 get_user_settings(
- self,
- _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,
- ) -> GetUserSettingsReply:
- """get_user_settings
-
-
- :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._get_user_settings_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 get_user_settings_with_http_info(
- self,
- _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[GetUserSettingsReply]:
- """get_user_settings
-
-
- :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._get_user_settings_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 get_user_settings_without_preload_content(
- self,
- _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:
- """get_user_settings
-
-
- :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._get_user_settings_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_user_settings_serialize(
- self,
- _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
- # 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="GET",
- 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 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,
- _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,
- ) -> ListUserOrganizationInvitationsReply:
- """List User Organization Invitations
-
-
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param statuses: (Optional) Filter on organization invitation 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
- (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._list_user_organization_invitations_serialize(
- limit=limit,
- offset=offset,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListUserOrganizationInvitationsReply]:
- """List User Organization Invitations
-
-
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param statuses: (Optional) Filter on organization invitation 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
- (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._list_user_organization_invitations_serialize(
- limit=limit,
- offset=offset,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List User Organization Invitations
-
-
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param statuses: (Optional) Filter on organization invitation 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
- (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._list_user_organization_invitations_serialize(
- limit=limit,
- offset=offset,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_user_organization_invitations_serialize(
- self,
- limit,
- offset,
- statuses,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "statuses": "multi",
- }
-
- _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 limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- 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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/account/organization_invitations",
- 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 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,
- _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,
- ) -> ListUserOrganizationsReply:
- """List User Organizations
-
- List all organizations that the current user is a member of.
-
- :param limit: (Optional) Define pagination limit
- :type limit: str
- :param offset: (Optional) Define pagination offset
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param search: (Optional) Fuzzy case-insensitive search based on organization name or organization id
- :type search: str
- :param statuses: (Optional) Only return organizations which status match one in the list
- :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
- (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._list_user_organizations_serialize(
- limit=limit,
- offset=offset,
- order=order,
- search=search,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListUserOrganizationsReply]:
- """List User Organizations
-
- List all organizations that the current user is a member of.
-
- :param limit: (Optional) Define pagination limit
- :type limit: str
- :param offset: (Optional) Define pagination offset
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param search: (Optional) Fuzzy case-insensitive search based on organization name or organization id
- :type search: str
- :param statuses: (Optional) Only return organizations which status match one in the list
- :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
- (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._list_user_organizations_serialize(
- limit=limit,
- offset=offset,
- order=order,
- search=search,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List User Organizations
-
- List all organizations that the current user is a member of.
-
- :param limit: (Optional) Define pagination limit
- :type limit: str
- :param offset: (Optional) Define pagination offset
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param search: (Optional) Fuzzy case-insensitive search based on organization name or organization id
- :type search: str
- :param statuses: (Optional) Only return organizations which status match one in the list
- :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
- (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._list_user_organizations_serialize(
- limit=limit,
- offset=offset,
- order=order,
- search=search,
- statuses=statuses,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_user_organizations_serialize(
- self,
- limit,
- offset,
- order,
- search,
- statuses,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "statuses": "multi",
- }
-
- _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 limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if order is not None:
-
- _query_params.append(("order", order))
-
- if search is not None:
-
- _query_params.append(("search", search))
-
- 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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/account/organizations",
- 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 login_method(
- self,
- email: 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,
- ) -> LoginMethodReply:
- """Get the login method for an email address
-
-
- :param email:
- :type email: 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._login_method_serialize(
- email=email,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 login_method_with_http_info(
- self,
- email: 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[LoginMethodReply]:
- """Get the login method for an email address
-
-
- :param email:
- :type email: 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._login_method_serialize(
- email=email,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 login_method_without_preload_content(
- self,
- email: 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:
- """Get the login method for an email address
-
-
- :param email:
- :type email: 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._login_method_serialize(
- email=email,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _login_method_serialize(
- self,
- email,
- _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 email is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/account/login_method",
- 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 o_auth_callback(
- self,
- body: OAuthCallbackRequest,
- 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)]
- ],
- ] = 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,
- ) -> OAuthCallbackReply:
- """Authenticate using OAuth
-
-
- :param body: (required)
- :type body: OAuthCallbackRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._o_auth_callback_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 o_auth_callback_with_http_info(
- self,
- body: OAuthCallbackRequest,
- 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)]
- ],
- ] = 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[OAuthCallbackReply]:
- """Authenticate using OAuth
-
-
- :param body: (required)
- :type body: OAuthCallbackRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._o_auth_callback_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 o_auth_callback_without_preload_content(
- self,
- body: OAuthCallbackRequest,
- 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)]
- ],
- ] = 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:
- """Authenticate using OAuth
-
-
- :param body: (required)
- :type body: OAuthCallbackRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._o_auth_callback_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _o_auth_callback_serialize(
- self,
- body,
- seon_fp,
- _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
- # process the header parameters
- if seon_fp is not None:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/oauth",
- 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 resend_email_validation(
- self,
- body: Dict[str, Any],
- _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,
- ) -> object:
- """Resend Email Verification
-
-
- :param body: (required)
- :type body: object
- :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._resend_email_validation_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 resend_email_validation_with_http_info(
- self,
- body: Dict[str, Any],
- _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[object]:
- """Resend Email Verification
-
-
- :param body: (required)
- :type body: object
- :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._resend_email_validation_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 resend_email_validation_without_preload_content(
- self,
- body: Dict[str, Any],
- _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:
- """Resend Email Verification
-
-
- :param body: (required)
- :type body: object
- :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._resend_email_validation_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _resend_email_validation_serialize(
- self,
- body,
- _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
- # process the header parameters
- # 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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/resend_validation",
- 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 reset_password(
- self,
- body: ResetPasswordRequest,
- _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,
- ) -> object:
- """Reset Password
-
-
- :param body: (required)
- :type body: ResetPasswordRequest
- :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._reset_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 reset_password_with_http_info(
- self,
- body: ResetPasswordRequest,
- _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[object]:
- """Reset Password
-
-
- :param body: (required)
- :type body: ResetPasswordRequest
- :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._reset_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 reset_password_without_preload_content(
- self,
- body: ResetPasswordRequest,
- _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:
- """Reset Password
-
-
- :param body: (required)
- :type body: ResetPasswordRequest
- :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._reset_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _reset_password_serialize(
- self,
- body,
- _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
- # process the header parameters
- # 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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/reset_password",
- 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 signup(
- self,
- body: Annotated[CreateAccountRequest, Field(description="Create new account")],
- 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)]
- ],
- ] = 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,
- ) -> LoginReply:
- """Signup
-
-
- :param body: Create new account (required)
- :type body: CreateAccountRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._signup_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 signup_with_http_info(
- self,
- body: Annotated[CreateAccountRequest, Field(description="Create new account")],
- 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)]
- ],
- ] = 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[LoginReply]:
- """Signup
-
-
- :param body: Create new account (required)
- :type body: CreateAccountRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._signup_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 signup_without_preload_content(
- self,
- body: Annotated[CreateAccountRequest, Field(description="Create new account")],
- 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)]
- ],
- ] = 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:
- """Signup
-
-
- :param body: Create new account (required)
- :type body: CreateAccountRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._signup_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _signup_serialize(
- self,
- body,
- seon_fp,
- _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
- # process the header parameters
- if seon_fp is not None:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/signup",
- 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_password(
- self,
- body: UpdatePasswordRequest,
- 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)]
- ],
- ] = 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,
- ) -> LoginReply:
- """Update Password
-
-
- :param body: (required)
- :type body: UpdatePasswordRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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_password_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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_password_with_http_info(
- self,
- body: UpdatePasswordRequest,
- 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)]
- ],
- ] = 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[LoginReply]:
- """Update Password
-
-
- :param body: (required)
- :type body: UpdatePasswordRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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_password_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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_password_without_preload_content(
- self,
- body: UpdatePasswordRequest,
- 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)]
- ],
- ] = 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 Password
-
-
- :param body: (required)
- :type body: UpdatePasswordRequest
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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_password_serialize(
- body=body,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _update_password_serialize(
- self,
- body,
- seon_fp,
- _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
- # process the header parameters
- if seon_fp is not None:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/update_password",
- 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(
- 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
-
-
- :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_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_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
-
-
- :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_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_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
-
-
- :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_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_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="PUT",
- resource_path="/v1/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 update_user2(
- 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
-
-
- :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_user2_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_user2_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
-
-
- :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_user2_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_user2_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
-
-
- :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_user2_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_user2_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="/v1/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 update_user_settings(
- self,
- body: UpdateUserSettingsRequest,
- _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,
- ) -> UpdateUserSettingsReply:
- """update_user_settings
-
-
- :param body: (required)
- :type body: UpdateUserSettingsRequest
- :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_settings_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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_settings_with_http_info(
- self,
- body: UpdateUserSettingsRequest,
- _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[UpdateUserSettingsReply]:
- """update_user_settings
-
-
- :param body: (required)
- :type body: UpdateUserSettingsRequest
- :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_settings_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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_settings_without_preload_content(
- self,
- body: UpdateUserSettingsRequest,
- _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_settings
-
-
- :param body: (required)
- :type body: UpdateUserSettingsRequest
- :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_settings_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _update_user_settings_serialize(
- self,
- body,
- _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
- # process the header parameters
- # 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(["*/*"])
-
- # 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 validate(
- self,
- id: StrictStr,
- 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)]
- ],
- ] = 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,
- ) -> LoginReply:
- """Validate
-
-
- :param id: (required)
- :type id: str
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._validate_serialize(
- id=id,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 validate_with_http_info(
- self,
- id: StrictStr,
- 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)]
- ],
- ] = 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[LoginReply]:
- """Validate
-
-
- :param id: (required)
- :type id: str
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._validate_serialize(
- id=id,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 validate_without_preload_content(
- self,
- id: StrictStr,
- 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)]
- ],
- ] = 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:
- """Validate
-
-
- :param id: (required)
- :type id: str
- :param seon_fp: Seon Fingerprint
- :type seon_fp: 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._validate_serialize(
- id=id,
- seon_fp=seon_fp,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _validate_serialize(
- self,
- id,
- seon_fp,
- _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
- if seon_fp is not None:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/account/validate/{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/regional_deployments_api.py b/koyeb/api/regional_deployments_api.py
deleted file mode 100644
index 6ef01023..00000000
--- a/koyeb/api/regional_deployments_api.py
+++ /dev/null
@@ -1,1003 +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 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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class RegionalDeploymentsApi:
- """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 get_regional_deployment(
- self,
- 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)]
- ],
- ] = 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,
- ) -> GetRegionalDeploymentReply:
- """Get Regional Deployment
-
- Experimental: use at your own risk
-
- :param id: The id of the regional deployment (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._get_regional_deployment_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- 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")
- ],
- _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[GetRegionalDeploymentReply]:
- """Get Regional Deployment
-
- Experimental: use at your own risk
-
- :param id: The id of the regional deployment (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._get_regional_deployment_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": "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
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- 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")
- ],
- _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:
- """Get Regional Deployment
-
- Experimental: use at your own risk
-
- :param id: The id of the regional deployment (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._get_regional_deployment_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": "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
- )
- return response_data.response
-
- def _get_regional_deployment_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="GET",
- resource_path="/v1/regional_deployments/{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 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,
- _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,
- ) -> ListRegionalDeploymentEventsReply:
- """List Regional Deployment events
-
-
- :param regional_deployment_id: (Optional) Filter on regional deployment id
- :type regional_deployment_id: str
- :param types: (Optional) Filter on regional deployment event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_regional_deployment_events_serialize(
- regional_deployment_id=regional_deployment_id,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListRegionalDeploymentEventsReply]:
- """List Regional Deployment events
-
-
- :param regional_deployment_id: (Optional) Filter on regional deployment id
- :type regional_deployment_id: str
- :param types: (Optional) Filter on regional deployment event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_regional_deployment_events_serialize(
- regional_deployment_id=regional_deployment_id,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Regional Deployment events
-
-
- :param regional_deployment_id: (Optional) Filter on regional deployment id
- :type regional_deployment_id: str
- :param types: (Optional) Filter on regional deployment event types
- :type types: List[str]
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: 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._list_regional_deployment_events_serialize(
- regional_deployment_id=regional_deployment_id,
- types=types,
- limit=limit,
- offset=offset,
- order=order,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_regional_deployment_events_serialize(
- self,
- regional_deployment_id,
- types,
- limit,
- offset,
- order,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- "types": "multi",
- }
-
- _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 regional_deployment_id is not None:
-
- _query_params.append(("regional_deployment_id", regional_deployment_id))
-
- if types is not None:
-
- _query_params.append(("types", types))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if order is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/regional_deployment_events",
- 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 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,
- _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,
- ) -> ListRegionalDeploymentsReply:
- """List Regional Deployments
-
- Experimental: use at your own risk
-
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: 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._list_regional_deployments_serialize(
- deployment_id=deployment_id,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[ListRegionalDeploymentsReply]:
- """List Regional Deployments
-
- Experimental: use at your own risk
-
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: 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._list_regional_deployments_serialize(
- deployment_id=deployment_id,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Regional Deployments
-
- Experimental: use at your own risk
-
- :param deployment_id: (Optional) Filter on deployment id
- :type deployment_id: str
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: 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._list_regional_deployments_serialize(
- deployment_id=deployment_id,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_regional_deployments_serialize(
- self,
- deployment_id,
- limit,
- offset,
- _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 deployment_id is not None:
-
- _query_params.append(("deployment_id", deployment_id))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/regional_deployments",
- 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/repositories_api.py b/koyeb/api/repositories_api.py
deleted file mode 100644
index 692c4aa5..00000000
--- a/koyeb/api/repositories_api.py
+++ /dev/null
@@ -1,1003 +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 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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class RepositoriesApi:
- """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 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,
- _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,
- ) -> KgitproxyListBranchesReply:
- """List Branches
-
-
- :param repository_id: (Optional) Filter on one repository.
- :type repository_id: str
- :param name: (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.
- :type name: str
- :param limit: (Optional) The number of items to return.
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return.
- :type offset: 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._list_branches_serialize(
- repository_id=repository_id,
- name=name,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[KgitproxyListBranchesReply]:
- """List Branches
-
-
- :param repository_id: (Optional) Filter on one repository.
- :type repository_id: str
- :param name: (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.
- :type name: str
- :param limit: (Optional) The number of items to return.
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return.
- :type offset: 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._list_branches_serialize(
- repository_id=repository_id,
- name=name,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Branches
-
-
- :param repository_id: (Optional) Filter on one repository.
- :type repository_id: str
- :param name: (Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.
- :type name: str
- :param limit: (Optional) The number of items to return.
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return.
- :type offset: 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._list_branches_serialize(
- repository_id=repository_id,
- name=name,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_branches_serialize(
- self,
- repository_id,
- name,
- limit,
- offset,
- _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 repository_id is not None:
-
- _query_params.append(("repository_id", repository_id))
-
- if name is not None:
-
- _query_params.append(("name", name))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/git/branches",
- 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 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,
- _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,
- ) -> KgitproxyListRepositoriesReply:
- """List Repositories
-
-
- :param name: (Optional) Filter on repository name using a fuzzy search.
- :type name: str
- :param name_search_op: (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.
- :type name_search_op: str
- :param limit: (Optional) The number of items to return.
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return.
- :type offset: 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._list_repositories_serialize(
- name=name,
- name_search_op=name_search_op,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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[KgitproxyListRepositoriesReply]:
- """List Repositories
-
-
- :param name: (Optional) Filter on repository name using a fuzzy search.
- :type name: str
- :param name_search_op: (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.
- :type name_search_op: str
- :param limit: (Optional) The number of items to return.
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return.
- :type offset: 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._list_repositories_serialize(
- name=name,
- name_search_op=name_search_op,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 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,
- _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:
- """List Repositories
-
-
- :param name: (Optional) Filter on repository name using a fuzzy search.
- :type name: str
- :param name_search_op: (Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.
- :type name_search_op: str
- :param limit: (Optional) The number of items to return.
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return.
- :type offset: 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._list_repositories_serialize(
- name=name,
- name_search_op=name_search_op,
- limit=limit,
- offset=offset,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _list_repositories_serialize(
- self,
- name,
- name_search_op,
- limit,
- offset,
- _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 name is not None:
-
- _query_params.append(("name", name))
-
- if name_search_op is not None:
-
- _query_params.append(("name_search_op", name_search_op))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/git/repositories",
- 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 resync_organization(
- self,
- organization_id: StrictStr,
- _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,
- ) -> object:
- """Resync Organization
-
-
- :param organization_id: (required)
- :type organization_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._resync_organization_serialize(
- organization_id=organization_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 resync_organization_with_http_info(
- self,
- organization_id: StrictStr,
- _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[object]:
- """Resync Organization
-
-
- :param organization_id: (required)
- :type organization_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._resync_organization_serialize(
- organization_id=organization_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- 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 resync_organization_without_preload_content(
- self,
- organization_id: StrictStr,
- _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:
- """Resync Organization
-
-
- :param organization_id: (required)
- :type organization_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._resync_organization_serialize(
- organization_id=organization_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _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",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _resync_organization_serialize(
- self,
- organization_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 organization_id is not None:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="POST",
- resource_path="/v1/git/sync/organization/{organization_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/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/api/test/test_accept_organization_invitation_reply.py b/koyeb/api/test/test_accept_organization_invitation_reply.py
new file mode 100644
index 00000000..efdfd6b4
--- /dev/null
+++ b/koyeb/api/test/test_accept_organization_invitation_reply.py
@@ -0,0 +1,77 @@
+# 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.accept_organization_invitation_reply import AcceptOrganizationInvitationReply
+
+class TestAcceptOrganizationInvitationReply(unittest.TestCase):
+ """AcceptOrganizationInvitationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AcceptOrganizationInvitationReply`
+ """
+ model = AcceptOrganizationInvitationReply()
+ if include_optional:
+ return AcceptOrganizationInvitationReply(
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ )
+ else:
+ return AcceptOrganizationInvitationReply(
+ )
+ """
+
+ def testAcceptOrganizationInvitationReply(self):
+ """Test AcceptOrganizationInvitationReply"""
+ # 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_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/api/test/test_activity.py b/koyeb/api/test/test_activity.py
new file mode 100644
index 00000000..152bf7c6
--- /dev/null
+++ b/koyeb/api/test/test_activity.py
@@ -0,0 +1,66 @@
+# 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.activity import Activity
+
+class TestActivity(unittest.TestCase):
+ """Activity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Activity`
+ """
+ model = Activity()
+ if include_optional:
+ return Activity(
+ id = '',
+ actor = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ object = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ verb = '',
+ metadata = None,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return Activity(
+ )
+ """
+
+ def testActivity(self):
+ """Test Activity"""
+ # 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_activity_api.py b/koyeb/api/test/test_activity_api.py
new file mode 100644
index 00000000..3e12ff8d
--- /dev/null
+++ b/koyeb/api/test/test_activity_api.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
+
+
+import unittest
+
+from koyeb.api.api.activity_api import ActivityApi
+
+
+class TestActivityApi(unittest.TestCase):
+ """ActivityApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ActivityApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_account_activities(self) -> None:
+ """Test case for get_account_activities
+
+ """
+ pass
+
+ def test_list_activities(self) -> None:
+ """Test case for list_activities
+
+ List Activities
+ """
+ pass
+
+ def test_list_notifications(self) -> None:
+ """Test case for list_notifications
+
+ List Notifications
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_activity_list.py b/koyeb/api/test/test_activity_list.py
new file mode 100644
index 00000000..803f103b
--- /dev/null
+++ b/koyeb/api/test/test_activity_list.py
@@ -0,0 +1,72 @@
+# 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.activity_list import ActivityList
+
+class TestActivityList(unittest.TestCase):
+ """ActivityList unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ActivityList`
+ """
+ model = ActivityList()
+ if include_optional:
+ return ActivityList(
+ activities = [
+ koyeb.api.models.activity.Activity(
+ id = '',
+ actor = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ object = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ verb = '',
+ 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,
+ offset = 56,
+ has_next = True
+ )
+ else:
+ return ActivityList(
+ )
+ """
+
+ def testActivityList(self):
+ """Test ActivityList"""
+ # 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_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/api/test/test_app_event.py b/koyeb/api/test/test_app_event.py
new file mode 100644
index 00000000..4e9aba52
--- /dev/null
+++ b/koyeb/api/test/test_app_event.py
@@ -0,0 +1,57 @@
+# 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_event import AppEvent
+
+class TestAppEvent(unittest.TestCase):
+ """AppEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AppEvent`
+ """
+ model = AppEvent()
+ if include_optional:
+ return 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 = None
+ )
+ else:
+ return AppEvent(
+ )
+ """
+
+ def testAppEvent(self):
+ """Test AppEvent"""
+ # 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_app_list_item.py b/koyeb/api/test/test_app_list_item.py
new file mode 100644
index 00000000..29216f93
--- /dev/null
+++ b/koyeb/api/test/test_app_list_item.py
@@ -0,0 +1,80 @@
+# 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_list_item import AppListItem
+
+class TestAppListItem(unittest.TestCase):
+ """AppListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AppListItem`
+ """
+ model = AppListItem()
+ if include_optional:
+ return 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.api.models.domain.Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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',
+ messages = [
+ ''
+ ]
+ )
+ else:
+ return AppListItem(
+ )
+ """
+
+ def testAppListItem(self):
+ """Test AppListItem"""
+ # 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_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/api/test/test_app_usage.py b/koyeb/api/test/test_app_usage.py
new file mode 100644
index 00000000..c6823f8b
--- /dev/null
+++ b/koyeb/api/test/test_app_usage.py
@@ -0,0 +1,71 @@
+# 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_usage import AppUsage
+
+class TestAppUsage(unittest.TestCase):
+ """AppUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AppUsage`
+ """
+ model = AppUsage()
+ if include_optional:
+ return AppUsage(
+ app_id = '',
+ app_name = '',
+ services = [
+ koyeb.api.models.service_usage.ServiceUsage(
+ service_id = '',
+ service_name = '',
+ regions = {
+ 'key' : koyeb.api.models.region_usage.RegionUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_usage.InstanceUsage(
+ duration_seconds = 56, )
+ }, )
+ }, )
+ ],
+ databases = [
+ koyeb.api.models.database_usage.DatabaseUsage(
+ service_id = '',
+ service_name = '',
+ compute_time_seconds = 56,
+ data_storage_megabytes_hours = 56, )
+ ]
+ )
+ else:
+ return AppUsage(
+ )
+ """
+
+ def testAppUsage(self):
+ """Test AppUsage"""
+ # 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_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/api/test/test_apps_summary.py b/koyeb/api/test/test_apps_summary.py
new file mode 100644
index 00000000..545c343b
--- /dev/null
+++ b/koyeb/api/test/test_apps_summary.py
@@ -0,0 +1,54 @@
+# 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.apps_summary import AppsSummary
+
+class TestAppsSummary(unittest.TestCase):
+ """AppsSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AppsSummary`
+ """
+ model = AppsSummary()
+ if include_optional:
+ return AppsSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }
+ )
+ else:
+ return AppsSummary(
+ )
+ """
+
+ def testAppsSummary(self):
+ """Test AppsSummary"""
+ # 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_archive.py b/koyeb/api/test/test_archive.py
new file mode 100644
index 00000000..dbe65ef6
--- /dev/null
+++ b/koyeb/api/test/test_archive.py
@@ -0,0 +1,56 @@
+# 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.archive import Archive
+
+class TestArchive(unittest.TestCase):
+ """Archive unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Archive`
+ """
+ model = Archive()
+ if include_optional:
+ return Archive(
+ id = '',
+ organization_id = '',
+ upload_url = '',
+ size = '',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return Archive(
+ )
+ """
+
+ def testArchive(self):
+ """Test Archive"""
+ # 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_archive_deployment_metadata.py b/koyeb/api/test/test_archive_deployment_metadata.py
new file mode 100644
index 00000000..fd1f1890
--- /dev/null
+++ b/koyeb/api/test/test_archive_deployment_metadata.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
+
+
+import unittest
+
+from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata
+
+class TestArchiveDeploymentMetadata(unittest.TestCase):
+ """ArchiveDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ArchiveDeploymentMetadata`
+ """
+ model = ArchiveDeploymentMetadata()
+ if include_optional:
+ return ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = ''
+ )
+ else:
+ return ArchiveDeploymentMetadata(
+ )
+ """
+
+ def testArchiveDeploymentMetadata(self):
+ """Test ArchiveDeploymentMetadata"""
+ # 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_archive_source.py b/koyeb/api/test/test_archive_source.py
new file mode 100644
index 00000000..2abaa112
--- /dev/null
+++ b/koyeb/api/test/test_archive_source.py
@@ -0,0 +1,66 @@
+# 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.archive_source import ArchiveSource
+
+class TestArchiveSource(unittest.TestCase):
+ """ArchiveSource unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ArchiveSource`
+ """
+ model = ArchiveSource()
+ if include_optional:
+ return ArchiveSource(
+ id = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ),
+ docker = koyeb.api.models.docker_builder.DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True, )
+ )
+ else:
+ return ArchiveSource(
+ )
+ """
+
+ def testArchiveSource(self):
+ """Test ArchiveSource"""
+ # 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_archives_api.py b/koyeb/api/test/test_archives_api.py
new file mode 100644
index 00000000..c21c2c0c
--- /dev/null
+++ b/koyeb/api/test/test_archives_api.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
+
+
+import unittest
+
+from koyeb.api.api.archives_api import ArchivesApi
+
+
+class TestArchivesApi(unittest.TestCase):
+ """ArchivesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ArchivesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_archive(self) -> None:
+ """Test case for create_archive
+
+ Create Archive
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_auto_release.py b/koyeb/api/test/test_auto_release.py
new file mode 100644
index 00000000..f4ae6a38
--- /dev/null
+++ b/koyeb/api/test/test_auto_release.py
@@ -0,0 +1,57 @@
+# 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.auto_release import AutoRelease
+
+class TestAutoRelease(unittest.TestCase):
+ """AutoRelease unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AutoRelease`
+ """
+ model = AutoRelease()
+ if include_optional:
+ return AutoRelease(
+ groups = [
+ 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 = '',
+ latest_sha = '', )
+ ]
+ )
+ else:
+ return AutoRelease(
+ )
+ """
+
+ def testAutoRelease(self):
+ """Test AutoRelease"""
+ # 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_auto_release_group.py b/koyeb/api/test/test_auto_release_group.py
new file mode 100644
index 00000000..c3aa40b2
--- /dev/null
+++ b/koyeb/api/test/test_auto_release_group.py
@@ -0,0 +1,54 @@
+# 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.auto_release_group import AutoReleaseGroup
+
+class TestAutoReleaseGroup(unittest.TestCase):
+ """AutoReleaseGroup unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AutoReleaseGroup`
+ """
+ model = AutoReleaseGroup()
+ if include_optional:
+ return AutoReleaseGroup(
+ name = '',
+ repository = '',
+ git_ref = '',
+ latest_sha = ''
+ )
+ else:
+ return AutoReleaseGroup(
+ )
+ """
+
+ def testAutoReleaseGroup(self):
+ """Test AutoReleaseGroup"""
+ # 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_autocomplete_reply.py b/koyeb/api/test/test_autocomplete_reply.py
new file mode 100644
index 00000000..ffb682c7
--- /dev/null
+++ b/koyeb/api/test/test_autocomplete_reply.py
@@ -0,0 +1,59 @@
+# 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.autocomplete_reply import AutocompleteReply
+
+class TestAutocompleteReply(unittest.TestCase):
+ """AutocompleteReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AutocompleteReply`
+ """
+ model = AutocompleteReply()
+ if include_optional:
+ return AutocompleteReply(
+ secrets = [
+ ''
+ ],
+ user_env = [
+ ''
+ ],
+ system_env = [
+ ''
+ ]
+ )
+ else:
+ return AutocompleteReply(
+ )
+ """
+
+ def testAutocompleteReply(self):
+ """Test AutocompleteReply"""
+ # 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_autocomplete_request.py b/koyeb/api/test/test_autocomplete_request.py
new file mode 100644
index 00000000..111233fa
--- /dev/null
+++ b/koyeb/api/test/test_autocomplete_request.py
@@ -0,0 +1,179 @@
+# 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.autocomplete_request import AutocompleteRequest
+
+class TestAutocompleteRequest(unittest.TestCase):
+ """AutocompleteRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AutocompleteRequest`
+ """
+ model = AutocompleteRequest()
+ if include_optional:
+ return AutocompleteRequest(
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), )
+ )
+ else:
+ return AutocompleteRequest(
+ )
+ """
+
+ def testAutocompleteRequest(self):
+ """Test AutocompleteRequest"""
+ # 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_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/api/test/test_azure_container_registry_configuration.py b/koyeb/api/test/test_azure_container_registry_configuration.py
new file mode 100644
index 00000000..4c2bb050
--- /dev/null
+++ b/koyeb/api/test/test_azure_container_registry_configuration.py
@@ -0,0 +1,53 @@
+# 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.azure_container_registry_configuration import AzureContainerRegistryConfiguration
+
+class TestAzureContainerRegistryConfiguration(unittest.TestCase):
+ """AzureContainerRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `AzureContainerRegistryConfiguration`
+ """
+ model = AzureContainerRegistryConfiguration()
+ if include_optional:
+ return AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = ''
+ )
+ else:
+ return AzureContainerRegistryConfiguration(
+ )
+ """
+
+ def testAzureContainerRegistryConfiguration(self):
+ """Test AzureContainerRegistryConfiguration"""
+ # 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_billing_api.py b/koyeb/api/test/test_billing_api.py
new file mode 100644
index 00000000..6a12982d
--- /dev/null
+++ b/koyeb/api/test/test_billing_api.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
+
+
+import unittest
+
+from koyeb.api.api.billing_api import BillingApi
+
+
+class TestBillingApi(unittest.TestCase):
+ """BillingApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BillingApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_has_unpaid_invoices(self) -> None:
+ """Test case for has_unpaid_invoices
+
+ Experimental: Has unpaid invoices
+ """
+ pass
+
+ def test_manage(self) -> None:
+ """Test case for manage
+
+ """
+ pass
+
+ def test_next_invoice(self) -> None:
+ """Test case for next_invoice
+
+ Experimental: Fetch next invoice
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_budget.py b/koyeb/api/test/test_budget.py
new file mode 100644
index 00000000..ff73c3a5
--- /dev/null
+++ b/koyeb/api/test/test_budget.py
@@ -0,0 +1,54 @@
+# 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.budget import Budget
+
+class TestBudget(unittest.TestCase):
+ """Budget unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Budget`
+ """
+ model = Budget()
+ if include_optional:
+ return Budget(
+ amount = '',
+ thresholds = [
+ ''
+ ]
+ )
+ else:
+ return Budget(
+ )
+ """
+
+ def testBudget(self):
+ """Test Budget"""
+ # 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_buildpack_builder.py b/koyeb/api/test/test_buildpack_builder.py
new file mode 100644
index 00000000..b8dfbad4
--- /dev/null
+++ b/koyeb/api/test/test_buildpack_builder.py
@@ -0,0 +1,53 @@
+# 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.buildpack_builder import BuildpackBuilder
+
+class TestBuildpackBuilder(unittest.TestCase):
+ """BuildpackBuilder unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `BuildpackBuilder`
+ """
+ model = BuildpackBuilder()
+ if include_optional:
+ return BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True
+ )
+ else:
+ return BuildpackBuilder(
+ )
+ """
+
+ def testBuildpackBuilder(self):
+ """Test BuildpackBuilder"""
+ # 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_canny_auth_reply.py b/koyeb/api/test/test_canny_auth_reply.py
new file mode 100644
index 00000000..62cc9b6c
--- /dev/null
+++ b/koyeb/api/test/test_canny_auth_reply.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
+
+
+import unittest
+
+from koyeb.api.models.canny_auth_reply import CannyAuthReply
+
+class TestCannyAuthReply(unittest.TestCase):
+ """CannyAuthReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CannyAuthReply`
+ """
+ model = CannyAuthReply()
+ if include_optional:
+ return CannyAuthReply(
+ token = ''
+ )
+ else:
+ return CannyAuthReply(
+ )
+ """
+
+ def testCannyAuthReply(self):
+ """Test CannyAuthReply"""
+ # 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_catalog_datacenters_api.py b/koyeb/api/test/test_catalog_datacenters_api.py
new file mode 100644
index 00000000..169bdc70
--- /dev/null
+++ b/koyeb/api/test/test_catalog_datacenters_api.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
+
+
+import unittest
+
+from koyeb.api.api.catalog_datacenters_api import CatalogDatacentersApi
+
+
+class TestCatalogDatacentersApi(unittest.TestCase):
+ """CatalogDatacentersApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CatalogDatacentersApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_list_datacenters(self) -> None:
+ """Test case for list_datacenters
+
+ List datacenters
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_catalog_gpu_details.py b/koyeb/api/test/test_catalog_gpu_details.py
new file mode 100644
index 00000000..f8db8c3b
--- /dev/null
+++ b/koyeb/api/test/test_catalog_gpu_details.py
@@ -0,0 +1,54 @@
+# 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.catalog_gpu_details import CatalogGPUDetails
+
+class TestCatalogGPUDetails(unittest.TestCase):
+ """CatalogGPUDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CatalogGPUDetails`
+ """
+ model = CatalogGPUDetails()
+ if include_optional:
+ return CatalogGPUDetails(
+ count = 56,
+ brand = '',
+ memory = '',
+ name = ''
+ )
+ else:
+ return CatalogGPUDetails(
+ )
+ """
+
+ def testCatalogGPUDetails(self):
+ """Test CatalogGPUDetails"""
+ # 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_catalog_instance.py b/koyeb/api/test/test_catalog_instance.py
new file mode 100644
index 00000000..bb9d4189
--- /dev/null
+++ b/koyeb/api/test/test_catalog_instance.py
@@ -0,0 +1,81 @@
+# 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.catalog_instance import CatalogInstance
+
+class TestCatalogInstance(unittest.TestCase):
+ """CatalogInstance unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CatalogInstance`
+ """
+ model = CatalogInstance()
+ if include_optional:
+ return CatalogInstance(
+ id = '',
+ description = '',
+ vcpu = 56,
+ memory = '',
+ disk = '',
+ price_per_second = '',
+ price_hourly = '',
+ price_monthly = '',
+ regions = [
+ ''
+ ],
+ status = '',
+ require_plan = [
+ ''
+ ],
+ vcpu_shares = 1.337,
+ display_name = '',
+ aliases = [
+ ''
+ ],
+ type = '',
+ gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails(
+ count = 56,
+ brand = '',
+ memory = '',
+ name = '', ),
+ service_types = [
+ ''
+ ],
+ volumes_enabled = True,
+ light_sleep_enabled = True
+ )
+ else:
+ return CatalogInstance(
+ )
+ """
+
+ def testCatalogInstance(self):
+ """Test CatalogInstance"""
+ # 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_catalog_instance_list_item.py b/koyeb/api/test/test_catalog_instance_list_item.py
new file mode 100644
index 00000000..f124d4e3
--- /dev/null
+++ b/koyeb/api/test/test_catalog_instance_list_item.py
@@ -0,0 +1,81 @@
+# 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.catalog_instance_list_item import CatalogInstanceListItem
+
+class TestCatalogInstanceListItem(unittest.TestCase):
+ """CatalogInstanceListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CatalogInstanceListItem`
+ """
+ model = CatalogInstanceListItem()
+ if include_optional:
+ return CatalogInstanceListItem(
+ id = '',
+ description = '',
+ vcpu = 56,
+ memory = '',
+ disk = '',
+ price_per_second = '',
+ price_hourly = '',
+ price_monthly = '',
+ regions = [
+ ''
+ ],
+ status = '',
+ require_plan = [
+ ''
+ ],
+ vcpu_shares = 1.337,
+ display_name = '',
+ aliases = [
+ ''
+ ],
+ type = '',
+ gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails(
+ count = 56,
+ brand = '',
+ memory = '',
+ name = '', ),
+ service_types = [
+ ''
+ ],
+ volumes_enabled = True,
+ light_sleep_enabled = True
+ )
+ else:
+ return CatalogInstanceListItem(
+ )
+ """
+
+ def testCatalogInstanceListItem(self):
+ """Test CatalogInstanceListItem"""
+ # 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_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/api/test/test_catalog_instances_api.py b/koyeb/api/test/test_catalog_instances_api.py
new file mode 100644
index 00000000..2a015896
--- /dev/null
+++ b/koyeb/api/test/test_catalog_instances_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.catalog_instances_api import CatalogInstancesApi
+
+
+class TestCatalogInstancesApi(unittest.TestCase):
+ """CatalogInstancesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CatalogInstancesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_catalog_instance(self) -> None:
+ """Test case for get_catalog_instance
+
+ Get Instance
+ """
+ pass
+
+ def test_list_catalog_instances(self) -> None:
+ """Test case for list_catalog_instances
+
+ List Instances
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_catalog_regions_api.py b/koyeb/api/test/test_catalog_regions_api.py
new file mode 100644
index 00000000..a60fafa3
--- /dev/null
+++ b/koyeb/api/test/test_catalog_regions_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.catalog_regions_api import CatalogRegionsApi
+
+
+class TestCatalogRegionsApi(unittest.TestCase):
+ """CatalogRegionsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CatalogRegionsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_region(self) -> None:
+ """Test case for get_region
+
+ Get Region
+ """
+ pass
+
+ def test_list_regions(self) -> None:
+ """Test case for list_regions
+
+ List Region
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_catalog_usage.py b/koyeb/api/test/test_catalog_usage.py
new file mode 100644
index 00000000..9fd487a4
--- /dev/null
+++ b/koyeb/api/test/test_catalog_usage.py
@@ -0,0 +1,58 @@
+# 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.catalog_usage import CatalogUsage
+
+class TestCatalogUsage(unittest.TestCase):
+ """CatalogUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CatalogUsage`
+ """
+ model = CatalogUsage()
+ if include_optional:
+ return CatalogUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_availability.InstanceAvailability(
+ regions = {
+ 'key' : koyeb.api.models.region_availability.RegionAvailability(
+ availability = 'UNKNOWN', )
+ },
+ availability = 'UNKNOWN', )
+ }
+ )
+ else:
+ return CatalogUsage(
+ )
+ """
+
+ def testCatalogUsage(self):
+ """Test CatalogUsage"""
+ # 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_clear_idenfy_verification_result_request.py b/koyeb/api/test/test_clear_idenfy_verification_result_request.py
new file mode 100644
index 00000000..3c579c66
--- /dev/null
+++ b/koyeb/api/test/test_clear_idenfy_verification_result_request.py
@@ -0,0 +1,52 @@
+# 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.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest
+
+class TestClearIdenfyVerificationResultRequest(unittest.TestCase):
+ """ClearIdenfyVerificationResultRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ClearIdenfyVerificationResultRequest`
+ """
+ model = ClearIdenfyVerificationResultRequest()
+ if include_optional:
+ return ClearIdenfyVerificationResultRequest(
+ user_id = '',
+ organization_id = ''
+ )
+ else:
+ return ClearIdenfyVerificationResultRequest(
+ )
+ """
+
+ def testClearIdenfyVerificationResultRequest(self):
+ """Test ClearIdenfyVerificationResultRequest"""
+ # 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_compose_api.py b/koyeb/api/test/test_compose_api.py
new file mode 100644
index 00000000..7937480d
--- /dev/null
+++ b/koyeb/api/test/test_compose_api.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
+
+
+import unittest
+
+from koyeb.api.api.compose_api import ComposeApi
+
+
+class TestComposeApi(unittest.TestCase):
+ """ComposeApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ComposeApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_compose(self) -> None:
+ """Test case for compose
+
+ Create resources from compose.
+ """
+ pass
+
+
+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/api/test/test_config_file.py b/koyeb/api/test/test_config_file.py
new file mode 100644
index 00000000..6e0f71e7
--- /dev/null
+++ b/koyeb/api/test/test_config_file.py
@@ -0,0 +1,53 @@
+# 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.config_file import ConfigFile
+
+class TestConfigFile(unittest.TestCase):
+ """ConfigFile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ConfigFile`
+ """
+ model = ConfigFile()
+ if include_optional:
+ return ConfigFile(
+ path = '',
+ permissions = '',
+ content = ''
+ )
+ else:
+ return ConfigFile(
+ )
+ """
+
+ def testConfigFile(self):
+ """Test ConfigFile"""
+ # 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_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/api/test/test_coupons_api.py b/koyeb/api/test/test_coupons_api.py
new file mode 100644
index 00000000..7c31e0be
--- /dev/null
+++ b/koyeb/api/test/test_coupons_api.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
+
+
+import unittest
+
+from koyeb.api.api.coupons_api import CouponsApi
+
+
+class TestCouponsApi(unittest.TestCase):
+ """CouponsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CouponsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_redeem_coupon(self) -> None:
+ """Test case for redeem_coupon
+
+ Redeem Coupon
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_create_access_token_reply.py b/koyeb/api/test/test_create_access_token_reply.py
new file mode 100644
index 00000000..446b8b32
--- /dev/null
+++ b/koyeb/api/test/test_create_access_token_reply.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
+
+
+import unittest
+
+from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply
+
+class TestCreateAccessTokenReply(unittest.TestCase):
+ """CreateAccessTokenReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateAccessTokenReply`
+ """
+ model = CreateAccessTokenReply()
+ if include_optional:
+ return CreateAccessTokenReply(
+ token = ''
+ )
+ else:
+ return CreateAccessTokenReply(
+ )
+ """
+
+ def testCreateAccessTokenReply(self):
+ """Test CreateAccessTokenReply"""
+ # 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_create_access_token_request.py b/koyeb/api/test/test_create_access_token_request.py
new file mode 100644
index 00000000..29569315
--- /dev/null
+++ b/koyeb/api/test/test_create_access_token_request.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
+
+
+import unittest
+
+from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest
+
+class TestCreateAccessTokenRequest(unittest.TestCase):
+ """CreateAccessTokenRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateAccessTokenRequest`
+ """
+ model = CreateAccessTokenRequest()
+ if include_optional:
+ return CreateAccessTokenRequest(
+ validity = ''
+ )
+ else:
+ return CreateAccessTokenRequest(
+ )
+ """
+
+ def testCreateAccessTokenRequest(self):
+ """Test CreateAccessTokenRequest"""
+ # 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_create_account_request.py b/koyeb/api/test/test_create_account_request.py
new file mode 100644
index 00000000..07623ad9
--- /dev/null
+++ b/koyeb/api/test/test_create_account_request.py
@@ -0,0 +1,56 @@
+# 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.create_account_request import CreateAccountRequest
+
+class TestCreateAccountRequest(unittest.TestCase):
+ """CreateAccountRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateAccountRequest`
+ """
+ model = CreateAccountRequest()
+ if include_optional:
+ return CreateAccountRequest(
+ email = '',
+ password = '',
+ name = '',
+ captcha = ''
+ )
+ else:
+ return CreateAccountRequest(
+ email = '',
+ password = '',
+ )
+ """
+
+ def testCreateAccountRequest(self):
+ """Test CreateAccountRequest"""
+ # 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_create_app.py b/koyeb/api/test/test_create_app.py
new file mode 100644
index 00000000..efb4dc74
--- /dev/null
+++ b/koyeb/api/test/test_create_app.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
+
+
+import unittest
+
+from koyeb.api.models.create_app import CreateApp
+
+class TestCreateApp(unittest.TestCase):
+ """CreateApp unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateApp`
+ """
+ model = CreateApp()
+ if include_optional:
+ return CreateApp(
+ name = ''
+ )
+ else:
+ return CreateApp(
+ )
+ """
+
+ def testCreateApp(self):
+ """Test CreateApp"""
+ # 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_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/api/test/test_create_archive.py b/koyeb/api/test/test_create_archive.py
new file mode 100644
index 00000000..f759d6f1
--- /dev/null
+++ b/koyeb/api/test/test_create_archive.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
+
+
+import unittest
+
+from koyeb.api.models.create_archive import CreateArchive
+
+class TestCreateArchive(unittest.TestCase):
+ """CreateArchive unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateArchive`
+ """
+ model = CreateArchive()
+ if include_optional:
+ return CreateArchive(
+ size = ''
+ )
+ else:
+ return CreateArchive(
+ )
+ """
+
+ def testCreateArchive(self):
+ """Test CreateArchive"""
+ # 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_create_archive_reply.py b/koyeb/api/test/test_create_archive_reply.py
new file mode 100644
index 00000000..415ab0fb
--- /dev/null
+++ b/koyeb/api/test/test_create_archive_reply.py
@@ -0,0 +1,57 @@
+# 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.create_archive_reply import CreateArchiveReply
+
+class TestCreateArchiveReply(unittest.TestCase):
+ """CreateArchiveReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateArchiveReply`
+ """
+ model = CreateArchiveReply()
+ if include_optional:
+ return CreateArchiveReply(
+ archive = koyeb.api.models.archive.Archive(
+ id = '',
+ organization_id = '',
+ upload_url = '',
+ size = '',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ )
+ else:
+ return CreateArchiveReply(
+ )
+ """
+
+ def testCreateArchiveReply(self):
+ """Test CreateArchiveReply"""
+ # 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_create_budget_reply.py b/koyeb/api/test/test_create_budget_reply.py
new file mode 100644
index 00000000..e6516a92
--- /dev/null
+++ b/koyeb/api/test/test_create_budget_reply.py
@@ -0,0 +1,55 @@
+# 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.create_budget_reply import CreateBudgetReply
+
+class TestCreateBudgetReply(unittest.TestCase):
+ """CreateBudgetReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateBudgetReply`
+ """
+ model = CreateBudgetReply()
+ if include_optional:
+ return CreateBudgetReply(
+ budget = koyeb.api.models.budget.Budget(
+ amount = '',
+ thresholds = [
+ ''
+ ], )
+ )
+ else:
+ return CreateBudgetReply(
+ )
+ """
+
+ def testCreateBudgetReply(self):
+ """Test CreateBudgetReply"""
+ # 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_create_compose.py b/koyeb/api/test/test_create_compose.py
new file mode 100644
index 00000000..b7e8cc33
--- /dev/null
+++ b/koyeb/api/test/test_create_compose.py
@@ -0,0 +1,185 @@
+# 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.create_compose import CreateCompose
+
+class TestCreateCompose(unittest.TestCase):
+ """CreateCompose unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateCompose`
+ """
+ model = CreateCompose()
+ if include_optional:
+ return CreateCompose(
+ app = koyeb.api.models.create_app.CreateApp(
+ name = '', ),
+ services = [
+ koyeb.api.models.create_service.CreateService(
+ app_id = '',
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ), )
+ ]
+ )
+ else:
+ return CreateCompose(
+ )
+ """
+
+ def testCreateCompose(self):
+ """Test CreateCompose"""
+ # 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_create_credential.py b/koyeb/api/test/test_create_credential.py
new file mode 100644
index 00000000..3ec87117
--- /dev/null
+++ b/koyeb/api/test/test_create_credential.py
@@ -0,0 +1,54 @@
+# 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.create_credential import CreateCredential
+
+class TestCreateCredential(unittest.TestCase):
+ """CreateCredential unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateCredential`
+ """
+ model = CreateCredential()
+ if include_optional:
+ return CreateCredential(
+ name = '',
+ description = '',
+ type = 'INVALID',
+ organization_id = ''
+ )
+ else:
+ return CreateCredential(
+ )
+ """
+
+ def testCreateCredential(self):
+ """Test CreateCredential"""
+ # 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_create_credential_reply.py b/koyeb/api/test/test_create_credential_reply.py
new file mode 100644
index 00000000..790c5e81
--- /dev/null
+++ b/koyeb/api/test/test_create_credential_reply.py
@@ -0,0 +1,61 @@
+# 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.create_credential_reply import CreateCredentialReply
+
+class TestCreateCredentialReply(unittest.TestCase):
+ """CreateCredentialReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateCredentialReply`
+ """
+ model = CreateCredentialReply()
+ if include_optional:
+ return CreateCredentialReply(
+ credential = koyeb.api.models.credential.Credential(
+ id = '',
+ type = 'INVALID',
+ name = '',
+ token = '',
+ description = '',
+ user_id = '',
+ 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'),
+ expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ )
+ else:
+ return CreateCredentialReply(
+ )
+ """
+
+ def testCreateCredentialReply(self):
+ """Test CreateCredentialReply"""
+ # 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_create_domain.py b/koyeb/api/test/test_create_domain.py
new file mode 100644
index 00000000..b9257372
--- /dev/null
+++ b/koyeb/api/test/test_create_domain.py
@@ -0,0 +1,56 @@
+# 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.create_domain import CreateDomain
+
+class TestCreateDomain(unittest.TestCase):
+ """CreateDomain unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateDomain`
+ """
+ model = CreateDomain()
+ if include_optional:
+ return CreateDomain(
+ name = '',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ 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:
+ return CreateDomain(
+ )
+ """
+
+ def testCreateDomain(self):
+ """Test CreateDomain"""
+ # 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_create_domain_reply.py b/koyeb/api/test/test_create_domain_reply.py
new file mode 100644
index 00000000..9f8e68a3
--- /dev/null
+++ b/koyeb/api/test/test_create_domain_reply.py
@@ -0,0 +1,69 @@
+# 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.create_domain_reply import CreateDomainReply
+
+class TestCreateDomainReply(unittest.TestCase):
+ """CreateDomainReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateDomainReply`
+ """
+ model = CreateDomainReply()
+ if include_optional:
+ return CreateDomainReply(
+ domain = koyeb.api.models.domain.Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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:
+ return CreateDomainReply(
+ )
+ """
+
+ def testCreateDomainReply(self):
+ """Test CreateDomainReply"""
+ # 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_create_organization_invitation_reply.py b/koyeb/api/test/test_create_organization_invitation_reply.py
new file mode 100644
index 00000000..2ef72f42
--- /dev/null
+++ b/koyeb/api/test/test_create_organization_invitation_reply.py
@@ -0,0 +1,77 @@
+# 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.create_organization_invitation_reply import CreateOrganizationInvitationReply
+
+class TestCreateOrganizationInvitationReply(unittest.TestCase):
+ """CreateOrganizationInvitationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateOrganizationInvitationReply`
+ """
+ model = CreateOrganizationInvitationReply()
+ if include_optional:
+ return CreateOrganizationInvitationReply(
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ )
+ else:
+ return CreateOrganizationInvitationReply(
+ )
+ """
+
+ def testCreateOrganizationInvitationReply(self):
+ """Test CreateOrganizationInvitationReply"""
+ # 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_create_organization_invitation_request.py b/koyeb/api/test/test_create_organization_invitation_request.py
new file mode 100644
index 00000000..d2b1642d
--- /dev/null
+++ b/koyeb/api/test/test_create_organization_invitation_request.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
+
+
+import unittest
+
+from koyeb.api.models.create_organization_invitation_request import CreateOrganizationInvitationRequest
+
+class TestCreateOrganizationInvitationRequest(unittest.TestCase):
+ """CreateOrganizationInvitationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateOrganizationInvitationRequest`
+ """
+ model = CreateOrganizationInvitationRequest()
+ if include_optional:
+ return CreateOrganizationInvitationRequest(
+ email = ''
+ )
+ else:
+ return CreateOrganizationInvitationRequest(
+ )
+ """
+
+ def testCreateOrganizationInvitationRequest(self):
+ """Test CreateOrganizationInvitationRequest"""
+ # 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_create_organization_reply.py b/koyeb/api/test/test_create_organization_reply.py
new file mode 100644
index 00000000..c171ac7c
--- /dev/null
+++ b/koyeb/api/test/test_create_organization_reply.py
@@ -0,0 +1,83 @@
+# 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.create_organization_reply import CreateOrganizationReply
+
+class TestCreateOrganizationReply(unittest.TestCase):
+ """CreateOrganizationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateOrganizationReply`
+ """
+ model = CreateOrganizationReply()
+ if include_optional:
+ return CreateOrganizationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return CreateOrganizationReply(
+ )
+ """
+
+ def testCreateOrganizationReply(self):
+ """Test CreateOrganizationReply"""
+ # 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_create_organization_request.py b/koyeb/api/test/test_create_organization_request.py
new file mode 100644
index 00000000..2b6fe6c9
--- /dev/null
+++ b/koyeb/api/test/test_create_organization_request.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
+
+
+import unittest
+
+from koyeb.api.models.create_organization_request import CreateOrganizationRequest
+
+class TestCreateOrganizationRequest(unittest.TestCase):
+ """CreateOrganizationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateOrganizationRequest`
+ """
+ model = CreateOrganizationRequest()
+ if include_optional:
+ return CreateOrganizationRequest(
+ name = ''
+ )
+ else:
+ return CreateOrganizationRequest(
+ )
+ """
+
+ def testCreateOrganizationRequest(self):
+ """Test CreateOrganizationRequest"""
+ # 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_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/api/test/test_create_persistent_volume_reply.py b/koyeb/api/test/test_create_persistent_volume_reply.py
new file mode 100644
index 00000000..7da95a02
--- /dev/null
+++ b/koyeb/api/test/test_create_persistent_volume_reply.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.create_persistent_volume_reply import CreatePersistentVolumeReply
+
+class TestCreatePersistentVolumeReply(unittest.TestCase):
+ """CreatePersistentVolumeReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreatePersistentVolumeReply`
+ """
+ model = CreatePersistentVolumeReply()
+ if include_optional:
+ return CreatePersistentVolumeReply(
+ 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 = '',
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ service_id = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ cur_size = 56,
+ status = 'PERSISTENT_VOLUME_STATUS_INVALID',
+ backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
+ )
+ else:
+ return CreatePersistentVolumeReply(
+ )
+ """
+
+ def testCreatePersistentVolumeReply(self):
+ """Test CreatePersistentVolumeReply"""
+ # 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_create_persistent_volume_request.py b/koyeb/api/test/test_create_persistent_volume_request.py
new file mode 100644
index 00000000..84c834ae
--- /dev/null
+++ b/koyeb/api/test/test_create_persistent_volume_request.py
@@ -0,0 +1,56 @@
+# 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.create_persistent_volume_request import CreatePersistentVolumeRequest
+
+class TestCreatePersistentVolumeRequest(unittest.TestCase):
+ """CreatePersistentVolumeRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreatePersistentVolumeRequest`
+ """
+ model = CreatePersistentVolumeRequest()
+ if include_optional:
+ return CreatePersistentVolumeRequest(
+ volume_type = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID',
+ name = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ snapshot_id = ''
+ )
+ else:
+ return CreatePersistentVolumeRequest(
+ )
+ """
+
+ def testCreatePersistentVolumeRequest(self):
+ """Test CreatePersistentVolumeRequest"""
+ # 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_create_secret.py b/koyeb/api/test/test_create_secret.py
new file mode 100644
index 00000000..5fc98045
--- /dev/null
+++ b/koyeb/api/test/test_create_secret.py
@@ -0,0 +1,76 @@
+# 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.create_secret import CreateSecret
+
+class TestCreateSecret(unittest.TestCase):
+ """CreateSecret unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateSecret`
+ """
+ model = CreateSecret()
+ if include_optional:
+ return CreateSecret(
+ name = '',
+ type = 'SIMPLE',
+ value = '',
+ docker_hub_registry = koyeb.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = '', ),
+ digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
+ username = '',
+ password = '', ),
+ github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = '', ),
+ azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = '', )
+ )
+ else:
+ return CreateSecret(
+ )
+ """
+
+ def testCreateSecret(self):
+ """Test CreateSecret"""
+ # 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_create_secret_reply.py b/koyeb/api/test/test_create_secret_reply.py
new file mode 100644
index 00000000..88c021d9
--- /dev/null
+++ b/koyeb/api/test/test_create_secret_reply.py
@@ -0,0 +1,84 @@
+# 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.create_secret_reply import CreateSecretReply
+
+class TestCreateSecretReply(unittest.TestCase):
+ """CreateSecretReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateSecretReply`
+ """
+ model = CreateSecretReply()
+ if include_optional:
+ return CreateSecretReply(
+ secret = koyeb.api.models.secret.Secret(
+ id = '',
+ name = '',
+ organization_id = '',
+ type = 'SIMPLE',
+ 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.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = '', ),
+ digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
+ username = '',
+ password = '', ),
+ github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = '', ),
+ azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = '', ),
+ database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword(
+ username = '',
+ password = '', ), )
+ )
+ else:
+ return CreateSecretReply(
+ )
+ """
+
+ def testCreateSecretReply(self):
+ """Test CreateSecretReply"""
+ # 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_create_service.py b/koyeb/api/test/test_create_service.py
new file mode 100644
index 00000000..3595e55d
--- /dev/null
+++ b/koyeb/api/test/test_create_service.py
@@ -0,0 +1,180 @@
+# 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.create_service import CreateService
+
+class TestCreateService(unittest.TestCase):
+ """CreateService unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateService`
+ """
+ model = CreateService()
+ if include_optional:
+ return CreateService(
+ app_id = '',
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), )
+ )
+ else:
+ return CreateService(
+ )
+ """
+
+ def testCreateService(self):
+ """Test CreateService"""
+ # 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_create_service_reply.py b/koyeb/api/test/test_create_service_reply.py
new file mode 100644
index 00000000..4e228455
--- /dev/null
+++ b/koyeb/api/test/test_create_service_reply.py
@@ -0,0 +1,81 @@
+# 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.create_service_reply import CreateServiceReply
+
+class TestCreateServiceReply(unittest.TestCase):
+ """CreateServiceReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateServiceReply`
+ """
+ model = CreateServiceReply()
+ if include_optional:
+ return CreateServiceReply(
+ 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'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ name = '',
+ type = 'INVALID_TYPE',
+ organization_id = '',
+ app_id = '',
+ status = 'STARTING',
+ messages = [
+ ''
+ ],
+ version = '',
+ active_deployment_id = '',
+ latest_deployment_id = '',
+ last_provisioned_deployment_id = '',
+ state = koyeb.api.models.service_state.ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(), ), )
+ )
+ else:
+ return CreateServiceReply(
+ )
+ """
+
+ def testCreateServiceReply(self):
+ """Test CreateServiceReply"""
+ # 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_create_snapshot_reply.py b/koyeb/api/test/test_create_snapshot_reply.py
new file mode 100644
index 00000000..830d9d9e
--- /dev/null
+++ b/koyeb/api/test/test_create_snapshot_reply.py
@@ -0,0 +1,62 @@
+# 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.create_snapshot_reply import CreateSnapshotReply
+
+class TestCreateSnapshotReply(unittest.TestCase):
+ """CreateSnapshotReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateSnapshotReply`
+ """
+ model = CreateSnapshotReply()
+ if include_optional:
+ return CreateSnapshotReply(
+ snapshot = koyeb.api.models.snapshot.Snapshot(
+ id = '',
+ name = '',
+ size = 56,
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ parent_volume_id = '',
+ region = '',
+ status = 'SNAPSHOT_STATUS_INVALID',
+ type = 'SNAPSHOT_TYPE_INVALID', )
+ )
+ else:
+ return CreateSnapshotReply(
+ )
+ """
+
+ def testCreateSnapshotReply(self):
+ """Test CreateSnapshotReply"""
+ # 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_create_snapshot_request.py b/koyeb/api/test/test_create_snapshot_request.py
new file mode 100644
index 00000000..c5fb8c87
--- /dev/null
+++ b/koyeb/api/test/test_create_snapshot_request.py
@@ -0,0 +1,52 @@
+# 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.create_snapshot_request import CreateSnapshotRequest
+
+class TestCreateSnapshotRequest(unittest.TestCase):
+ """CreateSnapshotRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateSnapshotRequest`
+ """
+ model = CreateSnapshotRequest()
+ if include_optional:
+ return CreateSnapshotRequest(
+ parent_volume_id = '',
+ name = ''
+ )
+ else:
+ return CreateSnapshotRequest(
+ )
+ """
+
+ def testCreateSnapshotRequest(self):
+ """Test CreateSnapshotRequest"""
+ # 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_create_stage_attempt_request.py b/koyeb/api/test/test_create_stage_attempt_request.py
new file mode 100644
index 00000000..4a1c68ad
--- /dev/null
+++ b/koyeb/api/test/test_create_stage_attempt_request.py
@@ -0,0 +1,59 @@
+# 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.create_stage_attempt_request import CreateStageAttemptRequest
+
+class TestCreateStageAttemptRequest(unittest.TestCase):
+ """CreateStageAttemptRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `CreateStageAttemptRequest`
+ """
+ model = CreateStageAttemptRequest()
+ if include_optional:
+ return CreateStageAttemptRequest(
+ secret = '',
+ status = 'UNKNOWN',
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ messages = [
+ ''
+ ],
+ steps = [
+ ''
+ ]
+ )
+ else:
+ return CreateStageAttemptRequest(
+ )
+ """
+
+ def testCreateStageAttemptRequest(self):
+ """Test CreateStageAttemptRequest"""
+ # 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_credential.py b/koyeb/api/test/test_credential.py
new file mode 100644
index 00000000..16a71779
--- /dev/null
+++ b/koyeb/api/test/test_credential.py
@@ -0,0 +1,60 @@
+# 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 import Credential
+
+class TestCredential(unittest.TestCase):
+ """Credential unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Credential`
+ """
+ model = Credential()
+ if include_optional:
+ return Credential(
+ id = '',
+ type = 'INVALID',
+ name = '',
+ token = '',
+ description = '',
+ user_id = '',
+ 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'),
+ expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return Credential(
+ )
+ """
+
+ def testCredential(self):
+ """Test Credential"""
+ # 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_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/api/test/test_credentials_api.py b/koyeb/api/test/test_credentials_api.py
new file mode 100644
index 00000000..7b8c04c1
--- /dev/null
+++ b/koyeb/api/test/test_credentials_api.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.api.credentials_api import CredentialsApi
+
+
+class TestCredentialsApi(unittest.TestCase):
+ """CredentialsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CredentialsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_credential(self) -> None:
+ """Test case for create_credential
+
+ Create credential
+ """
+ pass
+
+ def test_delete_credential(self) -> None:
+ """Test case for delete_credential
+
+ Delete credential
+ """
+ pass
+
+ def test_get_credential(self) -> None:
+ """Test case for get_credential
+
+ Get credential
+ """
+ pass
+
+ def test_list_credentials(self) -> None:
+ """Test case for list_credentials
+
+ List credentials
+ """
+ pass
+
+ def test_update_credential(self) -> None:
+ """Test case for update_credential
+
+ Update credential
+ """
+ pass
+
+ def test_update_credential2(self) -> None:
+ """Test case for update_credential2
+
+ Update credential
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_database_deployment_metadata.py b/koyeb/api/test/test_database_deployment_metadata.py
new file mode 100644
index 00000000..bdcc3d23
--- /dev/null
+++ b/koyeb/api/test/test_database_deployment_metadata.py
@@ -0,0 +1,54 @@
+# 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.database_deployment_metadata import DatabaseDeploymentMetadata
+
+class TestDatabaseDeploymentMetadata(unittest.TestCase):
+ """DatabaseDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DatabaseDeploymentMetadata`
+ """
+ model = DatabaseDeploymentMetadata()
+ if include_optional:
+ return DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], )
+ )
+ else:
+ return DatabaseDeploymentMetadata(
+ )
+ """
+
+ def testDatabaseDeploymentMetadata(self):
+ """Test DatabaseDeploymentMetadata"""
+ # 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_database_role_password.py b/koyeb/api/test/test_database_role_password.py
new file mode 100644
index 00000000..40f2b9ac
--- /dev/null
+++ b/koyeb/api/test/test_database_role_password.py
@@ -0,0 +1,52 @@
+# 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.database_role_password import DatabaseRolePassword
+
+class TestDatabaseRolePassword(unittest.TestCase):
+ """DatabaseRolePassword unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DatabaseRolePassword`
+ """
+ model = DatabaseRolePassword()
+ if include_optional:
+ return DatabaseRolePassword(
+ username = '',
+ password = ''
+ )
+ else:
+ return DatabaseRolePassword(
+ )
+ """
+
+ def testDatabaseRolePassword(self):
+ """Test DatabaseRolePassword"""
+ # 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_database_source.py b/koyeb/api/test/test_database_source.py
new file mode 100644
index 00000000..f3a1ad95
--- /dev/null
+++ b/koyeb/api/test/test_database_source.py
@@ -0,0 +1,64 @@
+# 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.database_source import DatabaseSource
+
+class TestDatabaseSource(unittest.TestCase):
+ """DatabaseSource unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DatabaseSource`
+ """
+ model = DatabaseSource()
+ if include_optional:
+ return DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], )
+ )
+ else:
+ return DatabaseSource(
+ )
+ """
+
+ def testDatabaseSource(self):
+ """Test DatabaseSource"""
+ # 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_database_usage.py b/koyeb/api/test/test_database_usage.py
new file mode 100644
index 00000000..59a95827
--- /dev/null
+++ b/koyeb/api/test/test_database_usage.py
@@ -0,0 +1,54 @@
+# 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.database_usage import DatabaseUsage
+
+class TestDatabaseUsage(unittest.TestCase):
+ """DatabaseUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DatabaseUsage`
+ """
+ model = DatabaseUsage()
+ if include_optional:
+ return DatabaseUsage(
+ service_id = '',
+ service_name = '',
+ compute_time_seconds = 56,
+ data_storage_megabytes_hours = 56
+ )
+ else:
+ return DatabaseUsage(
+ )
+ """
+
+ def testDatabaseUsage(self):
+ """Test DatabaseUsage"""
+ # 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_database_usage_details.py b/koyeb/api/test/test_database_usage_details.py
new file mode 100644
index 00000000..c03b54cf
--- /dev/null
+++ b/koyeb/api/test/test_database_usage_details.py
@@ -0,0 +1,59 @@
+# 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.database_usage_details import DatabaseUsageDetails
+
+class TestDatabaseUsageDetails(unittest.TestCase):
+ """DatabaseUsageDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DatabaseUsageDetails`
+ """
+ model = DatabaseUsageDetails()
+ if include_optional:
+ return DatabaseUsageDetails(
+ organization_id = '',
+ app_id = '',
+ app_name = '',
+ service_id = '',
+ service_name = '',
+ compute_time_seconds = 56,
+ data_storage_megabytes_hour = 56,
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return DatabaseUsageDetails(
+ )
+ """
+
+ def testDatabaseUsageDetails(self):
+ """Test DatabaseUsageDetails"""
+ # 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_datacenter_list_item.py b/koyeb/api/test/test_datacenter_list_item.py
new file mode 100644
index 00000000..2bf7b104
--- /dev/null
+++ b/koyeb/api/test/test_datacenter_list_item.py
@@ -0,0 +1,60 @@
+# 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.datacenter_list_item import DatacenterListItem
+
+class TestDatacenterListItem(unittest.TestCase):
+ """DatacenterListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DatacenterListItem`
+ """
+ model = DatacenterListItem()
+ if include_optional:
+ return DatacenterListItem(
+ id = '',
+ region_id = '',
+ domain = '',
+ coordinates = [
+ ''
+ ],
+ use_gpu = True,
+ regions = [
+ ''
+ ]
+ )
+ else:
+ return DatacenterListItem(
+ )
+ """
+
+ def testDatacenterListItem(self):
+ """Test DatacenterListItem"""
+ # 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_deactivate_organization_reply.py b/koyeb/api/test/test_deactivate_organization_reply.py
new file mode 100644
index 00000000..482478d1
--- /dev/null
+++ b/koyeb/api/test/test_deactivate_organization_reply.py
@@ -0,0 +1,83 @@
+# 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.deactivate_organization_reply import DeactivateOrganizationReply
+
+class TestDeactivateOrganizationReply(unittest.TestCase):
+ """DeactivateOrganizationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeactivateOrganizationReply`
+ """
+ model = DeactivateOrganizationReply()
+ if include_optional:
+ return DeactivateOrganizationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return DeactivateOrganizationReply(
+ )
+ """
+
+ def testDeactivateOrganizationReply(self):
+ """Test DeactivateOrganizationReply"""
+ # 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_deactivate_organization_request.py b/koyeb/api/test/test_deactivate_organization_request.py
new file mode 100644
index 00000000..3e701bf9
--- /dev/null
+++ b/koyeb/api/test/test_deactivate_organization_request.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
+
+
+import unittest
+
+from koyeb.api.models.deactivate_organization_request import DeactivateOrganizationRequest
+
+class TestDeactivateOrganizationRequest(unittest.TestCase):
+ """DeactivateOrganizationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeactivateOrganizationRequest`
+ """
+ model = DeactivateOrganizationRequest()
+ if include_optional:
+ return DeactivateOrganizationRequest(
+ skip_confirmation = True
+ )
+ else:
+ return DeactivateOrganizationRequest(
+ )
+ """
+
+ def testDeactivateOrganizationRequest(self):
+ """Test DeactivateOrganizationRequest"""
+ # 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_declare_stage_progress_request.py b/koyeb/api/test/test_declare_stage_progress_request.py
new file mode 100644
index 00000000..5c527b85
--- /dev/null
+++ b/koyeb/api/test/test_declare_stage_progress_request.py
@@ -0,0 +1,59 @@
+# 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.declare_stage_progress_request import DeclareStageProgressRequest
+
+class TestDeclareStageProgressRequest(unittest.TestCase):
+ """DeclareStageProgressRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeclareStageProgressRequest`
+ """
+ model = DeclareStageProgressRequest()
+ if include_optional:
+ return DeclareStageProgressRequest(
+ secret = '',
+ status = 'UNKNOWN',
+ finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ messages = [
+ ''
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True
+ )
+ else:
+ return DeclareStageProgressRequest(
+ )
+ """
+
+ def testDeclareStageProgressRequest(self):
+ """Test DeclareStageProgressRequest"""
+ # 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_declare_step_progress_request.py b/koyeb/api/test/test_declare_step_progress_request.py
new file mode 100644
index 00000000..f6258594
--- /dev/null
+++ b/koyeb/api/test/test_declare_step_progress_request.py
@@ -0,0 +1,57 @@
+# 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.declare_step_progress_request import DeclareStepProgressRequest
+
+class TestDeclareStepProgressRequest(unittest.TestCase):
+ """DeclareStepProgressRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeclareStepProgressRequest`
+ """
+ model = DeclareStepProgressRequest()
+ if include_optional:
+ return DeclareStepProgressRequest(
+ secret = '',
+ status = 'UNKNOWN',
+ 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'),
+ messages = [
+ ''
+ ]
+ )
+ else:
+ return DeclareStepProgressRequest(
+ )
+ """
+
+ def testDeclareStepProgressRequest(self):
+ """Test DeclareStepProgressRequest"""
+ # 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_decline_organization_invitation_reply.py b/koyeb/api/test/test_decline_organization_invitation_reply.py
new file mode 100644
index 00000000..132c49f5
--- /dev/null
+++ b/koyeb/api/test/test_decline_organization_invitation_reply.py
@@ -0,0 +1,77 @@
+# 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.decline_organization_invitation_reply import DeclineOrganizationInvitationReply
+
+class TestDeclineOrganizationInvitationReply(unittest.TestCase):
+ """DeclineOrganizationInvitationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeclineOrganizationInvitationReply`
+ """
+ model = DeclineOrganizationInvitationReply()
+ if include_optional:
+ return DeclineOrganizationInvitationReply(
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ )
+ else:
+ return DeclineOrganizationInvitationReply(
+ )
+ """
+
+ def testDeclineOrganizationInvitationReply(self):
+ """Test DeclineOrganizationInvitationReply"""
+ # 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_delete_organization_reply.py b/koyeb/api/test/test_delete_organization_reply.py
new file mode 100644
index 00000000..7ed7944e
--- /dev/null
+++ b/koyeb/api/test/test_delete_organization_reply.py
@@ -0,0 +1,83 @@
+# 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.delete_organization_reply import DeleteOrganizationReply
+
+class TestDeleteOrganizationReply(unittest.TestCase):
+ """DeleteOrganizationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeleteOrganizationReply`
+ """
+ model = DeleteOrganizationReply()
+ if include_optional:
+ return DeleteOrganizationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return DeleteOrganizationReply(
+ )
+ """
+
+ def testDeleteOrganizationReply(self):
+ """Test DeleteOrganizationReply"""
+ # 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_delete_persistent_volume_reply.py b/koyeb/api/test/test_delete_persistent_volume_reply.py
new file mode 100644
index 00000000..112083d9
--- /dev/null
+++ b/koyeb/api/test/test_delete_persistent_volume_reply.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.delete_persistent_volume_reply import DeletePersistentVolumeReply
+
+class TestDeletePersistentVolumeReply(unittest.TestCase):
+ """DeletePersistentVolumeReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeletePersistentVolumeReply`
+ """
+ model = DeletePersistentVolumeReply()
+ if include_optional:
+ return DeletePersistentVolumeReply(
+ 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 = '',
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ service_id = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ cur_size = 56,
+ status = 'PERSISTENT_VOLUME_STATUS_INVALID',
+ backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
+ )
+ else:
+ return DeletePersistentVolumeReply(
+ )
+ """
+
+ def testDeletePersistentVolumeReply(self):
+ """Test DeletePersistentVolumeReply"""
+ # 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_delete_snapshot_reply.py b/koyeb/api/test/test_delete_snapshot_reply.py
new file mode 100644
index 00000000..3655ddc3
--- /dev/null
+++ b/koyeb/api/test/test_delete_snapshot_reply.py
@@ -0,0 +1,62 @@
+# 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.delete_snapshot_reply import DeleteSnapshotReply
+
+class TestDeleteSnapshotReply(unittest.TestCase):
+ """DeleteSnapshotReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeleteSnapshotReply`
+ """
+ model = DeleteSnapshotReply()
+ if include_optional:
+ return DeleteSnapshotReply(
+ snapshot = koyeb.api.models.snapshot.Snapshot(
+ id = '',
+ name = '',
+ size = 56,
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ parent_volume_id = '',
+ region = '',
+ status = 'SNAPSHOT_STATUS_INVALID',
+ type = 'SNAPSHOT_TYPE_INVALID', )
+ )
+ else:
+ return DeleteSnapshotReply(
+ )
+ """
+
+ def testDeleteSnapshotReply(self):
+ """Test DeleteSnapshotReply"""
+ # 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_delete_user_reply.py b/koyeb/api/test/test_delete_user_reply.py
new file mode 100644
index 00000000..576b7fa8
--- /dev/null
+++ b/koyeb/api/test/test_delete_user_reply.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
+
+
+import unittest
+
+from koyeb.api.models.delete_user_reply import DeleteUserReply
+
+class TestDeleteUserReply(unittest.TestCase):
+ """DeleteUserReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeleteUserReply`
+ """
+ model = DeleteUserReply()
+ if include_optional:
+ return DeleteUserReply(
+ user = {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}
+ )
+ else:
+ return DeleteUserReply(
+ )
+ """
+
+ def testDeleteUserReply(self):
+ """Test DeleteUserReply"""
+ # 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.py b/koyeb/api/test/test_deployment.py
new file mode 100644
index 00000000..53addad9
--- /dev/null
+++ b/koyeb/api/test/test_deployment.py
@@ -0,0 +1,281 @@
+# 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 import Deployment
+
+class TestDeployment(unittest.TestCase):
+ """Deployment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Deployment`
+ """
+ model = Deployment()
+ if include_optional:
+ return 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'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ], ),
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ),
+ messages = [
+ ''
+ ],
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ 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 = '',
+ data_transfer_bytes = '',
+ data_storage_bytes_hour = '',
+ server_host = '',
+ server_port = 56,
+ endpoint_state = '',
+ endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ default_branch_id = '',
+ default_branch_name = '',
+ default_branch_state = '',
+ default_branch_logical_size = '',
+ roles = [
+ koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
+ name = '',
+ secret_id = '', )
+ ], ), ),
+ skip_build = True,
+ role = 'INVALID',
+ version = '',
+ deployment_group = ''
+ )
+ else:
+ return Deployment(
+ )
+ """
+
+ def testDeployment(self):
+ """Test Deployment"""
+ # 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_database_info.py b/koyeb/api/test/test_deployment_database_info.py
new file mode 100644
index 00000000..978dcc09
--- /dev/null
+++ b/koyeb/api/test/test_deployment_database_info.py
@@ -0,0 +1,69 @@
+# 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_database_info import DeploymentDatabaseInfo
+
+class TestDeploymentDatabaseInfo(unittest.TestCase):
+ """DeploymentDatabaseInfo unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentDatabaseInfo`
+ """
+ model = DeploymentDatabaseInfo()
+ if include_optional:
+ return DeploymentDatabaseInfo(
+ neon_postgres = koyeb.api.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo(
+ active_time_seconds = '',
+ compute_time_seconds = '',
+ written_data_bytes = '',
+ data_transfer_bytes = '',
+ data_storage_bytes_hour = '',
+ server_host = '',
+ server_port = 56,
+ endpoint_state = '',
+ endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ default_branch_id = '',
+ default_branch_name = '',
+ default_branch_state = '',
+ default_branch_logical_size = '',
+ roles = [
+ koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
+ name = '',
+ secret_id = '', )
+ ], )
+ )
+ else:
+ return DeploymentDatabaseInfo(
+ )
+ """
+
+ def testDeploymentDatabaseInfo(self):
+ """Test DeploymentDatabaseInfo"""
+ # 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_definition.py b/koyeb/api/test/test_deployment_definition.py
new file mode 100644
index 00000000..9fe77672
--- /dev/null
+++ b/koyeb/api/test/test_deployment_definition.py
@@ -0,0 +1,215 @@
+# 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 import DeploymentDefinition
+
+class TestDeploymentDefinition(unittest.TestCase):
+ """DeploymentDefinition unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentDefinition`
+ """
+ model = DeploymentDefinition()
+ if include_optional:
+ return DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(
+ type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID', ),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType(
+ scopes = [
+ ''
+ ],
+ type = '', )
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56,
+ scopes = [
+ ''
+ ], )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ),
+ docker = koyeb.api.models.docker_builder.DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ),
+ docker = koyeb.api.models.docker_builder.DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True, ), )
+ )
+ else:
+ return DeploymentDefinition(
+ )
+ """
+
+ def testDeploymentDefinition(self):
+ """Test DeploymentDefinition"""
+ # 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_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/api/test/test_deployment_env.py b/koyeb/api/test/test_deployment_env.py
new file mode 100644
index 00000000..40757d71
--- /dev/null
+++ b/koyeb/api/test/test_deployment_env.py
@@ -0,0 +1,56 @@
+# 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_env import DeploymentEnv
+
+class TestDeploymentEnv(unittest.TestCase):
+ """DeploymentEnv unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentEnv`
+ """
+ model = DeploymentEnv()
+ if include_optional:
+ return DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = ''
+ )
+ else:
+ return DeploymentEnv(
+ )
+ """
+
+ def testDeploymentEnv(self):
+ """Test DeploymentEnv"""
+ # 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_event.py b/koyeb/api/test/test_deployment_event.py
new file mode 100644
index 00000000..dffc1de1
--- /dev/null
+++ b/koyeb/api/test/test_deployment_event.py
@@ -0,0 +1,57 @@
+# 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_event import DeploymentEvent
+
+class TestDeploymentEvent(unittest.TestCase):
+ """DeploymentEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentEvent`
+ """
+ model = DeploymentEvent()
+ if include_optional:
+ return 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 = None
+ )
+ else:
+ return DeploymentEvent(
+ )
+ """
+
+ def testDeploymentEvent(self):
+ """Test DeploymentEvent"""
+ # 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_health_check.py b/koyeb/api/test/test_deployment_health_check.py
new file mode 100644
index 00000000..2db52fba
--- /dev/null
+++ b/koyeb/api/test/test_deployment_health_check.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_health_check import DeploymentHealthCheck
+
+class TestDeploymentHealthCheck(unittest.TestCase):
+ """DeploymentHealthCheck unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentHealthCheck`
+ """
+ model = DeploymentHealthCheck()
+ if include_optional:
+ return DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], )
+ )
+ else:
+ return DeploymentHealthCheck(
+ )
+ """
+
+ def testDeploymentHealthCheck(self):
+ """Test DeploymentHealthCheck"""
+ # 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_instance_type.py b/koyeb/api/test/test_deployment_instance_type.py
new file mode 100644
index 00000000..b4916853
--- /dev/null
+++ b/koyeb/api/test/test_deployment_instance_type.py
@@ -0,0 +1,54 @@
+# 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_instance_type import DeploymentInstanceType
+
+class TestDeploymentInstanceType(unittest.TestCase):
+ """DeploymentInstanceType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentInstanceType`
+ """
+ model = DeploymentInstanceType()
+ if include_optional:
+ return DeploymentInstanceType(
+ scopes = [
+ ''
+ ],
+ type = ''
+ )
+ else:
+ return DeploymentInstanceType(
+ )
+ """
+
+ def testDeploymentInstanceType(self):
+ """Test DeploymentInstanceType"""
+ # 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_list_item.py b/koyeb/api/test/test_deployment_list_item.py
new file mode 100644
index 00000000..e62f545a
--- /dev/null
+++ b/koyeb/api/test/test_deployment_list_item.py
@@ -0,0 +1,279 @@
+# 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_list_item import DeploymentListItem
+
+class TestDeploymentListItem(unittest.TestCase):
+ """DeploymentListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentListItem`
+ """
+ model = DeploymentListItem()
+ if include_optional:
+ return 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'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ], ),
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ),
+ messages = [
+ ''
+ ],
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ 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 = '',
+ data_transfer_bytes = '',
+ data_storage_bytes_hour = '',
+ server_host = '',
+ server_port = 56,
+ endpoint_state = '',
+ endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ default_branch_id = '',
+ default_branch_name = '',
+ default_branch_state = '',
+ default_branch_logical_size = '',
+ roles = [
+ koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
+ name = '',
+ secret_id = '', )
+ ], ), ),
+ version = '',
+ deployment_group = ''
+ )
+ else:
+ return DeploymentListItem(
+ )
+ """
+
+ def testDeploymentListItem(self):
+ """Test DeploymentListItem"""
+ # 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_metadata.py b/koyeb/api/test/test_deployment_metadata.py
new file mode 100644
index 00000000..836e40b2
--- /dev/null
+++ b/koyeb/api/test/test_deployment_metadata.py
@@ -0,0 +1,82 @@
+# 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_metadata import DeploymentMetadata
+
+class TestDeploymentMetadata(unittest.TestCase):
+ """DeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentMetadata`
+ """
+ model = DeploymentMetadata()
+ if include_optional:
+ return DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ]
+ )
+ else:
+ return DeploymentMetadata(
+ )
+ """
+
+ def testDeploymentMetadata(self):
+ """Test DeploymentMetadata"""
+ # 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_neon_postgres_database_info.py b/koyeb/api/test/test_deployment_neon_postgres_database_info.py
new file mode 100644
index 00000000..54a781d9
--- /dev/null
+++ b/koyeb/api/test/test_deployment_neon_postgres_database_info.py
@@ -0,0 +1,68 @@
+# 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_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo
+
+class TestDeploymentNeonPostgresDatabaseInfo(unittest.TestCase):
+ """DeploymentNeonPostgresDatabaseInfo unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfo`
+ """
+ model = DeploymentNeonPostgresDatabaseInfo()
+ if include_optional:
+ return DeploymentNeonPostgresDatabaseInfo(
+ active_time_seconds = '',
+ compute_time_seconds = '',
+ written_data_bytes = '',
+ data_transfer_bytes = '',
+ data_storage_bytes_hour = '',
+ server_host = '',
+ server_port = 56,
+ endpoint_state = '',
+ endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ default_branch_id = '',
+ default_branch_name = '',
+ default_branch_state = '',
+ default_branch_logical_size = '',
+ roles = [
+ koyeb.api.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
+ name = '',
+ secret_id = '', )
+ ]
+ )
+ else:
+ return DeploymentNeonPostgresDatabaseInfo(
+ )
+ """
+
+ def testDeploymentNeonPostgresDatabaseInfo(self):
+ """Test DeploymentNeonPostgresDatabaseInfo"""
+ # 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_neon_postgres_database_info_role.py b/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py
new file mode 100644
index 00000000..c82176fa
--- /dev/null
+++ b/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py
@@ -0,0 +1,52 @@
+# 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_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole
+
+class TestDeploymentNeonPostgresDatabaseInfoRole(unittest.TestCase):
+ """DeploymentNeonPostgresDatabaseInfoRole unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfoRole`
+ """
+ model = DeploymentNeonPostgresDatabaseInfoRole()
+ if include_optional:
+ return DeploymentNeonPostgresDatabaseInfoRole(
+ name = '',
+ secret_id = ''
+ )
+ else:
+ return DeploymentNeonPostgresDatabaseInfoRole(
+ )
+ """
+
+ def testDeploymentNeonPostgresDatabaseInfoRole(self):
+ """Test DeploymentNeonPostgresDatabaseInfoRole"""
+ # 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_port.py b/koyeb/api/test/test_deployment_port.py
new file mode 100644
index 00000000..933ec5a3
--- /dev/null
+++ b/koyeb/api/test/test_deployment_port.py
@@ -0,0 +1,52 @@
+# 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_port import DeploymentPort
+
+class TestDeploymentPort(unittest.TestCase):
+ """DeploymentPort unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentPort`
+ """
+ model = DeploymentPort()
+ if include_optional:
+ return DeploymentPort(
+ port = 56,
+ protocol = ''
+ )
+ else:
+ return DeploymentPort(
+ )
+ """
+
+ def testDeploymentPort(self):
+ """Test DeploymentPort"""
+ # 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_provisioning_info.py b/koyeb/api/test/test_deployment_provisioning_info.py
new file mode 100644
index 00000000..2c7a2e31
--- /dev/null
+++ b/koyeb/api/test/test_deployment_provisioning_info.py
@@ -0,0 +1,78 @@
+# 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_provisioning_info import DeploymentProvisioningInfo
+
+class TestDeploymentProvisioningInfo(unittest.TestCase):
+ """DeploymentProvisioningInfo unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentProvisioningInfo`
+ """
+ model = DeploymentProvisioningInfo()
+ if include_optional:
+ return DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ]
+ )
+ else:
+ return DeploymentProvisioningInfo(
+ )
+ """
+
+ def testDeploymentProvisioningInfo(self):
+ """Test DeploymentProvisioningInfo"""
+ # 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_provisioning_info_stage.py b/koyeb/api/test/test_deployment_provisioning_info_stage.py
new file mode 100644
index 00000000..bc7e0549
--- /dev/null
+++ b/koyeb/api/test/test_deployment_provisioning_info_stage.py
@@ -0,0 +1,77 @@
+# 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_provisioning_info_stage import DeploymentProvisioningInfoStage
+
+class TestDeploymentProvisioningInfoStage(unittest.TestCase):
+ """DeploymentProvisioningInfoStage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentProvisioningInfoStage`
+ """
+ model = DeploymentProvisioningInfoStage()
+ if include_optional:
+ return DeploymentProvisioningInfoStage(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.api.models.deployment_provisioning_info/stage/build_attempt.DeploymentProvisioningInfo.Stage.BuildAttempt(
+ id = 56,
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ]
+ )
+ else:
+ return DeploymentProvisioningInfoStage(
+ )
+ """
+
+ def testDeploymentProvisioningInfoStage(self):
+ """Test DeploymentProvisioningInfoStage"""
+ # 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_provisioning_info_stage_build_attempt.py b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py
new file mode 100644
index 00000000..823493eb
--- /dev/null
+++ b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py
@@ -0,0 +1,71 @@
+# 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_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt
+
+class TestDeploymentProvisioningInfoStageBuildAttempt(unittest.TestCase):
+ """DeploymentProvisioningInfoStageBuildAttempt unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttempt`
+ """
+ model = DeploymentProvisioningInfoStageBuildAttempt()
+ if include_optional:
+ return DeploymentProvisioningInfoStageBuildAttempt(
+ id = 56,
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.api.models.deployment_provisioning_info/stage/build_attempt/build_step.DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True
+ )
+ else:
+ return DeploymentProvisioningInfoStageBuildAttempt(
+ )
+ """
+
+ def testDeploymentProvisioningInfoStageBuildAttempt(self):
+ """Test DeploymentProvisioningInfoStageBuildAttempt"""
+ # 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_provisioning_info_stage_build_attempt_build_step.py b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py
new file mode 100644
index 00000000..480ab67c
--- /dev/null
+++ b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py
@@ -0,0 +1,57 @@
+# 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_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep
+
+class TestDeploymentProvisioningInfoStageBuildAttemptBuildStep(unittest.TestCase):
+ """DeploymentProvisioningInfoStageBuildAttemptBuildStep unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttemptBuildStep`
+ """
+ model = DeploymentProvisioningInfoStageBuildAttemptBuildStep()
+ if include_optional:
+ return DeploymentProvisioningInfoStageBuildAttemptBuildStep(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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')
+ )
+ else:
+ return DeploymentProvisioningInfoStageBuildAttemptBuildStep(
+ )
+ """
+
+ def testDeploymentProvisioningInfoStageBuildAttemptBuildStep(self):
+ """Test DeploymentProvisioningInfoStageBuildAttemptBuildStep"""
+ # 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_provisioning_info_stage_status.py b/koyeb/api/test/test_deployment_provisioning_info_stage_status.py
new file mode 100644
index 00000000..9398ccbc
--- /dev/null
+++ b/koyeb/api/test/test_deployment_provisioning_info_stage_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_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus
+
+class TestDeploymentProvisioningInfoStageStatus(unittest.TestCase):
+ """DeploymentProvisioningInfoStageStatus unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testDeploymentProvisioningInfoStageStatus(self):
+ """Test DeploymentProvisioningInfoStageStatus"""
+ # inst = DeploymentProvisioningInfoStageStatus()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_deployment_proxy_port.py b/koyeb/api/test/test_deployment_proxy_port.py
new file mode 100644
index 00000000..7482bc9f
--- /dev/null
+++ b/koyeb/api/test/test_deployment_proxy_port.py
@@ -0,0 +1,52 @@
+# 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_proxy_port import DeploymentProxyPort
+
+class TestDeploymentProxyPort(unittest.TestCase):
+ """DeploymentProxyPort unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentProxyPort`
+ """
+ model = DeploymentProxyPort()
+ if include_optional:
+ return DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp'
+ )
+ else:
+ return DeploymentProxyPort(
+ )
+ """
+
+ def testDeploymentProxyPort(self):
+ """Test DeploymentProxyPort"""
+ # 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_proxy_port_metadata.py b/koyeb/api/test/test_deployment_proxy_port_metadata.py
new file mode 100644
index 00000000..f85dc388
--- /dev/null
+++ b/koyeb/api/test/test_deployment_proxy_port_metadata.py
@@ -0,0 +1,54 @@
+# 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_proxy_port_metadata import DeploymentProxyPortMetadata
+
+class TestDeploymentProxyPortMetadata(unittest.TestCase):
+ """DeploymentProxyPortMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentProxyPortMetadata`
+ """
+ model = DeploymentProxyPortMetadata()
+ if include_optional:
+ return DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp'
+ )
+ else:
+ return DeploymentProxyPortMetadata(
+ )
+ """
+
+ def testDeploymentProxyPortMetadata(self):
+ """Test DeploymentProxyPortMetadata"""
+ # 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_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/api/test/test_deployment_route.py b/koyeb/api/test/test_deployment_route.py
new file mode 100644
index 00000000..85d91d46
--- /dev/null
+++ b/koyeb/api/test/test_deployment_route.py
@@ -0,0 +1,52 @@
+# 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_route import DeploymentRoute
+
+class TestDeploymentRoute(unittest.TestCase):
+ """DeploymentRoute unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentRoute`
+ """
+ model = DeploymentRoute()
+ if include_optional:
+ return DeploymentRoute(
+ port = 56,
+ path = ''
+ )
+ else:
+ return DeploymentRoute(
+ )
+ """
+
+ def testDeploymentRoute(self):
+ """Test DeploymentRoute"""
+ # 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.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/api/test/test_deployment_scaling_target_average_cpu.py b/koyeb/api/test/test_deployment_scaling_target_average_cpu.py
new file mode 100644
index 00000000..d37b4b92
--- /dev/null
+++ b/koyeb/api/test/test_deployment_scaling_target_average_cpu.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
+
+
+import unittest
+
+from koyeb.api.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU
+
+class TestDeploymentScalingTargetAverageCPU(unittest.TestCase):
+ """DeploymentScalingTargetAverageCPU unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentScalingTargetAverageCPU`
+ """
+ model = DeploymentScalingTargetAverageCPU()
+ if include_optional:
+ return DeploymentScalingTargetAverageCPU(
+ value = 56
+ )
+ else:
+ return DeploymentScalingTargetAverageCPU(
+ )
+ """
+
+ def testDeploymentScalingTargetAverageCPU(self):
+ """Test DeploymentScalingTargetAverageCPU"""
+ # 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_average_mem.py b/koyeb/api/test/test_deployment_scaling_target_average_mem.py
new file mode 100644
index 00000000..609d7305
--- /dev/null
+++ b/koyeb/api/test/test_deployment_scaling_target_average_mem.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
+
+
+import unittest
+
+from koyeb.api.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem
+
+class TestDeploymentScalingTargetAverageMem(unittest.TestCase):
+ """DeploymentScalingTargetAverageMem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentScalingTargetAverageMem`
+ """
+ model = DeploymentScalingTargetAverageMem()
+ if include_optional:
+ return DeploymentScalingTargetAverageMem(
+ value = 56
+ )
+ else:
+ return DeploymentScalingTargetAverageMem(
+ )
+ """
+
+ def testDeploymentScalingTargetAverageMem(self):
+ """Test DeploymentScalingTargetAverageMem"""
+ # 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_concurrent_requests.py b/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py
new file mode 100644
index 00000000..f0027da8
--- /dev/null
+++ b/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.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
+
+
+import unittest
+
+from koyeb.api.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests
+
+class TestDeploymentScalingTargetConcurrentRequests(unittest.TestCase):
+ """DeploymentScalingTargetConcurrentRequests unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentScalingTargetConcurrentRequests`
+ """
+ model = DeploymentScalingTargetConcurrentRequests()
+ if include_optional:
+ return DeploymentScalingTargetConcurrentRequests(
+ value = 56
+ )
+ else:
+ return DeploymentScalingTargetConcurrentRequests(
+ )
+ """
+
+ def testDeploymentScalingTargetConcurrentRequests(self):
+ """Test DeploymentScalingTargetConcurrentRequests"""
+ # 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_requests_per_second.py b/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py
new file mode 100644
index 00000000..8c9a25fa
--- /dev/null
+++ b/koyeb/api/test/test_deployment_scaling_target_requests_per_second.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
+
+
+import unittest
+
+from koyeb.api.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond
+
+class TestDeploymentScalingTargetRequestsPerSecond(unittest.TestCase):
+ """DeploymentScalingTargetRequestsPerSecond unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentScalingTargetRequestsPerSecond`
+ """
+ model = DeploymentScalingTargetRequestsPerSecond()
+ if include_optional:
+ return DeploymentScalingTargetRequestsPerSecond(
+ value = 56
+ )
+ else:
+ return DeploymentScalingTargetRequestsPerSecond(
+ )
+ """
+
+ def testDeploymentScalingTargetRequestsPerSecond(self):
+ """Test DeploymentScalingTargetRequestsPerSecond"""
+ # 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_requests_response_time.py b/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py
new file mode 100644
index 00000000..76fc93a2
--- /dev/null
+++ b/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py
@@ -0,0 +1,52 @@
+# 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_requests_response_time import DeploymentScalingTargetRequestsResponseTime
+
+class TestDeploymentScalingTargetRequestsResponseTime(unittest.TestCase):
+ """DeploymentScalingTargetRequestsResponseTime unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentScalingTargetRequestsResponseTime`
+ """
+ model = DeploymentScalingTargetRequestsResponseTime()
+ if include_optional:
+ return DeploymentScalingTargetRequestsResponseTime(
+ value = 56,
+ quantile = 56
+ )
+ else:
+ return DeploymentScalingTargetRequestsResponseTime(
+ )
+ """
+
+ def testDeploymentScalingTargetRequestsResponseTime(self):
+ """Test DeploymentScalingTargetRequestsResponseTime"""
+ # 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_sleep_idle_delay.py b/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py
new file mode 100644
index 00000000..87a030f2
--- /dev/null
+++ b/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py
@@ -0,0 +1,53 @@
+# 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_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay
+
+class TestDeploymentScalingTargetSleepIdleDelay(unittest.TestCase):
+ """DeploymentScalingTargetSleepIdleDelay unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentScalingTargetSleepIdleDelay`
+ """
+ model = DeploymentScalingTargetSleepIdleDelay()
+ if include_optional:
+ return DeploymentScalingTargetSleepIdleDelay(
+ value = 56,
+ deep_sleep_value = 56,
+ light_sleep_value = 56
+ )
+ else:
+ return DeploymentScalingTargetSleepIdleDelay(
+ )
+ """
+
+ def testDeploymentScalingTargetSleepIdleDelay(self):
+ """Test DeploymentScalingTargetSleepIdleDelay"""
+ # 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_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/api/test/test_deployment_strategy.py b/koyeb/api/test/test_deployment_strategy.py
new file mode 100644
index 00000000..0189c030
--- /dev/null
+++ b/koyeb/api/test/test_deployment_strategy.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
+
+
+import unittest
+
+from koyeb.api.models.deployment_strategy import DeploymentStrategy
+
+class TestDeploymentStrategy(unittest.TestCase):
+ """DeploymentStrategy unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentStrategy`
+ """
+ model = DeploymentStrategy()
+ if include_optional:
+ return DeploymentStrategy(
+ type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID'
+ )
+ else:
+ return DeploymentStrategy(
+ )
+ """
+
+ def testDeploymentStrategy(self):
+ """Test DeploymentStrategy"""
+ # 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_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/api/test/test_deployment_volume.py b/koyeb/api/test/test_deployment_volume.py
new file mode 100644
index 00000000..4bcc1f88
--- /dev/null
+++ b/koyeb/api/test/test_deployment_volume.py
@@ -0,0 +1,56 @@
+# 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_volume import DeploymentVolume
+
+class TestDeploymentVolume(unittest.TestCase):
+ """DeploymentVolume unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DeploymentVolume`
+ """
+ model = DeploymentVolume()
+ if include_optional:
+ return DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56,
+ scopes = [
+ ''
+ ]
+ )
+ else:
+ return DeploymentVolume(
+ )
+ """
+
+ def testDeploymentVolume(self):
+ """Test DeploymentVolume"""
+ # 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_deployments_api.py b/koyeb/api/test/test_deployments_api.py
new file mode 100644
index 00000000..096640a7
--- /dev/null
+++ b/koyeb/api/test/test_deployments_api.py
@@ -0,0 +1,66 @@
+# 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.deployments_api import DeploymentsApi
+
+
+class TestDeploymentsApi(unittest.TestCase):
+ """DeploymentsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = DeploymentsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_cancel_deployment(self) -> None:
+ """Test case for cancel_deployment
+
+ Cancel Deployment
+ """
+ pass
+
+ def test_get_deployment(self) -> None:
+ """Test case for get_deployment
+
+ Get Deployment
+ """
+ pass
+
+ def test_get_deployment_scaling(self) -> None:
+ """Test case for get_deployment_scaling
+
+ Get Deployment Scaling
+ """
+ pass
+
+ def test_list_deployment_events(self) -> None:
+ """Test case for list_deployment_events
+
+ List Deployment events
+ """
+ pass
+
+ def test_list_deployments(self) -> None:
+ """Test case for list_deployments
+
+ List Deployments
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_desired_deployment.py b/koyeb/api/test/test_desired_deployment.py
new file mode 100644
index 00000000..7188a6ee
--- /dev/null
+++ b/koyeb/api/test/test_desired_deployment.py
@@ -0,0 +1,57 @@
+# 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.desired_deployment import DesiredDeployment
+
+class TestDesiredDeployment(unittest.TestCase):
+ """DesiredDeployment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DesiredDeployment`
+ """
+ model = DesiredDeployment()
+ if include_optional:
+ return DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ]
+ )
+ else:
+ return DesiredDeployment(
+ )
+ """
+
+ def testDesiredDeployment(self):
+ """Test DesiredDeployment"""
+ # 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_desired_deployment_group.py b/koyeb/api/test/test_desired_deployment_group.py
new file mode 100644
index 00000000..d5ce9559
--- /dev/null
+++ b/koyeb/api/test/test_desired_deployment_group.py
@@ -0,0 +1,54 @@
+# 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.desired_deployment_group import DesiredDeploymentGroup
+
+class TestDesiredDeploymentGroup(unittest.TestCase):
+ """DesiredDeploymentGroup unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DesiredDeploymentGroup`
+ """
+ model = DesiredDeploymentGroup()
+ if include_optional:
+ return DesiredDeploymentGroup(
+ name = '',
+ deployment_ids = [
+ ''
+ ]
+ )
+ else:
+ return DesiredDeploymentGroup(
+ )
+ """
+
+ def testDesiredDeploymentGroup(self):
+ """Test DesiredDeploymentGroup"""
+ # 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_digital_ocean_registry_configuration.py b/koyeb/api/test/test_digital_ocean_registry_configuration.py
new file mode 100644
index 00000000..073a570e
--- /dev/null
+++ b/koyeb/api/test/test_digital_ocean_registry_configuration.py
@@ -0,0 +1,52 @@
+# 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.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration
+
+class TestDigitalOceanRegistryConfiguration(unittest.TestCase):
+ """DigitalOceanRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DigitalOceanRegistryConfiguration`
+ """
+ model = DigitalOceanRegistryConfiguration()
+ if include_optional:
+ return DigitalOceanRegistryConfiguration(
+ username = '',
+ password = ''
+ )
+ else:
+ return DigitalOceanRegistryConfiguration(
+ )
+ """
+
+ def testDigitalOceanRegistryConfiguration(self):
+ """Test DigitalOceanRegistryConfiguration"""
+ # 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_discourse_auth_reply.py b/koyeb/api/test/test_discourse_auth_reply.py
new file mode 100644
index 00000000..f9be9d69
--- /dev/null
+++ b/koyeb/api/test/test_discourse_auth_reply.py
@@ -0,0 +1,52 @@
+# 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.discourse_auth_reply import DiscourseAuthReply
+
+class TestDiscourseAuthReply(unittest.TestCase):
+ """DiscourseAuthReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DiscourseAuthReply`
+ """
+ model = DiscourseAuthReply()
+ if include_optional:
+ return DiscourseAuthReply(
+ sso = '',
+ sig = ''
+ )
+ else:
+ return DiscourseAuthReply(
+ )
+ """
+
+ def testDiscourseAuthReply(self):
+ """Test DiscourseAuthReply"""
+ # 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_discourse_auth_request.py b/koyeb/api/test/test_discourse_auth_request.py
new file mode 100644
index 00000000..036fd652
--- /dev/null
+++ b/koyeb/api/test/test_discourse_auth_request.py
@@ -0,0 +1,52 @@
+# 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.discourse_auth_request import DiscourseAuthRequest
+
+class TestDiscourseAuthRequest(unittest.TestCase):
+ """DiscourseAuthRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DiscourseAuthRequest`
+ """
+ model = DiscourseAuthRequest()
+ if include_optional:
+ return DiscourseAuthRequest(
+ payload = '',
+ sig = ''
+ )
+ else:
+ return DiscourseAuthRequest(
+ )
+ """
+
+ def testDiscourseAuthRequest(self):
+ """Test DiscourseAuthRequest"""
+ # 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_docker_builder.py b/koyeb/api/test/test_docker_builder.py
new file mode 100644
index 00000000..748926f2
--- /dev/null
+++ b/koyeb/api/test/test_docker_builder.py
@@ -0,0 +1,60 @@
+# 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.docker_builder import DockerBuilder
+
+class TestDockerBuilder(unittest.TestCase):
+ """DockerBuilder unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DockerBuilder`
+ """
+ model = DockerBuilder()
+ if include_optional:
+ return DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True
+ )
+ else:
+ return DockerBuilder(
+ )
+ """
+
+ def testDockerBuilder(self):
+ """Test DockerBuilder"""
+ # 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_docker_helper_api.py b/koyeb/api/test/test_docker_helper_api.py
new file mode 100644
index 00000000..b93ba981
--- /dev/null
+++ b/koyeb/api/test/test_docker_helper_api.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
+
+
+import unittest
+
+from koyeb.api.api.docker_helper_api import DockerHelperApi
+
+
+class TestDockerHelperApi(unittest.TestCase):
+ """DockerHelperApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = DockerHelperApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_verify_docker_image(self) -> None:
+ """Test case for verify_docker_image
+
+ Verify Docker Image
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_docker_hub_registry_configuration.py b/koyeb/api/test/test_docker_hub_registry_configuration.py
new file mode 100644
index 00000000..88533154
--- /dev/null
+++ b/koyeb/api/test/test_docker_hub_registry_configuration.py
@@ -0,0 +1,52 @@
+# 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.docker_hub_registry_configuration import DockerHubRegistryConfiguration
+
+class TestDockerHubRegistryConfiguration(unittest.TestCase):
+ """DockerHubRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DockerHubRegistryConfiguration`
+ """
+ model = DockerHubRegistryConfiguration()
+ if include_optional:
+ return DockerHubRegistryConfiguration(
+ username = '',
+ password = ''
+ )
+ else:
+ return DockerHubRegistryConfiguration(
+ )
+ """
+
+ def testDockerHubRegistryConfiguration(self):
+ """Test DockerHubRegistryConfiguration"""
+ # 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_docker_source.py b/koyeb/api/test/test_docker_source.py
new file mode 100644
index 00000000..d5c88002
--- /dev/null
+++ b/koyeb/api/test/test_docker_source.py
@@ -0,0 +1,60 @@
+# 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.docker_source import DockerSource
+
+class TestDockerSource(unittest.TestCase):
+ """DockerSource unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DockerSource`
+ """
+ model = DockerSource()
+ if include_optional:
+ return DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True
+ )
+ else:
+ return DockerSource(
+ )
+ """
+
+ def testDockerSource(self):
+ """Test DockerSource"""
+ # 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_domain.py b/koyeb/api/test/test_domain.py
new file mode 100644
index 00000000..faff203a
--- /dev/null
+++ b/koyeb/api/test/test_domain.py
@@ -0,0 +1,68 @@
+# 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 import Domain
+
+class TestDomain(unittest.TestCase):
+ """Domain unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Domain`
+ """
+ model = Domain()
+ if include_optional:
+ return Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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:
+ return Domain(
+ )
+ """
+
+ def testDomain(self):
+ """Test Domain"""
+ # 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_domain_load_balancer_koyeb.py b/koyeb/api/test/test_domain_load_balancer_koyeb.py
new file mode 100644
index 00000000..89ea0e1a
--- /dev/null
+++ b/koyeb/api/test/test_domain_load_balancer_koyeb.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
+
+
+import unittest
+
+from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb
+
+class TestDomainLoadBalancerKoyeb(unittest.TestCase):
+ """DomainLoadBalancerKoyeb unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DomainLoadBalancerKoyeb`
+ """
+ model = DomainLoadBalancerKoyeb()
+ if include_optional:
+ return DomainLoadBalancerKoyeb(
+ request_timeout_seconds = 56
+ )
+ else:
+ return DomainLoadBalancerKoyeb(
+ )
+ """
+
+ def testDomainLoadBalancerKoyeb(self):
+ """Test DomainLoadBalancerKoyeb"""
+ # 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_domain_load_balancer_quotas.py b/koyeb/api/test/test_domain_load_balancer_quotas.py
new file mode 100644
index 00000000..d3b59b10
--- /dev/null
+++ b/koyeb/api/test/test_domain_load_balancer_quotas.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
+
+
+import unittest
+
+from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas
+
+class TestDomainLoadBalancerQuotas(unittest.TestCase):
+ """DomainLoadBalancerQuotas unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DomainLoadBalancerQuotas`
+ """
+ model = DomainLoadBalancerQuotas()
+ if include_optional:
+ return DomainLoadBalancerQuotas(
+ max_koyeb = 56
+ )
+ else:
+ return DomainLoadBalancerQuotas(
+ )
+ """
+
+ def testDomainLoadBalancerQuotas(self):
+ """Test DomainLoadBalancerQuotas"""
+ # 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_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/api/test/test_domains_api.py b/koyeb/api/test/test_domains_api.py
new file mode 100644
index 00000000..916931c6
--- /dev/null
+++ b/koyeb/api/test/test_domains_api.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.api.domains_api import DomainsApi
+
+
+class TestDomainsApi(unittest.TestCase):
+ """DomainsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = DomainsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_domain(self) -> None:
+ """Test case for create_domain
+
+ Create Domain
+ """
+ pass
+
+ def test_delete_domain(self) -> None:
+ """Test case for delete_domain
+
+ Delete Domain
+ """
+ pass
+
+ def test_get_domain(self) -> None:
+ """Test case for get_domain
+
+ Get Domain
+ """
+ pass
+
+ def test_list_domains(self) -> None:
+ """Test case for list_domains
+
+ List Domains
+ """
+ pass
+
+ def test_refresh_domain_status(self) -> None:
+ """Test case for refresh_domain_status
+
+ Refresh Domain Status
+ """
+ pass
+
+ def test_update_domain(self) -> None:
+ """Test case for update_domain
+
+ Update Domain
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_domains_summary.py b/koyeb/api/test/test_domains_summary.py
new file mode 100644
index 00000000..5baa9c91
--- /dev/null
+++ b/koyeb/api/test/test_domains_summary.py
@@ -0,0 +1,54 @@
+# 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.domains_summary import DomainsSummary
+
+class TestDomainsSummary(unittest.TestCase):
+ """DomainsSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `DomainsSummary`
+ """
+ model = DomainsSummary()
+ if include_optional:
+ return DomainsSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }
+ )
+ else:
+ return DomainsSummary(
+ )
+ """
+
+ def testDomainsSummary(self):
+ """Test DomainsSummary"""
+ # 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_env.py b/koyeb/api/test/test_env.py
new file mode 100644
index 00000000..af8bb55f
--- /dev/null
+++ b/koyeb/api/test/test_env.py
@@ -0,0 +1,53 @@
+# 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.env import Env
+
+class TestEnv(unittest.TestCase):
+ """Env unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Env`
+ """
+ model = Env()
+ if include_optional:
+ return Env(
+ key = '',
+ value = '',
+ secret = ''
+ )
+ else:
+ return Env(
+ )
+ """
+
+ def testEnv(self):
+ """Test Env"""
+ # 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_error.py b/koyeb/api/test/test_error.py
new file mode 100644
index 00000000..cb21c03d
--- /dev/null
+++ b/koyeb/api/test/test_error.py
@@ -0,0 +1,53 @@
+# 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.error import Error
+
+class TestError(unittest.TestCase):
+ """Error unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Error`
+ """
+ model = Error()
+ if include_optional:
+ return Error(
+ status = 56,
+ code = '',
+ message = ''
+ )
+ else:
+ return Error(
+ )
+ """
+
+ def testError(self):
+ """Test Error"""
+ # 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_error_field.py b/koyeb/api/test/test_error_field.py
new file mode 100644
index 00000000..34550bf5
--- /dev/null
+++ b/koyeb/api/test/test_error_field.py
@@ -0,0 +1,52 @@
+# 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.error_field import ErrorField
+
+class TestErrorField(unittest.TestCase):
+ """ErrorField unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ErrorField`
+ """
+ model = ErrorField()
+ if include_optional:
+ return ErrorField(
+ var_field = '',
+ description = ''
+ )
+ else:
+ return ErrorField(
+ )
+ """
+
+ def testErrorField(self):
+ """Test ErrorField"""
+ # 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_error_with_fields.py b/koyeb/api/test/test_error_with_fields.py
new file mode 100644
index 00000000..cce8f2d4
--- /dev/null
+++ b/koyeb/api/test/test_error_with_fields.py
@@ -0,0 +1,58 @@
+# 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.error_with_fields import ErrorWithFields
+
+class TestErrorWithFields(unittest.TestCase):
+ """ErrorWithFields unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ErrorWithFields`
+ """
+ model = ErrorWithFields()
+ if include_optional:
+ return ErrorWithFields(
+ status = 56,
+ code = '',
+ message = '',
+ fields = [
+ koyeb.api.models.error_field.ErrorField(
+ field = '',
+ description = '', )
+ ]
+ )
+ else:
+ return ErrorWithFields(
+ )
+ """
+
+ def testErrorWithFields(self):
+ """Test ErrorWithFields"""
+ # 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_exec_command_io.py b/koyeb/api/test/test_exec_command_io.py
new file mode 100644
index 00000000..e44b7301
--- /dev/null
+++ b/koyeb/api/test/test_exec_command_io.py
@@ -0,0 +1,52 @@
+# 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_io import ExecCommandIO
+
+class TestExecCommandIO(unittest.TestCase):
+ """ExecCommandIO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ExecCommandIO`
+ """
+ model = ExecCommandIO()
+ if include_optional:
+ return ExecCommandIO(
+ data = 'YQ==',
+ close = True
+ )
+ else:
+ return ExecCommandIO(
+ )
+ """
+
+ def testExecCommandIO(self):
+ """Test ExecCommandIO"""
+ # 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_exec_command_reply.py b/koyeb/api/test/test_exec_command_reply.py
new file mode 100644
index 00000000..9876281c
--- /dev/null
+++ b/koyeb/api/test/test_exec_command_reply.py
@@ -0,0 +1,58 @@
+# 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_reply import ExecCommandReply
+
+class TestExecCommandReply(unittest.TestCase):
+ """ExecCommandReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ExecCommandReply`
+ """
+ model = ExecCommandReply()
+ if include_optional:
+ return ExecCommandReply(
+ stdout = koyeb.api.models.exec_command_io.ExecCommandIO(
+ data = 'YQ==',
+ close = True, ),
+ stderr = koyeb.api.models.exec_command_io.ExecCommandIO(
+ data = 'YQ==',
+ close = True, ),
+ exited = True,
+ exit_code = 56
+ )
+ else:
+ return ExecCommandReply(
+ )
+ """
+
+ def testExecCommandReply(self):
+ """Test ExecCommandReply"""
+ # 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_exec_command_request_body.py b/koyeb/api/test/test_exec_command_request_body.py
new file mode 100644
index 00000000..df1b097a
--- /dev/null
+++ b/koyeb/api/test/test_exec_command_request_body.py
@@ -0,0 +1,60 @@
+# 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_body import ExecCommandRequestBody
+
+class TestExecCommandRequestBody(unittest.TestCase):
+ """ExecCommandRequestBody unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ExecCommandRequestBody`
+ """
+ model = ExecCommandRequestBody()
+ if include_optional:
+ return ExecCommandRequestBody(
+ command = [
+ ''
+ ],
+ tty_size = koyeb.api.models.exec_command_request/terminal_size.ExecCommandRequest.TerminalSize(
+ height = 56,
+ width = 56, ),
+ stdin = koyeb.api.models.exec_command_io.ExecCommandIO(
+ data = 'YQ==',
+ close = True, ),
+ disable_tty = True
+ )
+ else:
+ return ExecCommandRequestBody(
+ )
+ """
+
+ def testExecCommandRequestBody(self):
+ """Test ExecCommandRequestBody"""
+ # 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_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/api/test/test_exec_command_request_terminal_size.py b/koyeb/api/test/test_exec_command_request_terminal_size.py
new file mode 100644
index 00000000..a97f7ff4
--- /dev/null
+++ b/koyeb/api/test/test_exec_command_request_terminal_size.py
@@ -0,0 +1,52 @@
+# 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_terminal_size import ExecCommandRequestTerminalSize
+
+class TestExecCommandRequestTerminalSize(unittest.TestCase):
+ """ExecCommandRequestTerminalSize unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ExecCommandRequestTerminalSize`
+ """
+ model = ExecCommandRequestTerminalSize()
+ if include_optional:
+ return ExecCommandRequestTerminalSize(
+ height = 56,
+ width = 56
+ )
+ else:
+ return ExecCommandRequestTerminalSize(
+ )
+ """
+
+ def testExecCommandRequestTerminalSize(self):
+ """Test ExecCommandRequestTerminalSize"""
+ # 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_gcp_container_registry_configuration.py b/koyeb/api/test/test_gcp_container_registry_configuration.py
new file mode 100644
index 00000000..1a456250
--- /dev/null
+++ b/koyeb/api/test/test_gcp_container_registry_configuration.py
@@ -0,0 +1,52 @@
+# 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.gcp_container_registry_configuration import GCPContainerRegistryConfiguration
+
+class TestGCPContainerRegistryConfiguration(unittest.TestCase):
+ """GCPContainerRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GCPContainerRegistryConfiguration`
+ """
+ model = GCPContainerRegistryConfiguration()
+ if include_optional:
+ return GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = ''
+ )
+ else:
+ return GCPContainerRegistryConfiguration(
+ )
+ """
+
+ def testGCPContainerRegistryConfiguration(self):
+ """Test GCPContainerRegistryConfiguration"""
+ # 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_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/api/test/test_get_budget_reply.py b/koyeb/api/test/test_get_budget_reply.py
new file mode 100644
index 00000000..13dc234a
--- /dev/null
+++ b/koyeb/api/test/test_get_budget_reply.py
@@ -0,0 +1,55 @@
+# 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.get_budget_reply import GetBudgetReply
+
+class TestGetBudgetReply(unittest.TestCase):
+ """GetBudgetReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetBudgetReply`
+ """
+ model = GetBudgetReply()
+ if include_optional:
+ return GetBudgetReply(
+ budget = koyeb.api.models.budget.Budget(
+ amount = '',
+ thresholds = [
+ ''
+ ], )
+ )
+ else:
+ return GetBudgetReply(
+ )
+ """
+
+ def testGetBudgetReply(self):
+ """Test GetBudgetReply"""
+ # 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_get_catalog_instance_reply.py b/koyeb/api/test/test_get_catalog_instance_reply.py
new file mode 100644
index 00000000..966e3c92
--- /dev/null
+++ b/koyeb/api/test/test_get_catalog_instance_reply.py
@@ -0,0 +1,82 @@
+# 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.get_catalog_instance_reply import GetCatalogInstanceReply
+
+class TestGetCatalogInstanceReply(unittest.TestCase):
+ """GetCatalogInstanceReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetCatalogInstanceReply`
+ """
+ model = GetCatalogInstanceReply()
+ if include_optional:
+ return GetCatalogInstanceReply(
+ instance = koyeb.api.models.catalog_instance.CatalogInstance(
+ id = '',
+ description = '',
+ vcpu = 56,
+ memory = '',
+ disk = '',
+ price_per_second = '',
+ price_hourly = '',
+ price_monthly = '',
+ regions = [
+ ''
+ ],
+ status = '',
+ require_plan = [
+ ''
+ ],
+ vcpu_shares = 1.337,
+ display_name = '',
+ aliases = [
+ ''
+ ],
+ type = '',
+ gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails(
+ count = 56,
+ brand = '',
+ memory = '',
+ name = '', ),
+ service_types = [
+ ''
+ ],
+ volumes_enabled = True,
+ light_sleep_enabled = True, )
+ )
+ else:
+ return GetCatalogInstanceReply(
+ )
+ """
+
+ def testGetCatalogInstanceReply(self):
+ """Test GetCatalogInstanceReply"""
+ # 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_get_credential_reply.py b/koyeb/api/test/test_get_credential_reply.py
new file mode 100644
index 00000000..725eaf6a
--- /dev/null
+++ b/koyeb/api/test/test_get_credential_reply.py
@@ -0,0 +1,61 @@
+# 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.get_credential_reply import GetCredentialReply
+
+class TestGetCredentialReply(unittest.TestCase):
+ """GetCredentialReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetCredentialReply`
+ """
+ model = GetCredentialReply()
+ if include_optional:
+ return GetCredentialReply(
+ credential = koyeb.api.models.credential.Credential(
+ id = '',
+ type = 'INVALID',
+ name = '',
+ token = '',
+ description = '',
+ user_id = '',
+ 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'),
+ expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ )
+ else:
+ return GetCredentialReply(
+ )
+ """
+
+ def testGetCredentialReply(self):
+ """Test GetCredentialReply"""
+ # 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_get_deployment_reply.py b/koyeb/api/test/test_get_deployment_reply.py
new file mode 100644
index 00000000..c6625e37
--- /dev/null
+++ b/koyeb/api/test/test_get_deployment_reply.py
@@ -0,0 +1,222 @@
+# 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.get_deployment_reply import GetDeploymentReply
+
+class TestGetDeploymentReply(unittest.TestCase):
+ """GetDeploymentReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetDeploymentReply`
+ """
+ model = GetDeploymentReply()
+ if include_optional:
+ return GetDeploymentReply(
+ 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'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ], ),
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56, )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ), ),
+ messages = [
+ ''
+ ],
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo(),
+ skip_build = True,
+ role = 'INVALID',
+ version = '',
+ deployment_group = '', )
+ )
+ else:
+ return GetDeploymentReply(
+ )
+ """
+
+ def testGetDeploymentReply(self):
+ """Test GetDeploymentReply"""
+ # 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_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/api/test/test_get_domain_reply.py b/koyeb/api/test/test_get_domain_reply.py
new file mode 100644
index 00000000..ad137805
--- /dev/null
+++ b/koyeb/api/test/test_get_domain_reply.py
@@ -0,0 +1,69 @@
+# 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.get_domain_reply import GetDomainReply
+
+class TestGetDomainReply(unittest.TestCase):
+ """GetDomainReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetDomainReply`
+ """
+ model = GetDomainReply()
+ if include_optional:
+ return GetDomainReply(
+ domain = koyeb.api.models.domain.Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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:
+ return GetDomainReply(
+ )
+ """
+
+ def testGetDomainReply(self):
+ """Test GetDomainReply"""
+ # 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_get_github_installation_reply.py b/koyeb/api/test/test_get_github_installation_reply.py
new file mode 100644
index 00000000..41bce9ed
--- /dev/null
+++ b/koyeb/api/test/test_get_github_installation_reply.py
@@ -0,0 +1,60 @@
+# 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.get_github_installation_reply import GetGithubInstallationReply
+
+class TestGetGithubInstallationReply(unittest.TestCase):
+ """GetGithubInstallationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetGithubInstallationReply`
+ """
+ model = GetGithubInstallationReply()
+ if include_optional:
+ return GetGithubInstallationReply(
+ installation_id = '',
+ installation_url = '',
+ name = '',
+ avatar_url = '',
+ status = 'INVALID',
+ installed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ suspended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ indexing_status = 'INVALID_INDEXING_STATUS',
+ indexed_repositories = 56,
+ total_repositories = 56
+ )
+ else:
+ return GetGithubInstallationReply(
+ )
+ """
+
+ def testGetGithubInstallationReply(self):
+ """Test GetGithubInstallationReply"""
+ # 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_get_idenfy_token_reply.py b/koyeb/api/test/test_get_idenfy_token_reply.py
new file mode 100644
index 00000000..123bff94
--- /dev/null
+++ b/koyeb/api/test/test_get_idenfy_token_reply.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
+
+
+import unittest
+
+from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply
+
+class TestGetIdenfyTokenReply(unittest.TestCase):
+ """GetIdenfyTokenReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetIdenfyTokenReply`
+ """
+ model = GetIdenfyTokenReply()
+ if include_optional:
+ return GetIdenfyTokenReply(
+ auth_token = ''
+ )
+ else:
+ return GetIdenfyTokenReply(
+ )
+ """
+
+ def testGetIdenfyTokenReply(self):
+ """Test GetIdenfyTokenReply"""
+ # 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_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/api/test/test_get_intercom_profile_reply.py b/koyeb/api/test/test_get_intercom_profile_reply.py
new file mode 100644
index 00000000..7d8d97b8
--- /dev/null
+++ b/koyeb/api/test/test_get_intercom_profile_reply.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
+
+
+import unittest
+
+from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply
+
+class TestGetIntercomProfileReply(unittest.TestCase):
+ """GetIntercomProfileReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetIntercomProfileReply`
+ """
+ model = GetIntercomProfileReply()
+ if include_optional:
+ return GetIntercomProfileReply(
+ hash = ''
+ )
+ else:
+ return GetIntercomProfileReply(
+ )
+ """
+
+ def testGetIntercomProfileReply(self):
+ """Test GetIntercomProfileReply"""
+ # 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_get_metrics_reply.py b/koyeb/api/test/test_get_metrics_reply.py
new file mode 100644
index 00000000..37ec2186
--- /dev/null
+++ b/koyeb/api/test/test_get_metrics_reply.py
@@ -0,0 +1,61 @@
+# 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.get_metrics_reply import GetMetricsReply
+
+class TestGetMetricsReply(unittest.TestCase):
+ """GetMetricsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetMetricsReply`
+ """
+ model = GetMetricsReply()
+ if include_optional:
+ return GetMetricsReply(
+ metrics = [
+ koyeb.api.models.get_metrics_reply/metric.GetMetricsReply.Metric(
+ labels = {
+ 'key' : ''
+ },
+ samples = [
+ koyeb.api.models.sample.Sample(
+ timestamp = '',
+ value = 1.337, )
+ ], )
+ ]
+ )
+ else:
+ return GetMetricsReply(
+ )
+ """
+
+ def testGetMetricsReply(self):
+ """Test GetMetricsReply"""
+ # 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_get_metrics_reply_metric.py b/koyeb/api/test/test_get_metrics_reply_metric.py
new file mode 100644
index 00000000..c91e8ef2
--- /dev/null
+++ b/koyeb/api/test/test_get_metrics_reply_metric.py
@@ -0,0 +1,58 @@
+# 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.get_metrics_reply_metric import GetMetricsReplyMetric
+
+class TestGetMetricsReplyMetric(unittest.TestCase):
+ """GetMetricsReplyMetric unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetMetricsReplyMetric`
+ """
+ model = GetMetricsReplyMetric()
+ if include_optional:
+ return GetMetricsReplyMetric(
+ labels = {
+ 'key' : ''
+ },
+ samples = [
+ koyeb.api.models.sample.Sample(
+ timestamp = '',
+ value = 1.337, )
+ ]
+ )
+ else:
+ return GetMetricsReplyMetric(
+ )
+ """
+
+ def testGetMetricsReplyMetric(self):
+ """Test GetMetricsReplyMetric"""
+ # 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_get_o_auth_options_reply.py b/koyeb/api/test/test_get_o_auth_options_reply.py
new file mode 100644
index 00000000..cbec87e7
--- /dev/null
+++ b/koyeb/api/test/test_get_o_auth_options_reply.py
@@ -0,0 +1,56 @@
+# 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.get_o_auth_options_reply import GetOAuthOptionsReply
+
+class TestGetOAuthOptionsReply(unittest.TestCase):
+ """GetOAuthOptionsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetOAuthOptionsReply`
+ """
+ model = GetOAuthOptionsReply()
+ if include_optional:
+ return GetOAuthOptionsReply(
+ oauth_providers = [
+ koyeb.api.models.o_auth_provider.OAuthProvider(
+ id = '',
+ url = '',
+ state = '', )
+ ]
+ )
+ else:
+ return GetOAuthOptionsReply(
+ )
+ """
+
+ def testGetOAuthOptionsReply(self):
+ """Test GetOAuthOptionsReply"""
+ # 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_get_organization_invitation_reply.py b/koyeb/api/test/test_get_organization_invitation_reply.py
new file mode 100644
index 00000000..6c5759ed
--- /dev/null
+++ b/koyeb/api/test/test_get_organization_invitation_reply.py
@@ -0,0 +1,77 @@
+# 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.get_organization_invitation_reply import GetOrganizationInvitationReply
+
+class TestGetOrganizationInvitationReply(unittest.TestCase):
+ """GetOrganizationInvitationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetOrganizationInvitationReply`
+ """
+ model = GetOrganizationInvitationReply()
+ if include_optional:
+ return GetOrganizationInvitationReply(
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ )
+ else:
+ return GetOrganizationInvitationReply(
+ )
+ """
+
+ def testGetOrganizationInvitationReply(self):
+ """Test GetOrganizationInvitationReply"""
+ # 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_get_organization_reply.py b/koyeb/api/test/test_get_organization_reply.py
new file mode 100644
index 00000000..dda1c4d2
--- /dev/null
+++ b/koyeb/api/test/test_get_organization_reply.py
@@ -0,0 +1,83 @@
+# 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.get_organization_reply import GetOrganizationReply
+
+class TestGetOrganizationReply(unittest.TestCase):
+ """GetOrganizationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetOrganizationReply`
+ """
+ model = GetOrganizationReply()
+ if include_optional:
+ return GetOrganizationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return GetOrganizationReply(
+ )
+ """
+
+ def testGetOrganizationReply(self):
+ """Test GetOrganizationReply"""
+ # 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_get_organization_summary_reply.py b/koyeb/api/test/test_get_organization_summary_reply.py
new file mode 100644
index 00000000..1356df4d
--- /dev/null
+++ b/koyeb/api/test/test_get_organization_summary_reply.py
@@ -0,0 +1,89 @@
+# 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.get_organization_summary_reply import GetOrganizationSummaryReply
+
+class TestGetOrganizationSummaryReply(unittest.TestCase):
+ """GetOrganizationSummaryReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetOrganizationSummaryReply`
+ """
+ model = GetOrganizationSummaryReply()
+ if include_optional:
+ return GetOrganizationSummaryReply(
+ summary = koyeb.api.models.organization_summary.OrganizationSummary(
+ organization_id = '',
+ instances = koyeb.api.models.instances_summary.InstancesSummary(
+ total = '',
+ by_type = {
+ 'key' : ''
+ }, ),
+ apps = koyeb.api.models.apps_summary.AppsSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }, ),
+ services = {
+ 'key' : koyeb.api.models.service_summary.ServiceSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }, )
+ },
+ domains = koyeb.api.models.domains_summary.DomainsSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }, ),
+ secrets = koyeb.api.models.secrets_summary.SecretsSummary(
+ total = '',
+ by_type = {
+ 'key' : ''
+ }, ),
+ neon_postgres = koyeb.api.models.neon_postgres_summary.NeonPostgresSummary(
+ total = '',
+ by_instance_type = {
+ 'key' : ''
+ }, ),
+ members = koyeb.api.models.members_summary.MembersSummary(
+ total = '',
+ invitations_by_status = {
+ 'key' : ''
+ }, ), )
+ )
+ else:
+ return GetOrganizationSummaryReply(
+ )
+ """
+
+ def testGetOrganizationSummaryReply(self):
+ """Test GetOrganizationSummaryReply"""
+ # 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_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/api/test/test_get_organization_usage_reply.py b/koyeb/api/test/test_get_organization_usage_reply.py
new file mode 100644
index 00000000..12649952
--- /dev/null
+++ b/koyeb/api/test/test_get_organization_usage_reply.py
@@ -0,0 +1,81 @@
+# 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.get_organization_usage_reply import GetOrganizationUsageReply
+
+class TestGetOrganizationUsageReply(unittest.TestCase):
+ """GetOrganizationUsageReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetOrganizationUsageReply`
+ """
+ model = GetOrganizationUsageReply()
+ if include_optional:
+ return GetOrganizationUsageReply(
+ usage = koyeb.api.models.usage.Usage(
+ organization_id = '',
+ periods = {
+ '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.api.models.app_usage.AppUsage(
+ app_id = '',
+ app_name = '',
+ services = [
+ koyeb.api.models.service_usage.ServiceUsage(
+ service_id = '',
+ service_name = '',
+ regions = {
+ 'key' : koyeb.api.models.region_usage.RegionUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_usage.InstanceUsage(
+ duration_seconds = 56, )
+ }, )
+ }, )
+ ],
+ databases = [
+ koyeb.api.models.database_usage.DatabaseUsage(
+ service_id = '',
+ service_name = '',
+ compute_time_seconds = 56,
+ data_storage_megabytes_hours = 56, )
+ ], )
+ ], )
+ }, )
+ )
+ else:
+ return GetOrganizationUsageReply(
+ )
+ """
+
+ def testGetOrganizationUsageReply(self):
+ """Test GetOrganizationUsageReply"""
+ # 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_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/api/test/test_get_persistent_volume_reply.py b/koyeb/api/test/test_get_persistent_volume_reply.py
new file mode 100644
index 00000000..fa90d662
--- /dev/null
+++ b/koyeb/api/test/test_get_persistent_volume_reply.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.get_persistent_volume_reply import GetPersistentVolumeReply
+
+class TestGetPersistentVolumeReply(unittest.TestCase):
+ """GetPersistentVolumeReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetPersistentVolumeReply`
+ """
+ model = GetPersistentVolumeReply()
+ if include_optional:
+ return GetPersistentVolumeReply(
+ 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 = '',
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ service_id = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ cur_size = 56,
+ status = 'PERSISTENT_VOLUME_STATUS_INVALID',
+ backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
+ )
+ else:
+ return GetPersistentVolumeReply(
+ )
+ """
+
+ def testGetPersistentVolumeReply(self):
+ """Test GetPersistentVolumeReply"""
+ # 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_get_quotas_reply.py b/koyeb/api/test/test_get_quotas_reply.py
new file mode 100644
index 00000000..46e88848
--- /dev/null
+++ b/koyeb/api/test/test_get_quotas_reply.py
@@ -0,0 +1,91 @@
+# 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.get_quotas_reply import GetQuotasReply
+
+class TestGetQuotasReply(unittest.TestCase):
+ """GetQuotasReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetQuotasReply`
+ """
+ model = GetQuotasReply()
+ if include_optional:
+ return GetQuotasReply(
+ quotas = koyeb.api.models.quotas.Quotas(
+ apps = '',
+ services = '',
+ domains = '',
+ services_by_app = '',
+ service_provisioning_concurrency = '',
+ memory_mb = '',
+ instance_types = [
+ ''
+ ],
+ regions = [
+ ''
+ ],
+ max_organization_members = '',
+ max_instances_by_type = {
+ 'key' : ''
+ },
+ persistent_volumes_by_region = {
+ '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.api.models.domain_load_balancer_quotas.DomainLoadBalancerQuotas(
+ max_koyeb = 56, ),
+ metrics_retention = 56,
+ logs_retention = 56,
+ access_reserved_subdomains = [
+ ''
+ ],
+ proxy_ports = 56,
+ 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 = '',
+ archive_max_size_mb = '', )
+ )
+ else:
+ return GetQuotasReply(
+ )
+ """
+
+ def testGetQuotasReply(self):
+ """Test GetQuotasReply"""
+ # 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_get_region_reply.py b/koyeb/api/test/test_get_region_reply.py
new file mode 100644
index 00000000..f5898eb4
--- /dev/null
+++ b/koyeb/api/test/test_get_region_reply.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.get_region_reply import GetRegionReply
+
+class TestGetRegionReply(unittest.TestCase):
+ """GetRegionReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetRegionReply`
+ """
+ model = GetRegionReply()
+ if include_optional:
+ return GetRegionReply(
+ region = koyeb.api.models.region.Region(
+ id = '',
+ name = '',
+ coordinates = [
+ ''
+ ],
+ status = '',
+ instances = [
+ ''
+ ],
+ datacenters = [
+ ''
+ ],
+ volumes_enabled = True,
+ scope = '', )
+ )
+ else:
+ return GetRegionReply(
+ )
+ """
+
+ def testGetRegionReply(self):
+ """Test GetRegionReply"""
+ # 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_get_regional_deployment_reply.py b/koyeb/api/test/test_get_regional_deployment_reply.py
new file mode 100644
index 00000000..1b7f5fb4
--- /dev/null
+++ b/koyeb/api/test/test_get_regional_deployment_reply.py
@@ -0,0 +1,203 @@
+# 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.get_regional_deployment_reply import GetRegionalDeploymentReply
+
+class TestGetRegionalDeploymentReply(unittest.TestCase):
+ """GetRegionalDeploymentReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetRegionalDeploymentReply`
+ """
+ model = GetRegionalDeploymentReply()
+ if include_optional:
+ return GetRegionalDeploymentReply(
+ 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'),
+ scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ region = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ messages = [
+ ''
+ ],
+ definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.route.Route(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.port.Port(
+ port = 56,
+ protocol = '', )
+ ],
+ env = [
+ koyeb.api.models.env.Env(
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ region = '',
+ scaling = koyeb.api.models.scaling.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, ), )
+ ], ),
+ instance_type = '',
+ deployment_group = '',
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ),
+ datacenters = [
+ ''
+ ],
+ metadata = koyeb.api.models.regional_deployment_metadata.RegionalDeploymentMetadata(),
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ role = 'INVALID',
+ version = '',
+ deployment_group = '',
+ deployment_id = '', )
+ )
+ else:
+ return GetRegionalDeploymentReply(
+ )
+ """
+
+ def testGetRegionalDeploymentReply(self):
+ """Test GetRegionalDeploymentReply"""
+ # 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_get_secret_reply.py b/koyeb/api/test/test_get_secret_reply.py
new file mode 100644
index 00000000..8348d5fc
--- /dev/null
+++ b/koyeb/api/test/test_get_secret_reply.py
@@ -0,0 +1,84 @@
+# 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.get_secret_reply import GetSecretReply
+
+class TestGetSecretReply(unittest.TestCase):
+ """GetSecretReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetSecretReply`
+ """
+ model = GetSecretReply()
+ if include_optional:
+ return GetSecretReply(
+ secret = koyeb.api.models.secret.Secret(
+ id = '',
+ name = '',
+ organization_id = '',
+ type = 'SIMPLE',
+ 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.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = '', ),
+ digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
+ username = '',
+ password = '', ),
+ github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = '', ),
+ azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = '', ),
+ database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword(
+ username = '',
+ password = '', ), )
+ )
+ else:
+ return GetSecretReply(
+ )
+ """
+
+ def testGetSecretReply(self):
+ """Test GetSecretReply"""
+ # 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_get_service_reply.py b/koyeb/api/test/test_get_service_reply.py
new file mode 100644
index 00000000..65f69106
--- /dev/null
+++ b/koyeb/api/test/test_get_service_reply.py
@@ -0,0 +1,81 @@
+# 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.get_service_reply import GetServiceReply
+
+class TestGetServiceReply(unittest.TestCase):
+ """GetServiceReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetServiceReply`
+ """
+ model = GetServiceReply()
+ if include_optional:
+ return GetServiceReply(
+ 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'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ name = '',
+ type = 'INVALID_TYPE',
+ organization_id = '',
+ app_id = '',
+ status = 'STARTING',
+ messages = [
+ ''
+ ],
+ version = '',
+ active_deployment_id = '',
+ latest_deployment_id = '',
+ last_provisioned_deployment_id = '',
+ state = koyeb.api.models.service_state.ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(), ), )
+ )
+ else:
+ return GetServiceReply(
+ )
+ """
+
+ def testGetServiceReply(self):
+ """Test GetServiceReply"""
+ # 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_get_snapshot_reply.py b/koyeb/api/test/test_get_snapshot_reply.py
new file mode 100644
index 00000000..b4ec36d0
--- /dev/null
+++ b/koyeb/api/test/test_get_snapshot_reply.py
@@ -0,0 +1,62 @@
+# 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.get_snapshot_reply import GetSnapshotReply
+
+class TestGetSnapshotReply(unittest.TestCase):
+ """GetSnapshotReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetSnapshotReply`
+ """
+ model = GetSnapshotReply()
+ if include_optional:
+ return GetSnapshotReply(
+ snapshot = koyeb.api.models.snapshot.Snapshot(
+ id = '',
+ name = '',
+ size = 56,
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ parent_volume_id = '',
+ region = '',
+ status = 'SNAPSHOT_STATUS_INVALID',
+ type = 'SNAPSHOT_TYPE_INVALID', )
+ )
+ else:
+ return GetSnapshotReply(
+ )
+ """
+
+ def testGetSnapshotReply(self):
+ """Test GetSnapshotReply"""
+ # 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_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/api/test/test_get_user_organization_invitation_reply.py b/koyeb/api/test/test_get_user_organization_invitation_reply.py
new file mode 100644
index 00000000..308b3151
--- /dev/null
+++ b/koyeb/api/test/test_get_user_organization_invitation_reply.py
@@ -0,0 +1,77 @@
+# 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.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply
+
+class TestGetUserOrganizationInvitationReply(unittest.TestCase):
+ """GetUserOrganizationInvitationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetUserOrganizationInvitationReply`
+ """
+ model = GetUserOrganizationInvitationReply()
+ if include_optional:
+ return GetUserOrganizationInvitationReply(
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ )
+ else:
+ return GetUserOrganizationInvitationReply(
+ )
+ """
+
+ def testGetUserOrganizationInvitationReply(self):
+ """Test GetUserOrganizationInvitationReply"""
+ # 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_get_user_settings_reply.py b/koyeb/api/test/test_get_user_settings_reply.py
new file mode 100644
index 00000000..8648bc2a
--- /dev/null
+++ b/koyeb/api/test/test_get_user_settings_reply.py
@@ -0,0 +1,54 @@
+# 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.get_user_settings_reply import GetUserSettingsReply
+
+class TestGetUserSettingsReply(unittest.TestCase):
+ """GetUserSettingsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GetUserSettingsReply`
+ """
+ model = GetUserSettingsReply()
+ if include_optional:
+ return GetUserSettingsReply(
+ settings = koyeb.api.models.user_settings.UserSettings(
+ id = '',
+ user_id = '',
+ failed_deployment_email_notification = True, )
+ )
+ else:
+ return GetUserSettingsReply(
+ )
+ """
+
+ def testGetUserSettingsReply(self):
+ """Test GetUserSettingsReply"""
+ # 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_git_deployment_metadata.py b/koyeb/api/test/test_git_deployment_metadata.py
new file mode 100644
index 00000000..4310edb1
--- /dev/null
+++ b/koyeb/api/test/test_git_deployment_metadata.py
@@ -0,0 +1,55 @@
+# 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.git_deployment_metadata import GitDeploymentMetadata
+
+class TestGitDeploymentMetadata(unittest.TestCase):
+ """GitDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GitDeploymentMetadata`
+ """
+ model = GitDeploymentMetadata()
+ if include_optional:
+ return GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', )
+ )
+ else:
+ return GitDeploymentMetadata(
+ )
+ """
+
+ def testGitDeploymentMetadata(self):
+ """Test GitDeploymentMetadata"""
+ # 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_git_env_deployment_metadata.py b/koyeb/api/test/test_git_env_deployment_metadata.py
new file mode 100644
index 00000000..948c92d2
--- /dev/null
+++ b/koyeb/api/test/test_git_env_deployment_metadata.py
@@ -0,0 +1,53 @@
+# 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.git_env_deployment_metadata import GitEnvDeploymentMetadata
+
+class TestGitEnvDeploymentMetadata(unittest.TestCase):
+ """GitEnvDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GitEnvDeploymentMetadata`
+ """
+ model = GitEnvDeploymentMetadata()
+ if include_optional:
+ return GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = ''
+ )
+ else:
+ return GitEnvDeploymentMetadata(
+ )
+ """
+
+ def testGitEnvDeploymentMetadata(self):
+ """Test GitEnvDeploymentMetadata"""
+ # 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_git_hub_registry_configuration.py b/koyeb/api/test/test_git_hub_registry_configuration.py
new file mode 100644
index 00000000..a577f85d
--- /dev/null
+++ b/koyeb/api/test/test_git_hub_registry_configuration.py
@@ -0,0 +1,52 @@
+# 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.git_hub_registry_configuration import GitHubRegistryConfiguration
+
+class TestGitHubRegistryConfiguration(unittest.TestCase):
+ """GitHubRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GitHubRegistryConfiguration`
+ """
+ model = GitHubRegistryConfiguration()
+ if include_optional:
+ return GitHubRegistryConfiguration(
+ username = '',
+ password = ''
+ )
+ else:
+ return GitHubRegistryConfiguration(
+ )
+ """
+
+ def testGitHubRegistryConfiguration(self):
+ """Test GitHubRegistryConfiguration"""
+ # 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_git_lab_registry_configuration.py b/koyeb/api/test/test_git_lab_registry_configuration.py
new file mode 100644
index 00000000..69c63f3b
--- /dev/null
+++ b/koyeb/api/test/test_git_lab_registry_configuration.py
@@ -0,0 +1,52 @@
+# 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.git_lab_registry_configuration import GitLabRegistryConfiguration
+
+class TestGitLabRegistryConfiguration(unittest.TestCase):
+ """GitLabRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GitLabRegistryConfiguration`
+ """
+ model = GitLabRegistryConfiguration()
+ if include_optional:
+ return GitLabRegistryConfiguration(
+ username = '',
+ password = ''
+ )
+ else:
+ return GitLabRegistryConfiguration(
+ )
+ """
+
+ def testGitLabRegistryConfiguration(self):
+ """Test GitLabRegistryConfiguration"""
+ # 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_git_source.py b/koyeb/api/test/test_git_source.py
new file mode 100644
index 00000000..6ecf081b
--- /dev/null
+++ b/koyeb/api/test/test_git_source.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.git_source import GitSource
+
+class TestGitSource(unittest.TestCase):
+ """GitSource unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GitSource`
+ """
+ model = GitSource()
+ if include_optional:
+ return GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ),
+ docker = koyeb.api.models.docker_builder.DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True, )
+ )
+ else:
+ return GitSource(
+ )
+ """
+
+ def testGitSource(self):
+ """Test GitSource"""
+ # 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_github_installation_reply.py b/koyeb/api/test/test_github_installation_reply.py
new file mode 100644
index 00000000..a7c1f710
--- /dev/null
+++ b/koyeb/api/test/test_github_installation_reply.py
@@ -0,0 +1,54 @@
+# 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.github_installation_reply import GithubInstallationReply
+
+class TestGithubInstallationReply(unittest.TestCase):
+ """GithubInstallationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GithubInstallationReply`
+ """
+ model = GithubInstallationReply()
+ if include_optional:
+ return GithubInstallationReply(
+ app_name = '',
+ app_id = '',
+ url = '',
+ state = ''
+ )
+ else:
+ return GithubInstallationReply(
+ )
+ """
+
+ def testGithubInstallationReply(self):
+ """Test GithubInstallationReply"""
+ # 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_github_installation_request.py b/koyeb/api/test/test_github_installation_request.py
new file mode 100644
index 00000000..0013a069
--- /dev/null
+++ b/koyeb/api/test/test_github_installation_request.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
+
+
+import unittest
+
+from koyeb.api.models.github_installation_request import GithubInstallationRequest
+
+class TestGithubInstallationRequest(unittest.TestCase):
+ """GithubInstallationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GithubInstallationRequest`
+ """
+ model = GithubInstallationRequest()
+ if include_optional:
+ return GithubInstallationRequest(
+ metadata = ''
+ )
+ else:
+ return GithubInstallationRequest(
+ )
+ """
+
+ def testGithubInstallationRequest(self):
+ """Test GithubInstallationRequest"""
+ # 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_google_protobuf_any.py b/koyeb/api/test/test_google_protobuf_any.py
new file mode 100644
index 00000000..f6b00e52
--- /dev/null
+++ b/koyeb/api/test/test_google_protobuf_any.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
+
+
+import unittest
+
+from koyeb.api.models.google_protobuf_any import GoogleProtobufAny
+
+class TestGoogleProtobufAny(unittest.TestCase):
+ """GoogleProtobufAny unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GoogleProtobufAny`
+ """
+ model = GoogleProtobufAny()
+ if include_optional:
+ return GoogleProtobufAny(
+ type = ''
+ )
+ else:
+ return GoogleProtobufAny(
+ )
+ """
+
+ def testGoogleProtobufAny(self):
+ """Test GoogleProtobufAny"""
+ # 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_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/api/test/test_google_rpc_status.py b/koyeb/api/test/test_google_rpc_status.py
new file mode 100644
index 00000000..2d965688
--- /dev/null
+++ b/koyeb/api/test/test_google_rpc_status.py
@@ -0,0 +1,57 @@
+# 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_rpc_status import GoogleRpcStatus
+
+class TestGoogleRpcStatus(unittest.TestCase):
+ """GoogleRpcStatus unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `GoogleRpcStatus`
+ """
+ model = GoogleRpcStatus()
+ if include_optional:
+ return GoogleRpcStatus(
+ code = 56,
+ message = '',
+ details = [
+ {
+ 'key' : None
+ }
+ ]
+ )
+ else:
+ return GoogleRpcStatus(
+ )
+ """
+
+ def testGoogleRpcStatus(self):
+ """Test GoogleRpcStatus"""
+ # 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_has_unpaid_invoices_reply.py b/koyeb/api/test/test_has_unpaid_invoices_reply.py
new file mode 100644
index 00000000..bdd4c4dc
--- /dev/null
+++ b/koyeb/api/test/test_has_unpaid_invoices_reply.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
+
+
+import unittest
+
+from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply
+
+class TestHasUnpaidInvoicesReply(unittest.TestCase):
+ """HasUnpaidInvoicesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `HasUnpaidInvoicesReply`
+ """
+ model = HasUnpaidInvoicesReply()
+ if include_optional:
+ return HasUnpaidInvoicesReply(
+ has_unpaid_invoices = True
+ )
+ else:
+ return HasUnpaidInvoicesReply(
+ )
+ """
+
+ def testHasUnpaidInvoicesReply(self):
+ """Test HasUnpaidInvoicesReply"""
+ # 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_http_header.py b/koyeb/api/test/test_http_header.py
new file mode 100644
index 00000000..603e3890
--- /dev/null
+++ b/koyeb/api/test/test_http_header.py
@@ -0,0 +1,52 @@
+# 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.http_header import HTTPHeader
+
+class TestHTTPHeader(unittest.TestCase):
+ """HTTPHeader unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `HTTPHeader`
+ """
+ model = HTTPHeader()
+ if include_optional:
+ return HTTPHeader(
+ key = '',
+ value = ''
+ )
+ else:
+ return HTTPHeader(
+ )
+ """
+
+ def testHTTPHeader(self):
+ """Test HTTPHeader"""
+ # 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_http_health_check.py b/koyeb/api/test/test_http_health_check.py
new file mode 100644
index 00000000..4aaa6398
--- /dev/null
+++ b/koyeb/api/test/test_http_health_check.py
@@ -0,0 +1,58 @@
+# 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.http_health_check import HTTPHealthCheck
+
+class TestHTTPHealthCheck(unittest.TestCase):
+ """HTTPHealthCheck unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `HTTPHealthCheck`
+ """
+ model = HTTPHealthCheck()
+ if include_optional:
+ return HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ]
+ )
+ else:
+ return HTTPHealthCheck(
+ )
+ """
+
+ def testHTTPHealthCheck(self):
+ """Test HTTPHealthCheck"""
+ # 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_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/api/test/test_instance_availability.py b/koyeb/api/test/test_instance_availability.py
new file mode 100644
index 00000000..acfedae9
--- /dev/null
+++ b/koyeb/api/test/test_instance_availability.py
@@ -0,0 +1,55 @@
+# 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_availability import InstanceAvailability
+
+class TestInstanceAvailability(unittest.TestCase):
+ """InstanceAvailability unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `InstanceAvailability`
+ """
+ model = InstanceAvailability()
+ if include_optional:
+ return InstanceAvailability(
+ regions = {
+ 'key' : koyeb.api.models.region_availability.RegionAvailability(
+ availability = 'UNKNOWN', )
+ },
+ availability = 'UNKNOWN'
+ )
+ else:
+ return InstanceAvailability(
+ )
+ """
+
+ def testInstanceAvailability(self):
+ """Test InstanceAvailability"""
+ # 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_instance_event.py b/koyeb/api/test/test_instance_event.py
new file mode 100644
index 00000000..90d2546d
--- /dev/null
+++ b/koyeb/api/test/test_instance_event.py
@@ -0,0 +1,57 @@
+# 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_event import InstanceEvent
+
+class TestInstanceEvent(unittest.TestCase):
+ """InstanceEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `InstanceEvent`
+ """
+ model = InstanceEvent()
+ if include_optional:
+ return 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 = None
+ )
+ else:
+ return InstanceEvent(
+ )
+ """
+
+ def testInstanceEvent(self):
+ """Test InstanceEvent"""
+ # 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_instance_list_item.py b/koyeb/api/test/test_instance_list_item.py
new file mode 100644
index 00000000..19c34fd9
--- /dev/null
+++ b/koyeb/api/test/test_instance_list_item.py
@@ -0,0 +1,67 @@
+# 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_list_item import InstanceListItem
+
+class TestInstanceListItem(unittest.TestCase):
+ """InstanceListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `InstanceListItem`
+ """
+ model = InstanceListItem()
+ if include_optional:
+ return 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'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ regional_deployment_id = '',
+ allocation_id = '',
+ type = '',
+ replica_index = 56,
+ region = '',
+ datacenter = '',
+ status = 'ALLOCATING',
+ messages = [
+ ''
+ ],
+ xyz_deployment_id = ''
+ )
+ else:
+ return InstanceListItem(
+ )
+ """
+
+ def testInstanceListItem(self):
+ """Test InstanceListItem"""
+ # 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_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/api/test/test_instance_usage.py b/koyeb/api/test/test_instance_usage.py
new file mode 100644
index 00000000..b815bb1f
--- /dev/null
+++ b/koyeb/api/test/test_instance_usage.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
+
+
+import unittest
+
+from koyeb.api.models.instance_usage import InstanceUsage
+
+class TestInstanceUsage(unittest.TestCase):
+ """InstanceUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `InstanceUsage`
+ """
+ model = InstanceUsage()
+ if include_optional:
+ return InstanceUsage(
+ duration_seconds = 56
+ )
+ else:
+ return InstanceUsage(
+ )
+ """
+
+ def testInstanceUsage(self):
+ """Test InstanceUsage"""
+ # 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_instances_api.py b/koyeb/api/test/test_instances_api.py
new file mode 100644
index 00000000..87bd71fd
--- /dev/null
+++ b/koyeb/api/test/test_instances_api.py
@@ -0,0 +1,59 @@
+# 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.instances_api import InstancesApi
+
+
+class TestInstancesApi(unittest.TestCase):
+ """InstancesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = InstancesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_exec_command(self) -> None:
+ """Test case for exec_command
+
+ Exec Command
+ """
+ pass
+
+ def test_get_instance(self) -> None:
+ """Test case for get_instance
+
+ Get Instance
+ """
+ pass
+
+ def test_list_instance_events(self) -> None:
+ """Test case for list_instance_events
+
+ List Instance events
+ """
+ pass
+
+ def test_list_instances(self) -> None:
+ """Test case for list_instances
+
+ List Instances
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_instances_summary.py b/koyeb/api/test/test_instances_summary.py
new file mode 100644
index 00000000..f10e7802
--- /dev/null
+++ b/koyeb/api/test/test_instances_summary.py
@@ -0,0 +1,54 @@
+# 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.instances_summary import InstancesSummary
+
+class TestInstancesSummary(unittest.TestCase):
+ """InstancesSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `InstancesSummary`
+ """
+ model = InstancesSummary()
+ if include_optional:
+ return InstancesSummary(
+ total = '',
+ by_type = {
+ 'key' : ''
+ }
+ )
+ else:
+ return InstancesSummary(
+ )
+ """
+
+ def testInstancesSummary(self):
+ """Test InstancesSummary"""
+ # 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_intercom_api.py b/koyeb/api/test/test_intercom_api.py
new file mode 100644
index 00000000..e6d679cd
--- /dev/null
+++ b/koyeb/api/test/test_intercom_api.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
+
+
+import unittest
+
+from koyeb.api.api.intercom_api import IntercomApi
+
+
+class TestIntercomApi(unittest.TestCase):
+ """IntercomApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = IntercomApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_intercom_profile(self) -> None:
+ """Test case for get_intercom_profile
+
+ Get intercom profile
+ """
+ pass
+
+
+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/api/test/test_invite_user_request.py b/koyeb/api/test/test_invite_user_request.py
new file mode 100644
index 00000000..5c9dc090
--- /dev/null
+++ b/koyeb/api/test/test_invite_user_request.py
@@ -0,0 +1,53 @@
+# 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.invite_user_request import InviteUserRequest
+
+class TestInviteUserRequest(unittest.TestCase):
+ """InviteUserRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `InviteUserRequest`
+ """
+ model = InviteUserRequest()
+ if include_optional:
+ return InviteUserRequest(
+ email = '',
+ name = '',
+ message = ''
+ )
+ else:
+ return InviteUserRequest(
+ )
+ """
+
+ def testInviteUserRequest(self):
+ """Test InviteUserRequest"""
+ # 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_kgitproxy_branch.py b/koyeb/api/test/test_kgitproxy_branch.py
new file mode 100644
index 00000000..86d3822d
--- /dev/null
+++ b/koyeb/api/test/test_kgitproxy_branch.py
@@ -0,0 +1,57 @@
+# 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_branch import KgitproxyBranch
+
+class TestKgitproxyBranch(unittest.TestCase):
+ """KgitproxyBranch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KgitproxyBranch`
+ """
+ model = KgitproxyBranch()
+ if include_optional:
+ return KgitproxyBranch(
+ id = '',
+ organization_id = '',
+ repository_id = '',
+ name = '',
+ is_default = True,
+ is_protected = True,
+ provider = 'INVALID_PROVIDER'
+ )
+ else:
+ return KgitproxyBranch(
+ )
+ """
+
+ def testKgitproxyBranch(self):
+ """Test KgitproxyBranch"""
+ # 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_kgitproxy_git_hub_repository.py b/koyeb/api/test/test_kgitproxy_git_hub_repository.py
new file mode 100644
index 00000000..675196ef
--- /dev/null
+++ b/koyeb/api/test/test_kgitproxy_git_hub_repository.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
+
+
+import unittest
+
+from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository
+
+class TestKgitproxyGitHubRepository(unittest.TestCase):
+ """KgitproxyGitHubRepository unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KgitproxyGitHubRepository`
+ """
+ model = KgitproxyGitHubRepository()
+ if include_optional:
+ return KgitproxyGitHubRepository(
+ github_id = ''
+ )
+ else:
+ return KgitproxyGitHubRepository(
+ )
+ """
+
+ def testKgitproxyGitHubRepository(self):
+ """Test KgitproxyGitHubRepository"""
+ # 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_kgitproxy_github_installation_status.py b/koyeb/api/test/test_kgitproxy_github_installation_status.py
new file mode 100644
index 00000000..7e28cf25
--- /dev/null
+++ b/koyeb/api/test/test_kgitproxy_github_installation_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_github_installation_status import KgitproxyGithubInstallationStatus
+
+class TestKgitproxyGithubInstallationStatus(unittest.TestCase):
+ """KgitproxyGithubInstallationStatus unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testKgitproxyGithubInstallationStatus(self):
+ """Test KgitproxyGithubInstallationStatus"""
+ # inst = KgitproxyGithubInstallationStatus()
+
+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/api/test/test_kgitproxy_list_branches_reply.py b/koyeb/api/test/test_kgitproxy_list_branches_reply.py
new file mode 100644
index 00000000..9c0a9223
--- /dev/null
+++ b/koyeb/api/test/test_kgitproxy_list_branches_reply.py
@@ -0,0 +1,63 @@
+# 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_list_branches_reply import KgitproxyListBranchesReply
+
+class TestKgitproxyListBranchesReply(unittest.TestCase):
+ """KgitproxyListBranchesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KgitproxyListBranchesReply`
+ """
+ model = KgitproxyListBranchesReply()
+ if include_optional:
+ return KgitproxyListBranchesReply(
+ branches = [
+ koyeb.api.models.kgitproxy/branch.kgitproxy.Branch(
+ id = '',
+ organization_id = '',
+ repository_id = '',
+ name = '',
+ is_default = True,
+ is_protected = True,
+ provider = 'INVALID_PROVIDER', )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return KgitproxyListBranchesReply(
+ )
+ """
+
+ def testKgitproxyListBranchesReply(self):
+ """Test KgitproxyListBranchesReply"""
+ # 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_kgitproxy_list_repositories_reply.py b/koyeb/api/test/test_kgitproxy_list_repositories_reply.py
new file mode 100644
index 00000000..878b4750
--- /dev/null
+++ b/koyeb/api/test/test_kgitproxy_list_repositories_reply.py
@@ -0,0 +1,68 @@
+# 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_list_repositories_reply import KgitproxyListRepositoriesReply
+
+class TestKgitproxyListRepositoriesReply(unittest.TestCase):
+ """KgitproxyListRepositoriesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KgitproxyListRepositoriesReply`
+ """
+ model = KgitproxyListRepositoriesReply()
+ if include_optional:
+ return KgitproxyListRepositoriesReply(
+ repositories = [
+ koyeb.api.models.kgitproxy/repository.kgitproxy.Repository(
+ id = '',
+ organization_id = '',
+ name = '',
+ url = '',
+ description = '',
+ is_private = True,
+ is_disabled = True,
+ 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.api.models.kgitproxy/git_hub_repository.kgitproxy.GitHubRepository(
+ github_id = '', ), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return KgitproxyListRepositoriesReply(
+ )
+ """
+
+ def testKgitproxyListRepositoriesReply(self):
+ """Test KgitproxyListRepositoriesReply"""
+ # 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_kgitproxy_repository.py b/koyeb/api/test/test_kgitproxy_repository.py
new file mode 100644
index 00000000..152f610e
--- /dev/null
+++ b/koyeb/api/test/test_kgitproxy_repository.py
@@ -0,0 +1,62 @@
+# 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 import KgitproxyRepository
+
+class TestKgitproxyRepository(unittest.TestCase):
+ """KgitproxyRepository unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KgitproxyRepository`
+ """
+ model = KgitproxyRepository()
+ if include_optional:
+ return KgitproxyRepository(
+ id = '',
+ organization_id = '',
+ name = '',
+ url = '',
+ description = '',
+ is_private = True,
+ is_disabled = True,
+ 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.api.models.kgitproxy/git_hub_repository.kgitproxy.GitHubRepository(
+ github_id = '', )
+ )
+ else:
+ return KgitproxyRepository(
+ )
+ """
+
+ def testKgitproxyRepository(self):
+ """Test KgitproxyRepository"""
+ # 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_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/api/test/test_ksearch_app.py b/koyeb/api/test/test_ksearch_app.py
new file mode 100644
index 00000000..326aab6d
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_app.py
@@ -0,0 +1,53 @@
+# 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.ksearch_app import KsearchApp
+
+class TestKsearchApp(unittest.TestCase):
+ """KsearchApp unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchApp`
+ """
+ model = KsearchApp()
+ if include_optional:
+ return KsearchApp(
+ id = '',
+ organization_id = '',
+ name = ''
+ )
+ else:
+ return KsearchApp(
+ )
+ """
+
+ def testKsearchApp(self):
+ """Test KsearchApp"""
+ # 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_ksearch_global_deployment.py b/koyeb/api/test/test_ksearch_global_deployment.py
new file mode 100644
index 00000000..04284ca3
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_global_deployment.py
@@ -0,0 +1,54 @@
+# 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.ksearch_global_deployment import KsearchGlobalDeployment
+
+class TestKsearchGlobalDeployment(unittest.TestCase):
+ """KsearchGlobalDeployment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchGlobalDeployment`
+ """
+ model = KsearchGlobalDeployment()
+ if include_optional:
+ return KsearchGlobalDeployment(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ service_id = ''
+ )
+ else:
+ return KsearchGlobalDeployment(
+ )
+ """
+
+ def testKsearchGlobalDeployment(self):
+ """Test KsearchGlobalDeployment"""
+ # 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_ksearch_instance.py b/koyeb/api/test/test_ksearch_instance.py
new file mode 100644
index 00000000..486d2e38
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_instance.py
@@ -0,0 +1,55 @@
+# 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.ksearch_instance import KsearchInstance
+
+class TestKsearchInstance(unittest.TestCase):
+ """KsearchInstance unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchInstance`
+ """
+ model = KsearchInstance()
+ if include_optional:
+ return KsearchInstance(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ allocation_id = ''
+ )
+ else:
+ return KsearchInstance(
+ )
+ """
+
+ def testKsearchInstance(self):
+ """Test KsearchInstance"""
+ # 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_ksearch_organization.py b/koyeb/api/test/test_ksearch_organization.py
new file mode 100644
index 00000000..7f2a744f
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_organization.py
@@ -0,0 +1,52 @@
+# 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.ksearch_organization import KsearchOrganization
+
+class TestKsearchOrganization(unittest.TestCase):
+ """KsearchOrganization unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchOrganization`
+ """
+ model = KsearchOrganization()
+ if include_optional:
+ return KsearchOrganization(
+ id = '',
+ name = ''
+ )
+ else:
+ return KsearchOrganization(
+ )
+ """
+
+ def testKsearchOrganization(self):
+ """Test KsearchOrganization"""
+ # 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_ksearch_regional_deployment.py b/koyeb/api/test/test_ksearch_regional_deployment.py
new file mode 100644
index 00000000..e12bd761
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_regional_deployment.py
@@ -0,0 +1,55 @@
+# 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.ksearch_regional_deployment import KsearchRegionalDeployment
+
+class TestKsearchRegionalDeployment(unittest.TestCase):
+ """KsearchRegionalDeployment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchRegionalDeployment`
+ """
+ model = KsearchRegionalDeployment()
+ if include_optional:
+ return KsearchRegionalDeployment(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ region = ''
+ )
+ else:
+ return KsearchRegionalDeployment(
+ )
+ """
+
+ def testKsearchRegionalDeployment(self):
+ """Test KsearchRegionalDeployment"""
+ # 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_ksearch_search_reply.py b/koyeb/api/test/test_ksearch_search_reply.py
new file mode 100644
index 00000000..aa49a3d2
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_search_reply.py
@@ -0,0 +1,98 @@
+# 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.ksearch_search_reply import KsearchSearchReply
+
+class TestKsearchSearchReply(unittest.TestCase):
+ """KsearchSearchReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchSearchReply`
+ """
+ model = KsearchSearchReply()
+ if include_optional:
+ return KsearchSearchReply(
+ organizations = [
+ koyeb.api.models.ksearch/organization.ksearch.Organization(
+ id = '',
+ name = '', )
+ ],
+ users = [
+ koyeb.api.models.ksearch/user.ksearch.User(
+ id = '',
+ email = '',
+ name = '',
+ github_user = '', )
+ ],
+ apps = [
+ koyeb.api.models.ksearch/app.ksearch.App(
+ id = '',
+ organization_id = '',
+ name = '', )
+ ],
+ services = [
+ koyeb.api.models.ksearch/service.ksearch.Service(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ name = '', )
+ ],
+ global_deployments = [
+ koyeb.api.models.ksearch/global_deployment.ksearch.GlobalDeployment(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ service_id = '', )
+ ],
+ regional_deployments = [
+ koyeb.api.models.ksearch/regional_deployment.ksearch.RegionalDeployment(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ region = '', )
+ ],
+ instances = [
+ koyeb.api.models.ksearch/instance.ksearch.Instance(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ allocation_id = '', )
+ ]
+ )
+ else:
+ return KsearchSearchReply(
+ )
+ """
+
+ def testKsearchSearchReply(self):
+ """Test KsearchSearchReply"""
+ # 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_ksearch_service.py b/koyeb/api/test/test_ksearch_service.py
new file mode 100644
index 00000000..94cde172
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_service.py
@@ -0,0 +1,54 @@
+# 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.ksearch_service import KsearchService
+
+class TestKsearchService(unittest.TestCase):
+ """KsearchService unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchService`
+ """
+ model = KsearchService()
+ if include_optional:
+ return KsearchService(
+ id = '',
+ organization_id = '',
+ app_id = '',
+ name = ''
+ )
+ else:
+ return KsearchService(
+ )
+ """
+
+ def testKsearchService(self):
+ """Test KsearchService"""
+ # 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_ksearch_user.py b/koyeb/api/test/test_ksearch_user.py
new file mode 100644
index 00000000..94edbf99
--- /dev/null
+++ b/koyeb/api/test/test_ksearch_user.py
@@ -0,0 +1,54 @@
+# 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.ksearch_user import KsearchUser
+
+class TestKsearchUser(unittest.TestCase):
+ """KsearchUser unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `KsearchUser`
+ """
+ model = KsearchUser()
+ if include_optional:
+ return KsearchUser(
+ id = '',
+ email = '',
+ name = '',
+ github_user = ''
+ )
+ else:
+ return KsearchUser(
+ )
+ """
+
+ def testKsearchUser(self):
+ """Test KsearchUser"""
+ # 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_list_app_events_reply.py b/koyeb/api/test/test_list_app_events_reply.py
new file mode 100644
index 00000000..f6a0a3d1
--- /dev/null
+++ b/koyeb/api/test/test_list_app_events_reply.py
@@ -0,0 +1,64 @@
+# 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.list_app_events_reply import ListAppEventsReply
+
+class TestListAppEventsReply(unittest.TestCase):
+ """ListAppEventsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListAppEventsReply`
+ """
+ model = ListAppEventsReply()
+ if include_optional:
+ return ListAppEventsReply(
+ events = [
+ 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.api.models.metadata.metadata(), )
+ ],
+ limit = 56,
+ offset = 56,
+ order = '',
+ has_next = True
+ )
+ else:
+ return ListAppEventsReply(
+ )
+ """
+
+ def testListAppEventsReply(self):
+ """Test ListAppEventsReply"""
+ # 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_list_apps_reply.py b/koyeb/api/test/test_list_apps_reply.py
new file mode 100644
index 00000000..95f9311c
--- /dev/null
+++ b/koyeb/api/test/test_list_apps_reply.py
@@ -0,0 +1,87 @@
+# 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.list_apps_reply import ListAppsReply
+
+class TestListAppsReply(unittest.TestCase):
+ """ListAppsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListAppsReply`
+ """
+ model = ListAppsReply()
+ if include_optional:
+ return ListAppsReply(
+ apps = [
+ 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.api.models.domain.Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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',
+ messages = [
+ ''
+ ], )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56,
+ has_next = True
+ )
+ else:
+ return ListAppsReply(
+ )
+ """
+
+ def testListAppsReply(self):
+ """Test ListAppsReply"""
+ # 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_list_catalog_instances_reply.py b/koyeb/api/test/test_list_catalog_instances_reply.py
new file mode 100644
index 00000000..e3ca5e6b
--- /dev/null
+++ b/koyeb/api/test/test_list_catalog_instances_reply.py
@@ -0,0 +1,87 @@
+# 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.list_catalog_instances_reply import ListCatalogInstancesReply
+
+class TestListCatalogInstancesReply(unittest.TestCase):
+ """ListCatalogInstancesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListCatalogInstancesReply`
+ """
+ model = ListCatalogInstancesReply()
+ if include_optional:
+ return ListCatalogInstancesReply(
+ instances = [
+ koyeb.api.models.catalog_instance_list_item.CatalogInstanceListItem(
+ id = '',
+ description = '',
+ vcpu = 56,
+ memory = '',
+ disk = '',
+ price_per_second = '',
+ price_hourly = '',
+ price_monthly = '',
+ regions = [
+ ''
+ ],
+ status = '',
+ require_plan = [
+ ''
+ ],
+ vcpu_shares = 1.337,
+ display_name = '',
+ aliases = [
+ ''
+ ],
+ type = '',
+ gpu = koyeb.api.models.catalog_gpu_details.CatalogGPUDetails(
+ count = 56,
+ brand = '',
+ memory = '',
+ name = '', ),
+ service_types = [
+ ''
+ ],
+ volumes_enabled = True,
+ light_sleep_enabled = True, )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListCatalogInstancesReply(
+ )
+ """
+
+ def testListCatalogInstancesReply(self):
+ """Test ListCatalogInstancesReply"""
+ # 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_list_credentials_reply.py b/koyeb/api/test/test_list_credentials_reply.py
new file mode 100644
index 00000000..4ccbc213
--- /dev/null
+++ b/koyeb/api/test/test_list_credentials_reply.py
@@ -0,0 +1,66 @@
+# 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.list_credentials_reply import ListCredentialsReply
+
+class TestListCredentialsReply(unittest.TestCase):
+ """ListCredentialsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListCredentialsReply`
+ """
+ model = ListCredentialsReply()
+ if include_optional:
+ return ListCredentialsReply(
+ credentials = [
+ koyeb.api.models.credential.Credential(
+ id = '',
+ type = 'INVALID',
+ name = '',
+ token = '',
+ description = '',
+ user_id = '',
+ 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'),
+ expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListCredentialsReply(
+ )
+ """
+
+ def testListCredentialsReply(self):
+ """Test ListCredentialsReply"""
+ # 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_list_datacenters_reply.py b/koyeb/api/test/test_list_datacenters_reply.py
new file mode 100644
index 00000000..249131b4
--- /dev/null
+++ b/koyeb/api/test/test_list_datacenters_reply.py
@@ -0,0 +1,63 @@
+# 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.list_datacenters_reply import ListDatacentersReply
+
+class TestListDatacentersReply(unittest.TestCase):
+ """ListDatacentersReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListDatacentersReply`
+ """
+ model = ListDatacentersReply()
+ if include_optional:
+ return ListDatacentersReply(
+ datacenters = [
+ koyeb.api.models.datacenter_list_item.DatacenterListItem(
+ id = '',
+ region_id = '',
+ domain = '',
+ coordinates = [
+ ''
+ ],
+ use_gpu = True,
+ regions = [
+ ''
+ ], )
+ ]
+ )
+ else:
+ return ListDatacentersReply(
+ )
+ """
+
+ def testListDatacentersReply(self):
+ """Test ListDatacentersReply"""
+ # 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_list_deployment_events_reply.py b/koyeb/api/test/test_list_deployment_events_reply.py
new file mode 100644
index 00000000..19707958
--- /dev/null
+++ b/koyeb/api/test/test_list_deployment_events_reply.py
@@ -0,0 +1,64 @@
+# 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.list_deployment_events_reply import ListDeploymentEventsReply
+
+class TestListDeploymentEventsReply(unittest.TestCase):
+ """ListDeploymentEventsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListDeploymentEventsReply`
+ """
+ model = ListDeploymentEventsReply()
+ if include_optional:
+ return ListDeploymentEventsReply(
+ events = [
+ 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.api.models.metadata.metadata(), )
+ ],
+ limit = 56,
+ offset = 56,
+ order = '',
+ has_next = True
+ )
+ else:
+ return ListDeploymentEventsReply(
+ )
+ """
+
+ def testListDeploymentEventsReply(self):
+ """Test ListDeploymentEventsReply"""
+ # 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_list_deployments_reply.py b/koyeb/api/test/test_list_deployments_reply.py
new file mode 100644
index 00000000..973464d4
--- /dev/null
+++ b/koyeb/api/test/test_list_deployments_reply.py
@@ -0,0 +1,226 @@
+# 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.list_deployments_reply import ListDeploymentsReply
+
+class TestListDeploymentsReply(unittest.TestCase):
+ """ListDeploymentsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListDeploymentsReply`
+ """
+ model = ListDeploymentsReply()
+ if include_optional:
+ return ListDeploymentsReply(
+ deployments = [
+ 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'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ], ),
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56, )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ), ),
+ messages = [
+ ''
+ ],
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo(),
+ version = '',
+ deployment_group = '', )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56,
+ has_next = True
+ )
+ else:
+ return ListDeploymentsReply(
+ )
+ """
+
+ def testListDeploymentsReply(self):
+ """Test ListDeploymentsReply"""
+ # 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_list_domains_reply.py b/koyeb/api/test/test_list_domains_reply.py
new file mode 100644
index 00000000..5c4e67ef
--- /dev/null
+++ b/koyeb/api/test/test_list_domains_reply.py
@@ -0,0 +1,74 @@
+# 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.list_domains_reply import ListDomainsReply
+
+class TestListDomainsReply(unittest.TestCase):
+ """ListDomainsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListDomainsReply`
+ """
+ model = ListDomainsReply()
+ if include_optional:
+ return ListDomainsReply(
+ domains = [
+ koyeb.api.models.domain.Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListDomainsReply(
+ )
+ """
+
+ def testListDomainsReply(self):
+ """Test ListDomainsReply"""
+ # 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_list_instance_events_reply.py b/koyeb/api/test/test_list_instance_events_reply.py
new file mode 100644
index 00000000..e6e328aa
--- /dev/null
+++ b/koyeb/api/test/test_list_instance_events_reply.py
@@ -0,0 +1,64 @@
+# 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.list_instance_events_reply import ListInstanceEventsReply
+
+class TestListInstanceEventsReply(unittest.TestCase):
+ """ListInstanceEventsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListInstanceEventsReply`
+ """
+ model = ListInstanceEventsReply()
+ if include_optional:
+ return ListInstanceEventsReply(
+ events = [
+ 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.api.models.metadata.metadata(), )
+ ],
+ limit = 56,
+ offset = 56,
+ order = '',
+ has_next = True
+ )
+ else:
+ return ListInstanceEventsReply(
+ )
+ """
+
+ def testListInstanceEventsReply(self):
+ """Test ListInstanceEventsReply"""
+ # 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_list_instances_reply.py b/koyeb/api/test/test_list_instances_reply.py
new file mode 100644
index 00000000..54bb3532
--- /dev/null
+++ b/koyeb/api/test/test_list_instances_reply.py
@@ -0,0 +1,74 @@
+# 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.list_instances_reply import ListInstancesReply
+
+class TestListInstancesReply(unittest.TestCase):
+ """ListInstancesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListInstancesReply`
+ """
+ model = ListInstancesReply()
+ if include_optional:
+ return ListInstancesReply(
+ instances = [
+ 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'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ regional_deployment_id = '',
+ allocation_id = '',
+ type = '',
+ replica_index = 56,
+ region = '',
+ datacenter = '',
+ status = 'ALLOCATING',
+ messages = [
+ ''
+ ],
+ xyz_deployment_id = '', )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56,
+ order = ''
+ )
+ else:
+ return ListInstancesReply(
+ )
+ """
+
+ def testListInstancesReply(self):
+ """Test ListInstancesReply"""
+ # 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_list_organization_invitations_reply.py b/koyeb/api/test/test_list_organization_invitations_reply.py
new file mode 100644
index 00000000..5109afd4
--- /dev/null
+++ b/koyeb/api/test/test_list_organization_invitations_reply.py
@@ -0,0 +1,82 @@
+# 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.list_organization_invitations_reply import ListOrganizationInvitationsReply
+
+class TestListOrganizationInvitationsReply(unittest.TestCase):
+ """ListOrganizationInvitationsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListOrganizationInvitationsReply`
+ """
+ model = ListOrganizationInvitationsReply()
+ if include_optional:
+ return ListOrganizationInvitationsReply(
+ invitations = [
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListOrganizationInvitationsReply(
+ )
+ """
+
+ def testListOrganizationInvitationsReply(self):
+ """Test ListOrganizationInvitationsReply"""
+ # 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_list_organization_members_reply.py b/koyeb/api/test/test_list_organization_members_reply.py
new file mode 100644
index 00000000..142909f6
--- /dev/null
+++ b/koyeb/api/test/test_list_organization_members_reply.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.list_organization_members_reply import ListOrganizationMembersReply
+
+class TestListOrganizationMembersReply(unittest.TestCase):
+ """ListOrganizationMembersReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListOrganizationMembersReply`
+ """
+ model = ListOrganizationMembersReply()
+ if include_optional:
+ return ListOrganizationMembersReply(
+ members = [
+ 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.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ organization = koyeb.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListOrganizationMembersReply(
+ )
+ """
+
+ def testListOrganizationMembersReply(self):
+ """Test ListOrganizationMembersReply"""
+ # 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_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/api/test/test_list_persistent_volume_events_reply.py b/koyeb/api/test/test_list_persistent_volume_events_reply.py
new file mode 100644
index 00000000..f2925991
--- /dev/null
+++ b/koyeb/api/test/test_list_persistent_volume_events_reply.py
@@ -0,0 +1,64 @@
+# 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.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply
+
+class TestListPersistentVolumeEventsReply(unittest.TestCase):
+ """ListPersistentVolumeEventsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListPersistentVolumeEventsReply`
+ """
+ model = ListPersistentVolumeEventsReply()
+ if include_optional:
+ return ListPersistentVolumeEventsReply(
+ events = [
+ 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.api.models.metadata.metadata(), )
+ ],
+ limit = 56,
+ offset = 56,
+ order = '',
+ has_next = True
+ )
+ else:
+ return ListPersistentVolumeEventsReply(
+ )
+ """
+
+ def testListPersistentVolumeEventsReply(self):
+ """Test ListPersistentVolumeEventsReply"""
+ # 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_list_persistent_volumes_reply.py b/koyeb/api/test/test_list_persistent_volumes_reply.py
new file mode 100644
index 00000000..ef08b876
--- /dev/null
+++ b/koyeb/api/test/test_list_persistent_volumes_reply.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.list_persistent_volumes_reply import ListPersistentVolumesReply
+
+class TestListPersistentVolumesReply(unittest.TestCase):
+ """ListPersistentVolumesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListPersistentVolumesReply`
+ """
+ model = ListPersistentVolumesReply()
+ if include_optional:
+ return ListPersistentVolumesReply(
+ volumes = [
+ 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 = '',
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ service_id = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ cur_size = 56,
+ status = 'PERSISTENT_VOLUME_STATUS_INVALID',
+ backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
+ ],
+ limit = 56,
+ offset = 56,
+ has_next = True
+ )
+ else:
+ return ListPersistentVolumesReply(
+ )
+ """
+
+ def testListPersistentVolumesReply(self):
+ """Test ListPersistentVolumesReply"""
+ # 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_list_regional_deployment_events_reply.py b/koyeb/api/test/test_list_regional_deployment_events_reply.py
new file mode 100644
index 00000000..cfcffa46
--- /dev/null
+++ b/koyeb/api/test/test_list_regional_deployment_events_reply.py
@@ -0,0 +1,64 @@
+# 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.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply
+
+class TestListRegionalDeploymentEventsReply(unittest.TestCase):
+ """ListRegionalDeploymentEventsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListRegionalDeploymentEventsReply`
+ """
+ model = ListRegionalDeploymentEventsReply()
+ if include_optional:
+ return ListRegionalDeploymentEventsReply(
+ events = [
+ 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.api.models.metadata.metadata(), )
+ ],
+ limit = 56,
+ offset = 56,
+ order = '',
+ has_next = True
+ )
+ else:
+ return ListRegionalDeploymentEventsReply(
+ )
+ """
+
+ def testListRegionalDeploymentEventsReply(self):
+ """Test ListRegionalDeploymentEventsReply"""
+ # 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_list_regional_deployments_reply.py b/koyeb/api/test/test_list_regional_deployments_reply.py
new file mode 100644
index 00000000..a0eb4e92
--- /dev/null
+++ b/koyeb/api/test/test_list_regional_deployments_reply.py
@@ -0,0 +1,166 @@
+# 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.list_regional_deployments_reply import ListRegionalDeploymentsReply
+
+class TestListRegionalDeploymentsReply(unittest.TestCase):
+ """ListRegionalDeploymentsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListRegionalDeploymentsReply`
+ """
+ model = ListRegionalDeploymentsReply()
+ if include_optional:
+ return ListRegionalDeploymentsReply(
+ regional_deployments = [
+ 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'),
+ region = '',
+ status = 'PENDING',
+ messages = [
+ ''
+ ],
+ definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.route.Route(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.port.Port(
+ port = 56,
+ protocol = '', )
+ ],
+ env = [
+ koyeb.api.models.env.Env(
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ region = '',
+ scaling = koyeb.api.models.scaling.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, ), )
+ ], ),
+ instance_type = '',
+ deployment_group = '',
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56,
+ has_next = True
+ )
+ else:
+ return ListRegionalDeploymentsReply(
+ )
+ """
+
+ def testListRegionalDeploymentsReply(self):
+ """Test ListRegionalDeploymentsReply"""
+ # 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_list_regions_reply.py b/koyeb/api/test/test_list_regions_reply.py
new file mode 100644
index 00000000..5790e50c
--- /dev/null
+++ b/koyeb/api/test/test_list_regions_reply.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.list_regions_reply import ListRegionsReply
+
+class TestListRegionsReply(unittest.TestCase):
+ """ListRegionsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListRegionsReply`
+ """
+ model = ListRegionsReply()
+ if include_optional:
+ return ListRegionsReply(
+ regions = [
+ koyeb.api.models.region_list_item.RegionListItem(
+ id = '',
+ name = '',
+ coordinates = [
+ ''
+ ],
+ status = '',
+ instances = [
+ ''
+ ],
+ datacenters = [
+ ''
+ ],
+ volumes_enabled = True,
+ scope = '', )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListRegionsReply(
+ )
+ """
+
+ def testListRegionsReply(self):
+ """Test ListRegionsReply"""
+ # 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_list_secrets_reply.py b/koyeb/api/test/test_list_secrets_reply.py
new file mode 100644
index 00000000..a7f7e90c
--- /dev/null
+++ b/koyeb/api/test/test_list_secrets_reply.py
@@ -0,0 +1,89 @@
+# 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.list_secrets_reply import ListSecretsReply
+
+class TestListSecretsReply(unittest.TestCase):
+ """ListSecretsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListSecretsReply`
+ """
+ model = ListSecretsReply()
+ if include_optional:
+ return ListSecretsReply(
+ secrets = [
+ koyeb.api.models.secret.Secret(
+ id = '',
+ name = '',
+ organization_id = '',
+ type = 'SIMPLE',
+ 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.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = '', ),
+ digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
+ username = '',
+ password = '', ),
+ github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = '', ),
+ azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = '', ),
+ database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword(
+ username = '',
+ password = '', ), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListSecretsReply(
+ )
+ """
+
+ def testListSecretsReply(self):
+ """Test ListSecretsReply"""
+ # 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_list_service_events_reply.py b/koyeb/api/test/test_list_service_events_reply.py
new file mode 100644
index 00000000..071eb9cf
--- /dev/null
+++ b/koyeb/api/test/test_list_service_events_reply.py
@@ -0,0 +1,64 @@
+# 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.list_service_events_reply import ListServiceEventsReply
+
+class TestListServiceEventsReply(unittest.TestCase):
+ """ListServiceEventsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListServiceEventsReply`
+ """
+ model = ListServiceEventsReply()
+ if include_optional:
+ return ListServiceEventsReply(
+ events = [
+ 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.api.models.metadata.metadata(), )
+ ],
+ limit = 56,
+ offset = 56,
+ order = '',
+ has_next = True
+ )
+ else:
+ return ListServiceEventsReply(
+ )
+ """
+
+ def testListServiceEventsReply(self):
+ """Test ListServiceEventsReply"""
+ # 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_list_services_reply.py b/koyeb/api/test/test_list_services_reply.py
new file mode 100644
index 00000000..0b3762af
--- /dev/null
+++ b/koyeb/api/test/test_list_services_reply.py
@@ -0,0 +1,81 @@
+# 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.list_services_reply import ListServicesReply
+
+class TestListServicesReply(unittest.TestCase):
+ """ListServicesReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListServicesReply`
+ """
+ model = ListServicesReply()
+ if include_optional:
+ return ListServicesReply(
+ services = [
+ koyeb.api.models.service_list_item.ServiceListItem(
+ id = '',
+ name = '',
+ type = 'INVALID_TYPE',
+ organization_id = '',
+ app_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'),
+ status = 'STARTING',
+ messages = [
+ ''
+ ],
+ version = '',
+ state = koyeb.api.models.service_state.ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(), ),
+ active_deployment_id = '',
+ latest_deployment_id = '', )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56,
+ has_next = True
+ )
+ else:
+ return ListServicesReply(
+ )
+ """
+
+ def testListServicesReply(self):
+ """Test ListServicesReply"""
+ # 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_list_snapshots_reply.py b/koyeb/api/test/test_list_snapshots_reply.py
new file mode 100644
index 00000000..4027df9d
--- /dev/null
+++ b/koyeb/api/test/test_list_snapshots_reply.py
@@ -0,0 +1,67 @@
+# 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.list_snapshots_reply import ListSnapshotsReply
+
+class TestListSnapshotsReply(unittest.TestCase):
+ """ListSnapshotsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListSnapshotsReply`
+ """
+ model = ListSnapshotsReply()
+ if include_optional:
+ return ListSnapshotsReply(
+ snapshots = [
+ koyeb.api.models.snapshot.Snapshot(
+ id = '',
+ name = '',
+ size = 56,
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ parent_volume_id = '',
+ region = '',
+ status = 'SNAPSHOT_STATUS_INVALID',
+ type = 'SNAPSHOT_TYPE_INVALID', )
+ ],
+ limit = 56,
+ offset = 56,
+ has_next = True
+ )
+ else:
+ return ListSnapshotsReply(
+ )
+ """
+
+ def testListSnapshotsReply(self):
+ """Test ListSnapshotsReply"""
+ # 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_list_usage_reply.py b/koyeb/api/test/test_list_usage_reply.py
new file mode 100644
index 00000000..8b2a06bf
--- /dev/null
+++ b/koyeb/api/test/test_list_usage_reply.py
@@ -0,0 +1,59 @@
+# 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.list_usage_reply import ListUsageReply
+
+class TestListUsageReply(unittest.TestCase):
+ """ListUsageReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListUsageReply`
+ """
+ model = ListUsageReply()
+ if include_optional:
+ return ListUsageReply(
+ usage = koyeb.api.models.catalog_usage.CatalogUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_availability.InstanceAvailability(
+ regions = {
+ 'key' : koyeb.api.models.region_availability.RegionAvailability(
+ availability = 'UNKNOWN', )
+ },
+ availability = 'UNKNOWN', )
+ }, )
+ )
+ else:
+ return ListUsageReply(
+ )
+ """
+
+ def testListUsageReply(self):
+ """Test ListUsageReply"""
+ # 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_list_user_organization_invitations_reply.py b/koyeb/api/test/test_list_user_organization_invitations_reply.py
new file mode 100644
index 00000000..42bb5f7e
--- /dev/null
+++ b/koyeb/api/test/test_list_user_organization_invitations_reply.py
@@ -0,0 +1,82 @@
+# 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.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply
+
+class TestListUserOrganizationInvitationsReply(unittest.TestCase):
+ """ListUserOrganizationInvitationsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ListUserOrganizationInvitationsReply`
+ """
+ model = ListUserOrganizationInvitationsReply()
+ if include_optional:
+ return ListUserOrganizationInvitationsReply(
+ invitations = [
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56
+ )
+ else:
+ return ListUserOrganizationInvitationsReply(
+ )
+ """
+
+ def testListUserOrganizationInvitationsReply(self):
+ """Test ListUserOrganizationInvitationsReply"""
+ # 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_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/api/test/test_log_entry.py b/koyeb/api/test/test_log_entry.py
new file mode 100644
index 00000000..9c6f272e
--- /dev/null
+++ b/koyeb/api/test/test_log_entry.py
@@ -0,0 +1,53 @@
+# 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.log_entry import LogEntry
+
+class TestLogEntry(unittest.TestCase):
+ """LogEntry unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `LogEntry`
+ """
+ model = LogEntry()
+ if include_optional:
+ return LogEntry(
+ msg = '',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ labels = None
+ )
+ else:
+ return LogEntry(
+ )
+ """
+
+ def testLogEntry(self):
+ """Test LogEntry"""
+ # 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_login_method_reply.py b/koyeb/api/test/test_login_method_reply.py
new file mode 100644
index 00000000..2f51be8a
--- /dev/null
+++ b/koyeb/api/test/test_login_method_reply.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
+
+
+import unittest
+
+from koyeb.api.models.login_method_reply import LoginMethodReply
+
+class TestLoginMethodReply(unittest.TestCase):
+ """LoginMethodReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `LoginMethodReply`
+ """
+ model = LoginMethodReply()
+ if include_optional:
+ return LoginMethodReply(
+ method = 'KOYEB'
+ )
+ else:
+ return LoginMethodReply(
+ )
+ """
+
+ def testLoginMethodReply(self):
+ """Test LoginMethodReply"""
+ # 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_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/api/test/test_login_reply.py b/koyeb/api/test/test_login_reply.py
new file mode 100644
index 00000000..757c3fcc
--- /dev/null
+++ b/koyeb/api/test/test_login_reply.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
+
+
+import unittest
+
+from koyeb.api.models.login_reply import LoginReply
+
+class TestLoginReply(unittest.TestCase):
+ """LoginReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `LoginReply`
+ """
+ model = LoginReply()
+ if include_optional:
+ return LoginReply(
+ token = {id=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..., expires=2022-09-08T14:00:00Z, user_id=996d7822-6b58-11e9-956f-32001b70f000, organization_id=9f33b2c6-6b58-11e9-883c-32001b70f000}
+ )
+ else:
+ return LoginReply(
+ )
+ """
+
+ def testLoginReply(self):
+ """Test LoginReply"""
+ # 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_login_request.py b/koyeb/api/test/test_login_request.py
new file mode 100644
index 00000000..21d67803
--- /dev/null
+++ b/koyeb/api/test/test_login_request.py
@@ -0,0 +1,53 @@
+# 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_request import LoginRequest
+
+class TestLoginRequest(unittest.TestCase):
+ """LoginRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `LoginRequest`
+ """
+ model = LoginRequest()
+ if include_optional:
+ return LoginRequest(
+ email = '',
+ password = '',
+ organization_id = ''
+ )
+ else:
+ return LoginRequest(
+ )
+ """
+
+ def testLoginRequest(self):
+ """Test LoginRequest"""
+ # 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_logs_api.py b/koyeb/api/test/test_logs_api.py
new file mode 100644
index 00000000..025cf454
--- /dev/null
+++ b/koyeb/api/test/test_logs_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.logs_api import LogsApi
+
+
+class TestLogsApi(unittest.TestCase):
+ """LogsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = LogsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_query_logs(self) -> None:
+ """Test case for query_logs
+
+ Query logs
+ """
+ pass
+
+ def test_tail_logs(self) -> None:
+ """Test case for tail_logs
+
+ Tails logs
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_manage_reply.py b/koyeb/api/test/test_manage_reply.py
new file mode 100644
index 00000000..0b82445f
--- /dev/null
+++ b/koyeb/api/test/test_manage_reply.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
+
+
+import unittest
+
+from koyeb.api.models.manage_reply import ManageReply
+
+class TestManageReply(unittest.TestCase):
+ """ManageReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ManageReply`
+ """
+ model = ManageReply()
+ if include_optional:
+ return ManageReply(
+ url = ''
+ )
+ else:
+ return ManageReply(
+ )
+ """
+
+ def testManageReply(self):
+ """Test ManageReply"""
+ # 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_members_summary.py b/koyeb/api/test/test_members_summary.py
new file mode 100644
index 00000000..118d14fb
--- /dev/null
+++ b/koyeb/api/test/test_members_summary.py
@@ -0,0 +1,54 @@
+# 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.members_summary import MembersSummary
+
+class TestMembersSummary(unittest.TestCase):
+ """MembersSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `MembersSummary`
+ """
+ model = MembersSummary()
+ if include_optional:
+ return MembersSummary(
+ total = '',
+ invitations_by_status = {
+ 'key' : ''
+ }
+ )
+ else:
+ return MembersSummary(
+ )
+ """
+
+ def testMembersSummary(self):
+ """Test MembersSummary"""
+ # 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_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/api/test/test_metrics_api.py b/koyeb/api/test/test_metrics_api.py
new file mode 100644
index 00000000..f5998ff9
--- /dev/null
+++ b/koyeb/api/test/test_metrics_api.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
+
+
+import unittest
+
+from koyeb.api.api.metrics_api import MetricsApi
+
+
+class TestMetricsApi(unittest.TestCase):
+ """MetricsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = MetricsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_metrics(self) -> None:
+ """Test case for get_metrics
+
+ Get Metrics
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_neon_postgres_database.py b/koyeb/api/test/test_neon_postgres_database.py
new file mode 100644
index 00000000..ad40d804
--- /dev/null
+++ b/koyeb/api/test/test_neon_postgres_database.py
@@ -0,0 +1,63 @@
+# 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.neon_postgres_database import NeonPostgresDatabase
+
+class TestNeonPostgresDatabase(unittest.TestCase):
+ """NeonPostgresDatabase unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NeonPostgresDatabase`
+ """
+ model = NeonPostgresDatabase()
+ if include_optional:
+ return NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ]
+ )
+ else:
+ return NeonPostgresDatabase(
+ )
+ """
+
+ def testNeonPostgresDatabase(self):
+ """Test NeonPostgresDatabase"""
+ # 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_neon_postgres_database_deployment_metadata.py b/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py
new file mode 100644
index 00000000..1b0267cd
--- /dev/null
+++ b/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py
@@ -0,0 +1,53 @@
+# 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.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata
+
+class TestNeonPostgresDatabaseDeploymentMetadata(unittest.TestCase):
+ """NeonPostgresDatabaseDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NeonPostgresDatabaseDeploymentMetadata`
+ """
+ model = NeonPostgresDatabaseDeploymentMetadata()
+ if include_optional:
+ return NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ]
+ )
+ else:
+ return NeonPostgresDatabaseDeploymentMetadata(
+ )
+ """
+
+ def testNeonPostgresDatabaseDeploymentMetadata(self):
+ """Test NeonPostgresDatabaseDeploymentMetadata"""
+ # 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_neon_postgres_database_neon_database.py b/koyeb/api/test/test_neon_postgres_database_neon_database.py
new file mode 100644
index 00000000..8f981a61
--- /dev/null
+++ b/koyeb/api/test/test_neon_postgres_database_neon_database.py
@@ -0,0 +1,52 @@
+# 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.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase
+
+class TestNeonPostgresDatabaseNeonDatabase(unittest.TestCase):
+ """NeonPostgresDatabaseNeonDatabase unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NeonPostgresDatabaseNeonDatabase`
+ """
+ model = NeonPostgresDatabaseNeonDatabase()
+ if include_optional:
+ return NeonPostgresDatabaseNeonDatabase(
+ name = '',
+ owner = ''
+ )
+ else:
+ return NeonPostgresDatabaseNeonDatabase(
+ )
+ """
+
+ def testNeonPostgresDatabaseNeonDatabase(self):
+ """Test NeonPostgresDatabaseNeonDatabase"""
+ # 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_neon_postgres_database_neon_role.py b/koyeb/api/test/test_neon_postgres_database_neon_role.py
new file mode 100644
index 00000000..dc4166cd
--- /dev/null
+++ b/koyeb/api/test/test_neon_postgres_database_neon_role.py
@@ -0,0 +1,52 @@
+# 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.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole
+
+class TestNeonPostgresDatabaseNeonRole(unittest.TestCase):
+ """NeonPostgresDatabaseNeonRole unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NeonPostgresDatabaseNeonRole`
+ """
+ model = NeonPostgresDatabaseNeonRole()
+ if include_optional:
+ return NeonPostgresDatabaseNeonRole(
+ name = '',
+ secret = ''
+ )
+ else:
+ return NeonPostgresDatabaseNeonRole(
+ )
+ """
+
+ def testNeonPostgresDatabaseNeonRole(self):
+ """Test NeonPostgresDatabaseNeonRole"""
+ # 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_neon_postgres_summary.py b/koyeb/api/test/test_neon_postgres_summary.py
new file mode 100644
index 00000000..ba58fbe0
--- /dev/null
+++ b/koyeb/api/test/test_neon_postgres_summary.py
@@ -0,0 +1,54 @@
+# 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.neon_postgres_summary import NeonPostgresSummary
+
+class TestNeonPostgresSummary(unittest.TestCase):
+ """NeonPostgresSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NeonPostgresSummary`
+ """
+ model = NeonPostgresSummary()
+ if include_optional:
+ return NeonPostgresSummary(
+ total = '',
+ by_instance_type = {
+ 'key' : ''
+ }
+ )
+ else:
+ return NeonPostgresSummary(
+ )
+ """
+
+ def testNeonPostgresSummary(self):
+ """Test NeonPostgresSummary"""
+ # 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_next_invoice_reply.py b/koyeb/api/test/test_next_invoice_reply.py
new file mode 100644
index 00000000..d83bd1b9
--- /dev/null
+++ b/koyeb/api/test/test_next_invoice_reply.py
@@ -0,0 +1,68 @@
+# 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 import NextInvoiceReply
+
+class TestNextInvoiceReply(unittest.TestCase):
+ """NextInvoiceReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NextInvoiceReply`
+ """
+ model = NextInvoiceReply()
+ if include_optional:
+ return NextInvoiceReply(
+ stripe_invoice = None,
+ lines = [
+ koyeb.api.models.next_invoice_reply/line.NextInvoiceReply.Line(
+ amount_excluding_tax = 56,
+ 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.api.models.next_invoice_reply/line/price.NextInvoiceReply.Line.Price(
+ unit_amount_decimal = 1.337, ),
+ quantity = 56, )
+ ],
+ discounts = [
+ koyeb.api.models.next_invoice_reply/discount.NextInvoiceReply.Discount(
+ type = 'PERCENT_OFF',
+ name = '',
+ amount = '', )
+ ]
+ )
+ else:
+ return NextInvoiceReply(
+ )
+ """
+
+ def testNextInvoiceReply(self):
+ """Test NextInvoiceReply"""
+ # 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_next_invoice_reply_discount.py b/koyeb/api/test/test_next_invoice_reply_discount.py
new file mode 100644
index 00000000..ca0b7261
--- /dev/null
+++ b/koyeb/api/test/test_next_invoice_reply_discount.py
@@ -0,0 +1,53 @@
+# 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 import NextInvoiceReplyDiscount
+
+class TestNextInvoiceReplyDiscount(unittest.TestCase):
+ """NextInvoiceReplyDiscount unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NextInvoiceReplyDiscount`
+ """
+ model = NextInvoiceReplyDiscount()
+ if include_optional:
+ return NextInvoiceReplyDiscount(
+ type = 'PERCENT_OFF',
+ name = '',
+ amount = ''
+ )
+ else:
+ return NextInvoiceReplyDiscount(
+ )
+ """
+
+ def testNextInvoiceReplyDiscount(self):
+ """Test NextInvoiceReplyDiscount"""
+ # 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_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/api/test/test_next_invoice_reply_line.py b/koyeb/api/test/test_next_invoice_reply_line.py
new file mode 100644
index 00000000..4171c4a3
--- /dev/null
+++ b/koyeb/api/test/test_next_invoice_reply_line.py
@@ -0,0 +1,58 @@
+# 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_line import NextInvoiceReplyLine
+
+class TestNextInvoiceReplyLine(unittest.TestCase):
+ """NextInvoiceReplyLine unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NextInvoiceReplyLine`
+ """
+ model = NextInvoiceReplyLine()
+ if include_optional:
+ return NextInvoiceReplyLine(
+ amount_excluding_tax = 56,
+ 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.api.models.next_invoice_reply/line/price.NextInvoiceReply.Line.Price(
+ unit_amount_decimal = 1.337, ),
+ quantity = 56
+ )
+ else:
+ return NextInvoiceReplyLine(
+ )
+ """
+
+ def testNextInvoiceReplyLine(self):
+ """Test NextInvoiceReplyLine"""
+ # 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_next_invoice_reply_line_period.py b/koyeb/api/test/test_next_invoice_reply_line_period.py
new file mode 100644
index 00000000..296ebea0
--- /dev/null
+++ b/koyeb/api/test/test_next_invoice_reply_line_period.py
@@ -0,0 +1,52 @@
+# 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_line_period import NextInvoiceReplyLinePeriod
+
+class TestNextInvoiceReplyLinePeriod(unittest.TestCase):
+ """NextInvoiceReplyLinePeriod unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NextInvoiceReplyLinePeriod`
+ """
+ model = NextInvoiceReplyLinePeriod()
+ if include_optional:
+ return NextInvoiceReplyLinePeriod(
+ 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')
+ )
+ else:
+ return NextInvoiceReplyLinePeriod(
+ )
+ """
+
+ def testNextInvoiceReplyLinePeriod(self):
+ """Test NextInvoiceReplyLinePeriod"""
+ # 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_next_invoice_reply_line_price.py b/koyeb/api/test/test_next_invoice_reply_line_price.py
new file mode 100644
index 00000000..ca029bd7
--- /dev/null
+++ b/koyeb/api/test/test_next_invoice_reply_line_price.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
+
+
+import unittest
+
+from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice
+
+class TestNextInvoiceReplyLinePrice(unittest.TestCase):
+ """NextInvoiceReplyLinePrice unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NextInvoiceReplyLinePrice`
+ """
+ model = NextInvoiceReplyLinePrice()
+ if include_optional:
+ return NextInvoiceReplyLinePrice(
+ unit_amount_decimal = 1.337
+ )
+ else:
+ return NextInvoiceReplyLinePrice(
+ )
+ """
+
+ def testNextInvoiceReplyLinePrice(self):
+ """Test NextInvoiceReplyLinePrice"""
+ # 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_notification.py b/koyeb/api/test/test_notification.py
new file mode 100644
index 00000000..33cbd477
--- /dev/null
+++ b/koyeb/api/test/test_notification.py
@@ -0,0 +1,71 @@
+# 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.notification import Notification
+
+class TestNotification(unittest.TestCase):
+ """Notification unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Notification`
+ """
+ model = Notification()
+ if include_optional:
+ return Notification(
+ id = '',
+ activity = koyeb.api.models.activity.Activity(
+ id = '',
+ actor = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ object = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ verb = '',
+ 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,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return Notification(
+ )
+ """
+
+ def testNotification(self):
+ """Test Notification"""
+ # 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_notification_list.py b/koyeb/api/test/test_notification_list.py
new file mode 100644
index 00000000..e77c9995
--- /dev/null
+++ b/koyeb/api/test/test_notification_list.py
@@ -0,0 +1,81 @@
+# 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.notification_list import NotificationList
+
+class TestNotificationList(unittest.TestCase):
+ """NotificationList unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `NotificationList`
+ """
+ model = NotificationList()
+ if include_optional:
+ return NotificationList(
+ notifications = [
+ koyeb.api.models.notification.Notification(
+ id = '',
+ activity = koyeb.api.models.activity.Activity(
+ id = '',
+ actor = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ object = koyeb.api.models.object.Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True, ),
+ verb = '',
+ 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,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ limit = 56,
+ offset = 56,
+ count = 56,
+ is_read = True,
+ is_seen = True,
+ unread = 56,
+ unseen = 56
+ )
+ else:
+ return NotificationList(
+ )
+ """
+
+ def testNotificationList(self):
+ """Test NotificationList"""
+ # 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_o_auth_callback_reply.py b/koyeb/api/test/test_o_auth_callback_reply.py
new file mode 100644
index 00000000..7c75f1da
--- /dev/null
+++ b/koyeb/api/test/test_o_auth_callback_reply.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
+
+
+import unittest
+
+from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply
+
+class TestOAuthCallbackReply(unittest.TestCase):
+ """OAuthCallbackReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `OAuthCallbackReply`
+ """
+ model = OAuthCallbackReply()
+ if include_optional:
+ return OAuthCallbackReply(
+ token = {id=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..., expires=2022-09-08T14:00:00Z, user_id=996d7822-6b58-11e9-956f-32001b70f000, organization_id=9f33b2c6-6b58-11e9-883c-32001b70f000}
+ )
+ else:
+ return OAuthCallbackReply(
+ )
+ """
+
+ def testOAuthCallbackReply(self):
+ """Test OAuthCallbackReply"""
+ # 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_o_auth_callback_request.py b/koyeb/api/test/test_o_auth_callback_request.py
new file mode 100644
index 00000000..34877502
--- /dev/null
+++ b/koyeb/api/test/test_o_auth_callback_request.py
@@ -0,0 +1,54 @@
+# 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.o_auth_callback_request import OAuthCallbackRequest
+
+class TestOAuthCallbackRequest(unittest.TestCase):
+ """OAuthCallbackRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `OAuthCallbackRequest`
+ """
+ model = OAuthCallbackRequest()
+ if include_optional:
+ return OAuthCallbackRequest(
+ state = '',
+ code = '',
+ setup_action = '',
+ installation_id = ''
+ )
+ else:
+ return OAuthCallbackRequest(
+ )
+ """
+
+ def testOAuthCallbackRequest(self):
+ """Test OAuthCallbackRequest"""
+ # 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_o_auth_provider.py b/koyeb/api/test/test_o_auth_provider.py
new file mode 100644
index 00000000..d0c8c70f
--- /dev/null
+++ b/koyeb/api/test/test_o_auth_provider.py
@@ -0,0 +1,53 @@
+# 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.o_auth_provider import OAuthProvider
+
+class TestOAuthProvider(unittest.TestCase):
+ """OAuthProvider unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `OAuthProvider`
+ """
+ model = OAuthProvider()
+ if include_optional:
+ return OAuthProvider(
+ id = '',
+ url = '',
+ state = ''
+ )
+ else:
+ return OAuthProvider(
+ )
+ """
+
+ def testOAuthProvider(self):
+ """Test OAuthProvider"""
+ # 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_object.py b/koyeb/api/test/test_object.py
new file mode 100644
index 00000000..24511405
--- /dev/null
+++ b/koyeb/api/test/test_object.py
@@ -0,0 +1,55 @@
+# 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.object import Object
+
+class TestObject(unittest.TestCase):
+ """Object unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Object`
+ """
+ model = Object()
+ if include_optional:
+ return Object(
+ id = '',
+ name = '',
+ type = '',
+ metadata = koyeb.api.models.metadata.metadata(),
+ deleted = True
+ )
+ else:
+ return Object(
+ )
+ """
+
+ def testObject(self):
+ """Test Object"""
+ # 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_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/api/test/test_organization_confirmations_api.py b/koyeb/api/test/test_organization_confirmations_api.py
new file mode 100644
index 00000000..6946632f
--- /dev/null
+++ b/koyeb/api/test/test_organization_confirmations_api.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
+
+
+import unittest
+
+from koyeb.api.api.organization_confirmations_api import OrganizationConfirmationsApi
+
+
+class TestOrganizationConfirmationsApi(unittest.TestCase):
+ """OrganizationConfirmationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = OrganizationConfirmationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_confirm_organization_action(self) -> None:
+ """Test case for confirm_organization_action
+
+ Confirm organization action
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_organization_deactivation_reason.py b/koyeb/api/test/test_organization_deactivation_reason.py
new file mode 100644
index 00000000..ab5800e1
--- /dev/null
+++ b/koyeb/api/test/test_organization_deactivation_reason.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_deactivation_reason import OrganizationDeactivationReason
+
+class TestOrganizationDeactivationReason(unittest.TestCase):
+ """OrganizationDeactivationReason unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testOrganizationDeactivationReason(self):
+ """Test OrganizationDeactivationReason"""
+ # inst = OrganizationDeactivationReason()
+
+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/api/test/test_organization_invitation.py b/koyeb/api/test/test_organization_invitation.py
new file mode 100644
index 00000000..6787eda7
--- /dev/null
+++ b/koyeb/api/test/test_organization_invitation.py
@@ -0,0 +1,77 @@
+# 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 import OrganizationInvitation
+
+class TestOrganizationInvitation(unittest.TestCase):
+ """OrganizationInvitation unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `OrganizationInvitation`
+ """
+ model = OrganizationInvitation()
+ if include_optional:
+ return 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby',
+ status = 'WARNING', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', )
+ )
+ else:
+ return OrganizationInvitation(
+ )
+ """
+
+ def testOrganizationInvitation(self):
+ """Test OrganizationInvitation"""
+ # 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_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/api/test/test_organization_invitations_api.py b/koyeb/api/test/test_organization_invitations_api.py
new file mode 100644
index 00000000..6cce4d9a
--- /dev/null
+++ b/koyeb/api/test/test_organization_invitations_api.py
@@ -0,0 +1,66 @@
+# 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_invitations_api import OrganizationInvitationsApi
+
+
+class TestOrganizationInvitationsApi(unittest.TestCase):
+ """OrganizationInvitationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = OrganizationInvitationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_organization_invitation(self) -> None:
+ """Test case for create_organization_invitation
+
+ Create Organization Invitation
+ """
+ pass
+
+ def test_delete_organization_invitation(self) -> None:
+ """Test case for delete_organization_invitation
+
+ Delete Organization Invitation
+ """
+ pass
+
+ def test_get_organization_invitation(self) -> None:
+ """Test case for get_organization_invitation
+
+ Get Organization Invitation
+ """
+ pass
+
+ def test_list_organization_invitations(self) -> None:
+ """Test case for list_organization_invitations
+
+ List Organization Invitations
+ """
+ pass
+
+ def test_resend_organization_invitation(self) -> None:
+ """Test case for resend_organization_invitation
+
+ Resend Organization Invitation
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_organization_member.py b/koyeb/api/test/test_organization_member.py
new file mode 100644
index 00000000..5e73f59a
--- /dev/null
+++ b/koyeb/api/test/test_organization_member.py
@@ -0,0 +1,68 @@
+# 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 import OrganizationMember
+
+class TestOrganizationMember(unittest.TestCase):
+ """OrganizationMember unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `OrganizationMember`
+ """
+ model = OrganizationMember()
+ if include_optional:
+ return 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.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ organization = koyeb.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby',
+ status = 'WARNING', )
+ )
+ else:
+ return OrganizationMember(
+ )
+ """
+
+ def testOrganizationMember(self):
+ """Test OrganizationMember"""
+ # 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_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/api/test/test_organization_members_api.py b/koyeb/api/test/test_organization_members_api.py
new file mode 100644
index 00000000..4120d374
--- /dev/null
+++ b/koyeb/api/test/test_organization_members_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.organization_members_api import OrganizationMembersApi
+
+
+class TestOrganizationMembersApi(unittest.TestCase):
+ """OrganizationMembersApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = OrganizationMembersApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_list_organization_members(self) -> None:
+ """Test case for list_organization_members
+
+ List organization members
+ """
+ pass
+
+ def test_remove_organization_member(self) -> None:
+ """Test case for remove_organization_member
+
+ Remove an organization member
+ """
+ pass
+
+
+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/api/test/test_organization_summary.py b/koyeb/api/test/test_organization_summary.py
new file mode 100644
index 00000000..18aed848
--- /dev/null
+++ b/koyeb/api/test/test_organization_summary.py
@@ -0,0 +1,88 @@
+# 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_summary import OrganizationSummary
+
+class TestOrganizationSummary(unittest.TestCase):
+ """OrganizationSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `OrganizationSummary`
+ """
+ model = OrganizationSummary()
+ if include_optional:
+ return OrganizationSummary(
+ organization_id = '',
+ instances = koyeb.api.models.instances_summary.InstancesSummary(
+ total = '',
+ by_type = {
+ 'key' : ''
+ }, ),
+ apps = koyeb.api.models.apps_summary.AppsSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }, ),
+ services = {
+ 'key' : koyeb.api.models.service_summary.ServiceSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }, )
+ },
+ domains = koyeb.api.models.domains_summary.DomainsSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }, ),
+ secrets = koyeb.api.models.secrets_summary.SecretsSummary(
+ total = '',
+ by_type = {
+ 'key' : ''
+ }, ),
+ neon_postgres = koyeb.api.models.neon_postgres_summary.NeonPostgresSummary(
+ total = '',
+ by_instance_type = {
+ 'key' : ''
+ }, ),
+ members = koyeb.api.models.members_summary.MembersSummary(
+ total = '',
+ invitations_by_status = {
+ 'key' : ''
+ }, )
+ )
+ else:
+ return OrganizationSummary(
+ )
+ """
+
+ def testOrganizationSummary(self):
+ """Test OrganizationSummary"""
+ # 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_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/api/test/test_payment_methods_api.py b/koyeb/api/test/test_payment_methods_api.py
new file mode 100644
index 00000000..1a4a1187
--- /dev/null
+++ b/koyeb/api/test/test_payment_methods_api.py
@@ -0,0 +1,66 @@
+# 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.payment_methods_api import PaymentMethodsApi
+
+
+class TestPaymentMethodsApi(unittest.TestCase):
+ """PaymentMethodsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = PaymentMethodsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_confirm_payment_authorization(self) -> None:
+ """Test case for confirm_payment_authorization
+
+ Confirm payment authorization
+ """
+ pass
+
+ def test_create_payment_authorization(self) -> None:
+ """Test case for create_payment_authorization
+
+ Create payment authorization
+ """
+ pass
+
+ def test_delete_payment_method(self) -> None:
+ """Test case for delete_payment_method
+
+ Delete payment method
+ """
+ pass
+
+ def test_get_payment_method(self) -> None:
+ """Test case for get_payment_method
+
+ Get payment method
+ """
+ pass
+
+ def test_list_payment_methods(self) -> None:
+ """Test case for list_payment_methods
+
+ List payment methods
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_period_usage.py b/koyeb/api/test/test_period_usage.py
new file mode 100644
index 00000000..9f94f88c
--- /dev/null
+++ b/koyeb/api/test/test_period_usage.py
@@ -0,0 +1,76 @@
+# 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.period_usage import PeriodUsage
+
+class TestPeriodUsage(unittest.TestCase):
+ """PeriodUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PeriodUsage`
+ """
+ model = PeriodUsage()
+ if include_optional:
+ return 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.api.models.app_usage.AppUsage(
+ app_id = '',
+ app_name = '',
+ services = [
+ koyeb.api.models.service_usage.ServiceUsage(
+ service_id = '',
+ service_name = '',
+ regions = {
+ 'key' : koyeb.api.models.region_usage.RegionUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_usage.InstanceUsage(
+ duration_seconds = 56, )
+ }, )
+ }, )
+ ],
+ databases = [
+ koyeb.api.models.database_usage.DatabaseUsage(
+ service_id = '',
+ service_name = '',
+ compute_time_seconds = 56,
+ data_storage_megabytes_hours = 56, )
+ ], )
+ ]
+ )
+ else:
+ return PeriodUsage(
+ )
+ """
+
+ def testPeriodUsage(self):
+ """Test PeriodUsage"""
+ # 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_persistent_volume.py b/koyeb/api/test/test_persistent_volume.py
new file mode 100644
index 00000000..5fad7fe2
--- /dev/null
+++ b/koyeb/api/test/test_persistent_volume.py
@@ -0,0 +1,64 @@
+# 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 import PersistentVolume
+
+class TestPersistentVolume(unittest.TestCase):
+ """PersistentVolume unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PersistentVolume`
+ """
+ model = PersistentVolume()
+ if include_optional:
+ return PersistentVolume(
+ id = '',
+ name = '',
+ snapshot_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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ service_id = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ cur_size = 56,
+ status = 'PERSISTENT_VOLUME_STATUS_INVALID',
+ backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID'
+ )
+ else:
+ return PersistentVolume(
+ )
+ """
+
+ def testPersistentVolume(self):
+ """Test PersistentVolume"""
+ # 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_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/api/test/test_persistent_volume_event.py b/koyeb/api/test/test_persistent_volume_event.py
new file mode 100644
index 00000000..d1874444
--- /dev/null
+++ b/koyeb/api/test/test_persistent_volume_event.py
@@ -0,0 +1,57 @@
+# 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_event import PersistentVolumeEvent
+
+class TestPersistentVolumeEvent(unittest.TestCase):
+ """PersistentVolumeEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PersistentVolumeEvent`
+ """
+ model = PersistentVolumeEvent()
+ if include_optional:
+ return 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.api.models.metadata.metadata()
+ )
+ else:
+ return PersistentVolumeEvent(
+ )
+ """
+
+ def testPersistentVolumeEvent(self):
+ """Test PersistentVolumeEvent"""
+ # 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_persistent_volume_quotas.py b/koyeb/api/test/test_persistent_volume_quotas.py
new file mode 100644
index 00000000..504abe8d
--- /dev/null
+++ b/koyeb/api/test/test_persistent_volume_quotas.py
@@ -0,0 +1,53 @@
+# 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_quotas import PersistentVolumeQuotas
+
+class TestPersistentVolumeQuotas(unittest.TestCase):
+ """PersistentVolumeQuotas unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PersistentVolumeQuotas`
+ """
+ model = PersistentVolumeQuotas()
+ if include_optional:
+ return PersistentVolumeQuotas(
+ max_total_size = 56,
+ max_volume_size = 56,
+ max_per_instance_size = 56
+ )
+ else:
+ return PersistentVolumeQuotas(
+ )
+ """
+
+ def testPersistentVolumeQuotas(self):
+ """Test PersistentVolumeQuotas"""
+ # 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_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/api/test/test_port.py b/koyeb/api/test/test_port.py
new file mode 100644
index 00000000..d0236d48
--- /dev/null
+++ b/koyeb/api/test/test_port.py
@@ -0,0 +1,52 @@
+# 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.port import Port
+
+class TestPort(unittest.TestCase):
+ """Port unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Port`
+ """
+ model = Port()
+ if include_optional:
+ return Port(
+ port = 56,
+ protocol = ''
+ )
+ else:
+ return Port(
+ )
+ """
+
+ def testPort(self):
+ """Test Port"""
+ # 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_private_registry_configuration.py b/koyeb/api/test/test_private_registry_configuration.py
new file mode 100644
index 00000000..25d05bc6
--- /dev/null
+++ b/koyeb/api/test/test_private_registry_configuration.py
@@ -0,0 +1,53 @@
+# 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.private_registry_configuration import PrivateRegistryConfiguration
+
+class TestPrivateRegistryConfiguration(unittest.TestCase):
+ """PrivateRegistryConfiguration unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PrivateRegistryConfiguration`
+ """
+ model = PrivateRegistryConfiguration()
+ if include_optional:
+ return PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = ''
+ )
+ else:
+ return PrivateRegistryConfiguration(
+ )
+ """
+
+ def testPrivateRegistryConfiguration(self):
+ """Test PrivateRegistryConfiguration"""
+ # 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_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/api/test/test_provisioning_api.py b/koyeb/api/test/test_provisioning_api.py
new file mode 100644
index 00000000..7d4e1ddf
--- /dev/null
+++ b/koyeb/api/test/test_provisioning_api.py
@@ -0,0 +1,52 @@
+# 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.provisioning_api import ProvisioningApi
+
+
+class TestProvisioningApi(unittest.TestCase):
+ """ProvisioningApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ProvisioningApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_stage_attempt(self) -> None:
+ """Test case for create_stage_attempt
+
+ Create an attempt for a stage
+ """
+ pass
+
+ def test_declare_stage_progress(self) -> None:
+ """Test case for declare_stage_progress
+
+ Declare stage progress
+ """
+ pass
+
+ def test_declare_step_progress(self) -> None:
+ """Test case for declare_step_progress
+
+ Declare step progress
+ """
+ pass
+
+
+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/api/test/test_public_organization.py b/koyeb/api/test/test_public_organization.py
new file mode 100644
index 00000000..2d5f658a
--- /dev/null
+++ b/koyeb/api/test/test_public_organization.py
@@ -0,0 +1,54 @@
+# 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.public_organization import PublicOrganization
+
+class TestPublicOrganization(unittest.TestCase):
+ """PublicOrganization unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PublicOrganization`
+ """
+ model = PublicOrganization()
+ if include_optional:
+ return PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby',
+ status = 'WARNING'
+ )
+ else:
+ return PublicOrganization(
+ )
+ """
+
+ def testPublicOrganization(self):
+ """Test PublicOrganization"""
+ # 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_public_user.py b/koyeb/api/test/test_public_user.py
new file mode 100644
index 00000000..abd08baf
--- /dev/null
+++ b/koyeb/api/test/test_public_user.py
@@ -0,0 +1,56 @@
+# 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.public_user import PublicUser
+
+class TestPublicUser(unittest.TestCase):
+ """PublicUser unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `PublicUser`
+ """
+ model = PublicUser()
+ if include_optional:
+ return PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = ''
+ )
+ else:
+ return PublicUser(
+ )
+ """
+
+ def testPublicUser(self):
+ """Test PublicUser"""
+ # 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_query_logs_reply.py b/koyeb/api/test/test_query_logs_reply.py
new file mode 100644
index 00000000..b637d279
--- /dev/null
+++ b/koyeb/api/test/test_query_logs_reply.py
@@ -0,0 +1,60 @@
+# 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.query_logs_reply import QueryLogsReply
+
+class TestQueryLogsReply(unittest.TestCase):
+ """QueryLogsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `QueryLogsReply`
+ """
+ model = QueryLogsReply()
+ if include_optional:
+ return QueryLogsReply(
+ data = [
+ 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.api.models.labels.labels(), )
+ ],
+ 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'), )
+ )
+ else:
+ return QueryLogsReply(
+ )
+ """
+
+ def testQueryLogsReply(self):
+ """Test QueryLogsReply"""
+ # 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_query_logs_reply_pagination.py b/koyeb/api/test/test_query_logs_reply_pagination.py
new file mode 100644
index 00000000..cea01a9d
--- /dev/null
+++ b/koyeb/api/test/test_query_logs_reply_pagination.py
@@ -0,0 +1,53 @@
+# 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.query_logs_reply_pagination import QueryLogsReplyPagination
+
+class TestQueryLogsReplyPagination(unittest.TestCase):
+ """QueryLogsReplyPagination unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `QueryLogsReplyPagination`
+ """
+ model = QueryLogsReplyPagination()
+ if include_optional:
+ return 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')
+ )
+ else:
+ return QueryLogsReplyPagination(
+ )
+ """
+
+ def testQueryLogsReplyPagination(self):
+ """Test QueryLogsReplyPagination"""
+ # 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_quotas.py b/koyeb/api/test/test_quotas.py
new file mode 100644
index 00000000..bbb12f3d
--- /dev/null
+++ b/koyeb/api/test/test_quotas.py
@@ -0,0 +1,90 @@
+# 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.quotas import Quotas
+
+class TestQuotas(unittest.TestCase):
+ """Quotas unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Quotas`
+ """
+ model = Quotas()
+ if include_optional:
+ return Quotas(
+ apps = '',
+ services = '',
+ domains = '',
+ services_by_app = '',
+ service_provisioning_concurrency = '',
+ memory_mb = '',
+ instance_types = [
+ ''
+ ],
+ regions = [
+ ''
+ ],
+ max_organization_members = '',
+ max_instances_by_type = {
+ 'key' : ''
+ },
+ persistent_volumes_by_region = {
+ '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.api.models.domain_load_balancer_quotas.DomainLoadBalancerQuotas(
+ max_koyeb = 56, ),
+ metrics_retention = 56,
+ logs_retention = 56,
+ access_reserved_subdomains = [
+ ''
+ ],
+ proxy_ports = 56,
+ 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 = '',
+ archive_max_size_mb = ''
+ )
+ else:
+ return Quotas(
+ )
+ """
+
+ def testQuotas(self):
+ """Test Quotas"""
+ # 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_quotas_api.py b/koyeb/api/test/test_quotas_api.py
new file mode 100644
index 00000000..da5e0c58
--- /dev/null
+++ b/koyeb/api/test/test_quotas_api.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
+
+
+import unittest
+
+from koyeb.api.api.quotas_api import QuotasApi
+
+
+class TestQuotasApi(unittest.TestCase):
+ """QuotasApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = QuotasApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_review_organization_capacity(self) -> None:
+ """Test case for review_organization_capacity
+
+ DEPRECATED: Review Organization Capacity
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_reactivate_organization_reply.py b/koyeb/api/test/test_reactivate_organization_reply.py
new file mode 100644
index 00000000..d54fe56d
--- /dev/null
+++ b/koyeb/api/test/test_reactivate_organization_reply.py
@@ -0,0 +1,83 @@
+# 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.reactivate_organization_reply import ReactivateOrganizationReply
+
+class TestReactivateOrganizationReply(unittest.TestCase):
+ """ReactivateOrganizationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ReactivateOrganizationReply`
+ """
+ model = ReactivateOrganizationReply()
+ if include_optional:
+ return ReactivateOrganizationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return ReactivateOrganizationReply(
+ )
+ """
+
+ def testReactivateOrganizationReply(self):
+ """Test ReactivateOrganizationReply"""
+ # 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_redeem_coupon_request.py b/koyeb/api/test/test_redeem_coupon_request.py
new file mode 100644
index 00000000..42c42d7d
--- /dev/null
+++ b/koyeb/api/test/test_redeem_coupon_request.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
+
+
+import unittest
+
+from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest
+
+class TestRedeemCouponRequest(unittest.TestCase):
+ """RedeemCouponRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RedeemCouponRequest`
+ """
+ model = RedeemCouponRequest()
+ if include_optional:
+ return RedeemCouponRequest(
+ code = ''
+ )
+ else:
+ return RedeemCouponRequest(
+ )
+ """
+
+ def testRedeemCouponRequest(self):
+ """Test RedeemCouponRequest"""
+ # 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_redeploy_reply.py b/koyeb/api/test/test_redeploy_reply.py
new file mode 100644
index 00000000..2a517c6b
--- /dev/null
+++ b/koyeb/api/test/test_redeploy_reply.py
@@ -0,0 +1,222 @@
+# 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.redeploy_reply import RedeployReply
+
+class TestRedeployReply(unittest.TestCase):
+ """RedeployReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RedeployReply`
+ """
+ model = RedeployReply()
+ if include_optional:
+ return RedeployReply(
+ 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'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ], ),
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56, )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ), ),
+ messages = [
+ ''
+ ],
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ database_info = koyeb.api.models.deployment_database_info.DeploymentDatabaseInfo(),
+ skip_build = True,
+ role = 'INVALID',
+ version = '',
+ deployment_group = '', )
+ )
+ else:
+ return RedeployReply(
+ )
+ """
+
+ def testRedeployReply(self):
+ """Test RedeployReply"""
+ # 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_redeploy_request_info.py b/koyeb/api/test/test_redeploy_request_info.py
new file mode 100644
index 00000000..4c2389b2
--- /dev/null
+++ b/koyeb/api/test/test_redeploy_request_info.py
@@ -0,0 +1,54 @@
+# 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.redeploy_request_info import RedeployRequestInfo
+
+class TestRedeployRequestInfo(unittest.TestCase):
+ """RedeployRequestInfo unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RedeployRequestInfo`
+ """
+ model = RedeployRequestInfo()
+ if include_optional:
+ return RedeployRequestInfo(
+ deployment_group = '',
+ sha = '',
+ use_cache = True,
+ skip_build = True
+ )
+ else:
+ return RedeployRequestInfo(
+ )
+ """
+
+ def testRedeployRequestInfo(self):
+ """Test RedeployRequestInfo"""
+ # 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_region.py b/koyeb/api/test/test_region.py
new file mode 100644
index 00000000..2bd2d45e
--- /dev/null
+++ b/koyeb/api/test/test_region.py
@@ -0,0 +1,64 @@
+# 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.region import Region
+
+class TestRegion(unittest.TestCase):
+ """Region unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Region`
+ """
+ model = Region()
+ if include_optional:
+ return Region(
+ id = '',
+ name = '',
+ coordinates = [
+ ''
+ ],
+ status = '',
+ instances = [
+ ''
+ ],
+ datacenters = [
+ ''
+ ],
+ volumes_enabled = True,
+ scope = ''
+ )
+ else:
+ return Region(
+ )
+ """
+
+ def testRegion(self):
+ """Test Region"""
+ # 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_region_availability.py b/koyeb/api/test/test_region_availability.py
new file mode 100644
index 00000000..0ca2c4bd
--- /dev/null
+++ b/koyeb/api/test/test_region_availability.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
+
+
+import unittest
+
+from koyeb.api.models.region_availability import RegionAvailability
+
+class TestRegionAvailability(unittest.TestCase):
+ """RegionAvailability unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionAvailability`
+ """
+ model = RegionAvailability()
+ if include_optional:
+ return RegionAvailability(
+ availability = 'UNKNOWN'
+ )
+ else:
+ return RegionAvailability(
+ )
+ """
+
+ def testRegionAvailability(self):
+ """Test RegionAvailability"""
+ # 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_region_list_item.py b/koyeb/api/test/test_region_list_item.py
new file mode 100644
index 00000000..17e11396
--- /dev/null
+++ b/koyeb/api/test/test_region_list_item.py
@@ -0,0 +1,64 @@
+# 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.region_list_item import RegionListItem
+
+class TestRegionListItem(unittest.TestCase):
+ """RegionListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionListItem`
+ """
+ model = RegionListItem()
+ if include_optional:
+ return RegionListItem(
+ id = '',
+ name = '',
+ coordinates = [
+ ''
+ ],
+ status = '',
+ instances = [
+ ''
+ ],
+ datacenters = [
+ ''
+ ],
+ volumes_enabled = True,
+ scope = ''
+ )
+ else:
+ return RegionListItem(
+ )
+ """
+
+ def testRegionListItem(self):
+ """Test RegionListItem"""
+ # 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_region_usage.py b/koyeb/api/test/test_region_usage.py
new file mode 100644
index 00000000..15b1e553
--- /dev/null
+++ b/koyeb/api/test/test_region_usage.py
@@ -0,0 +1,54 @@
+# 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.region_usage import RegionUsage
+
+class TestRegionUsage(unittest.TestCase):
+ """RegionUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionUsage`
+ """
+ model = RegionUsage()
+ if include_optional:
+ return RegionUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_usage.InstanceUsage(
+ duration_seconds = 56, )
+ }
+ )
+ else:
+ return RegionUsage(
+ )
+ """
+
+ def testRegionUsage(self):
+ """Test RegionUsage"""
+ # 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_regional_deployment.py b/koyeb/api/test/test_regional_deployment.py
new file mode 100644
index 00000000..b90a266c
--- /dev/null
+++ b/koyeb/api/test/test_regional_deployment.py
@@ -0,0 +1,206 @@
+# 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 import RegionalDeployment
+
+class TestRegionalDeployment(unittest.TestCase):
+ """RegionalDeployment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionalDeployment`
+ """
+ model = RegionalDeployment()
+ if include_optional:
+ return 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'),
+ scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ app_id = '',
+ service_id = '',
+ region = '',
+ parent_id = '',
+ child_id = '',
+ status = 'PENDING',
+ messages = [
+ ''
+ ],
+ definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.route.Route(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.port.Port(
+ port = 56,
+ protocol = '', )
+ ],
+ env = [
+ koyeb.api.models.env.Env(
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ region = '',
+ scaling = koyeb.api.models.scaling.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, ), )
+ ], ),
+ instance_type = '',
+ deployment_group = '',
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ),
+ datacenters = [
+ ''
+ ],
+ metadata = koyeb.api.models.regional_deployment_metadata.RegionalDeploymentMetadata(),
+ provisioning_info = koyeb.api.models.deployment_provisioning_info.DeploymentProvisioningInfo(
+ sha = '',
+ image = '',
+ stages = [
+ koyeb.api.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
+ name = '',
+ status = 'UNKNOWN',
+ messages = [
+ ''
+ ],
+ 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.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.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'), )
+ ],
+ image_pushed = True,
+ internal_failure = True,
+ retryable_failure = True,
+ wait_completion = True, )
+ ], )
+ ], ),
+ role = 'INVALID',
+ version = '',
+ deployment_group = '',
+ deployment_id = ''
+ )
+ else:
+ return RegionalDeployment(
+ )
+ """
+
+ def testRegionalDeployment(self):
+ """Test RegionalDeployment"""
+ # 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_regional_deployment_definition.py b/koyeb/api/test/test_regional_deployment_definition.py
new file mode 100644
index 00000000..4d794d76
--- /dev/null
+++ b/koyeb/api/test/test_regional_deployment_definition.py
@@ -0,0 +1,177 @@
+# 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_definition import RegionalDeploymentDefinition
+
+class TestRegionalDeploymentDefinition(unittest.TestCase):
+ """RegionalDeploymentDefinition unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionalDeploymentDefinition`
+ """
+ model = RegionalDeploymentDefinition()
+ if include_optional:
+ return RegionalDeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(
+ type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID', ),
+ routes = [
+ koyeb.api.models.route.Route(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.port.Port(
+ port = 56,
+ protocol = '', )
+ ],
+ env = [
+ koyeb.api.models.env.Env(
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ region = '',
+ scaling = koyeb.api.models.scaling.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, ), )
+ ], ),
+ instance_type = '',
+ deployment_group = '',
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ),
+ docker = koyeb.api.models.docker_builder.DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True, ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ),
+ docker = koyeb.api.models.docker_builder.DockerBuilder(
+ dockerfile = '',
+ entrypoint = [
+ ''
+ ],
+ command = '',
+ args = [
+ ''
+ ],
+ target = '',
+ privileged = True, ), )
+ )
+ else:
+ return RegionalDeploymentDefinition(
+ )
+ """
+
+ def testRegionalDeploymentDefinition(self):
+ """Test RegionalDeploymentDefinition"""
+ # 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_regional_deployment_definition_type.py b/koyeb/api/test/test_regional_deployment_definition_type.py
new file mode 100644
index 00000000..b1259310
--- /dev/null
+++ b/koyeb/api/test/test_regional_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.regional_deployment_definition_type import RegionalDeploymentDefinitionType
+
+class TestRegionalDeploymentDefinitionType(unittest.TestCase):
+ """RegionalDeploymentDefinitionType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testRegionalDeploymentDefinitionType(self):
+ """Test RegionalDeploymentDefinitionType"""
+ # inst = RegionalDeploymentDefinitionType()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_regional_deployment_event.py b/koyeb/api/test/test_regional_deployment_event.py
new file mode 100644
index 00000000..3a6ba82d
--- /dev/null
+++ b/koyeb/api/test/test_regional_deployment_event.py
@@ -0,0 +1,57 @@
+# 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_event import RegionalDeploymentEvent
+
+class TestRegionalDeploymentEvent(unittest.TestCase):
+ """RegionalDeploymentEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionalDeploymentEvent`
+ """
+ model = RegionalDeploymentEvent()
+ if include_optional:
+ return 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.api.models.metadata.metadata()
+ )
+ else:
+ return RegionalDeploymentEvent(
+ )
+ """
+
+ def testRegionalDeploymentEvent(self):
+ """Test RegionalDeploymentEvent"""
+ # 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_regional_deployment_list_item.py b/koyeb/api/test/test_regional_deployment_list_item.py
new file mode 100644
index 00000000..393fcc62
--- /dev/null
+++ b/koyeb/api/test/test_regional_deployment_list_item.py
@@ -0,0 +1,159 @@
+# 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_list_item import RegionalDeploymentListItem
+
+class TestRegionalDeploymentListItem(unittest.TestCase):
+ """RegionalDeploymentListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionalDeploymentListItem`
+ """
+ model = RegionalDeploymentListItem()
+ if include_optional:
+ return 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'),
+ region = '',
+ status = 'PENDING',
+ messages = [
+ ''
+ ],
+ definition = koyeb.api.models.regional_deployment_definition.RegionalDeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.route.Route(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.port.Port(
+ port = 56,
+ protocol = '', )
+ ],
+ env = [
+ koyeb.api.models.env.Env(
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ region = '',
+ scaling = koyeb.api.models.scaling.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, ), )
+ ], ),
+ instance_type = '',
+ deployment_group = '',
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.regional_deployment_volume.RegionalDeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), )
+ )
+ else:
+ return RegionalDeploymentListItem(
+ )
+ """
+
+ def testRegionalDeploymentListItem(self):
+ """Test RegionalDeploymentListItem"""
+ # 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_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/api/test/test_regional_deployment_volume.py b/koyeb/api/test/test_regional_deployment_volume.py
new file mode 100644
index 00000000..96e1f417
--- /dev/null
+++ b/koyeb/api/test/test_regional_deployment_volume.py
@@ -0,0 +1,53 @@
+# 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_volume import RegionalDeploymentVolume
+
+class TestRegionalDeploymentVolume(unittest.TestCase):
+ """RegionalDeploymentVolume unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RegionalDeploymentVolume`
+ """
+ model = RegionalDeploymentVolume()
+ if include_optional:
+ return RegionalDeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56
+ )
+ else:
+ return RegionalDeploymentVolume(
+ )
+ """
+
+ def testRegionalDeploymentVolume(self):
+ """Test RegionalDeploymentVolume"""
+ # 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_regional_deployments_api.py b/koyeb/api/test/test_regional_deployments_api.py
new file mode 100644
index 00000000..c408ddb3
--- /dev/null
+++ b/koyeb/api/test/test_regional_deployments_api.py
@@ -0,0 +1,52 @@
+# 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.regional_deployments_api import RegionalDeploymentsApi
+
+
+class TestRegionalDeploymentsApi(unittest.TestCase):
+ """RegionalDeploymentsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = RegionalDeploymentsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_regional_deployment(self) -> None:
+ """Test case for get_regional_deployment
+
+ Get Regional Deployment
+ """
+ pass
+
+ def test_list_regional_deployment_events(self) -> None:
+ """Test case for list_regional_deployment_events
+
+ List Regional Deployment events
+ """
+ pass
+
+ def test_list_regional_deployments(self) -> None:
+ """Test case for list_regional_deployments
+
+ List Regional Deployments
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_remove_organization_member_reply.py b/koyeb/api/test/test_remove_organization_member_reply.py
new file mode 100644
index 00000000..83add0dd
--- /dev/null
+++ b/koyeb/api/test/test_remove_organization_member_reply.py
@@ -0,0 +1,68 @@
+# 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.remove_organization_member_reply import RemoveOrganizationMemberReply
+
+class TestRemoveOrganizationMemberReply(unittest.TestCase):
+ """RemoveOrganizationMemberReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RemoveOrganizationMemberReply`
+ """
+ model = RemoveOrganizationMemberReply()
+ if include_optional:
+ return RemoveOrganizationMemberReply(
+ 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.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ organization = koyeb.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ), )
+ )
+ else:
+ return RemoveOrganizationMemberReply(
+ )
+ """
+
+ def testRemoveOrganizationMemberReply(self):
+ """Test RemoveOrganizationMemberReply"""
+ # 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_repositories_api.py b/koyeb/api/test/test_repositories_api.py
new file mode 100644
index 00000000..376cb9ce
--- /dev/null
+++ b/koyeb/api/test/test_repositories_api.py
@@ -0,0 +1,52 @@
+# 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.repositories_api import RepositoriesApi
+
+
+class TestRepositoriesApi(unittest.TestCase):
+ """RepositoriesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = RepositoriesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_list_branches(self) -> None:
+ """Test case for list_branches
+
+ List Branches
+ """
+ pass
+
+ def test_list_repositories(self) -> None:
+ """Test case for list_repositories
+
+ List Repositories
+ """
+ pass
+
+ def test_resync_organization(self) -> None:
+ """Test case for resync_organization
+
+ Resync Organization
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_resend_organization_invitation_reply.py b/koyeb/api/test/test_resend_organization_invitation_reply.py
new file mode 100644
index 00000000..981c760d
--- /dev/null
+++ b/koyeb/api/test/test_resend_organization_invitation_reply.py
@@ -0,0 +1,77 @@
+# 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.resend_organization_invitation_reply import ResendOrganizationInvitationReply
+
+class TestResendOrganizationInvitationReply(unittest.TestCase):
+ """ResendOrganizationInvitationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ResendOrganizationInvitationReply`
+ """
+ model = ResendOrganizationInvitationReply()
+ if include_optional:
+ return ResendOrganizationInvitationReply(
+ 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.api.models.public_organization.PublicOrganization(
+ id = '',
+ name = '',
+ plan = 'hobby', ),
+ invitee_id = '',
+ invitee = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ),
+ inviter_id = '',
+ inviter = koyeb.api.models.public_user.PublicUser(
+ id = '',
+ email = '',
+ name = '',
+ avatar_url = '',
+ github_id = '',
+ github_user = '', ), )
+ )
+ else:
+ return ResendOrganizationInvitationReply(
+ )
+ """
+
+ def testResendOrganizationInvitationReply(self):
+ """Test ResendOrganizationInvitationReply"""
+ # 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_reset_password_request.py b/koyeb/api/test/test_reset_password_request.py
new file mode 100644
index 00000000..7724bdfd
--- /dev/null
+++ b/koyeb/api/test/test_reset_password_request.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
+
+
+import unittest
+
+from koyeb.api.models.reset_password_request import ResetPasswordRequest
+
+class TestResetPasswordRequest(unittest.TestCase):
+ """ResetPasswordRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ResetPasswordRequest`
+ """
+ model = ResetPasswordRequest()
+ if include_optional:
+ return ResetPasswordRequest(
+ email = ''
+ )
+ else:
+ return ResetPasswordRequest(
+ )
+ """
+
+ def testResetPasswordRequest(self):
+ """Test ResetPasswordRequest"""
+ # 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_reveal_secret_reply.py b/koyeb/api/test/test_reveal_secret_reply.py
new file mode 100644
index 00000000..58b39fe4
--- /dev/null
+++ b/koyeb/api/test/test_reveal_secret_reply.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
+
+
+import unittest
+
+from koyeb.api.models.reveal_secret_reply import RevealSecretReply
+
+class TestRevealSecretReply(unittest.TestCase):
+ """RevealSecretReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `RevealSecretReply`
+ """
+ model = RevealSecretReply()
+ if include_optional:
+ return RevealSecretReply(
+ value = None
+ )
+ else:
+ return RevealSecretReply(
+ )
+ """
+
+ def testRevealSecretReply(self):
+ """Test RevealSecretReply"""
+ # 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_review_organization_capacity_reply.py b/koyeb/api/test/test_review_organization_capacity_reply.py
new file mode 100644
index 00000000..0f065569
--- /dev/null
+++ b/koyeb/api/test/test_review_organization_capacity_reply.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
+
+
+import unittest
+
+from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply
+
+class TestReviewOrganizationCapacityReply(unittest.TestCase):
+ """ReviewOrganizationCapacityReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ReviewOrganizationCapacityReply`
+ """
+ model = ReviewOrganizationCapacityReply()
+ if include_optional:
+ return ReviewOrganizationCapacityReply(
+ has_capacity = True
+ )
+ else:
+ return ReviewOrganizationCapacityReply(
+ )
+ """
+
+ def testReviewOrganizationCapacityReply(self):
+ """Test ReviewOrganizationCapacityReply"""
+ # 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_review_organization_capacity_request.py b/koyeb/api/test/test_review_organization_capacity_request.py
new file mode 100644
index 00000000..768a139b
--- /dev/null
+++ b/koyeb/api/test/test_review_organization_capacity_request.py
@@ -0,0 +1,52 @@
+# 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.review_organization_capacity_request import ReviewOrganizationCapacityRequest
+
+class TestReviewOrganizationCapacityRequest(unittest.TestCase):
+ """ReviewOrganizationCapacityRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ReviewOrganizationCapacityRequest`
+ """
+ model = ReviewOrganizationCapacityRequest()
+ if include_optional:
+ return ReviewOrganizationCapacityRequest(
+ plan = '',
+ trialing = True
+ )
+ else:
+ return ReviewOrganizationCapacityRequest(
+ )
+ """
+
+ def testReviewOrganizationCapacityRequest(self):
+ """Test ReviewOrganizationCapacityRequest"""
+ # 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_route.py b/koyeb/api/test/test_route.py
new file mode 100644
index 00000000..5f0c35ab
--- /dev/null
+++ b/koyeb/api/test/test_route.py
@@ -0,0 +1,52 @@
+# 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.route import Route
+
+class TestRoute(unittest.TestCase):
+ """Route unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Route`
+ """
+ model = Route()
+ if include_optional:
+ return Route(
+ port = 56,
+ path = ''
+ )
+ else:
+ return Route(
+ )
+ """
+
+ def testRoute(self):
+ """Test Route"""
+ # 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_sample.py b/koyeb/api/test/test_sample.py
new file mode 100644
index 00000000..6f72d0d6
--- /dev/null
+++ b/koyeb/api/test/test_sample.py
@@ -0,0 +1,52 @@
+# 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.sample import Sample
+
+class TestSample(unittest.TestCase):
+ """Sample unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Sample`
+ """
+ model = Sample()
+ if include_optional:
+ return Sample(
+ timestamp = '',
+ value = 1.337
+ )
+ else:
+ return Sample(
+ )
+ """
+
+ def testSample(self):
+ """Test Sample"""
+ # 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_scale_to_zero_quotas.py b/koyeb/api/test/test_scale_to_zero_quotas.py
new file mode 100644
index 00000000..f46bc81a
--- /dev/null
+++ b/koyeb/api/test/test_scale_to_zero_quotas.py
@@ -0,0 +1,56 @@
+# 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.scale_to_zero_quotas import ScaleToZeroQuotas
+
+class TestScaleToZeroQuotas(unittest.TestCase):
+ """ScaleToZeroQuotas unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ScaleToZeroQuotas`
+ """
+ model = ScaleToZeroQuotas()
+ if include_optional:
+ return 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
+ )
+ else:
+ return ScaleToZeroQuotas(
+ )
+ """
+
+ def testScaleToZeroQuotas(self):
+ """Test ScaleToZeroQuotas"""
+ # 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_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/api/test/test_search_api.py b/koyeb/api/test/test_search_api.py
new file mode 100644
index 00000000..600e5626
--- /dev/null
+++ b/koyeb/api/test/test_search_api.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
+
+
+import unittest
+
+from koyeb.api.api.search_api import SearchApi
+
+
+class TestSearchApi(unittest.TestCase):
+ """SearchApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SearchApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_search(self) -> None:
+ """Test case for search
+
+ Search
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_secret.py b/koyeb/api/test/test_secret.py
new file mode 100644
index 00000000..450eb3a8
--- /dev/null
+++ b/koyeb/api/test/test_secret.py
@@ -0,0 +1,83 @@
+# 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 import Secret
+
+class TestSecret(unittest.TestCase):
+ """Secret unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Secret`
+ """
+ model = Secret()
+ if include_optional:
+ return Secret(
+ id = '',
+ name = '',
+ organization_id = '',
+ type = 'SIMPLE',
+ 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.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = '', ),
+ digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
+ username = '',
+ password = '', ),
+ github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = '', ),
+ azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = '', ),
+ database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword(
+ username = '',
+ password = '', )
+ )
+ else:
+ return Secret(
+ )
+ """
+
+ def testSecret(self):
+ """Test Secret"""
+ # 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_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/api/test/test_secrets_summary.py b/koyeb/api/test/test_secrets_summary.py
new file mode 100644
index 00000000..3756dce2
--- /dev/null
+++ b/koyeb/api/test/test_secrets_summary.py
@@ -0,0 +1,54 @@
+# 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.secrets_summary import SecretsSummary
+
+class TestSecretsSummary(unittest.TestCase):
+ """SecretsSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `SecretsSummary`
+ """
+ model = SecretsSummary()
+ if include_optional:
+ return SecretsSummary(
+ total = '',
+ by_type = {
+ 'key' : ''
+ }
+ )
+ else:
+ return SecretsSummary(
+ )
+ """
+
+ def testSecretsSummary(self):
+ """Test SecretsSummary"""
+ # 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_service.py b/koyeb/api/test/test_service.py
new file mode 100644
index 00000000..146af71d
--- /dev/null
+++ b/koyeb/api/test/test_service.py
@@ -0,0 +1,80 @@
+# 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 import Service
+
+class TestService(unittest.TestCase):
+ """Service unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Service`
+ """
+ model = Service()
+ if include_optional:
+ return 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'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ name = '',
+ type = 'INVALID_TYPE',
+ organization_id = '',
+ app_id = '',
+ status = 'STARTING',
+ messages = [
+ ''
+ ],
+ version = '',
+ active_deployment_id = '',
+ latest_deployment_id = '',
+ last_provisioned_deployment_id = '',
+ state = koyeb.api.models.service_state.ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(), )
+ )
+ else:
+ return Service(
+ )
+ """
+
+ def testService(self):
+ """Test Service"""
+ # 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_service_event.py b/koyeb/api/test/test_service_event.py
new file mode 100644
index 00000000..5b51e4f1
--- /dev/null
+++ b/koyeb/api/test/test_service_event.py
@@ -0,0 +1,57 @@
+# 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_event import ServiceEvent
+
+class TestServiceEvent(unittest.TestCase):
+ """ServiceEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ServiceEvent`
+ """
+ model = ServiceEvent()
+ if include_optional:
+ return 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.api.models.metadata.metadata()
+ )
+ else:
+ return ServiceEvent(
+ )
+ """
+
+ def testServiceEvent(self):
+ """Test ServiceEvent"""
+ # 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_service_list_item.py b/koyeb/api/test/test_service_list_item.py
new file mode 100644
index 00000000..a9f17d97
--- /dev/null
+++ b/koyeb/api/test/test_service_list_item.py
@@ -0,0 +1,74 @@
+# 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_list_item import ServiceListItem
+
+class TestServiceListItem(unittest.TestCase):
+ """ServiceListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ServiceListItem`
+ """
+ model = ServiceListItem()
+ if include_optional:
+ return ServiceListItem(
+ id = '',
+ name = '',
+ type = 'INVALID_TYPE',
+ organization_id = '',
+ app_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'),
+ status = 'STARTING',
+ messages = [
+ ''
+ ],
+ version = '',
+ state = koyeb.api.models.service_state.ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(), ),
+ active_deployment_id = '',
+ latest_deployment_id = ''
+ )
+ else:
+ return ServiceListItem(
+ )
+ """
+
+ def testServiceListItem(self):
+ """Test ServiceListItem"""
+ # 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_service_state.py b/koyeb/api/test/test_service_state.py
new file mode 100644
index 00000000..a744cfdc
--- /dev/null
+++ b/koyeb/api/test/test_service_state.py
@@ -0,0 +1,66 @@
+# 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_state import ServiceState
+
+class TestServiceState(unittest.TestCase):
+ """ServiceState unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ServiceState`
+ """
+ model = ServiceState()
+ if include_optional:
+ return ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(
+ groups = [
+ 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 = '',
+ latest_sha = '', )
+ ], )
+ )
+ else:
+ return ServiceState(
+ )
+ """
+
+ def testServiceState(self):
+ """Test ServiceState"""
+ # 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_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/api/test/test_service_summary.py b/koyeb/api/test/test_service_summary.py
new file mode 100644
index 00000000..fb85a681
--- /dev/null
+++ b/koyeb/api/test/test_service_summary.py
@@ -0,0 +1,54 @@
+# 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_summary import ServiceSummary
+
+class TestServiceSummary(unittest.TestCase):
+ """ServiceSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ServiceSummary`
+ """
+ model = ServiceSummary()
+ if include_optional:
+ return ServiceSummary(
+ total = '',
+ by_status = {
+ 'key' : ''
+ }
+ )
+ else:
+ return ServiceSummary(
+ )
+ """
+
+ def testServiceSummary(self):
+ """Test ServiceSummary"""
+ # 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_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/api/test/test_service_usage.py b/koyeb/api/test/test_service_usage.py
new file mode 100644
index 00000000..039e8a4d
--- /dev/null
+++ b/koyeb/api/test/test_service_usage.py
@@ -0,0 +1,59 @@
+# 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_usage import ServiceUsage
+
+class TestServiceUsage(unittest.TestCase):
+ """ServiceUsage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `ServiceUsage`
+ """
+ model = ServiceUsage()
+ if include_optional:
+ return ServiceUsage(
+ service_id = '',
+ service_name = '',
+ regions = {
+ 'key' : koyeb.api.models.region_usage.RegionUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_usage.InstanceUsage(
+ duration_seconds = 56, )
+ }, )
+ }
+ )
+ else:
+ return ServiceUsage(
+ )
+ """
+
+ def testServiceUsage(self):
+ """Test ServiceUsage"""
+ # 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_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/api/test/test_sessions_api.py b/koyeb/api/test/test_sessions_api.py
new file mode 100644
index 00000000..4ed09228
--- /dev/null
+++ b/koyeb/api/test/test_sessions_api.py
@@ -0,0 +1,59 @@
+# 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.sessions_api import SessionsApi
+
+
+class TestSessionsApi(unittest.TestCase):
+ """SessionsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SessionsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_login(self) -> None:
+ """Test case for login
+
+ Login user
+ """
+ pass
+
+ def test_logout(self) -> None:
+ """Test case for logout
+
+ Logout user
+ """
+ pass
+
+ def test_new_session(self) -> None:
+ """Test case for new_session
+
+ New session
+ """
+ pass
+
+ def test_refresh_token(self) -> None:
+ """Test case for refresh_token
+
+ Refresh token
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_snapshot.py b/koyeb/api/test/test_snapshot.py
new file mode 100644
index 00000000..11da1753
--- /dev/null
+++ b/koyeb/api/test/test_snapshot.py
@@ -0,0 +1,61 @@
+# 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 import Snapshot
+
+class TestSnapshot(unittest.TestCase):
+ """Snapshot unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Snapshot`
+ """
+ model = Snapshot()
+ if include_optional:
+ return Snapshot(
+ id = '',
+ name = '',
+ size = 56,
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ parent_volume_id = '',
+ region = '',
+ status = 'SNAPSHOT_STATUS_INVALID',
+ type = 'SNAPSHOT_TYPE_INVALID'
+ )
+ else:
+ return Snapshot(
+ )
+ """
+
+ def testSnapshot(self):
+ """Test Snapshot"""
+ # 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_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/api/test/test_snapshots_api.py b/koyeb/api/test/test_snapshots_api.py
new file mode 100644
index 00000000..8d71b480
--- /dev/null
+++ b/koyeb/api/test/test_snapshots_api.py
@@ -0,0 +1,66 @@
+# 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.snapshots_api import SnapshotsApi
+
+
+class TestSnapshotsApi(unittest.TestCase):
+ """SnapshotsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SnapshotsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_snapshot(self) -> None:
+ """Test case for create_snapshot
+
+ Create a Snapshot
+ """
+ pass
+
+ def test_delete_snapshot(self) -> None:
+ """Test case for delete_snapshot
+
+ Delete a Snapshot
+ """
+ pass
+
+ def test_get_snapshot(self) -> None:
+ """Test case for get_snapshot
+
+ Get a Snapshot
+ """
+ pass
+
+ def test_list_snapshots(self) -> None:
+ """Test case for list_snapshots
+
+ List all Snapshots
+ """
+ pass
+
+ def test_update_snapshot(self) -> None:
+ """Test case for update_snapshot
+
+ Update a Snapshot
+ """
+ pass
+
+
+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/api/test/test_stream_result_of_exec_command_reply.py b/koyeb/api/test/test_stream_result_of_exec_command_reply.py
new file mode 100644
index 00000000..93daa070
--- /dev/null
+++ b/koyeb/api/test/test_stream_result_of_exec_command_reply.py
@@ -0,0 +1,67 @@
+# 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.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply
+
+class TestStreamResultOfExecCommandReply(unittest.TestCase):
+ """StreamResultOfExecCommandReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `StreamResultOfExecCommandReply`
+ """
+ model = StreamResultOfExecCommandReply()
+ if include_optional:
+ return StreamResultOfExecCommandReply(
+ result = koyeb.api.models.exec_command_reply.ExecCommandReply(
+ stdout = koyeb.api.models.exec_command_io.ExecCommandIO(
+ data = 'YQ==',
+ close = True, ),
+ stderr = koyeb.api.models.exec_command_io.ExecCommandIO(
+ data = 'YQ==',
+ close = True, ),
+ exited = True,
+ exit_code = 56, ),
+ error = koyeb.api.models.google/rpc/status.google.rpc.Status(
+ code = 56,
+ message = '',
+ details = [
+ {
+ 'key' : None
+ }
+ ], )
+ )
+ else:
+ return StreamResultOfExecCommandReply(
+ )
+ """
+
+ def testStreamResultOfExecCommandReply(self):
+ """Test StreamResultOfExecCommandReply"""
+ # 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_stream_result_of_log_entry.py b/koyeb/api/test/test_stream_result_of_log_entry.py
new file mode 100644
index 00000000..35025605
--- /dev/null
+++ b/koyeb/api/test/test_stream_result_of_log_entry.py
@@ -0,0 +1,62 @@
+# 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.stream_result_of_log_entry import StreamResultOfLogEntry
+
+class TestStreamResultOfLogEntry(unittest.TestCase):
+ """StreamResultOfLogEntry unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `StreamResultOfLogEntry`
+ """
+ model = StreamResultOfLogEntry()
+ if include_optional:
+ return StreamResultOfLogEntry(
+ 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.api.models.labels.labels(), ),
+ error = koyeb.api.models.google/rpc/status.google.rpc.Status(
+ code = 56,
+ message = '',
+ details = [
+ {
+ 'key' : None
+ }
+ ], )
+ )
+ else:
+ return StreamResultOfLogEntry(
+ )
+ """
+
+ def testStreamResultOfLogEntry(self):
+ """Test StreamResultOfLogEntry"""
+ # 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_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/api/test/test_subscription_payment_failure.py b/koyeb/api/test/test_subscription_payment_failure.py
new file mode 100644
index 00000000..e0eb1969
--- /dev/null
+++ b/koyeb/api/test/test_subscription_payment_failure.py
@@ -0,0 +1,62 @@
+# 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_payment_failure import SubscriptionPaymentFailure
+
+class TestSubscriptionPaymentFailure(unittest.TestCase):
+ """SubscriptionPaymentFailure unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `SubscriptionPaymentFailure`
+ """
+ model = SubscriptionPaymentFailure()
+ if include_optional:
+ return SubscriptionPaymentFailure(
+ 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 = '',
+ error_code = '',
+ error_reason = '',
+ error_type = '',
+ error_message = '',
+ payment_method_required = True,
+ redirect_url = '',
+ stripe_sdk = koyeb.api.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK(
+ client_secret_key = '',
+ raw_json = '', )
+ )
+ else:
+ return SubscriptionPaymentFailure(
+ )
+ """
+
+ def testSubscriptionPaymentFailure(self):
+ """Test SubscriptionPaymentFailure"""
+ # 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_subscription_payment_failure_stripe_sdk.py b/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py
new file mode 100644
index 00000000..3d706976
--- /dev/null
+++ b/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py
@@ -0,0 +1,52 @@
+# 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_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK
+
+class TestSubscriptionPaymentFailureStripeSDK(unittest.TestCase):
+ """SubscriptionPaymentFailureStripeSDK unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `SubscriptionPaymentFailureStripeSDK`
+ """
+ model = SubscriptionPaymentFailureStripeSDK()
+ if include_optional:
+ return SubscriptionPaymentFailureStripeSDK(
+ client_secret_key = '',
+ raw_json = ''
+ )
+ else:
+ return SubscriptionPaymentFailureStripeSDK(
+ )
+ """
+
+ def testSubscriptionPaymentFailureStripeSDK(self):
+ """Test SubscriptionPaymentFailureStripeSDK"""
+ # 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_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/api/test/test_subscriptions_api.py b/koyeb/api/test/test_subscriptions_api.py
new file mode 100644
index 00000000..0380e719
--- /dev/null
+++ b/koyeb/api/test/test_subscriptions_api.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
+
+
+import unittest
+
+from koyeb.api.api.subscriptions_api import SubscriptionsApi
+
+
+class TestSubscriptionsApi(unittest.TestCase):
+ """SubscriptionsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SubscriptionsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_subscription(self) -> None:
+ """Test case for get_subscription
+
+ Get Subscription
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_summary_api.py b/koyeb/api/test/test_summary_api.py
new file mode 100644
index 00000000..f4e541b3
--- /dev/null
+++ b/koyeb/api/test/test_summary_api.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
+
+
+import unittest
+
+from koyeb.api.api.summary_api import SummaryApi
+
+
+class TestSummaryApi(unittest.TestCase):
+ """SummaryApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = SummaryApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_organization_summary(self) -> None:
+ """Test case for get_organization_summary
+
+ Get organization usage summary
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_tcp_health_check.py b/koyeb/api/test/test_tcp_health_check.py
new file mode 100644
index 00000000..21aaa13e
--- /dev/null
+++ b/koyeb/api/test/test_tcp_health_check.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
+
+
+import unittest
+
+from koyeb.api.models.tcp_health_check import TCPHealthCheck
+
+class TestTCPHealthCheck(unittest.TestCase):
+ """TCPHealthCheck unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `TCPHealthCheck`
+ """
+ model = TCPHealthCheck()
+ if include_optional:
+ return TCPHealthCheck(
+ port = 56
+ )
+ else:
+ return TCPHealthCheck(
+ )
+ """
+
+ def testTCPHealthCheck(self):
+ """Test TCPHealthCheck"""
+ # 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_token.py b/koyeb/api/test/test_token.py
new file mode 100644
index 00000000..20dd381e
--- /dev/null
+++ b/koyeb/api/test/test_token.py
@@ -0,0 +1,54 @@
+# 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.token import Token
+
+class TestToken(unittest.TestCase):
+ """Token unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Token`
+ """
+ model = Token()
+ if include_optional:
+ return Token(
+ id = '',
+ user_id = '',
+ organization_id = '',
+ expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return Token(
+ )
+ """
+
+ def testToken(self):
+ """Test Token"""
+ # 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_trigger_deployment_metadata.py b/koyeb/api/test/test_trigger_deployment_metadata.py
new file mode 100644
index 00000000..80988f65
--- /dev/null
+++ b/koyeb/api/test/test_trigger_deployment_metadata.py
@@ -0,0 +1,61 @@
+# 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.trigger_deployment_metadata import TriggerDeploymentMetadata
+
+class TestTriggerDeploymentMetadata(unittest.TestCase):
+ """TriggerDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `TriggerDeploymentMetadata`
+ """
+ model = TriggerDeploymentMetadata()
+ if include_optional:
+ return TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', )
+ )
+ else:
+ return TriggerDeploymentMetadata(
+ )
+ """
+
+ def testTriggerDeploymentMetadata(self):
+ """Test TriggerDeploymentMetadata"""
+ # 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_trigger_deployment_metadata_actor_type.py b/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py
new file mode 100644
index 00000000..963424df
--- /dev/null
+++ b/koyeb/api/test/test_trigger_deployment_metadata_actor_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.trigger_deployment_metadata_actor_type import TriggerDeploymentMetadataActorType
+
+class TestTriggerDeploymentMetadataActorType(unittest.TestCase):
+ """TriggerDeploymentMetadataActorType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testTriggerDeploymentMetadataActorType(self):
+ """Test TriggerDeploymentMetadataActorType"""
+ # inst = TriggerDeploymentMetadataActorType()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py b/koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py
new file mode 100644
index 00000000..a1c9d5cd
--- /dev/null
+++ b/koyeb/api/test/test_trigger_deployment_metadata_trigger_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.trigger_deployment_metadata_trigger_type import TriggerDeploymentMetadataTriggerType
+
+class TestTriggerDeploymentMetadataTriggerType(unittest.TestCase):
+ """TriggerDeploymentMetadataTriggerType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testTriggerDeploymentMetadataTriggerType(self):
+ """Test TriggerDeploymentMetadataTriggerType"""
+ # inst = TriggerDeploymentMetadataTriggerType()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_trigger_git_deployment_metadata.py b/koyeb/api/test/test_trigger_git_deployment_metadata.py
new file mode 100644
index 00000000..368d57c0
--- /dev/null
+++ b/koyeb/api/test/test_trigger_git_deployment_metadata.py
@@ -0,0 +1,58 @@
+# 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.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata
+
+class TestTriggerGitDeploymentMetadata(unittest.TestCase):
+ """TriggerGitDeploymentMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `TriggerGitDeploymentMetadata`
+ """
+ model = TriggerGitDeploymentMetadata()
+ if include_optional:
+ return TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = ''
+ )
+ else:
+ return TriggerGitDeploymentMetadata(
+ )
+ """
+
+ def testTriggerGitDeploymentMetadata(self):
+ """Test TriggerGitDeploymentMetadata"""
+ # 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_trigger_git_deployment_metadata_provider.py b/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py
new file mode 100644
index 00000000..094baab1
--- /dev/null
+++ b/koyeb/api/test/test_trigger_git_deployment_metadata_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.trigger_git_deployment_metadata_provider import TriggerGitDeploymentMetadataProvider
+
+class TestTriggerGitDeploymentMetadataProvider(unittest.TestCase):
+ """TriggerGitDeploymentMetadataProvider unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testTriggerGitDeploymentMetadataProvider(self):
+ """Test TriggerGitDeploymentMetadataProvider"""
+ # inst = TriggerGitDeploymentMetadataProvider()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_update_app.py b/koyeb/api/test/test_update_app.py
new file mode 100644
index 00000000..d7990606
--- /dev/null
+++ b/koyeb/api/test/test_update_app.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
+
+
+import unittest
+
+from koyeb.api.models.update_app import UpdateApp
+
+class TestUpdateApp(unittest.TestCase):
+ """UpdateApp unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateApp`
+ """
+ model = UpdateApp()
+ if include_optional:
+ return UpdateApp(
+ name = ''
+ )
+ else:
+ return UpdateApp(
+ )
+ """
+
+ def testUpdateApp(self):
+ """Test UpdateApp"""
+ # 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_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/api/test/test_update_budget_reply.py b/koyeb/api/test/test_update_budget_reply.py
new file mode 100644
index 00000000..5d97f737
--- /dev/null
+++ b/koyeb/api/test/test_update_budget_reply.py
@@ -0,0 +1,55 @@
+# 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.update_budget_reply import UpdateBudgetReply
+
+class TestUpdateBudgetReply(unittest.TestCase):
+ """UpdateBudgetReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateBudgetReply`
+ """
+ model = UpdateBudgetReply()
+ if include_optional:
+ return UpdateBudgetReply(
+ budget = koyeb.api.models.budget.Budget(
+ amount = '',
+ thresholds = [
+ ''
+ ], )
+ )
+ else:
+ return UpdateBudgetReply(
+ )
+ """
+
+ def testUpdateBudgetReply(self):
+ """Test UpdateBudgetReply"""
+ # 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_update_budget_request.py b/koyeb/api/test/test_update_budget_request.py
new file mode 100644
index 00000000..4181a5a3
--- /dev/null
+++ b/koyeb/api/test/test_update_budget_request.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
+
+
+import unittest
+
+from koyeb.api.models.update_budget_request import UpdateBudgetRequest
+
+class TestUpdateBudgetRequest(unittest.TestCase):
+ """UpdateBudgetRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateBudgetRequest`
+ """
+ model = UpdateBudgetRequest()
+ if include_optional:
+ return UpdateBudgetRequest(
+ amount = ''
+ )
+ else:
+ return UpdateBudgetRequest(
+ )
+ """
+
+ def testUpdateBudgetRequest(self):
+ """Test UpdateBudgetRequest"""
+ # 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_update_credential_reply.py b/koyeb/api/test/test_update_credential_reply.py
new file mode 100644
index 00000000..7a7b24bd
--- /dev/null
+++ b/koyeb/api/test/test_update_credential_reply.py
@@ -0,0 +1,61 @@
+# 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.update_credential_reply import UpdateCredentialReply
+
+class TestUpdateCredentialReply(unittest.TestCase):
+ """UpdateCredentialReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateCredentialReply`
+ """
+ model = UpdateCredentialReply()
+ if include_optional:
+ return UpdateCredentialReply(
+ credential = koyeb.api.models.credential.Credential(
+ id = '',
+ type = 'INVALID',
+ name = '',
+ token = '',
+ description = '',
+ user_id = '',
+ 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'),
+ expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ )
+ else:
+ return UpdateCredentialReply(
+ )
+ """
+
+ def testUpdateCredentialReply(self):
+ """Test UpdateCredentialReply"""
+ # 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_update_domain.py b/koyeb/api/test/test_update_domain.py
new file mode 100644
index 00000000..7e313158
--- /dev/null
+++ b/koyeb/api/test/test_update_domain.py
@@ -0,0 +1,52 @@
+# 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.update_domain import UpdateDomain
+
+class TestUpdateDomain(unittest.TestCase):
+ """UpdateDomain unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateDomain`
+ """
+ model = UpdateDomain()
+ if include_optional:
+ return UpdateDomain(
+ app_id = '',
+ subdomain = ''
+ )
+ else:
+ return UpdateDomain(
+ )
+ """
+
+ def testUpdateDomain(self):
+ """Test UpdateDomain"""
+ # 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_update_domain_reply.py b/koyeb/api/test/test_update_domain_reply.py
new file mode 100644
index 00000000..07c70183
--- /dev/null
+++ b/koyeb/api/test/test_update_domain_reply.py
@@ -0,0 +1,69 @@
+# 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.update_domain_reply import UpdateDomainReply
+
+class TestUpdateDomainReply(unittest.TestCase):
+ """UpdateDomainReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateDomainReply`
+ """
+ model = UpdateDomainReply()
+ if include_optional:
+ return UpdateDomainReply(
+ domain = koyeb.api.models.domain.Domain(
+ id = '',
+ organization_id = '',
+ name = '',
+ 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'),
+ status = 'PENDING',
+ type = 'AUTOASSIGNED',
+ app_id = '',
+ deployment_group = '',
+ verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ intended_cname = '',
+ messages = [
+ ''
+ ],
+ version = '',
+ 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:
+ return UpdateDomainReply(
+ )
+ """
+
+ def testUpdateDomainReply(self):
+ """Test UpdateDomainReply"""
+ # 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_update_organization_plan_reply.py b/koyeb/api/test/test_update_organization_plan_reply.py
new file mode 100644
index 00000000..0e61465f
--- /dev/null
+++ b/koyeb/api/test/test_update_organization_plan_reply.py
@@ -0,0 +1,83 @@
+# 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.update_organization_plan_reply import UpdateOrganizationPlanReply
+
+class TestUpdateOrganizationPlanReply(unittest.TestCase):
+ """UpdateOrganizationPlanReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateOrganizationPlanReply`
+ """
+ model = UpdateOrganizationPlanReply()
+ if include_optional:
+ return UpdateOrganizationPlanReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return UpdateOrganizationPlanReply(
+ )
+ """
+
+ def testUpdateOrganizationPlanReply(self):
+ """Test UpdateOrganizationPlanReply"""
+ # 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_update_organization_plan_request.py b/koyeb/api/test/test_update_organization_plan_request.py
new file mode 100644
index 00000000..9ec5cc71
--- /dev/null
+++ b/koyeb/api/test/test_update_organization_plan_request.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
+
+
+import unittest
+
+from koyeb.api.models.update_organization_plan_request import UpdateOrganizationPlanRequest
+
+class TestUpdateOrganizationPlanRequest(unittest.TestCase):
+ """UpdateOrganizationPlanRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateOrganizationPlanRequest`
+ """
+ model = UpdateOrganizationPlanRequest()
+ if include_optional:
+ return UpdateOrganizationPlanRequest(
+ plan = 'hobby'
+ )
+ else:
+ return UpdateOrganizationPlanRequest(
+ )
+ """
+
+ def testUpdateOrganizationPlanRequest(self):
+ """Test UpdateOrganizationPlanRequest"""
+ # 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_update_organization_reply.py b/koyeb/api/test/test_update_organization_reply.py
new file mode 100644
index 00000000..6327140b
--- /dev/null
+++ b/koyeb/api/test/test_update_organization_reply.py
@@ -0,0 +1,83 @@
+# 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.update_organization_reply import UpdateOrganizationReply
+
+class TestUpdateOrganizationReply(unittest.TestCase):
+ """UpdateOrganizationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateOrganizationReply`
+ """
+ model = UpdateOrganizationReply()
+ if include_optional:
+ return UpdateOrganizationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return UpdateOrganizationReply(
+ )
+ """
+
+ def testUpdateOrganizationReply(self):
+ """Test UpdateOrganizationReply"""
+ # 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_update_password_request.py b/koyeb/api/test/test_update_password_request.py
new file mode 100644
index 00000000..170f593a
--- /dev/null
+++ b/koyeb/api/test/test_update_password_request.py
@@ -0,0 +1,52 @@
+# 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.update_password_request import UpdatePasswordRequest
+
+class TestUpdatePasswordRequest(unittest.TestCase):
+ """UpdatePasswordRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdatePasswordRequest`
+ """
+ model = UpdatePasswordRequest()
+ if include_optional:
+ return UpdatePasswordRequest(
+ id = '',
+ password = ''
+ )
+ else:
+ return UpdatePasswordRequest(
+ )
+ """
+
+ def testUpdatePasswordRequest(self):
+ """Test UpdatePasswordRequest"""
+ # 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_update_persistent_volume_reply.py b/koyeb/api/test/test_update_persistent_volume_reply.py
new file mode 100644
index 00000000..1af1452e
--- /dev/null
+++ b/koyeb/api/test/test_update_persistent_volume_reply.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.update_persistent_volume_reply import UpdatePersistentVolumeReply
+
+class TestUpdatePersistentVolumeReply(unittest.TestCase):
+ """UpdatePersistentVolumeReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdatePersistentVolumeReply`
+ """
+ model = UpdatePersistentVolumeReply()
+ if include_optional:
+ return UpdatePersistentVolumeReply(
+ 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 = '',
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ service_id = '',
+ region = '',
+ read_only = True,
+ max_size = 56,
+ cur_size = 56,
+ status = 'PERSISTENT_VOLUME_STATUS_INVALID',
+ backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
+ )
+ else:
+ return UpdatePersistentVolumeReply(
+ )
+ """
+
+ def testUpdatePersistentVolumeReply(self):
+ """Test UpdatePersistentVolumeReply"""
+ # 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_update_persistent_volume_request.py b/koyeb/api/test/test_update_persistent_volume_request.py
new file mode 100644
index 00000000..4844fd1d
--- /dev/null
+++ b/koyeb/api/test/test_update_persistent_volume_request.py
@@ -0,0 +1,52 @@
+# 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.update_persistent_volume_request import UpdatePersistentVolumeRequest
+
+class TestUpdatePersistentVolumeRequest(unittest.TestCase):
+ """UpdatePersistentVolumeRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdatePersistentVolumeRequest`
+ """
+ model = UpdatePersistentVolumeRequest()
+ if include_optional:
+ return UpdatePersistentVolumeRequest(
+ name = '',
+ max_size = 56
+ )
+ else:
+ return UpdatePersistentVolumeRequest(
+ )
+ """
+
+ def testUpdatePersistentVolumeRequest(self):
+ """Test UpdatePersistentVolumeRequest"""
+ # 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_update_secret_reply.py b/koyeb/api/test/test_update_secret_reply.py
new file mode 100644
index 00000000..da895bdd
--- /dev/null
+++ b/koyeb/api/test/test_update_secret_reply.py
@@ -0,0 +1,84 @@
+# 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.update_secret_reply import UpdateSecretReply
+
+class TestUpdateSecretReply(unittest.TestCase):
+ """UpdateSecretReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateSecretReply`
+ """
+ model = UpdateSecretReply()
+ if include_optional:
+ return UpdateSecretReply(
+ secret = koyeb.api.models.secret.Secret(
+ id = '',
+ name = '',
+ organization_id = '',
+ type = 'SIMPLE',
+ 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.api.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ private_registry = koyeb.api.models.private_registry_configuration.PrivateRegistryConfiguration(
+ username = '',
+ password = '',
+ url = '', ),
+ digital_ocean_registry = koyeb.api.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
+ username = '',
+ password = '', ),
+ github_registry = koyeb.api.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gitlab_registry = koyeb.api.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
+ username = '',
+ password = '', ),
+ gcp_container_registry = koyeb.api.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
+ keyfile_content = '',
+ url = '', ),
+ azure_container_registry = koyeb.api.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
+ registry_name = '',
+ username = '',
+ password = '', ),
+ database_role_password = koyeb.api.models.database_role_password.DatabaseRolePassword(
+ username = '',
+ password = '', ), )
+ )
+ else:
+ return UpdateSecretReply(
+ )
+ """
+
+ def testUpdateSecretReply(self):
+ """Test UpdateSecretReply"""
+ # 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_update_service.py b/koyeb/api/test/test_update_service.py
new file mode 100644
index 00000000..4638d130
--- /dev/null
+++ b/koyeb/api/test/test_update_service.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
+
+
+import unittest
+
+from koyeb.api.models.update_service import UpdateService
+
+class TestUpdateService(unittest.TestCase):
+ """UpdateService unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateService`
+ """
+ model = UpdateService()
+ if include_optional:
+ return UpdateService(
+ definition = koyeb.api.models.deployment_definition.DeploymentDefinition(
+ name = '',
+ type = 'INVALID',
+ strategy = koyeb.api.models.deployment_strategy.DeploymentStrategy(),
+ routes = [
+ koyeb.api.models.deployment_route.DeploymentRoute(
+ port = 56,
+ path = '', )
+ ],
+ ports = [
+ koyeb.api.models.deployment_port.DeploymentPort(
+ port = 56,
+ protocol = '', )
+ ],
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port.DeploymentProxyPort(
+ port = 56,
+ protocol = 'tcp', )
+ ],
+ env = [
+ koyeb.api.models.deployment_env.DeploymentEnv(
+ scopes = [
+ ''
+ ],
+ key = '',
+ value = '',
+ secret = '', )
+ ],
+ regions = [
+ ''
+ ],
+ scalings = [
+ koyeb.api.models.deployment_scaling.DeploymentScaling(
+ 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, ), )
+ ], )
+ ],
+ instance_types = [
+ koyeb.api.models.deployment_instance_type.DeploymentInstanceType()
+ ],
+ health_checks = [
+ koyeb.api.models.deployment_health_check.DeploymentHealthCheck(
+ grace_period = 56,
+ interval = 56,
+ restart_limit = 56,
+ timeout = 56,
+ tcp = koyeb.api.models.tcp_health_check.TCPHealthCheck(
+ port = 56, ),
+ http = koyeb.api.models.http_health_check.HTTPHealthCheck(
+ port = 56,
+ path = '',
+ method = '',
+ headers = [
+ koyeb.api.models.http_header.HTTPHeader(
+ key = '',
+ value = '', )
+ ], ), )
+ ],
+ volumes = [
+ koyeb.api.models.deployment_volume.DeploymentVolume(
+ id = '',
+ path = '',
+ replica_index = 56, )
+ ],
+ config_files = [
+ koyeb.api.models.config_file.ConfigFile(
+ path = '',
+ permissions = '',
+ content = '', )
+ ],
+ skip_cache = True,
+ docker = koyeb.api.models.docker_source.DockerSource(
+ image = '',
+ command = '',
+ args = [
+ ''
+ ],
+ image_registry_secret = '',
+ entrypoint = [
+ ''
+ ],
+ privileged = True, ),
+ git = koyeb.api.models.git_source.GitSource(
+ repository = '',
+ branch = '',
+ tag = '',
+ sha = '',
+ build_command = '',
+ run_command = '',
+ no_deploy_on_push = True,
+ workdir = '',
+ buildpack = koyeb.api.models.buildpack_builder.BuildpackBuilder(
+ build_command = '',
+ run_command = '',
+ privileged = True, ), ),
+ database = koyeb.api.models.database_source.DatabaseSource(
+ neon_postgres = koyeb.api.models.neon_postgres_database.NeonPostgresDatabase(
+ pg_version = 56,
+ region = '',
+ instance_type = '',
+ roles = [
+ koyeb.api.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
+ name = '',
+ secret = '', )
+ ],
+ databases = [
+ koyeb.api.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
+ name = '',
+ owner = '', )
+ ], ), ),
+ archive = koyeb.api.models.archive_source.ArchiveSource(
+ id = '', ), ),
+ metadata = koyeb.api.models.deployment_metadata.DeploymentMetadata(
+ trigger = koyeb.api.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
+ type = 'UNKNOWN_TYPE',
+ actor = 'UNKNOWN_ACTOR',
+ git = koyeb.api.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
+ provider = 'UNKNOWN',
+ repository = '',
+ branch = '',
+ sha = '',
+ message = '',
+ sender_username = '',
+ sender_avatar_url = '',
+ sender_profile_url = '', ), ),
+ database = koyeb.api.models.database_deployment_metadata.DatabaseDeploymentMetadata(
+ neon_postgres = koyeb.api.models.neon_postgres_database_deployment_metadata.NeonPostgresDatabaseDeploymentMetadata(
+ reset_role_passwords = [
+ ''
+ ], ), ),
+ git = koyeb.api.models.git_deployment_metadata.GitDeploymentMetadata(
+ last_provisioned_deployment_id = '',
+ git_env = koyeb.api.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
+ sha = '',
+ commit_author = '',
+ commit_message = '', ), ),
+ archive = koyeb.api.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
+ last_provisioned_deployment_id = '', ),
+ proxy_ports = [
+ koyeb.api.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
+ host = '',
+ public_port = 56,
+ port = 56,
+ protocol = 'tcp', )
+ ], ),
+ skip_build = True,
+ save_only = True
+ )
+ else:
+ return UpdateService(
+ )
+ """
+
+ def testUpdateService(self):
+ """Test UpdateService"""
+ # 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_update_service_reply.py b/koyeb/api/test/test_update_service_reply.py
new file mode 100644
index 00000000..ce185ad4
--- /dev/null
+++ b/koyeb/api/test/test_update_service_reply.py
@@ -0,0 +1,81 @@
+# 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.update_service_reply import UpdateServiceReply
+
+class TestUpdateServiceReply(unittest.TestCase):
+ """UpdateServiceReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateServiceReply`
+ """
+ model = UpdateServiceReply()
+ if include_optional:
+ return UpdateServiceReply(
+ 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'),
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ name = '',
+ type = 'INVALID_TYPE',
+ organization_id = '',
+ app_id = '',
+ status = 'STARTING',
+ messages = [
+ ''
+ ],
+ version = '',
+ active_deployment_id = '',
+ latest_deployment_id = '',
+ last_provisioned_deployment_id = '',
+ state = koyeb.api.models.service_state.ServiceState(
+ desired_deployment = koyeb.api.models.desired_deployment.DesiredDeployment(
+ groups = [
+ koyeb.api.models.desired_deployment/group.DesiredDeployment.Group(
+ name = '',
+ deployment_ids = [
+ ''
+ ], )
+ ], ),
+ auto_release = koyeb.api.models.auto_release.AutoRelease(), ), )
+ )
+ else:
+ return UpdateServiceReply(
+ )
+ """
+
+ def testUpdateServiceReply(self):
+ """Test UpdateServiceReply"""
+ # 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_update_snapshot_reply.py b/koyeb/api/test/test_update_snapshot_reply.py
new file mode 100644
index 00000000..34f5b777
--- /dev/null
+++ b/koyeb/api/test/test_update_snapshot_reply.py
@@ -0,0 +1,62 @@
+# 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.update_snapshot_reply import UpdateSnapshotReply
+
+class TestUpdateSnapshotReply(unittest.TestCase):
+ """UpdateSnapshotReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateSnapshotReply`
+ """
+ model = UpdateSnapshotReply()
+ if include_optional:
+ return UpdateSnapshotReply(
+ snapshot = koyeb.api.models.snapshot.Snapshot(
+ id = '',
+ name = '',
+ size = 56,
+ 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'),
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ organization_id = '',
+ parent_volume_id = '',
+ region = '',
+ status = 'SNAPSHOT_STATUS_INVALID',
+ type = 'SNAPSHOT_TYPE_INVALID', )
+ )
+ else:
+ return UpdateSnapshotReply(
+ )
+ """
+
+ def testUpdateSnapshotReply(self):
+ """Test UpdateSnapshotReply"""
+ # 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_update_snapshot_request.py b/koyeb/api/test/test_update_snapshot_request.py
new file mode 100644
index 00000000..bdca75c6
--- /dev/null
+++ b/koyeb/api/test/test_update_snapshot_request.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
+
+
+import unittest
+
+from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest
+
+class TestUpdateSnapshotRequest(unittest.TestCase):
+ """UpdateSnapshotRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateSnapshotRequest`
+ """
+ model = UpdateSnapshotRequest()
+ if include_optional:
+ return UpdateSnapshotRequest(
+ name = ''
+ )
+ else:
+ return UpdateSnapshotRequest(
+ )
+ """
+
+ def testUpdateSnapshotRequest(self):
+ """Test UpdateSnapshotRequest"""
+ # 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_update_user_request_user_update_body.py b/koyeb/api/test/test_update_user_request_user_update_body.py
new file mode 100644
index 00000000..fc4e29ba
--- /dev/null
+++ b/koyeb/api/test/test_update_user_request_user_update_body.py
@@ -0,0 +1,56 @@
+# 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.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody
+
+class TestUpdateUserRequestUserUpdateBody(unittest.TestCase):
+ """UpdateUserRequestUserUpdateBody unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateUserRequestUserUpdateBody`
+ """
+ model = UpdateUserRequestUserUpdateBody()
+ if include_optional:
+ return UpdateUserRequestUserUpdateBody(
+ id = '',
+ email = '',
+ current_password = '',
+ password = '',
+ newsletter_subscribed = True,
+ name = ''
+ )
+ else:
+ return UpdateUserRequestUserUpdateBody(
+ )
+ """
+
+ def testUpdateUserRequestUserUpdateBody(self):
+ """Test UpdateUserRequestUserUpdateBody"""
+ # 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_update_user_settings_reply.py b/koyeb/api/test/test_update_user_settings_reply.py
new file mode 100644
index 00000000..22ade129
--- /dev/null
+++ b/koyeb/api/test/test_update_user_settings_reply.py
@@ -0,0 +1,54 @@
+# 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.update_user_settings_reply import UpdateUserSettingsReply
+
+class TestUpdateUserSettingsReply(unittest.TestCase):
+ """UpdateUserSettingsReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateUserSettingsReply`
+ """
+ model = UpdateUserSettingsReply()
+ if include_optional:
+ return UpdateUserSettingsReply(
+ settings = koyeb.api.models.user_settings.UserSettings(
+ id = '',
+ user_id = '',
+ failed_deployment_email_notification = True, )
+ )
+ else:
+ return UpdateUserSettingsReply(
+ )
+ """
+
+ def testUpdateUserSettingsReply(self):
+ """Test UpdateUserSettingsReply"""
+ # 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_update_user_settings_request.py b/koyeb/api/test/test_update_user_settings_request.py
new file mode 100644
index 00000000..7d52ec50
--- /dev/null
+++ b/koyeb/api/test/test_update_user_settings_request.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
+
+
+import unittest
+
+from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest
+
+class TestUpdateUserSettingsRequest(unittest.TestCase):
+ """UpdateUserSettingsRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpdateUserSettingsRequest`
+ """
+ model = UpdateUserSettingsRequest()
+ if include_optional:
+ return UpdateUserSettingsRequest(
+ failed_deployment_email_notification = True
+ )
+ else:
+ return UpdateUserSettingsRequest(
+ )
+ """
+
+ def testUpdateUserSettingsRequest(self):
+ """Test UpdateUserSettingsRequest"""
+ # 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_upsert_signup_qualification_reply.py b/koyeb/api/test/test_upsert_signup_qualification_reply.py
new file mode 100644
index 00000000..1d991659
--- /dev/null
+++ b/koyeb/api/test/test_upsert_signup_qualification_reply.py
@@ -0,0 +1,83 @@
+# 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.upsert_signup_qualification_reply import UpsertSignupQualificationReply
+
+class TestUpsertSignupQualificationReply(unittest.TestCase):
+ """UpsertSignupQualificationReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpsertSignupQualificationReply`
+ """
+ model = UpsertSignupQualificationReply()
+ if include_optional:
+ return UpsertSignupQualificationReply(
+ organization = koyeb.api.models.represent_an_organization.Represent an Organization(
+ id = '',
+ external_id = '',
+ address1 = '',
+ address2 = '',
+ city = '',
+ postal_code = '',
+ state = '',
+ country = '',
+ company = True,
+ vat_number = '',
+ billing_name = '',
+ billing_email = '',
+ name = '',
+ plan = 'hobby',
+ plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ has_payment_method = True,
+ subscription_id = '',
+ current_subscription_id = '',
+ latest_subscription_id = '',
+ signup_qualification = koyeb.api.models.signup_qualification.signup_qualification(),
+ status = 'WARNING',
+ status_message = 'NEW',
+ deactivation_reason = 'INVALID',
+ verified = True,
+ qualifies_for_hobby23 = True,
+ reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trialing = True,
+ trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ email_domain_allowlist = [
+ ''
+ ], )
+ )
+ else:
+ return UpsertSignupQualificationReply(
+ )
+ """
+
+ def testUpsertSignupQualificationReply(self):
+ """Test UpsertSignupQualificationReply"""
+ # 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_upsert_signup_qualification_request.py b/koyeb/api/test/test_upsert_signup_qualification_request.py
new file mode 100644
index 00000000..b153b06b
--- /dev/null
+++ b/koyeb/api/test/test_upsert_signup_qualification_request.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
+
+
+import unittest
+
+from koyeb.api.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest
+
+class TestUpsertSignupQualificationRequest(unittest.TestCase):
+ """UpsertSignupQualificationRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UpsertSignupQualificationRequest`
+ """
+ model = UpsertSignupQualificationRequest()
+ if include_optional:
+ return UpsertSignupQualificationRequest(
+ signup_qualification = None
+ )
+ else:
+ return UpsertSignupQualificationRequest(
+ )
+ """
+
+ def testUpsertSignupQualificationRequest(self):
+ """Test UpsertSignupQualificationRequest"""
+ # 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_usage.py b/koyeb/api/test/test_usage.py
new file mode 100644
index 00000000..d7630a82
--- /dev/null
+++ b/koyeb/api/test/test_usage.py
@@ -0,0 +1,80 @@
+# 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.usage import Usage
+
+class TestUsage(unittest.TestCase):
+ """Usage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `Usage`
+ """
+ model = Usage()
+ if include_optional:
+ return Usage(
+ organization_id = '',
+ periods = {
+ '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.api.models.app_usage.AppUsage(
+ app_id = '',
+ app_name = '',
+ services = [
+ koyeb.api.models.service_usage.ServiceUsage(
+ service_id = '',
+ service_name = '',
+ regions = {
+ 'key' : koyeb.api.models.region_usage.RegionUsage(
+ instances = {
+ 'key' : koyeb.api.models.instance_usage.InstanceUsage(
+ duration_seconds = 56, )
+ }, )
+ }, )
+ ],
+ databases = [
+ koyeb.api.models.database_usage.DatabaseUsage(
+ service_id = '',
+ service_name = '',
+ compute_time_seconds = 56,
+ data_storage_megabytes_hours = 56, )
+ ], )
+ ], )
+ }
+ )
+ else:
+ return Usage(
+ )
+ """
+
+ def testUsage(self):
+ """Test Usage"""
+ # 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_usage_details.py b/koyeb/api/test/test_usage_details.py
new file mode 100644
index 00000000..f61f104d
--- /dev/null
+++ b/koyeb/api/test/test_usage_details.py
@@ -0,0 +1,63 @@
+# 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.usage_details import UsageDetails
+
+class TestUsageDetails(unittest.TestCase):
+ """UsageDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UsageDetails`
+ """
+ model = UsageDetails()
+ if include_optional:
+ return UsageDetails(
+ organization_id = '',
+ instance_id = '',
+ app_id = '',
+ app_name = '',
+ service_id = '',
+ service_name = '',
+ regional_deployment_id = '',
+ region = '',
+ deployment_id = '',
+ instance_type = '',
+ duration_seconds = 56,
+ started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return UsageDetails(
+ )
+ """
+
+ def testUsageDetails(self):
+ """Test UsageDetails"""
+ # 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_usages_api.py b/koyeb/api/test/test_usages_api.py
new file mode 100644
index 00000000..b3c0628c
--- /dev/null
+++ b/koyeb/api/test/test_usages_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.usages_api import UsagesApi
+
+
+class TestUsagesApi(unittest.TestCase):
+ """UsagesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = UsagesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_organization_usage(self) -> None:
+ """Test case for get_organization_usage
+
+ Get organization usage
+ """
+ pass
+
+ def test_get_organization_usage_details(self) -> None:
+ """Test case for get_organization_usage_details
+
+ Get organization usage details
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/koyeb/api/test/test_user.py b/koyeb/api/test/test_user.py
new file mode 100644
index 00000000..54c4425e
--- /dev/null
+++ b/koyeb/api/test/test_user.py
@@ -0,0 +1,67 @@
+# 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 import User
+
+class TestUser(unittest.TestCase):
+ """User unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `User`
+ """
+ model = User()
+ if include_optional:
+ return User(
+ id = '',
+ email = '',
+ avatar_url = '',
+ two_factor_authentication = True,
+ last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ last_login_ip = '',
+ 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'),
+ newsletter_subscribed = True,
+ github_id = '',
+ github_user = '',
+ flags = [
+ 'ADMIN'
+ ],
+ name = '',
+ email_validated = True,
+ trialed = True
+ )
+ else:
+ return User(
+ )
+ """
+
+ def testUser(self):
+ """Test User"""
+ # 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_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/api/test/test_user_reply.py b/koyeb/api/test/test_user_reply.py
new file mode 100644
index 00000000..6ec6c1d3
--- /dev/null
+++ b/koyeb/api/test/test_user_reply.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
+
+
+import unittest
+
+from koyeb.api.models.user_reply import UserReply
+
+class TestUserReply(unittest.TestCase):
+ """UserReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UserReply`
+ """
+ model = UserReply()
+ if include_optional:
+ return UserReply(
+ user = {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}
+ )
+ else:
+ return UserReply(
+ )
+ """
+
+ def testUserReply(self):
+ """Test UserReply"""
+ # 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_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/api/test/test_user_settings.py b/koyeb/api/test/test_user_settings.py
new file mode 100644
index 00000000..2ddeca1c
--- /dev/null
+++ b/koyeb/api/test/test_user_settings.py
@@ -0,0 +1,53 @@
+# 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_settings import UserSettings
+
+class TestUserSettings(unittest.TestCase):
+ """UserSettings unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `UserSettings`
+ """
+ model = UserSettings()
+ if include_optional:
+ return UserSettings(
+ id = '',
+ user_id = '',
+ failed_deployment_email_notification = True
+ )
+ else:
+ return UserSettings(
+ )
+ """
+
+ def testUserSettings(self):
+ """Test UserSettings"""
+ # 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_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/api/test/test_verify_docker_image_reply.py b/koyeb/api/test/test_verify_docker_image_reply.py
new file mode 100644
index 00000000..f96d1df0
--- /dev/null
+++ b/koyeb/api/test/test_verify_docker_image_reply.py
@@ -0,0 +1,53 @@
+# 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 import VerifyDockerImageReply
+
+class TestVerifyDockerImageReply(unittest.TestCase):
+ """VerifyDockerImageReply unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ 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 """
+ # uncomment below to create an instance of `VerifyDockerImageReply`
+ """
+ model = VerifyDockerImageReply()
+ if include_optional:
+ return VerifyDockerImageReply(
+ success = True,
+ reason = '',
+ code = 'UNKNOWN'
+ )
+ else:
+ return VerifyDockerImageReply(
+ )
+ """
+
+ def testVerifyDockerImageReply(self):
+ """Test VerifyDockerImageReply"""
+ # 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_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/usages_api.py b/koyeb/api/usages_api.py
deleted file mode 100644
index 6ef78091..00000000
--- a/koyeb/api/usages_api.py
+++ /dev/null
@@ -1,741 +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 datetime import datetime
-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_client import ApiClient, RequestSerialized
-from koyeb.api_response import ApiResponse
-from koyeb.rest import RESTResponseType
-
-
-class UsagesApi:
- """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 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,
- _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,
- ) -> GetOrganizationUsageReply:
- """Get organization usage
-
-
- :param starting_time: The starting time of the period to get data from
- :type starting_time: datetime
- :param ending_time: The ending time of the period to get data from
- :type ending_time: datetime
- :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._get_organization_usage_serialize(
- starting_time=starting_time,
- ending_time=ending_time,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index,
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- "200": "GetOrganizationUsageReply",
- }
- 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 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,
- _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[GetOrganizationUsageReply]:
- """Get organization usage
-
-
- :param starting_time: The starting time of the period to get data from
- :type starting_time: datetime
- :param ending_time: The ending time of the period to get data from
- :type ending_time: datetime
- :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._get_organization_usage_serialize(
- starting_time=starting_time,
- ending_time=ending_time,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index,
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- "200": "GetOrganizationUsageReply",
- }
- 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 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,
- _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:
- """Get organization usage
-
-
- :param starting_time: The starting time of the period to get data from
- :type starting_time: datetime
- :param ending_time: The ending time of the period to get data from
- :type ending_time: datetime
- :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._get_organization_usage_serialize(
- starting_time=starting_time,
- ending_time=ending_time,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index,
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- "200": "GetOrganizationUsageReply",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_organization_usage_serialize(
- self,
- starting_time,
- ending_time,
- _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 starting_time is not None:
- if isinstance(starting_time, datetime):
- _query_params.append(
- (
- "starting_time",
- starting_time.strftime(
- self.api_client.configuration.datetime_format
- ),
- )
- )
- else:
- _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.strftime(
- self.api_client.configuration.datetime_format
- ),
- )
- )
- else:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/usages",
- 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 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,
- _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,
- ) -> GetOrganizationUsageDetailsReply:
- """Get organization usage details
-
-
- :param starting_time: The starting time of the period to get data from
- :type starting_time: datetime
- :param ending_time: The ending time of the period to get data from
- :type ending_time: datetime
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param accept: If defined with the value 'text/csv', a csv file is returned
- :type accept: 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._get_organization_usage_details_serialize(
- starting_time=starting_time,
- ending_time=ending_time,
- limit=limit,
- offset=offset,
- order=order,
- accept=accept,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index,
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- "200": "GetOrganizationUsageDetailsReply",
- }
- 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 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,
- _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[GetOrganizationUsageDetailsReply]:
- """Get organization usage details
-
-
- :param starting_time: The starting time of the period to get data from
- :type starting_time: datetime
- :param ending_time: The ending time of the period to get data from
- :type ending_time: datetime
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param accept: If defined with the value 'text/csv', a csv file is returned
- :type accept: 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._get_organization_usage_details_serialize(
- starting_time=starting_time,
- ending_time=ending_time,
- limit=limit,
- offset=offset,
- order=order,
- accept=accept,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index,
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- "200": "GetOrganizationUsageDetailsReply",
- }
- 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 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,
- _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:
- """Get organization usage details
-
-
- :param starting_time: The starting time of the period to get data from
- :type starting_time: datetime
- :param ending_time: The ending time of the period to get data from
- :type ending_time: datetime
- :param limit: (Optional) The number of items to return
- :type limit: str
- :param offset: (Optional) The offset in the list of item to return
- :type offset: str
- :param order: (Optional) Sorts the list in the ascending or the descending order
- :type order: str
- :param accept: If defined with the value 'text/csv', a csv file is returned
- :type accept: 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._get_organization_usage_details_serialize(
- starting_time=starting_time,
- ending_time=ending_time,
- limit=limit,
- offset=offset,
- order=order,
- accept=accept,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index,
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- "200": "GetOrganizationUsageDetailsReply",
- }
- response_data = self.api_client.call_api(
- *_param, _request_timeout=_request_timeout
- )
- return response_data.response
-
- def _get_organization_usage_details_serialize(
- self,
- starting_time,
- ending_time,
- limit,
- offset,
- order,
- accept,
- _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 starting_time is not None:
- if isinstance(starting_time, datetime):
- _query_params.append(
- (
- "starting_time",
- starting_time.strftime(
- self.api_client.configuration.datetime_format
- ),
- )
- )
- else:
- _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.strftime(
- self.api_client.configuration.datetime_format
- ),
- )
- )
- else:
- _query_params.append(("ending_time", ending_time))
-
- if limit is not None:
-
- _query_params.append(("limit", limit))
-
- if offset is not None:
-
- _query_params.append(("offset", offset))
-
- if order is not None:
-
- _query_params.append(("order", order))
-
- # process the header parameters
- if accept is not None:
- _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(["*/*"])
-
- # authentication setting
- _auth_settings: List[str] = ["Bearer"]
-
- return self.api_client.param_serialize(
- method="GET",
- resource_path="/v1/usages/details",
- 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/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/configuration.py b/koyeb/configuration.py
deleted file mode 100644
index 51401dd5..00000000
--- a/koyeb/configuration.py
+++ /dev/null
@@ -1,617 +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 copy
-import http.client as httplib
-import logging
-from logging import FileHandler
-import multiprocessing
-import sys
-from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
-from typing_extensions import NotRequired, Self
-
-import urllib3
-
-
-JSON_SCHEMA_VALIDATION_KEYWORDS = {
- "multipleOf",
- "maximum",
- "exclusiveMaximum",
- "minimum",
- "exclusiveMinimum",
- "maxLength",
- "minLength",
- "pattern",
- "maxItems",
- "minItems",
-}
-
-ServerVariablesT = Dict[str, str]
-
-GenericAuthSetting = TypedDict(
- "GenericAuthSetting",
- {
- "type": str,
- "in": str,
- "key": str,
- "value": str,
- },
-)
-
-
-OAuth2AuthSetting = TypedDict(
- "OAuth2AuthSetting",
- {
- "type": Literal["oauth2"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": str,
- },
-)
-
-
-APIKeyAuthSetting = TypedDict(
- "APIKeyAuthSetting",
- {
- "type": Literal["api_key"],
- "in": str,
- "key": str,
- "value": Optional[str],
- },
-)
-
-
-BasicAuthSetting = TypedDict(
- "BasicAuthSetting",
- {
- "type": Literal["basic"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": Optional[str],
- },
-)
-
-
-BearerFormatAuthSetting = TypedDict(
- "BearerFormatAuthSetting",
- {
- "type": Literal["bearer"],
- "in": Literal["header"],
- "format": Literal["JWT"],
- "key": Literal["Authorization"],
- "value": str,
- },
-)
-
-
-BearerAuthSetting = TypedDict(
- "BearerAuthSetting",
- {
- "type": Literal["bearer"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": str,
- },
-)
-
-
-HTTPSignatureAuthSetting = TypedDict(
- "HTTPSignatureAuthSetting",
- {
- "type": Literal["http-signature"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": None,
- },
-)
-
-
-AuthSettings = TypedDict(
- "AuthSettings",
- {
- "Bearer": APIKeyAuthSetting,
- },
- total=False,
-)
-
-
-class HostSettingVariable(TypedDict):
- description: str
- default_value: str
- enum_values: List[str]
-
-
-class HostSetting(TypedDict):
- url: str
- description: str
- variables: NotRequired[Dict[str, HostSettingVariable]]
-
-
-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
- """
-
- _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,
- retries: Optional[int] = None,
- ca_cert_data: Optional[Union[str, bytes]] = None,
- *,
- debug: Optional[bool] = None,
- ) -> None:
- """Constructor"""
- self._base_path = "https://app.koyeb.com" if host is None else host
- """Default Base url
- """
- self.server_index = 0 if server_index is None and host is None else server_index
- self.server_operation_index = server_operation_index or {}
- """Default server index
- """
- self.server_variables = server_variables or {}
- self.server_operation_variables = server_operation_variables or {}
- """Default server variables
- """
- self.ignore_operation_servers = ignore_operation_servers
- """Ignore operation servers
- """
- self.temp_folder_path = None
- """Temp file folder for downloading files
- """
- # Authentication Settings
- self.api_key = {}
- if api_key:
- self.api_key = api_key
- """dict to store API key(s)
- """
- self.api_key_prefix = {}
- if api_key_prefix:
- self.api_key_prefix = api_key_prefix
- """dict to store API prefix (e.g. Bearer)
- """
- self.refresh_api_key_hook = None
- """function hook to refresh API key if expired
- """
- self.username = username
- """Username for HTTP basic authentication
- """
- self.password = password
- """Password for HTTP basic authentication
- """
- self.access_token = access_token
- """Access token
- """
- self.logger = {}
- """Logging Settings
- """
- self.logger["package_logger"] = logging.getLogger("koyeb")
- self.logger["urllib3_logger"] = logging.getLogger("urllib3")
- self.logger_format = "%(asctime)s %(levelname)s %(message)s"
- """Log format
- """
- self.logger_stream_handler = None
- """Log stream handler
- """
- self.logger_file_handler: Optional[FileHandler] = None
- """Log file handler
- """
- self.logger_file = None
- """Debug file location
- """
- if debug is not None:
- self.debug = debug
- else:
- self.__debug = False
- """Debug switch
- """
-
- self.verify_ssl = True
- """SSL/TLS verification
- Set this to false to skip verifying SSL certificate when calling API
- from https server.
- """
- self.ssl_ca_cert = ssl_ca_cert
- """Set this to customize the certificate file to verify the peer.
- """
- self.ca_cert_data = ca_cert_data
- """Set this to verify the peer using PEM (str) or DER (bytes)
- certificate data.
- """
- self.cert_file = None
- """client certificate file
- """
- self.key_file = None
- """client key file
- """
- self.assert_hostname = None
- """Set this to True/False to enable/disable SSL hostname verification.
- """
- self.tls_server_name = None
- """SSL/TLS Server Name Indication (SNI)
- Set this to the SNI value expected by the server.
- """
-
- self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
- """urllib3 connection pool's maximum number of connections saved
- per pool. urllib3 uses 1 connection as default value, but this is
- not the best value when you are making a lot of possibly parallel
- requests to the same host, which is often the case here.
- cpu_count * 5 is used as default value to increase performance.
- """
-
- self.proxy: Optional[str] = None
- """Proxy URL
- """
- self.proxy_headers = None
- """Proxy headers
- """
- self.safe_chars_for_path_param = ""
- """Safe chars for path_param
- """
- self.retries = retries
- """Adding retries to override urllib3 default value 3
- """
- # Enable client side validation
- self.client_side_validation = True
-
- self.socket_options = None
- """Options to pass down to the underlying urllib3 socket
- """
-
- self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
- """datetime format
- """
-
- self.date_format = "%Y-%m-%d"
- """date format
- """
-
- 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"):
- setattr(result, k, copy.deepcopy(v, memo))
- # shallow copy of loggers
- result.logger = copy.copy(self.logger)
- # use setters to configure loggers
- result.logger_file = self.logger_file
- result.debug = self.debug
- return result
-
- def __setattr__(self, name: str, value: Any) -> None:
- object.__setattr__(self, name, value)
-
- @classmethod
- def set_default(cls, default: Optional[Self]) -> None:
- """Set default instance of configuration.
-
- It stores default configuration, which can be
- returned by get_default_copy method.
-
- :param default: object of Configuration
- """
- cls._default = default
-
- @classmethod
- def get_default_copy(cls) -> Self:
- """Deprecated. Please use `get_default` instead.
-
- Deprecated. Please use `get_default` instead.
-
- :return: The configuration object.
- """
- return cls.get_default()
-
- @classmethod
- def get_default(cls) -> Self:
- """Return the default configuration.
-
- This method returns newly created, based on default constructor,
- object of Configuration class or returns a copy of default
- configuration.
-
- :return: The configuration object.
- """
- if cls._default is None:
- cls._default = cls()
- return cls._default
-
- @property
- def logger_file(self) -> Optional[str]:
- """The logger file.
-
- If the logger_file is None, then add stream handler and remove file
- handler. Otherwise, add file handler and remove stream handler.
-
- :param value: The logger_file path.
- :type: str
- """
- return self.__logger_file
-
- @logger_file.setter
- def logger_file(self, value: Optional[str]) -> None:
- """The logger file.
-
- If the logger_file is None, then add stream handler and remove file
- handler. Otherwise, add file handler and remove stream handler.
-
- :param value: The logger_file path.
- :type: str
- """
- self.__logger_file = value
- if self.__logger_file:
- # If set logging file,
- # then add file handler and remove stream handler.
- self.logger_file_handler = logging.FileHandler(self.__logger_file)
- self.logger_file_handler.setFormatter(self.logger_formatter)
- for _, logger in self.logger.items():
- logger.addHandler(self.logger_file_handler)
-
- @property
- def debug(self) -> bool:
- """Debug status
-
- :param value: The debug status, True or False.
- :type: bool
- """
- return self.__debug
-
- @debug.setter
- def debug(self, value: bool) -> None:
- """Debug status
-
- :param value: The debug status, True or False.
- :type: bool
- """
- self.__debug = value
- if self.__debug:
- # if debug status is True, turn on debug logging
- for _, logger in self.logger.items():
- logger.setLevel(logging.DEBUG)
- # turn on httplib debug
- httplib.HTTPConnection.debuglevel = 1
- else:
- # if debug status is False, turn off debug logging,
- # setting log level to default `logging.WARNING`
- for _, logger in self.logger.items():
- logger.setLevel(logging.WARNING)
- # turn off httplib debug
- httplib.HTTPConnection.debuglevel = 0
-
- @property
- def logger_format(self) -> str:
- """The logger format.
-
- The logger_formatter will be updated when sets logger_format.
-
- :param value: The format string.
- :type: str
- """
- return self.__logger_format
-
- @logger_format.setter
- def logger_format(self, value: str) -> None:
- """The logger format.
-
- The logger_formatter will be updated when sets logger_format.
-
- :param value: The format string.
- :type: str
- """
- 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]:
- """Gets API key (with prefix if set).
-
- :param identifier: The identifier of apiKey.
- :param alias: The alternative identifier of apiKey.
- :return: The token for api key authentication.
- """
- 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
- )
- if key:
- prefix = self.api_key_prefix.get(identifier)
- if prefix:
- return "%s %s" % (prefix, key)
- else:
- return key
-
- return None
-
- def get_basic_auth_token(self) -> Optional[str]:
- """Gets HTTP basic authentication header (string).
-
- :return: The token for basic HTTP authentication.
- """
- username = ""
- if self.username is not None:
- username = self.username
- password = ""
- if self.password is not None:
- password = self.password
- return urllib3.util.make_headers(basic_auth=username + ":" + password).get(
- "authorization"
- )
-
- 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",
- ),
- }
- return auth
-
- def to_debug_report(self) -> str:
- """Gets the essential information for debugging.
-
- :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: 2025.7.0".format(
- env=sys.platform, pyversion=sys.version
- )
- )
-
- def get_host_settings(self) -> List[HostSetting]:
- """Gets an array of host settings
-
- :return: An array of host settings
- """
- return [
- {
- "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,
- ) -> str:
- """Gets host URL based on the index and variables
- :param index: array index of the host settings
- :param variables: hash of variable and the corresponding value
- :param servers: an array of host settings or None
- :return: URL based on host settings
- """
- if index is None:
- return self._base_path
-
- variables = {} if variables is None else variables
- servers = self.get_host_settings() if servers is None else servers
-
- try:
- server = servers[index]
- except IndexError:
- raise ValueError(
- "Invalid index {0} when selecting the host settings. "
- "Must be less than {1}".format(index, len(servers))
- )
-
- 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"])
-
- 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"]
- )
- )
-
- url = url.replace("{" + variable_name + "}", used_value)
-
- return url
-
- @property
- def host(self) -> str:
- """Return generated host."""
- return self.get_host_from_settings(
- self.server_index, variables=self.server_variables
- )
-
- @host.setter
- def host(self, value: str) -> None:
- """Fix base path."""
- self._base_path = value
- self.server_index = None
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/accept_organization_invitation_reply.py b/koyeb/models/accept_organization_invitation_reply.py
deleted file mode 100644
index 4bb85988..00000000
--- a/koyeb/models/accept_organization_invitation_reply.py
+++ /dev/null
@@ -1,95 +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.organization_invitation import OrganizationInvitation
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class AcceptOrganizationInvitationReply(BaseModel):
- """
- AcceptOrganizationInvitationReply
- """ # noqa: E501
-
- invitation: Optional[OrganizationInvitation] = None
- __properties: ClassVar[List[str]] = ["invitation"]
-
- 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 AcceptOrganizationInvitationReply 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 invitation
- if self.invitation:
- _dict["invitation"] = self.invitation.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AcceptOrganizationInvitationReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/action.py b/koyeb/models/action.py
deleted file mode 100644
index e0131ae6..00000000
--- a/koyeb/models/action.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 Action(str, Enum):
- """
- Action
- """
-
- """
- allowed enum values
- """
- 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/models/activity.py
deleted file mode 100644
index 1cd797e0..00000000
--- a/koyeb/models/activity.py
+++ /dev/null
@@ -1,120 +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.object import Object
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Activity(BaseModel):
- """
- Activity
- """ # 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",
- ]
-
- 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 Activity 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 actor
- if self.actor:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Activity 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"),
- "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/models/activity_list.py
deleted file mode 100644
index 04fdbda4..00000000
--- a/koyeb/models/activity_list.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.activity import Activity
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ActivityList(BaseModel):
- """
- ActivityList
- """ # noqa: E501
-
- activities: Optional[List[Activity]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- has_next: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["activities", "limit", "offset", "has_next"]
-
- 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 ActivityList 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 each item in activities (list)
- _items = []
- if self.activities:
- for _item_activities in self.activities:
- if _item_activities:
- _items.append(_item_activities.to_dict())
- _dict["activities"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ActivityList from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/app.py b/koyeb/models/app.py
deleted file mode 100644
index 9059db1f..00000000
--- a/koyeb/models/app.py
+++ /dev/null
@@ -1,146 +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.app_status import AppStatus
-from koyeb.models.domain import Domain
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class App(BaseModel):
- """
- App
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- started_at: Optional[datetime] = None
- succeeded_at: Optional[datetime] = None
- paused_at: Optional[datetime] = None
- resumed_at: Optional[datetime] = None
- terminated_at: Optional[datetime] = None
- status: Optional[AppStatus] = AppStatus.STARTING
- 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",
- ]
-
- 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 App 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 each item in domains (list)
- _items = []
- if self.domains:
- for _item_domains in self.domains:
- if _item_domains:
- _items.append(_item_domains.to_dict())
- _dict["domains"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of App 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"),
- "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/models/app_event.py
deleted file mode 100644
index 6e8108f6..00000000
--- a/koyeb/models/app_event.py
+++ /dev/null
@@ -1,108 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class AppEvent(BaseModel):
- """
- AppEvent
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- when: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 AppEvent 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 AppEvent 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"),
- "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/models/app_list_item.py
deleted file mode 100644
index 3e154aba..00000000
--- a/koyeb/models/app_list_item.py
+++ /dev/null
@@ -1,128 +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.app_status import AppStatus
-from koyeb.models.domain import Domain
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class AppListItem(BaseModel):
- """
- AppListItem
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- updated_at: Optional[datetime] = None
- created_at: Optional[datetime] = None
- 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",
- ]
-
- 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 AppListItem 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 each item in domains (list)
- _items = []
- if self.domains:
- for _item_domains in self.domains:
- if _item_domains:
- _items.append(_item_domains.to_dict())
- _dict["domains"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AppListItem 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"),
- "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/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/app_usage.py b/koyeb/models/app_usage.py
deleted file mode 100644
index c4e6ef58..00000000
--- a/koyeb/models/app_usage.py
+++ /dev/null
@@ -1,117 +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.database_usage import DatabaseUsage
-from koyeb.models.service_usage import ServiceUsage
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class AppUsage(BaseModel):
- """
- AppUsage
- """ # noqa: E501
-
- app_id: Optional[StrictStr] = None
- app_name: Optional[StrictStr] = None
- services: Optional[List[ServiceUsage]] = None
- databases: Optional[List[DatabaseUsage]] = None
- __properties: ClassVar[List[str]] = ["app_id", "app_name", "services", "databases"]
-
- 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 AppUsage 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 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
- # 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AppUsage from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/archive.py b/koyeb/models/archive.py
deleted file mode 100644
index f46cb023..00000000
--- a/koyeb/models/archive.py
+++ /dev/null
@@ -1,120 +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, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-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",
- ]
-
- 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 Archive 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 Archive 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"),
- "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_source.py b/koyeb/models/archive_source.py
deleted file mode 100644
index 68ec80f7..00000000
--- a/koyeb/models/archive_source.py
+++ /dev/null
@@ -1,107 +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.buildpack_builder import BuildpackBuilder
-from koyeb.models.docker_builder import DockerBuilder
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ArchiveSource(BaseModel):
- """
- ArchiveSource
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- buildpack: Optional[BuildpackBuilder] = None
- docker: Optional[DockerBuilder] = None
- __properties: ClassVar[List[str]] = ["id", "buildpack", "docker"]
-
- 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 ArchiveSource 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 buildpack
- if self.buildpack:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ArchiveSource 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"),
- "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/autocomplete_request.py b/koyeb/models/autocomplete_request.py
deleted file mode 100644
index ac7ad5a1..00000000
--- a/koyeb/models/autocomplete_request.py
+++ /dev/null
@@ -1,95 +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_definition import DeploymentDefinition
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class AutocompleteRequest(BaseModel):
- """
- AutocompleteRequest
- """ # noqa: E501
-
- definition: Optional[DeploymentDefinition] = None
- __properties: ClassVar[List[str]] = ["definition"]
-
- 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 AutocompleteRequest 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 definition
- if self.definition:
- _dict["definition"] = self.definition.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AutocompleteRequest from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/availability_level.py b/koyeb/models/availability_level.py
deleted file mode 100644
index 3c84a955..00000000
--- a/koyeb/models/availability_level.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 AvailabilityLevel(str, Enum):
- """
- AvailabilityLevel
- """
-
- """
- allowed enum values
- """
- 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/catalog_instance.py b/koyeb/models/catalog_instance.py
deleted file mode 100644
index 6d0a5feb..00000000
--- a/koyeb/models/catalog_instance.py
+++ /dev/null
@@ -1,164 +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,
- Field,
- StrictBool,
- StrictFloat,
- StrictInt,
- StrictStr,
-)
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from koyeb.models.catalog_gpu_details import CatalogGPUDetails
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CatalogInstance(BaseModel):
- """
- CatalogInstance
- """ # 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.",
- )
- memory: Optional[StrictStr] = None
- disk: Optional[StrictStr] = None
- price_per_second: Optional[StrictStr] = None
- price_hourly: Optional[StrictStr] = None
- price_monthly: Optional[StrictStr] = None
- 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."
- )
- display_name: Optional[StrictStr] = None
- aliases: Optional[List[StrictStr]] = None
- type: Optional[StrictStr] = None
- gpu: Optional[CatalogGPUDetails] = None
- 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",
- ]
-
- 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 CatalogInstance 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 gpu
- if self.gpu:
- _dict["gpu"] = self.gpu.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CatalogInstance 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"),
- "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/models/catalog_instance_list_item.py
deleted file mode 100644
index f0f4abd3..00000000
--- a/koyeb/models/catalog_instance_list_item.py
+++ /dev/null
@@ -1,164 +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,
- Field,
- StrictBool,
- StrictFloat,
- StrictInt,
- StrictStr,
-)
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from koyeb.models.catalog_gpu_details import CatalogGPUDetails
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CatalogInstanceListItem(BaseModel):
- """
- CatalogInstanceListItem
- """ # 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.",
- )
- memory: Optional[StrictStr] = None
- disk: Optional[StrictStr] = None
- price_per_second: Optional[StrictStr] = None
- price_hourly: Optional[StrictStr] = None
- price_monthly: Optional[StrictStr] = None
- 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."
- )
- display_name: Optional[StrictStr] = None
- aliases: Optional[List[StrictStr]] = None
- type: Optional[StrictStr] = None
- gpu: Optional[CatalogGPUDetails] = None
- 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",
- ]
-
- 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 CatalogInstanceListItem 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 gpu
- if self.gpu:
- _dict["gpu"] = self.gpu.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CatalogInstanceListItem 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"),
- "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/models/catalog_usage.py
deleted file mode 100644
index 81b3f744..00000000
--- a/koyeb/models/catalog_usage.py
+++ /dev/null
@@ -1,104 +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.instance_availability import InstanceAvailability
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CatalogUsage(BaseModel):
- """
- CatalogUsage
- """ # noqa: E501
-
- instances: Optional[Dict[str, InstanceAvailability]] = None
- __properties: ClassVar[List[str]] = ["instances"]
-
- 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 CatalogUsage 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 each value in instances (dict)
- _field_dict = {}
- 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CatalogUsage from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/compose_reply.py b/koyeb/models/compose_reply.py
deleted file mode 100644
index 6acafae7..00000000
--- a/koyeb/models/compose_reply.py
+++ /dev/null
@@ -1,107 +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.app import App
-from koyeb.models.service import Service
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ComposeReply(BaseModel):
- """
- ComposeReply
- """ # noqa: E501
-
- app: Optional[App] = None
- services: Optional[List[Service]] = None
- __properties: ClassVar[List[str]] = ["app", "services"]
-
- 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 ComposeReply 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 app
- if self.app:
- _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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ComposeReply from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/create_compose.py b/koyeb/models/create_compose.py
deleted file mode 100644
index 43aafb04..00000000
--- a/koyeb/models/create_compose.py
+++ /dev/null
@@ -1,109 +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.create_app import CreateApp
-from koyeb.models.create_service import CreateService
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CreateCompose(BaseModel):
- """
- CreateCompose
- """ # noqa: E501
-
- app: Optional[CreateApp] = None
- services: Optional[List[CreateService]] = None
- __properties: ClassVar[List[str]] = ["app", "services"]
-
- 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 CreateCompose 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 app
- if self.app:
- _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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateCompose from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/create_credential.py b/koyeb/models/create_credential.py
deleted file mode 100644
index e1821c72..00000000
--- a/koyeb/models/create_credential.py
+++ /dev/null
@@ -1,103 +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.credential_type import CredentialType
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CreateCredential(BaseModel):
- """
- CreateCredential
- """ # 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",
- ]
-
- 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 CreateCredential 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 CreateCredential 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"),
- "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_domain.py b/koyeb/models/create_domain.py
deleted file mode 100644
index 7be0b9d9..00000000
--- a/koyeb/models/create_domain.py
+++ /dev/null
@@ -1,114 +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.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb
-from koyeb.models.domain_type import DomainType
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CreateDomain(BaseModel):
- """
- CreateDomain
- """ # 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",
- ]
-
- 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 CreateDomain 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 koyeb
- if self.koyeb:
- _dict["koyeb"] = self.koyeb.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateDomain 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 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_organization_invitation_reply.py b/koyeb/models/create_organization_invitation_reply.py
deleted file mode 100644
index a499b0cf..00000000
--- a/koyeb/models/create_organization_invitation_reply.py
+++ /dev/null
@@ -1,95 +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.organization_invitation import OrganizationInvitation
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CreateOrganizationInvitationReply(BaseModel):
- """
- CreateOrganizationInvitationReply
- """ # noqa: E501
-
- invitation: Optional[OrganizationInvitation] = None
- __properties: ClassVar[List[str]] = ["invitation"]
-
- 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 CreateOrganizationInvitationReply 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 invitation
- if self.invitation:
- _dict["invitation"] = self.invitation.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateOrganizationInvitationReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/create_persistent_volume_request.py b/koyeb/models/create_persistent_volume_request.py
deleted file mode 100644
index 8f9bd07b..00000000
--- a/koyeb/models/create_persistent_volume_request.py
+++ /dev/null
@@ -1,111 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.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
- )
- 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",
- ]
-
- 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 CreatePersistentVolumeRequest 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 CreatePersistentVolumeRequest from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
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/create_service.py b/koyeb/models/create_service.py
deleted file mode 100644
index 2e577b80..00000000
--- a/koyeb/models/create_service.py
+++ /dev/null
@@ -1,97 +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.deployment_definition import DeploymentDefinition
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CreateService(BaseModel):
- """
- CreateService
- """ # noqa: E501
-
- app_id: Optional[StrictStr] = None
- definition: Optional[DeploymentDefinition] = None
- __properties: ClassVar[List[str]] = ["app_id", "definition"]
-
- 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 CreateService 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 definition
- if self.definition:
- _dict["definition"] = self.definition.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateService from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/create_stage_attempt_request.py b/koyeb/models/create_stage_attempt_request.py
deleted file mode 100644
index 15e5520a..00000000
--- a/koyeb/models/create_stage_attempt_request.py
+++ /dev/null
@@ -1,111 +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.deployment_provisioning_info_stage_status import (
- DeploymentProvisioningInfoStageStatus,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class CreateStageAttemptRequest(BaseModel):
- """
- CreateStageAttemptRequest
- """ # noqa: E501
-
- secret: Optional[StrictStr] = None
- 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",
- ]
-
- 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 CreateStageAttemptRequest 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 CreateStageAttemptRequest from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/credential.py b/koyeb/models/credential.py
deleted file mode 100644
index 3fa67734..00000000
--- a/koyeb/models/credential.py
+++ /dev/null
@@ -1,122 +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.credential_type import CredentialType
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Credential(BaseModel):
- """
- Credential
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- type: Optional[CredentialType] = CredentialType.INVALID
- name: Optional[StrictStr] = None
- token: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- user_id: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 Credential 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 Credential 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"),
- "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/models/credential_type.py
deleted file mode 100644
index b329066b..00000000
--- a/koyeb/models/credential_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 CredentialType(str, Enum):
- """
- CredentialType
- """
-
- """
- allowed enum values
- """
- 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/models/database_deployment_metadata.py
deleted file mode 100644
index 5127340d..00000000
--- a/koyeb/models/database_deployment_metadata.py
+++ /dev/null
@@ -1,99 +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.neon_postgres_database_deployment_metadata import (
- NeonPostgresDatabaseDeploymentMetadata,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DatabaseDeploymentMetadata(BaseModel):
- """
- DatabaseDeploymentMetadata
- """ # noqa: E501
-
- neon_postgres: Optional[NeonPostgresDatabaseDeploymentMetadata] = None
- __properties: ClassVar[List[str]] = ["neon_postgres"]
-
- 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 DatabaseDeploymentMetadata 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 neon_postgres
- if self.neon_postgres:
- _dict["neon_postgres"] = self.neon_postgres.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DatabaseDeploymentMetadata from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/database_source.py b/koyeb/models/database_source.py
deleted file mode 100644
index 5ceaf7d8..00000000
--- a/koyeb/models/database_source.py
+++ /dev/null
@@ -1,95 +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.neon_postgres_database import NeonPostgresDatabase
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DatabaseSource(BaseModel):
- """
- DatabaseSource
- """ # noqa: E501
-
- neon_postgres: Optional[NeonPostgresDatabase] = None
- __properties: ClassVar[List[str]] = ["neon_postgres"]
-
- 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 DatabaseSource 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 neon_postgres
- if self.neon_postgres:
- _dict["neon_postgres"] = self.neon_postgres.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DatabaseSource from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/database_usage.py b/koyeb/models/database_usage.py
deleted file mode 100644
index e1e92c3f..00000000
--- a/koyeb/models/database_usage.py
+++ /dev/null
@@ -1,98 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DatabaseUsage(BaseModel):
- """
- DatabaseUsage
- """ # 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",
- ]
-
- 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 DatabaseUsage 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 DatabaseUsage from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/database_usage_details.py b/koyeb/models/database_usage_details.py
deleted file mode 100644
index 71f45b16..00000000
--- a/koyeb/models/database_usage_details.py
+++ /dev/null
@@ -1,114 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DatabaseUsageDetails(BaseModel):
- """
- DatabaseUsageDetails
- """ # noqa: E501
-
- organization_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- app_name: Optional[StrictStr] = None
- service_id: Optional[StrictStr] = None
- service_name: Optional[StrictStr] = None
- compute_time_seconds: Optional[StrictInt] = None
- 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",
- ]
-
- 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 DatabaseUsageDetails 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 DatabaseUsageDetails from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/datacenter_list_item.py b/koyeb/models/datacenter_list_item.py
deleted file mode 100644
index 4a15b143..00000000
--- a/koyeb/models/datacenter_list_item.py
+++ /dev/null
@@ -1,104 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DatacenterListItem(BaseModel):
- """
- DatacenterListItem
- """ # 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",
- ]
-
- 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 DatacenterListItem 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 DatacenterListItem 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"),
- "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/declare_stage_progress_request.py b/koyeb/models/declare_stage_progress_request.py
deleted file mode 100644
index c1926d24..00000000
--- a/koyeb/models/declare_stage_progress_request.py
+++ /dev/null
@@ -1,117 +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_provisioning_info_stage_status import (
- DeploymentProvisioningInfoStageStatus,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeclareStageProgressRequest(BaseModel):
- """
- DeclareStageProgressRequest
- """ # noqa: E501
-
- secret: Optional[StrictStr] = None
- 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",
- ]
-
- 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 DeclareStageProgressRequest 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 DeclareStageProgressRequest from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/declare_step_progress_request.py b/koyeb/models/declare_step_progress_request.py
deleted file mode 100644
index d52c347d..00000000
--- a/koyeb/models/declare_step_progress_request.py
+++ /dev/null
@@ -1,111 +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.deployment_provisioning_info_stage_status import (
- DeploymentProvisioningInfoStageStatus,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeclareStepProgressRequest(BaseModel):
- """
- DeclareStepProgressRequest
- """ # noqa: E501
-
- secret: Optional[StrictStr] = None
- 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",
- ]
-
- 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 DeclareStepProgressRequest 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 DeclareStepProgressRequest from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- 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_database_info.py b/koyeb/models/deployment_database_info.py
deleted file mode 100644
index 6a4f8bfa..00000000
--- a/koyeb/models/deployment_database_info.py
+++ /dev/null
@@ -1,97 +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_neon_postgres_database_info import (
- DeploymentNeonPostgresDatabaseInfo,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentDatabaseInfo(BaseModel):
- """
- DeploymentDatabaseInfo
- """ # noqa: E501
-
- neon_postgres: Optional[DeploymentNeonPostgresDatabaseInfo] = None
- __properties: ClassVar[List[str]] = ["neon_postgres"]
-
- 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 DeploymentDatabaseInfo 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 neon_postgres
- if self.neon_postgres:
- _dict["neon_postgres"] = self.neon_postgres.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentDatabaseInfo from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- 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_definition_type.py b/koyeb/models/deployment_definition_type.py
deleted file mode 100644
index d44a9781..00000000
--- a/koyeb/models/deployment_definition_type.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 DeploymentDefinitionType(str, Enum):
- """
- DeploymentDefinitionType
- """
-
- """
- allowed enum values
- """
- 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_event.py b/koyeb/models/deployment_event.py
deleted file mode 100644
index 2c03c913..00000000
--- a/koyeb/models/deployment_event.py
+++ /dev/null
@@ -1,108 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentEvent(BaseModel):
- """
- DeploymentEvent
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- when: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- deployment_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 DeploymentEvent 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 DeploymentEvent 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"),
- "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/models/deployment_health_check.py
deleted file mode 100644
index 1dd542aa..00000000
--- a/koyeb/models/deployment_health_check.py
+++ /dev/null
@@ -1,120 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentHealthCheck(BaseModel):
- """
- DeploymentHealthCheck
- """ # 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",
- ]
-
- 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 DeploymentHealthCheck 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 tcp
- if self.tcp:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentHealthCheck from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/deployment_list_item.py b/koyeb/models/deployment_list_item.py
deleted file mode 100644
index 25a375b3..00000000
--- a/koyeb/models/deployment_list_item.py
+++ /dev/null
@@ -1,184 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentListItem(BaseModel):
- """
- DeploymentListItem
- """ # 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
- 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",
- ]
-
- 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 DeploymentListItem 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 DeploymentListItem 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
- ),
- "version": obj.get("version"),
- "deployment_group": obj.get("deployment_group"),
- }
- )
- return _obj
diff --git a/koyeb/models/deployment_metadata.py b/koyeb/models/deployment_metadata.py
deleted file mode 100644
index 9cabbda7..00000000
--- a/koyeb/models/deployment_metadata.py
+++ /dev/null
@@ -1,148 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentMetadata(BaseModel):
- """
- DeploymentMetadata
- """ # 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",
- ]
-
- 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 DeploymentMetadata 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 trigger
- if self.trigger:
- _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()
- # 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 archive
- if self.archive:
- _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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentMetadata from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/deployment_neon_postgres_database_info.py b/koyeb/models/deployment_neon_postgres_database_info.py
deleted file mode 100644
index 268bd3cd..00000000
--- a/koyeb/models/deployment_neon_postgres_database_info.py
+++ /dev/null
@@ -1,146 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.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
-
- active_time_seconds: Optional[StrictStr] = None
- compute_time_seconds: Optional[StrictStr] = None
- written_data_bytes: Optional[StrictStr] = None
- data_transfer_bytes: Optional[StrictStr] = None
- data_storage_bytes_hour: Optional[StrictStr] = None
- server_host: Optional[StrictStr] = None
- server_port: Optional[StrictInt] = None
- endpoint_state: Optional[StrictStr] = None
- endpoint_last_active: Optional[datetime] = None
- default_branch_id: Optional[StrictStr] = None
- default_branch_name: Optional[StrictStr] = None
- 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",
- ]
-
- 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 DeploymentNeonPostgresDatabaseInfo 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 each item in roles (list)
- _items = []
- if self.roles:
- for _item_roles in self.roles:
- if _item_roles:
- _items.append(_item_roles.to_dict())
- _dict["roles"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentNeonPostgresDatabaseInfo from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/deployment_provisioning_info.py b/koyeb/models/deployment_provisioning_info.py
deleted file mode 100644
index c94214e2..00000000
--- a/koyeb/models/deployment_provisioning_info.py
+++ /dev/null
@@ -1,115 +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, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.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."
- )
- __properties: ClassVar[List[str]] = ["sha", "image", "stages"]
-
- 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 DeploymentProvisioningInfo 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 each item in stages (list)
- _items = []
- if self.stages:
- for _item_stages in self.stages:
- if _item_stages:
- _items.append(_item_stages.to_dict())
- _dict["stages"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentProvisioningInfo from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/deployment_provisioning_info_stage.py b/koyeb/models/deployment_provisioning_info_stage.py
deleted file mode 100644
index 62fd86ea..00000000
--- a/koyeb/models/deployment_provisioning_info_stage.py
+++ /dev/null
@@ -1,131 +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.deployment_provisioning_info_stage_build_attempt import (
- DeploymentProvisioningInfoStageBuildAttempt,
-)
-from koyeb.models.deployment_provisioning_info_stage_status import (
- DeploymentProvisioningInfoStageStatus,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentProvisioningInfoStage(BaseModel):
- """
- DeploymentProvisioningInfoStage
- """ # noqa: E501
-
- name: Optional[StrictStr] = None
- 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",
- ]
-
- 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 DeploymentProvisioningInfoStage 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 each item in build_attempts (list)
- _items = []
- if self.build_attempts:
- for _item_build_attempts in self.build_attempts:
- if _item_build_attempts:
- _items.append(_item_build_attempts.to_dict())
- _dict["build_attempts"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentProvisioningInfoStage 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"),
- "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/models/deployment_provisioning_info_stage_build_attempt.py
deleted file mode 100644
index da640d06..00000000
--- a/koyeb/models/deployment_provisioning_info_stage_build_attempt.py
+++ /dev/null
@@ -1,148 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentProvisioningInfoStageBuildAttempt(BaseModel):
- """
- DeploymentProvisioningInfoStageBuildAttempt
- """ # noqa: E501
-
- id: Optional[StrictInt] = None
- status: Optional[DeploymentProvisioningInfoStageStatus] = (
- DeploymentProvisioningInfoStageStatus.UNKNOWN
- )
- messages: Optional[List[StrictStr]] = None
- started_at: Optional[datetime] = None
- finished_at: Optional[datetime] = None
- steps: Optional[List[DeploymentProvisioningInfoStageBuildAttemptBuildStep]] = None
- 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",
- ]
-
- 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 DeploymentProvisioningInfoStageBuildAttempt 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 each item in steps (list)
- _items = []
- if self.steps:
- for _item_steps in self.steps:
- if _item_steps:
- _items.append(_item_steps.to_dict())
- _dict["steps"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentProvisioningInfoStageBuildAttempt 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"),
- "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/models/deployment_provisioning_info_stage_build_attempt_build_step.py
deleted file mode 100644
index ba127659..00000000
--- a/koyeb/models/deployment_provisioning_info_stage_build_attempt_build_step.py
+++ /dev/null
@@ -1,111 +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.deployment_provisioning_info_stage_status import (
- DeploymentProvisioningInfoStageStatus,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentProvisioningInfoStageBuildAttemptBuildStep(BaseModel):
- """
- DeploymentProvisioningInfoStageBuildAttemptBuildStep
- """ # noqa: E501
-
- name: Optional[StrictStr] = None
- 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",
- ]
-
- 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 DeploymentProvisioningInfoStageBuildAttemptBuildStep 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 DeploymentProvisioningInfoStageBuildAttemptBuildStep 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"),
- "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/models/deployment_provisioning_info_stage_status.py
deleted file mode 100644
index cc598007..00000000
--- a/koyeb/models/deployment_provisioning_info_stage_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 DeploymentProvisioningInfoStageStatus(str, Enum):
- """
- DeploymentProvisioningInfoStageStatus
- """
-
- """
- allowed enum values
- """
- 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_metadata.py b/koyeb/models/deployment_proxy_port_metadata.py
deleted file mode 100644
index 6c51ad90..00000000
--- a/koyeb/models/deployment_proxy_port_metadata.py
+++ /dev/null
@@ -1,98 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.proxy_port_protocol import ProxyPortProtocol
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentProxyPortMetadata(BaseModel):
- """
- DeploymentProxyPortMetadata
- """ # noqa: E501
-
- host: Optional[StrictStr] = None
- public_port: Optional[StrictInt] = None
- port: Optional[StrictInt] = None
- protocol: Optional[ProxyPortProtocol] = ProxyPortProtocol.TCP
- __properties: ClassVar[List[str]] = ["host", "public_port", "port", "protocol"]
-
- 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 DeploymentProxyPortMetadata 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 DeploymentProxyPortMetadata from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/deployment_role.py b/koyeb/models/deployment_role.py
deleted file mode 100644
index 1d3f5bd2..00000000
--- a/koyeb/models/deployment_role.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 DeploymentRole(str, Enum):
- """
- DeploymentRole
- """
-
- """
- allowed enum values
- """
- 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_scaling.py b/koyeb/models/deployment_scaling.py
deleted file mode 100644
index 9b245e66..00000000
--- a/koyeb/models/deployment_scaling.py
+++ /dev/null
@@ -1,108 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.deployment_scaling_target import DeploymentScalingTarget
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class DeploymentScaling(BaseModel):
- """
- DeploymentScaling
- """ # noqa: E501
-
- scopes: Optional[List[StrictStr]] = None
- min: Optional[StrictInt] = None
- max: Optional[StrictInt] = None
- targets: Optional[List[DeploymentScalingTarget]] = None
- __properties: ClassVar[List[str]] = ["scopes", "min", "max", "targets"]
-
- 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 DeploymentScaling 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 each item in targets (list)
- _items = []
- if self.targets:
- for _item_targets in self.targets:
- if _item_targets:
- _items.append(_item_targets.to_dict())
- _dict["targets"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentScaling from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- 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_scaling_target_sleep_idle_delay.py b/koyeb/models/deployment_scaling_target_sleep_idle_delay.py
deleted file mode 100644
index ede98372..00000000
--- a/koyeb/models/deployment_scaling_target_sleep_idle_delay.py
+++ /dev/null
@@ -1,104 +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, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-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",
- ]
-
- 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 DeploymentScalingTargetSleepIdleDelay 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 DeploymentScalingTargetSleepIdleDelay from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- 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.py b/koyeb/models/deployment_strategy.py
deleted file mode 100644
index 9cd19c4e..00000000
--- a/koyeb/models/deployment_strategy.py
+++ /dev/null
@@ -1,94 +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_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
- )
- __properties: ClassVar[List[str]] = ["type"]
-
- 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 DeploymentStrategy 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 DeploymentStrategy from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
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/docker_builder.py b/koyeb/models/docker_builder.py
deleted file mode 100644
index 544abc04..00000000
--- a/koyeb/models/docker_builder.py
+++ /dev/null
@@ -1,104 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DockerBuilder(BaseModel):
- """
- DockerBuilder
- """ # 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",
- ]
-
- 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 DockerBuilder 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 DockerBuilder from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/docker_source.py b/koyeb/models/docker_source.py
deleted file mode 100644
index b3ca771e..00000000
--- a/koyeb/models/docker_source.py
+++ /dev/null
@@ -1,104 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class DockerSource(BaseModel):
- """
- DockerSource
- """ # 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",
- ]
-
- 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 DockerSource 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 DockerSource from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/domain.py b/koyeb/models/domain.py
deleted file mode 100644
index f93dbd31..00000000
--- a/koyeb/models/domain.py
+++ /dev/null
@@ -1,150 +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.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb
-from koyeb.models.domain_status import DomainStatus
-from koyeb.models.domain_type import DomainType
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Domain(BaseModel):
- """
- Domain
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- status: Optional[DomainStatus] = DomainStatus.PENDING
- type: Optional[DomainType] = DomainType.AUTOASSIGNED
- app_id: Optional[StrictStr] = None
- deployment_group: Optional[StrictStr] = None
- verified_at: Optional[datetime] = None
- intended_cname: Optional[StrictStr] = None
- messages: Optional[List[StrictStr]] = None
- 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",
- ]
-
- 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 Domain 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 koyeb
- if self.koyeb:
- _dict["koyeb"] = self.koyeb.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Domain 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"),
- "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_status.py b/koyeb/models/domain_status.py
deleted file mode 100644
index e05ed638..00000000
--- a/koyeb/models/domain_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 DomainStatus(str, Enum):
- """
- DomainStatus
- """
-
- """
- allowed enum values
- """
- 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/models/domain_type.py
deleted file mode 100644
index f76c076e..00000000
--- a/koyeb/models/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
-
-
-from __future__ import annotations
-import json
-from enum import Enum
-from typing_extensions import Self
-
-
-class DomainType(str, Enum):
- """
- DomainType
- """
-
- """
- allowed enum values
- """
- 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/error_with_fields.py b/koyeb/models/error_with_fields.py
deleted file mode 100644
index 3cacf4eb..00000000
--- a/koyeb/models/error_with_fields.py
+++ /dev/null
@@ -1,105 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.error_field import ErrorField
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ErrorWithFields(BaseModel):
- """
- ErrorWithFields
- """ # noqa: E501
-
- status: Optional[StrictInt] = None
- code: Optional[StrictStr] = None
- message: Optional[StrictStr] = None
- fields: Optional[List[ErrorField]] = None
- __properties: ClassVar[List[str]] = ["status", "code", "message", "fields"]
-
- 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 ErrorWithFields 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 each item in fields (list)
- _items = []
- if self.fields:
- for _item_fields in self.fields:
- if _item_fields:
- _items.append(_item_fields.to_dict())
- _dict["fields"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ErrorWithFields from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/exec_command_io.py b/koyeb/models/exec_command_io.py
deleted file mode 100644
index de37cbec..00000000
--- a/koyeb/models/exec_command_io.py
+++ /dev/null
@@ -1,104 +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, Field, StrictBool, field_validator
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing_extensions import Annotated
-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"
- )
- __properties: ClassVar[List[str]] = ["data", "close"]
-
- @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}=)?$/"
- )
- return value
-
- 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 ExecCommandIO 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 ExecCommandIO from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _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/models/exec_command_reply.py
deleted file mode 100644
index ae82c96b..00000000
--- a/koyeb/models/exec_command_reply.py
+++ /dev/null
@@ -1,108 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.exec_command_io import ExecCommandIO
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ExecCommandReply(BaseModel):
- """
- ExecCommandReply
- """ # noqa: E501
-
- stdout: Optional[ExecCommandIO] = None
- stderr: Optional[ExecCommandIO] = None
- exited: Optional[StrictBool] = None
- exit_code: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["stdout", "stderr", "exited", "exit_code"]
-
- 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 ExecCommandReply 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 stdout
- if self.stdout:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ExecCommandReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/exec_command_request_body.py b/koyeb/models/exec_command_request_body.py
deleted file mode 100644
index 8ca896eb..00000000
--- a/koyeb/models/exec_command_request_body.py
+++ /dev/null
@@ -1,117 +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, 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 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"
- )
- 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",
- )
- __properties: ClassVar[List[str]] = ["command", "tty_size", "stdin", "disableTty"]
-
- 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 ExecCommandRequestBody 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 tty_size
- if self.tty_size:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ExecCommandRequestBody from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/exec_command_request_id_type.py b/koyeb/models/exec_command_request_id_type.py
deleted file mode 100644
index c7e45305..00000000
--- a/koyeb/models/exec_command_request_id_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 ExecCommandRequestIdType(str, Enum):
- """
- ExecCommandRequestIdType
- """
-
- """
- allowed enum values
- """
- 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/get_deployment_scaling_reply.py b/koyeb/models/get_deployment_scaling_reply.py
deleted file mode 100644
index a04affad..00000000
--- a/koyeb/models/get_deployment_scaling_reply.py
+++ /dev/null
@@ -1,102 +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.get_deployment_scaling_reply_item import GetDeploymentScalingReplyItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetDeploymentScalingReply(BaseModel):
- """
- GetDeploymentScalingReply
- """ # noqa: E501
-
- replicas: Optional[List[GetDeploymentScalingReplyItem]] = None
- __properties: ClassVar[List[str]] = ["replicas"]
-
- 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 GetDeploymentScalingReply 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 each item in replicas (list)
- _items = []
- if self.replicas:
- for _item_replicas in self.replicas:
- if _item_replicas:
- _items.append(_item_replicas.to_dict())
- _dict["replicas"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetDeploymentScalingReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/get_deployment_scaling_reply_item.py b/koyeb/models/get_deployment_scaling_reply_item.py
deleted file mode 100644
index a4d00947..00000000
--- a/koyeb/models/get_deployment_scaling_reply_item.py
+++ /dev/null
@@ -1,106 +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, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.instance import Instance
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetDeploymentScalingReplyItem(BaseModel):
- """
- GetDeploymentScalingReplyItem
- """ # 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;",
- )
- __properties: ClassVar[List[str]] = ["region", "replica_index", "instances"]
-
- 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 GetDeploymentScalingReplyItem 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetDeploymentScalingReplyItem from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/get_github_installation_reply.py b/koyeb/models/get_github_installation_reply.py
deleted file mode 100644
index 16c914f6..00000000
--- a/koyeb/models/get_github_installation_reply.py
+++ /dev/null
@@ -1,133 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetGithubInstallationReply(BaseModel):
- """
- GetGithubInstallationReply
- """ # 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
- )
- installed_at: Optional[datetime] = None
- suspended_at: Optional[datetime] = None
- 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",
- ]
-
- 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 GetGithubInstallationReply 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 GetGithubInstallationReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/get_organization_invitation_reply.py b/koyeb/models/get_organization_invitation_reply.py
deleted file mode 100644
index a88de3b5..00000000
--- a/koyeb/models/get_organization_invitation_reply.py
+++ /dev/null
@@ -1,95 +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.organization_invitation import OrganizationInvitation
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetOrganizationInvitationReply(BaseModel):
- """
- GetOrganizationInvitationReply
- """ # noqa: E501
-
- invitation: Optional[OrganizationInvitation] = None
- __properties: ClassVar[List[str]] = ["invitation"]
-
- 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 GetOrganizationInvitationReply 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 invitation
- if self.invitation:
- _dict["invitation"] = self.invitation.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetOrganizationInvitationReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/get_organization_usage_details_reply.py b/koyeb/models/get_organization_usage_details_reply.py
deleted file mode 100644
index 3dc6cc0e..00000000
--- a/koyeb/models/get_organization_usage_details_reply.py
+++ /dev/null
@@ -1,131 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetOrganizationUsageDetailsReply(BaseModel):
- """
- GetOrganizationUsageDetailsReply
- """ # 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",
- ]
-
- 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 GetOrganizationUsageDetailsReply 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 each item in usage_details (list)
- _items = []
- if self.usage_details:
- for _item_usage_details in self.usage_details:
- if _item_usage_details:
- _items.append(_item_usage_details.to_dict())
- _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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetOrganizationUsageDetailsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/get_payment_method_reply.py b/koyeb/models/get_payment_method_reply.py
deleted file mode 100644
index c0ac3559..00000000
--- a/koyeb/models/get_payment_method_reply.py
+++ /dev/null
@@ -1,95 +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.payment_method import PaymentMethod
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetPaymentMethodReply(BaseModel):
- """
- GetPaymentMethodReply
- """ # noqa: E501
-
- payment_method: Optional[PaymentMethod] = None
- __properties: ClassVar[List[str]] = ["payment_method"]
-
- 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 GetPaymentMethodReply 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 payment_method
- if self.payment_method:
- _dict["payment_method"] = self.payment_method.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetPaymentMethodReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/get_regional_deployment_reply.py b/koyeb/models/get_regional_deployment_reply.py
deleted file mode 100644
index a319fc35..00000000
--- a/koyeb/models/get_regional_deployment_reply.py
+++ /dev/null
@@ -1,95 +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.regional_deployment import RegionalDeployment
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class GetRegionalDeploymentReply(BaseModel):
- """
- GetRegionalDeploymentReply
- """ # noqa: E501
-
- regional_deployment: Optional[RegionalDeployment] = None
- __properties: ClassVar[List[str]] = ["regional_deployment"]
-
- 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 GetRegionalDeploymentReply 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 regional_deployment
- if self.regional_deployment:
- _dict["regional_deployment"] = self.regional_deployment.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetRegionalDeploymentReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/git_deployment_metadata.py b/koyeb/models/git_deployment_metadata.py
deleted file mode 100644
index e2e9285b..00000000
--- a/koyeb/models/git_deployment_metadata.py
+++ /dev/null
@@ -1,99 +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.git_env_deployment_metadata import GitEnvDeploymentMetadata
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class GitDeploymentMetadata(BaseModel):
- """
- GitDeploymentMetadata
- """ # noqa: E501
-
- last_provisioned_deployment_id: Optional[StrictStr] = None
- git_env: Optional[GitEnvDeploymentMetadata] = None
- __properties: ClassVar[List[str]] = ["last_provisioned_deployment_id", "git_env"]
-
- 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 GitDeploymentMetadata 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 git_env
- if self.git_env:
- _dict["git_env"] = self.git_env.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GitDeploymentMetadata from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/git_source.py b/koyeb/models/git_source.py
deleted file mode 100644
index 063c0831..00000000
--- a/koyeb/models/git_source.py
+++ /dev/null
@@ -1,135 +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, 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 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.",
- )
- branch: Optional[StrictStr] = None
- tag: Optional[StrictStr] = None
- sha: Optional[StrictStr] = None
- build_command: Optional[StrictStr] = None
- run_command: Optional[StrictStr] = None
- no_deploy_on_push: Optional[StrictBool] = None
- 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",
- ]
-
- 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 GitSource 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 buildpack
- if self.buildpack:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GitSource from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/google_protobuf_null_value.py b/koyeb/models/google_protobuf_null_value.py
deleted file mode 100644
index 52e4bfdb..00000000
--- a/koyeb/models/google_protobuf_null_value.py
+++ /dev/null
@@ -1,34 +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 GoogleProtobufNullValue(str, Enum):
- """
- `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.
- """
-
- """
- allowed enum values
- """
- 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/instance.py b/koyeb/models/instance.py
deleted file mode 100644
index 12f70789..00000000
--- a/koyeb/models/instance.py
+++ /dev/null
@@ -1,152 +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, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.instance_status import InstanceStatus
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Instance(BaseModel):
- """
- Instance
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- service_id: Optional[StrictStr] = None
- regional_deployment_id: Optional[StrictStr] = None
- allocation_id: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- replica_index: Optional[StrictInt] = None
- region: Optional[StrictStr] = None
- datacenter: Optional[StrictStr] = None
- hypervisor: Optional[StrictStr] = None
- status: Optional[InstanceStatus] = InstanceStatus.ALLOCATING
- messages: Optional[List[StrictStr]] = None
- 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",
- ]
-
- 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 Instance 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 Instance 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"),
- "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/models/instance_availability.py
deleted file mode 100644
index 0dcf7b8a..00000000
--- a/koyeb/models/instance_availability.py
+++ /dev/null
@@ -1,109 +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.availability_level import AvailabilityLevel
-from koyeb.models.region_availability import RegionAvailability
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class InstanceAvailability(BaseModel):
- """
- InstanceAvailability
- """ # noqa: E501
-
- regions: Optional[Dict[str, RegionAvailability]] = None
- availability: Optional[AvailabilityLevel] = AvailabilityLevel.UNKNOWN
- __properties: ClassVar[List[str]] = ["regions", "availability"]
-
- 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 InstanceAvailability 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 each value in regions (dict)
- _field_dict = {}
- if self.regions:
- 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InstanceAvailability from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/instance_event.py b/koyeb/models/instance_event.py
deleted file mode 100644
index fb8ff082..00000000
--- a/koyeb/models/instance_event.py
+++ /dev/null
@@ -1,108 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class InstanceEvent(BaseModel):
- """
- InstanceEvent
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- when: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- instance_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 InstanceEvent 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 InstanceEvent 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"),
- "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/models/instance_list_item.py
deleted file mode 100644
index bade7af7..00000000
--- a/koyeb/models/instance_list_item.py
+++ /dev/null
@@ -1,140 +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, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.instance_status import InstanceStatus
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class InstanceListItem(BaseModel):
- """
- InstanceListItem
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- service_id: Optional[StrictStr] = None
- regional_deployment_id: Optional[StrictStr] = None
- allocation_id: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- replica_index: Optional[StrictInt] = None
- region: Optional[StrictStr] = None
- 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",
- ]
-
- 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 InstanceListItem 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 InstanceListItem 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"),
- "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/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/kgitproxy_branch.py b/koyeb/models/kgitproxy_branch.py
deleted file mode 100644
index 92f9c7e8..00000000
--- a/koyeb/models/kgitproxy_branch.py
+++ /dev/null
@@ -1,114 +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.kgitproxy_repository_provider import KgitproxyRepositoryProvider
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class KgitproxyBranch(BaseModel):
- """
- KgitproxyBranch
- """ # 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",
- ]
-
- 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 KgitproxyBranch 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 KgitproxyBranch 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"),
- "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_github_installation_status.py b/koyeb/models/kgitproxy_github_installation_status.py
deleted file mode 100644
index a534e6de..00000000
--- a/koyeb/models/kgitproxy_github_installation_status.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 KgitproxyGithubInstallationStatus(str, Enum):
- """
- KgitproxyGithubInstallationStatus
- """
-
- """
- allowed enum values
- """
- 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/models/kgitproxy_indexing_status.py
deleted file mode 100644
index 428a53ec..00000000
--- a/koyeb/models/kgitproxy_indexing_status.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 KgitproxyIndexingStatus(str, Enum):
- """
- KgitproxyIndexingStatus
- """
-
- """
- allowed enum values
- """
- 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/models/kgitproxy_list_branches_reply.py
deleted file mode 100644
index 57d03afa..00000000
--- a/koyeb/models/kgitproxy_list_branches_reply.py
+++ /dev/null
@@ -1,113 +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, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.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."
- )
- __properties: ClassVar[List[str]] = ["branches", "limit", "offset", "count"]
-
- 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 KgitproxyListBranchesReply 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 each item in branches (list)
- _items = []
- if self.branches:
- for _item_branches in self.branches:
- if _item_branches:
- _items.append(_item_branches.to_dict())
- _dict["branches"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of KgitproxyListBranchesReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/kgitproxy_list_repositories_reply.py b/koyeb/models/kgitproxy_list_repositories_reply.py
deleted file mode 100644
index f48bc743..00000000
--- a/koyeb/models/kgitproxy_list_repositories_reply.py
+++ /dev/null
@@ -1,116 +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, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.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."
- )
- __properties: ClassVar[List[str]] = ["repositories", "limit", "offset", "count"]
-
- 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 KgitproxyListRepositoriesReply 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 each item in repositories (list)
- _items = []
- if self.repositories:
- for _item_repositories in self.repositories:
- if _item_repositories:
- _items.append(_item_repositories.to_dict())
- _dict["repositories"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of KgitproxyListRepositoriesReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/kgitproxy_repository.py b/koyeb/models/kgitproxy_repository.py
deleted file mode 100644
index d2f1e870..00000000
--- a/koyeb/models/kgitproxy_repository.py
+++ /dev/null
@@ -1,135 +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.kgitproxy_git_hub_repository import KgitproxyGitHubRepository
-from koyeb.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class KgitproxyRepository(BaseModel):
- """
- KgitproxyRepository
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- is_private: Optional[StrictBool] = None
- is_disabled: Optional[StrictBool] = None
- default_branch: Optional[StrictStr] = None
- 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",
- ]
-
- 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 KgitproxyRepository 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 github
- if self.github:
- _dict["github"] = self.github.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of KgitproxyRepository 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"),
- "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/models/kgitproxy_repository_provider.py
deleted file mode 100644
index 53913b60..00000000
--- a/koyeb/models/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
-
-
-from __future__ import annotations
-import json
-from enum import Enum
-from typing_extensions import Self
-
-
-class KgitproxyRepositoryProvider(str, Enum):
- """
- KgitproxyRepositoryProvider
- """
-
- """
- allowed enum values
- """
- 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_global_deployment.py b/koyeb/models/ksearch_global_deployment.py
deleted file mode 100644
index bf9c1629..00000000
--- a/koyeb/models/ksearch_global_deployment.py
+++ /dev/null
@@ -1,98 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class KsearchGlobalDeployment(BaseModel):
- """
- KsearchGlobalDeployment
- """ # 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",
- ]
-
- 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 KsearchGlobalDeployment 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 KsearchGlobalDeployment 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"),
- "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/models/ksearch_instance.py
deleted file mode 100644
index 221d567b..00000000
--- a/koyeb/models/ksearch_instance.py
+++ /dev/null
@@ -1,101 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class KsearchInstance(BaseModel):
- """
- KsearchInstance
- """ # 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",
- ]
-
- 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 KsearchInstance 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 KsearchInstance 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"),
- "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_regional_deployment.py b/koyeb/models/ksearch_regional_deployment.py
deleted file mode 100644
index 0c352cdb..00000000
--- a/koyeb/models/ksearch_regional_deployment.py
+++ /dev/null
@@ -1,101 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class KsearchRegionalDeployment(BaseModel):
- """
- KsearchRegionalDeployment
- """ # 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",
- ]
-
- 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 KsearchRegionalDeployment 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 KsearchRegionalDeployment 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"),
- "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/models/ksearch_search_reply.py
deleted file mode 100644
index b707682e..00000000
--- a/koyeb/models/ksearch_search_reply.py
+++ /dev/null
@@ -1,200 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class KsearchSearchReply(BaseModel):
- """
- KsearchSearchReply
- """ # noqa: E501
-
- organizations: Optional[List[KsearchOrganization]] = None
- users: Optional[List[KsearchUser]] = None
- apps: Optional[List[KsearchApp]] = None
- services: Optional[List[KsearchService]] = None
- 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",
- ]
-
- 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 KsearchSearchReply 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 each item in organizations (list)
- _items = []
- if self.organizations:
- for _item_organizations in self.organizations:
- if _item_organizations:
- _items.append(_item_organizations.to_dict())
- _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
- # 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
- # 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
- # 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
- # 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
- # 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of KsearchSearchReply from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/list_app_events_reply.py b/koyeb/models/list_app_events_reply.py
deleted file mode 100644
index d124b150..00000000
--- a/koyeb/models/list_app_events_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.app_event import AppEvent
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListAppEventsReply(BaseModel):
- """
- ListAppEventsReply
- """ # 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",
- ]
-
- 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 ListAppEventsReply 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 each item in events (list)
- _items = []
- if self.events:
- for _item_events in self.events:
- if _item_events:
- _items.append(_item_events.to_dict())
- _dict["events"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListAppEventsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_apps_reply.py b/koyeb/models/list_apps_reply.py
deleted file mode 100644
index c8c4803b..00000000
--- a/koyeb/models/list_apps_reply.py
+++ /dev/null
@@ -1,107 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.app_list_item import AppListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListAppsReply(BaseModel):
- """
- ListAppsReply
- """ # noqa: E501
-
- apps: Optional[List[AppListItem]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- has_next: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["apps", "limit", "offset", "count", "has_next"]
-
- 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 ListAppsReply 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListAppsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_catalog_instances_reply.py b/koyeb/models/list_catalog_instances_reply.py
deleted file mode 100644
index 312a52ba..00000000
--- a/koyeb/models/list_catalog_instances_reply.py
+++ /dev/null
@@ -1,108 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.catalog_instance_list_item import CatalogInstanceListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListCatalogInstancesReply(BaseModel):
- """
- ListCatalogInstancesReply
- """ # noqa: E501
-
- instances: Optional[List[CatalogInstanceListItem]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["instances", "limit", "offset", "count"]
-
- 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 ListCatalogInstancesReply 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListCatalogInstancesReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_credentials_reply.py b/koyeb/models/list_credentials_reply.py
deleted file mode 100644
index e8bd96bc..00000000
--- a/koyeb/models/list_credentials_reply.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.credential import Credential
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListCredentialsReply(BaseModel):
- """
- ListCredentialsReply
- """ # noqa: E501
-
- credentials: Optional[List[Credential]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["credentials", "limit", "offset", "count"]
-
- 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 ListCredentialsReply 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 each item in credentials (list)
- _items = []
- if self.credentials:
- for _item_credentials in self.credentials:
- if _item_credentials:
- _items.append(_item_credentials.to_dict())
- _dict["credentials"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListCredentialsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_datacenters_reply.py b/koyeb/models/list_datacenters_reply.py
deleted file mode 100644
index 7044f99d..00000000
--- a/koyeb/models/list_datacenters_reply.py
+++ /dev/null
@@ -1,102 +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.datacenter_list_item import DatacenterListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListDatacentersReply(BaseModel):
- """
- ListDatacentersReply
- """ # noqa: E501
-
- datacenters: Optional[List[DatacenterListItem]] = None
- __properties: ClassVar[List[str]] = ["datacenters"]
-
- 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 ListDatacentersReply 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 each item in datacenters (list)
- _items = []
- if self.datacenters:
- for _item_datacenters in self.datacenters:
- if _item_datacenters:
- _items.append(_item_datacenters.to_dict())
- _dict["datacenters"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListDatacentersReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/list_deployment_events_reply.py b/koyeb/models/list_deployment_events_reply.py
deleted file mode 100644
index f91a2f9c..00000000
--- a/koyeb/models/list_deployment_events_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.deployment_event import DeploymentEvent
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListDeploymentEventsReply(BaseModel):
- """
- ListDeploymentEventsReply
- """ # 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",
- ]
-
- 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 ListDeploymentEventsReply 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 each item in events (list)
- _items = []
- if self.events:
- for _item_events in self.events:
- if _item_events:
- _items.append(_item_events.to_dict())
- _dict["events"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListDeploymentEventsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_deployments_reply.py b/koyeb/models/list_deployments_reply.py
deleted file mode 100644
index 21e1b8d8..00000000
--- a/koyeb/models/list_deployments_reply.py
+++ /dev/null
@@ -1,116 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.deployment_list_item import DeploymentListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListDeploymentsReply(BaseModel):
- """
- ListDeploymentsReply
- """ # 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",
- ]
-
- 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 ListDeploymentsReply 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 each item in deployments (list)
- _items = []
- if self.deployments:
- for _item_deployments in self.deployments:
- if _item_deployments:
- _items.append(_item_deployments.to_dict())
- _dict["deployments"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListDeploymentsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_instance_events_reply.py b/koyeb/models/list_instance_events_reply.py
deleted file mode 100644
index be8d0716..00000000
--- a/koyeb/models/list_instance_events_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.instance_event import InstanceEvent
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListInstanceEventsReply(BaseModel):
- """
- ListInstanceEventsReply
- """ # 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",
- ]
-
- 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 ListInstanceEventsReply 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 each item in events (list)
- _items = []
- if self.events:
- for _item_events in self.events:
- if _item_events:
- _items.append(_item_events.to_dict())
- _dict["events"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListInstanceEventsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_instances_reply.py b/koyeb/models/list_instances_reply.py
deleted file mode 100644
index e75c00cb..00000000
--- a/koyeb/models/list_instances_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.instance_list_item import InstanceListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListInstancesReply(BaseModel):
- """
- ListInstancesReply
- """ # 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",
- ]
-
- 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 ListInstancesReply 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListInstancesReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_organization_invitations_reply.py b/koyeb/models/list_organization_invitations_reply.py
deleted file mode 100644
index 4ca61842..00000000
--- a/koyeb/models/list_organization_invitations_reply.py
+++ /dev/null
@@ -1,108 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.organization_invitation import OrganizationInvitation
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListOrganizationInvitationsReply(BaseModel):
- """
- ListOrganizationInvitationsReply
- """ # noqa: E501
-
- invitations: Optional[List[OrganizationInvitation]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["invitations", "limit", "offset", "count"]
-
- 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 ListOrganizationInvitationsReply 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 each item in invitations (list)
- _items = []
- if self.invitations:
- for _item_invitations in self.invitations:
- if _item_invitations:
- _items.append(_item_invitations.to_dict())
- _dict["invitations"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListOrganizationInvitationsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_organization_members_reply.py b/koyeb/models/list_organization_members_reply.py
deleted file mode 100644
index 17d8010b..00000000
--- a/koyeb/models/list_organization_members_reply.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.organization_member import OrganizationMember
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListOrganizationMembersReply(BaseModel):
- """
- ListOrganizationMembersReply
- """ # noqa: E501
-
- members: Optional[List[OrganizationMember]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["members", "limit", "offset", "count"]
-
- 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 ListOrganizationMembersReply 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 each item in members (list)
- _items = []
- if self.members:
- for _item_members in self.members:
- if _item_members:
- _items.append(_item_members.to_dict())
- _dict["members"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListOrganizationMembersReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_payment_methods_reply.py b/koyeb/models/list_payment_methods_reply.py
deleted file mode 100644
index 5cd3354d..00000000
--- a/koyeb/models/list_payment_methods_reply.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.payment_method import PaymentMethod
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListPaymentMethodsReply(BaseModel):
- """
- ListPaymentMethodsReply
- """ # noqa: E501
-
- payment_methods: Optional[List[PaymentMethod]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["payment_methods", "limit", "offset", "count"]
-
- 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 ListPaymentMethodsReply 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 each item in payment_methods (list)
- _items = []
- if self.payment_methods:
- for _item_payment_methods in self.payment_methods:
- if _item_payment_methods:
- _items.append(_item_payment_methods.to_dict())
- _dict["payment_methods"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListPaymentMethodsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_persistent_volume_events_reply.py b/koyeb/models/list_persistent_volume_events_reply.py
deleted file mode 100644
index 7ae56003..00000000
--- a/koyeb/models/list_persistent_volume_events_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.persistent_volume_event import PersistentVolumeEvent
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListPersistentVolumeEventsReply(BaseModel):
- """
- ListPersistentVolumeEventsReply
- """ # 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",
- ]
-
- 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 ListPersistentVolumeEventsReply 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 each item in events (list)
- _items = []
- if self.events:
- for _item_events in self.events:
- if _item_events:
- _items.append(_item_events.to_dict())
- _dict["events"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListPersistentVolumeEventsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_persistent_volumes_reply.py b/koyeb/models/list_persistent_volumes_reply.py
deleted file mode 100644
index f3caa63f..00000000
--- a/koyeb/models/list_persistent_volumes_reply.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.persistent_volume import PersistentVolume
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListPersistentVolumesReply(BaseModel):
- """
- ListPersistentVolumesReply
- """ # noqa: E501
-
- volumes: Optional[List[PersistentVolume]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- has_next: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["volumes", "limit", "offset", "has_next"]
-
- 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 ListPersistentVolumesReply 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListPersistentVolumesReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_regional_deployment_events_reply.py b/koyeb/models/list_regional_deployment_events_reply.py
deleted file mode 100644
index e6f0e4da..00000000
--- a/koyeb/models/list_regional_deployment_events_reply.py
+++ /dev/null
@@ -1,116 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.regional_deployment_event import RegionalDeploymentEvent
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListRegionalDeploymentEventsReply(BaseModel):
- """
- ListRegionalDeploymentEventsReply
- """ # 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",
- ]
-
- 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 ListRegionalDeploymentEventsReply 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 each item in events (list)
- _items = []
- if self.events:
- for _item_events in self.events:
- if _item_events:
- _items.append(_item_events.to_dict())
- _dict["events"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListRegionalDeploymentEventsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_regional_deployments_reply.py b/koyeb/models/list_regional_deployments_reply.py
deleted file mode 100644
index 92943ca2..00000000
--- a/koyeb/models/list_regional_deployments_reply.py
+++ /dev/null
@@ -1,116 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.regional_deployment_list_item import RegionalDeploymentListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListRegionalDeploymentsReply(BaseModel):
- """
- ListRegionalDeploymentsReply
- """ # 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",
- ]
-
- 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 ListRegionalDeploymentsReply 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListRegionalDeploymentsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_regions_reply.py b/koyeb/models/list_regions_reply.py
deleted file mode 100644
index 41e37fe7..00000000
--- a/koyeb/models/list_regions_reply.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.region_list_item import RegionListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListRegionsReply(BaseModel):
- """
- ListRegionsReply
- """ # noqa: E501
-
- regions: Optional[List[RegionListItem]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["regions", "limit", "offset", "count"]
-
- 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 ListRegionsReply 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 each item in regions (list)
- _items = []
- if self.regions:
- for _item_regions in self.regions:
- if _item_regions:
- _items.append(_item_regions.to_dict())
- _dict["regions"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListRegionsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_service_events_reply.py b/koyeb/models/list_service_events_reply.py
deleted file mode 100644
index ba31bdc5..00000000
--- a/koyeb/models/list_service_events_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.service_event import ServiceEvent
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListServiceEventsReply(BaseModel):
- """
- ListServiceEventsReply
- """ # 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",
- ]
-
- 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 ListServiceEventsReply 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 each item in events (list)
- _items = []
- if self.events:
- for _item_events in self.events:
- if _item_events:
- _items.append(_item_events.to_dict())
- _dict["events"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListServiceEventsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_services_reply.py b/koyeb/models/list_services_reply.py
deleted file mode 100644
index bee52757..00000000
--- a/koyeb/models/list_services_reply.py
+++ /dev/null
@@ -1,113 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.service_list_item import ServiceListItem
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListServicesReply(BaseModel):
- """
- ListServicesReply
- """ # 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",
- ]
-
- 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 ListServicesReply 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 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListServicesReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_user_organization_invitations_reply.py b/koyeb/models/list_user_organization_invitations_reply.py
deleted file mode 100644
index d32fea4f..00000000
--- a/koyeb/models/list_user_organization_invitations_reply.py
+++ /dev/null
@@ -1,108 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.organization_invitation import OrganizationInvitation
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListUserOrganizationInvitationsReply(BaseModel):
- """
- ListUserOrganizationInvitationsReply
- """ # noqa: E501
-
- invitations: Optional[List[OrganizationInvitation]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["invitations", "limit", "offset", "count"]
-
- 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 ListUserOrganizationInvitationsReply 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 each item in invitations (list)
- _items = []
- if self.invitations:
- for _item_invitations in self.invitations:
- if _item_invitations:
- _items.append(_item_invitations.to_dict())
- _dict["invitations"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListUserOrganizationInvitationsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/list_user_organizations_reply.py b/koyeb/models/list_user_organizations_reply.py
deleted file mode 100644
index 4428c1c6..00000000
--- a/koyeb/models/list_user_organizations_reply.py
+++ /dev/null
@@ -1,105 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.organization import Organization
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ListUserOrganizationsReply(BaseModel):
- """
- ListUserOrganizationsReply
- """ # noqa: E501
-
- organizations: Optional[List[Organization]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- has_next: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["organizations", "limit", "offset", "has_next"]
-
- 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 ListUserOrganizationsReply 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 each item in organizations (list)
- _items = []
- if self.organizations:
- for _item_organizations in self.organizations:
- if _item_organizations:
- _items.append(_item_organizations.to_dict())
- _dict["organizations"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListUserOrganizationsReply from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/login_method_reply_method.py b/koyeb/models/login_method_reply_method.py
deleted file mode 100644
index ae71be68..00000000
--- a/koyeb/models/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
-
-
-from __future__ import annotations
-import json
-from enum import Enum
-from typing_extensions import Self
-
-
-class LoginMethodReplyMethod(str, Enum):
- """
- LoginMethodReplyMethod
- """
-
- """
- allowed enum values
- """
- 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/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/neon_postgres_database.py b/koyeb/models/neon_postgres_database.py
deleted file mode 100644
index 1da07281..00000000
--- a/koyeb/models/neon_postgres_database.py
+++ /dev/null
@@ -1,133 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class NeonPostgresDatabase(BaseModel):
- """
- NeonPostgresDatabase
- """ # 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",
- ]
-
- 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 NeonPostgresDatabase 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 each item in roles (list)
- _items = []
- if self.roles:
- for _item_roles in self.roles:
- if _item_roles:
- _items.append(_item_roles.to_dict())
- _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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NeonPostgresDatabase from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/next_invoice_reply.py b/koyeb/models/next_invoice_reply.py
deleted file mode 100644
index 5d187b95..00000000
--- a/koyeb/models/next_invoice_reply.py
+++ /dev/null
@@ -1,118 +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.next_invoice_reply_discount import NextInvoiceReplyDiscount
-from koyeb.models.next_invoice_reply_line import NextInvoiceReplyLine
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class NextInvoiceReply(BaseModel):
- """
- NextInvoiceReply
- """ # noqa: E501
-
- stripe_invoice: Optional[Dict[str, Any]] = None
- lines: Optional[List[NextInvoiceReplyLine]] = None
- discounts: Optional[List[NextInvoiceReplyDiscount]] = None
- __properties: ClassVar[List[str]] = ["stripe_invoice", "lines", "discounts"]
-
- 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 NextInvoiceReply 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 each item in lines (list)
- _items = []
- if self.lines:
- for _item_lines in self.lines:
- if _item_lines:
- _items.append(_item_lines.to_dict())
- _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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NextInvoiceReply from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/next_invoice_reply_discount.py b/koyeb/models/next_invoice_reply_discount.py
deleted file mode 100644
index 033bf3f2..00000000
--- a/koyeb/models/next_invoice_reply_discount.py
+++ /dev/null
@@ -1,98 +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.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
- )
- name: Optional[StrictStr] = None
- amount: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["type", "name", "amount"]
-
- 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 NextInvoiceReplyDiscount 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 NextInvoiceReplyDiscount from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/next_invoice_reply_discount_type.py b/koyeb/models/next_invoice_reply_discount_type.py
deleted file mode 100644
index baad6a52..00000000
--- a/koyeb/models/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
-
-
-from __future__ import annotations
-import json
-from enum import Enum
-from typing_extensions import Self
-
-
-class NextInvoiceReplyDiscountType(str, Enum):
- """
- NextInvoiceReplyDiscountType
- """
-
- """
- allowed enum values
- """
- 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/models/next_invoice_reply_line.py
deleted file mode 100644
index f09b7b8a..00000000
--- a/koyeb/models/next_invoice_reply_line.py
+++ /dev/null
@@ -1,117 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class NextInvoiceReplyLine(BaseModel):
- """
- NextInvoiceReplyLine
- """ # 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",
- ]
-
- 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 NextInvoiceReplyLine 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 period
- if self.period:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NextInvoiceReplyLine from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/notification.py b/koyeb/models/notification.py
deleted file mode 100644
index 1cac081c..00000000
--- a/koyeb/models/notification.py
+++ /dev/null
@@ -1,110 +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.activity import Activity
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Notification(BaseModel):
- """
- Notification
- """ # 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",
- ]
-
- 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 Notification 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 activity
- if self.activity:
- _dict["activity"] = self.activity.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Notification 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"),
- "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/models/notification_list.py
deleted file mode 100644
index de478aea..00000000
--- a/koyeb/models/notification_list.py
+++ /dev/null
@@ -1,122 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.notification import Notification
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class NotificationList(BaseModel):
- """
- NotificationList
- """ # noqa: E501
-
- notifications: Optional[List[Notification]] = None
- limit: Optional[StrictInt] = None
- offset: Optional[StrictInt] = None
- count: Optional[StrictInt] = None
- is_read: Optional[StrictBool] = None
- 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",
- ]
-
- 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 NotificationList 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 each item in notifications (list)
- _items = []
- if self.notifications:
- for _item_notifications in self.notifications:
- if _item_notifications:
- _items.append(_item_notifications.to_dict())
- _dict["notifications"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NotificationList from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/o_auth_callback_request.py b/koyeb/models/o_auth_callback_request.py
deleted file mode 100644
index 12e7b97a..00000000
--- a/koyeb/models/o_auth_callback_request.py
+++ /dev/null
@@ -1,104 +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, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class OAuthCallbackRequest(BaseModel):
- """
- OAuthCallbackRequest
- """ # 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",
- ]
-
- 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 OAuthCallbackRequest 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 OAuthCallbackRequest from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
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_invitation.py b/koyeb/models/organization_invitation.py
deleted file mode 100644
index 3c6cd637..00000000
--- a/koyeb/models/organization_invitation.py
+++ /dev/null
@@ -1,155 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class OrganizationInvitation(BaseModel):
- """
- OrganizationInvitation
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- email: Optional[StrictStr] = None
- role: Optional[UserRoleRole] = UserRoleRole.INVALID
- status: Optional[OrganizationInvitationStatus] = (
- OrganizationInvitationStatus.INVALID
- )
- expires_at: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- organization: Optional[PublicOrganization] = None
- invitee_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 OrganizationInvitation 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 organization
- if self.organization:
- _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()
- # override the default output from pydantic by calling `to_dict()` of inviter
- if self.inviter:
- _dict["inviter"] = self.inviter.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of OrganizationInvitation 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"),
- "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/models/organization_invitation_status.py
deleted file mode 100644
index 835730da..00000000
--- a/koyeb/models/organization_invitation_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 OrganizationInvitationStatus(str, Enum):
- """
- OrganizationInvitationStatus
- """
-
- """
- allowed enum values
- """
- 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/models/organization_member.py
deleted file mode 100644
index 2bdec32d..00000000
--- a/koyeb/models/organization_member.py
+++ /dev/null
@@ -1,137 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class OrganizationMember(BaseModel):
- """
- OrganizationMember
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- user_id: Optional[StrictStr] = None
- joined_at: Optional[datetime] = None
- role: Optional[UserRoleRole] = UserRoleRole.INVALID
- 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",
- ]
-
- 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 OrganizationMember 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 user
- if self.user:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of OrganizationMember 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"),
- "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/models/organization_member_status.py
deleted file mode 100644
index d2cc8fcb..00000000
--- a/koyeb/models/organization_member_status.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 OrganizationMemberStatus(str, Enum):
- """
- OrganizationMemberStatus
- """
-
- """
- allowed enum values
- """
- 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/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/organization_summary.py b/koyeb/models/organization_summary.py
deleted file mode 100644
index 50df6d72..00000000
--- a/koyeb/models/organization_summary.py
+++ /dev/null
@@ -1,173 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class OrganizationSummary(BaseModel):
- """
- OrganizationSummary
- """ # noqa: E501
-
- organization_id: Optional[StrictStr] = None
- instances: Optional[InstancesSummary] = None
- apps: Optional[AppsSummary] = None
- services: Optional[Dict[str, ServiceSummary]] = None
- domains: Optional[DomainsSummary] = None
- 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",
- ]
-
- 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 OrganizationSummary 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 instances
- if self.instances:
- _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()
- # 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
- # override the default output from pydantic by calling `to_dict()` of domains
- if self.domains:
- _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()
- # 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()
- # override the default output from pydantic by calling `to_dict()` of members
- if self.members:
- _dict["members"] = self.members.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of OrganizationSummary from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/payment_method.py b/koyeb/models/payment_method.py
deleted file mode 100644
index 52d263fa..00000000
--- a/koyeb/models/payment_method.py
+++ /dev/null
@@ -1,159 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.payment_method_status import PaymentMethodStatus
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class PaymentMethod(BaseModel):
- """
- PaymentMethod
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- version: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- provider: Optional[StrictStr] = None
- status: Optional[PaymentMethodStatus] = PaymentMethodStatus.INVALID
- messages: Optional[List[StrictStr]] = None
- stripe_payment_method_id: Optional[StrictStr] = None
- authorization_verified_at: Optional[datetime] = None
- authorization_canceled_at: Optional[datetime] = None
- authorization_stripe_payment_intent_id: Optional[StrictStr] = None
- authorization_stripe_payment_intent_client_secret: Optional[StrictStr] = None
- card_brand: Optional[StrictStr] = None
- card_country: Optional[StrictStr] = None
- card_funding: Optional[StrictStr] = None
- card_fingerprint: Optional[StrictStr] = None
- 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",
- ]
-
- 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 PaymentMethod 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 PaymentMethod 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"),
- "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/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.py b/koyeb/models/persistent_volume.py
deleted file mode 100644
index d1e6016b..00000000
--- a/koyeb/models/persistent_volume.py
+++ /dev/null
@@ -1,143 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class PersistentVolume(BaseModel):
- """
- PersistentVolume
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- snapshot_id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- deleted_at: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- service_id: Optional[StrictStr] = None
- region: Optional[StrictStr] = None
- 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",
- ]
-
- 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 PersistentVolume 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 PersistentVolume 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"),
- "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/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_event.py b/koyeb/models/persistent_volume_event.py
deleted file mode 100644
index 52ddcf27..00000000
--- a/koyeb/models/persistent_volume_event.py
+++ /dev/null
@@ -1,108 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class PersistentVolumeEvent(BaseModel):
- """
- PersistentVolumeEvent
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- when: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- persistent_volume_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 PersistentVolumeEvent 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 PersistentVolumeEvent 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"),
- "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/models/persistent_volume_quotas.py
deleted file mode 100644
index 929e30cc..00000000
--- a/koyeb/models/persistent_volume_quotas.py
+++ /dev/null
@@ -1,103 +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, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-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",
- ]
-
- 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 PersistentVolumeQuotas 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 PersistentVolumeQuotas from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
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/proxy_port_protocol.py b/koyeb/models/proxy_port_protocol.py
deleted file mode 100644
index b2a3b2bf..00000000
--- a/koyeb/models/proxy_port_protocol.py
+++ /dev/null
@@ -1,34 +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 ProxyPortProtocol(str, Enum):
- """
- ProxyPortProtocol
- """
-
- """
- allowed enum values
- """
- 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/models/public_organization.py
deleted file mode 100644
index 1b1345c2..00000000
--- a/koyeb/models/public_organization.py
+++ /dev/null
@@ -1,99 +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.organization_status import OrganizationStatus
-from koyeb.models.plan import Plan
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class PublicOrganization(BaseModel):
- """
- PublicOrganization
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- plan: Optional[Plan] = Plan.HOBBY
- status: Optional[OrganizationStatus] = OrganizationStatus.WARNING
- __properties: ClassVar[List[str]] = ["id", "name", "plan", "status"]
-
- 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 PublicOrganization 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 PublicOrganization 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"),
- "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/models/public_user.py
deleted file mode 100644
index 18831045..00000000
--- a/koyeb/models/public_user.py
+++ /dev/null
@@ -1,104 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class PublicUser(BaseModel):
- """
- PublicUser
- """ # 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",
- ]
-
- 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 PublicUser 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 PublicUser 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"),
- "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/models/query_logs_reply.py
deleted file mode 100644
index d909c491..00000000
--- a/koyeb/models/query_logs_reply.py
+++ /dev/null
@@ -1,109 +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.log_entry import LogEntry
-from koyeb.models.query_logs_reply_pagination import QueryLogsReplyPagination
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class QueryLogsReply(BaseModel):
- """
- QueryLogsReply
- """ # noqa: E501
-
- data: Optional[List[LogEntry]] = None
- pagination: Optional[QueryLogsReplyPagination] = None
- __properties: ClassVar[List[str]] = ["data", "pagination"]
-
- 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 QueryLogsReply 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 each item in data (list)
- _items = []
- if self.data:
- for _item_data in self.data:
- if _item_data:
- _items.append(_item_data.to_dict())
- _dict["data"] = _items
- # override the default output from pydantic by calling `to_dict()` of pagination
- if self.pagination:
- _dict["pagination"] = self.pagination.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of QueryLogsReply from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/quotas.py b/koyeb/models/quotas.py
deleted file mode 100644
index d2b080e3..00000000
--- a/koyeb/models/quotas.py
+++ /dev/null
@@ -1,180 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class Quotas(BaseModel):
- """
- Quotas
- """ # noqa: E501
-
- apps: Optional[StrictStr] = None
- services: Optional[StrictStr] = None
- domains: Optional[StrictStr] = None
- services_by_app: Optional[StrictStr] = None
- service_provisioning_concurrency: Optional[StrictStr] = None
- memory_mb: Optional[StrictStr] = None
- instance_types: Optional[List[StrictStr]] = None
- regions: Optional[List[StrictStr]] = None
- max_organization_members: Optional[StrictStr] = None
- max_instances_by_type: Optional[Dict[str, StrictStr]] = None
- persistent_volumes_by_region: Optional[Dict[str, PersistentVolumeQuotas]] = None
- custom_domains: Optional[StrictStr] = None
- domains_load_balancer: Optional[DomainLoadBalancerQuotas] = None
- metrics_retention: Optional[StrictInt] = None
- logs_retention: Optional[StrictInt] = None
- access_reserved_subdomains: Optional[List[StrictStr]] = None
- 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",
- ]
-
- 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 Quotas 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 each value in persistent_volumes_by_region (dict)
- _field_dict = {}
- 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
- # 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()
- # 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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Quotas from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/redeploy_request_info.py b/koyeb/models/redeploy_request_info.py
deleted file mode 100644
index bdd867ef..00000000
--- a/koyeb/models/redeploy_request_info.py
+++ /dev/null
@@ -1,101 +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, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class RedeployRequestInfo(BaseModel):
- """
- RedeployRequestInfo
- """ # 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",
- ]
-
- 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 RedeployRequestInfo 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 RedeployRequestInfo from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/region.py b/koyeb/models/region.py
deleted file mode 100644
index 00bb9aa2..00000000
--- a/koyeb/models/region.py
+++ /dev/null
@@ -1,113 +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, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Region(BaseModel):
- """
- Region
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- coordinates: Optional[List[StrictStr]] = None
- status: Optional[StrictStr] = None
- 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",
- ]
-
- 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 Region 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 Region 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"),
- "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_list_item.py b/koyeb/models/region_list_item.py
deleted file mode 100644
index b8c189d0..00000000
--- a/koyeb/models/region_list_item.py
+++ /dev/null
@@ -1,113 +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, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class RegionListItem(BaseModel):
- """
- RegionListItem
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- coordinates: Optional[List[StrictStr]] = None
- status: Optional[StrictStr] = None
- 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",
- ]
-
- 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 RegionListItem 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 RegionListItem 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"),
- "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/models/region_usage.py
deleted file mode 100644
index eeb91c88..00000000
--- a/koyeb/models/region_usage.py
+++ /dev/null
@@ -1,104 +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.instance_usage import InstanceUsage
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class RegionUsage(BaseModel):
- """
- RegionUsage
- """ # noqa: E501
-
- instances: Optional[Dict[str, InstanceUsage]] = None
- __properties: ClassVar[List[str]] = ["instances"]
-
- 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 RegionUsage 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 each value in instances (dict)
- _field_dict = {}
- 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegionUsage from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/regional_deployment.py b/koyeb/models/regional_deployment.py
deleted file mode 100644
index f787af6c..00000000
--- a/koyeb/models/regional_deployment.py
+++ /dev/null
@@ -1,185 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class RegionalDeployment(BaseModel):
- """
- RegionalDeployment
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- scheduled_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
- region: Optional[StrictStr] = None
- parent_id: Optional[StrictStr] = None
- child_id: Optional[StrictStr] = None
- status: Optional[RegionalDeploymentStatus] = RegionalDeploymentStatus.PENDING
- messages: Optional[List[StrictStr]] = None
- definition: Optional[RegionalDeploymentDefinition] = None
- datacenters: Optional[List[StrictStr]] = None
- metadata: Optional[Dict[str, Any]] = None
- provisioning_info: Optional[DeploymentProvisioningInfo] = None
- role: Optional[RegionalDeploymentRole] = RegionalDeploymentRole.INVALID
- 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",
- ]
-
- 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 RegionalDeployment 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 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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegionalDeployment 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"),
- "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/models/regional_deployment_definition.py
deleted file mode 100644
index ec568dc6..00000000
--- a/koyeb/models/regional_deployment_definition.py
+++ /dev/null
@@ -1,264 +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.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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class RegionalDeploymentDefinition(BaseModel):
- """
- RegionalDeploymentDefinition
- """ # noqa: E501
-
- name: Optional[StrictStr] = None
- type: Optional[RegionalDeploymentDefinitionType] = (
- RegionalDeploymentDefinitionType.INVALID
- )
- strategy: Optional[DeploymentStrategy] = None
- routes: Optional[List[Route]] = None
- ports: Optional[List[Port]] = None
- env: Optional[List[Env]] = None
- region: Optional[StrictStr] = None
- scaling: Optional[Scaling] = None
- instance_type: Optional[StrictStr] = None
- deployment_group: Optional[StrictStr] = None
- health_checks: Optional[List[DeploymentHealthCheck]] = None
- volumes: Optional[List[RegionalDeploymentVolume]] = None
- config_files: Optional[List[ConfigFile]] = None
- skip_cache: Optional[StrictBool] = None
- 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",
- ]
-
- 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 RegionalDeploymentDefinition 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 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 scaling
- if self.scaling:
- _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
- # 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 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 RegionalDeploymentDefinition 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 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/models/regional_deployment_definition_type.py
deleted file mode 100644
index 2bc3e7be..00000000
--- a/koyeb/models/regional_deployment_definition_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 RegionalDeploymentDefinitionType(str, Enum):
- """
- RegionalDeploymentDefinitionType
- """
-
- """
- allowed enum values
- """
- 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/models/regional_deployment_event.py
deleted file mode 100644
index bcd23e99..00000000
--- a/koyeb/models/regional_deployment_event.py
+++ /dev/null
@@ -1,108 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class RegionalDeploymentEvent(BaseModel):
- """
- RegionalDeploymentEvent
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- when: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- regional_deployment_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 RegionalDeploymentEvent 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 RegionalDeploymentEvent 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"),
- "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/models/regional_deployment_list_item.py
deleted file mode 100644
index f0a97744..00000000
--- a/koyeb/models/regional_deployment_list_item.py
+++ /dev/null
@@ -1,121 +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.regional_deployment_definition import RegionalDeploymentDefinition
-from koyeb.models.regional_deployment_status import RegionalDeploymentStatus
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class RegionalDeploymentListItem(BaseModel):
- """
- RegionalDeploymentListItem
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- region: Optional[StrictStr] = None
- 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",
- ]
-
- 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 RegionalDeploymentListItem 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 definition
- if self.definition:
- _dict["definition"] = self.definition.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegionalDeploymentListItem 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"),
- "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/models/regional_deployment_role.py
deleted file mode 100644
index dfa5e2ad..00000000
--- a/koyeb/models/regional_deployment_role.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 RegionalDeploymentRole(str, Enum):
- """
- RegionalDeploymentRole
- """
-
- """
- allowed enum values
- """
- 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/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/resend_organization_invitation_reply.py b/koyeb/models/resend_organization_invitation_reply.py
deleted file mode 100644
index 51609ed5..00000000
--- a/koyeb/models/resend_organization_invitation_reply.py
+++ /dev/null
@@ -1,95 +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.organization_invitation import OrganizationInvitation
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ResendOrganizationInvitationReply(BaseModel):
- """
- ResendOrganizationInvitationReply
- """ # noqa: E501
-
- invitation: Optional[OrganizationInvitation] = None
- __properties: ClassVar[List[str]] = ["invitation"]
-
- 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 ResendOrganizationInvitationReply 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 invitation
- if self.invitation:
- _dict["invitation"] = self.invitation.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ResendOrganizationInvitationReply from a dict"""
- if obj is None:
- return None
-
- 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
- )
- }
- )
- return _obj
diff --git a/koyeb/models/scale_to_zero_quotas.py b/koyeb/models/scale_to_zero_quotas.py
deleted file mode 100644
index ad114f00..00000000
--- a/koyeb/models/scale_to_zero_quotas.py
+++ /dev/null
@@ -1,104 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ScaleToZeroQuotas(BaseModel):
- """
- ScaleToZeroQuotas
- """ # 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",
- ]
-
- 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 ScaleToZeroQuotas 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 ScaleToZeroQuotas from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/scaling.py b/koyeb/models/scaling.py
deleted file mode 100644
index 34abaded..00000000
--- a/koyeb/models/scaling.py
+++ /dev/null
@@ -1,106 +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, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from koyeb.models.deployment_scaling_target import DeploymentScalingTarget
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Scaling(BaseModel):
- """
- Scaling
- """ # noqa: E501
-
- min: Optional[StrictInt] = None
- max: Optional[StrictInt] = None
- targets: Optional[List[DeploymentScalingTarget]] = None
- __properties: ClassVar[List[str]] = ["min", "max", "targets"]
-
- 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 Scaling 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 each item in targets (list)
- _items = []
- if self.targets:
- for _item_targets in self.targets:
- if _item_targets:
- _items.append(_item_targets.to_dict())
- _dict["targets"] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Scaling from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
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/secret_type.py b/koyeb/models/secret_type.py
deleted file mode 100644
index bd981586..00000000
--- a/koyeb/models/secret_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 SecretType(str, Enum):
- """
- SecretType
- """
-
- """
- allowed enum values
- """
- 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/service.py b/koyeb/models/service.py
deleted file mode 100644
index 99318d69..00000000
--- a/koyeb/models/service.py
+++ /dev/null
@@ -1,164 +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.service_state import ServiceState
-from koyeb.models.service_status import ServiceStatus
-from koyeb.models.service_type import ServiceType
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Service(BaseModel):
- """
- Service
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- started_at: Optional[datetime] = None
- succeeded_at: Optional[datetime] = None
- paused_at: Optional[datetime] = None
- resumed_at: Optional[datetime] = None
- terminated_at: Optional[datetime] = None
- name: Optional[StrictStr] = None
- type: Optional[ServiceType] = ServiceType.INVALID_TYPE
- organization_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- status: Optional[ServiceStatus] = ServiceStatus.STARTING
- messages: Optional[List[StrictStr]] = None
- version: Optional[StrictStr] = None
- active_deployment_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 Service 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 state
- if self.state:
- _dict["state"] = self.state.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Service 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"),
- "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/models/service_event.py
deleted file mode 100644
index 68d2c5e2..00000000
--- a/koyeb/models/service_event.py
+++ /dev/null
@@ -1,108 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class ServiceEvent(BaseModel):
- """
- ServiceEvent
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- when: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- service_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 ServiceEvent 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 ServiceEvent 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"),
- "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/models/service_list_item.py
deleted file mode 100644
index 617ce078..00000000
--- a/koyeb/models/service_list_item.py
+++ /dev/null
@@ -1,144 +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.service_state import ServiceState
-from koyeb.models.service_status import ServiceStatus
-from koyeb.models.service_type import ServiceType
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ServiceListItem(BaseModel):
- """
- ServiceListItem
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- type: Optional[ServiceType] = ServiceType.INVALID_TYPE
- organization_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- updated_at: Optional[datetime] = None
- created_at: Optional[datetime] = None
- status: Optional[ServiceStatus] = ServiceStatus.STARTING
- messages: Optional[List[StrictStr]] = None
- version: Optional[StrictStr] = None
- 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",
- ]
-
- 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 ServiceListItem 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 state
- if self.state:
- _dict["state"] = self.state.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ServiceListItem 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"),
- "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/models/service_state.py
deleted file mode 100644
index 2e722e90..00000000
--- a/koyeb/models/service_state.py
+++ /dev/null
@@ -1,105 +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.auto_release import AutoRelease
-from koyeb.models.desired_deployment import DesiredDeployment
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ServiceState(BaseModel):
- """
- ServiceState
- """ # noqa: E501
-
- desired_deployment: Optional[DesiredDeployment] = None
- auto_release: Optional[AutoRelease] = None
- __properties: ClassVar[List[str]] = ["desired_deployment", "auto_release"]
-
- 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 ServiceState 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 desired_deployment
- if self.desired_deployment:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ServiceState from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- 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/service_type.py b/koyeb/models/service_type.py
deleted file mode 100644
index 91829e13..00000000
--- a/koyeb/models/service_type.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 ServiceType(str, Enum):
- """
- ServiceType
- """
-
- """
- allowed enum values
- """
- 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/models/service_usage.py
deleted file mode 100644
index c7c6b130..00000000
--- a/koyeb/models/service_usage.py
+++ /dev/null
@@ -1,106 +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.region_usage import RegionUsage
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class ServiceUsage(BaseModel):
- """
- ServiceUsage
- """ # noqa: E501
-
- service_id: Optional[StrictStr] = None
- service_name: Optional[StrictStr] = None
- regions: Optional[Dict[str, RegionUsage]] = None
- __properties: ClassVar[List[str]] = ["service_id", "service_name", "regions"]
-
- 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 ServiceUsage 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 each value in regions (dict)
- _field_dict = {}
- if self.regions:
- 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ServiceUsage from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/snapshot.py b/koyeb/models/snapshot.py
deleted file mode 100644
index 76135a73..00000000
--- a/koyeb/models/snapshot.py
+++ /dev/null
@@ -1,130 +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, 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 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
-
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- size: Optional[StrictInt] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- deleted_at: Optional[datetime] = None
- organization_id: Optional[StrictStr] = None
- parent_volume_id: Optional[StrictStr] = None
- 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",
- ]
-
- 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 Snapshot 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 Snapshot 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"),
- "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/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/stream_result_of_exec_command_reply.py b/koyeb/models/stream_result_of_exec_command_reply.py
deleted file mode 100644
index fd1033c7..00000000
--- a/koyeb/models/stream_result_of_exec_command_reply.py
+++ /dev/null
@@ -1,105 +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.exec_command_reply import ExecCommandReply
-from koyeb.models.google_rpc_status import GoogleRpcStatus
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class StreamResultOfExecCommandReply(BaseModel):
- """
- StreamResultOfExecCommandReply
- """ # noqa: E501
-
- result: Optional[ExecCommandReply] = None
- error: Optional[GoogleRpcStatus] = None
- __properties: ClassVar[List[str]] = ["result", "error"]
-
- 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 StreamResultOfExecCommandReply 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 result
- if self.result:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of StreamResultOfExecCommandReply from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/stream_result_of_log_entry.py b/koyeb/models/stream_result_of_log_entry.py
deleted file mode 100644
index 0f694095..00000000
--- a/koyeb/models/stream_result_of_log_entry.py
+++ /dev/null
@@ -1,105 +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.google_rpc_status import GoogleRpcStatus
-from koyeb.models.log_entry import LogEntry
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class StreamResultOfLogEntry(BaseModel):
- """
- StreamResultOfLogEntry
- """ # noqa: E501
-
- result: Optional[LogEntry] = None
- error: Optional[GoogleRpcStatus] = None
- __properties: ClassVar[List[str]] = ["result", "error"]
-
- 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 StreamResultOfLogEntry 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 result
- if self.result:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of StreamResultOfLogEntry from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/subscription.py b/koyeb/models/subscription.py
deleted file mode 100644
index 7e17f9c2..00000000
--- a/koyeb/models/subscription.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 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class Subscription(BaseModel):
- """
- Subscription
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- updated_at: Optional[datetime] = None
- version: Optional[StrictStr] = None
- organization_id: Optional[StrictStr] = None
- stripe_subscription_id: Optional[StrictStr] = None
- status: Optional[SubscriptionStatus] = SubscriptionStatus.INVALID
- messages: Optional[List[StrictStr]] = None
- has_pending_update: Optional[StrictBool] = None
- stripe_pending_invoice_id: Optional[StrictStr] = None
- terminate_at: Optional[datetime] = None
- canceled_at: Optional[datetime] = None
- terminated_at: Optional[datetime] = None
- current_period_start: Optional[datetime] = None
- current_period_end: Optional[datetime] = None
- currency: Optional[StrictStr] = None
- amount_payable: Optional[StrictStr] = None
- amount_paid: Optional[StrictStr] = None
- amount_remaining: Optional[StrictStr] = None
- payment_failure: Optional[SubscriptionPaymentFailure] = None
- trialing: Optional[StrictBool] = None
- 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",
- ]
-
- 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 Subscription 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 payment_failure
- if self.payment_failure:
- _dict["payment_failure"] = self.payment_failure.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Subscription 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"),
- "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/models/subscription_payment_failure.py
deleted file mode 100644
index 5c6a3f3c..00000000
--- a/koyeb/models/subscription_payment_failure.py
+++ /dev/null
@@ -1,127 +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.subscription_payment_failure_stripe_sdk import (
- SubscriptionPaymentFailureStripeSDK,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class SubscriptionPaymentFailure(BaseModel):
- """
- SubscriptionPaymentFailure
- """ # noqa: E501
-
- failed_at: Optional[datetime] = None
- next_attempt: Optional[datetime] = None
- attempt_count: Optional[StrictStr] = None
- error_code: Optional[StrictStr] = None
- error_reason: Optional[StrictStr] = None
- error_type: Optional[StrictStr] = None
- error_message: Optional[StrictStr] = None
- 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",
- ]
-
- 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 SubscriptionPaymentFailure 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 stripe_sdk
- if self.stripe_sdk:
- _dict["stripe_sdk"] = self.stripe_sdk.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SubscriptionPaymentFailure from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
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/token.py b/koyeb/models/token.py
deleted file mode 100644
index ee8a37db..00000000
--- a/koyeb/models/token.py
+++ /dev/null
@@ -1,99 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class Token(BaseModel):
- """
- Token
- """ # 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",
- ]
-
- 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 Token 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 Token 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"),
- "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/models/trigger_deployment_metadata.py
deleted file mode 100644
index a04e00bb..00000000
--- a/koyeb/models/trigger_deployment_metadata.py
+++ /dev/null
@@ -1,117 +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.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 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
- )
- git: Optional[TriggerGitDeploymentMetadata] = None
- __properties: ClassVar[List[str]] = ["type", "actor", "git"]
-
- 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 TriggerDeploymentMetadata 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 git
- if self.git:
- _dict["git"] = self.git.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of TriggerDeploymentMetadata from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/trigger_deployment_metadata_actor_type.py b/koyeb/models/trigger_deployment_metadata_actor_type.py
deleted file mode 100644
index efb6e32f..00000000
--- a/koyeb/models/trigger_deployment_metadata_actor_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 TriggerDeploymentMetadataActorType(str, Enum):
- """
- TriggerDeploymentMetadataActorType
- """
-
- """
- allowed enum values
- """
- 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/models/trigger_deployment_metadata_trigger_type.py
deleted file mode 100644
index a6a25aac..00000000
--- a/koyeb/models/trigger_deployment_metadata_trigger_type.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 TriggerDeploymentMetadataTriggerType(str, Enum):
- """
- TriggerDeploymentMetadataTriggerType
- """
-
- """
- allowed enum values
- """
- 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/models/trigger_git_deployment_metadata.py
deleted file mode 100644
index 64d1a557..00000000
--- a/koyeb/models/trigger_git_deployment_metadata.py
+++ /dev/null
@@ -1,119 +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.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
- )
- repository: Optional[StrictStr] = None
- branch: Optional[StrictStr] = None
- sha: Optional[StrictStr] = None
- message: Optional[StrictStr] = None
- 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",
- ]
-
- 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 TriggerGitDeploymentMetadata 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 TriggerGitDeploymentMetadata from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/trigger_git_deployment_metadata_provider.py b/koyeb/models/trigger_git_deployment_metadata_provider.py
deleted file mode 100644
index d6cdda4d..00000000
--- a/koyeb/models/trigger_git_deployment_metadata_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
-
-
-from __future__ import annotations
-import json
-from enum import Enum
-from typing_extensions import Self
-
-
-class TriggerGitDeploymentMetadataProvider(str, Enum):
- """
- TriggerGitDeploymentMetadataProvider
- """
-
- """
- allowed enum values
- """
- 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_domain.py b/koyeb/models/update_domain.py
deleted file mode 100644
index 3d21dc08..00000000
--- a/koyeb/models/update_domain.py
+++ /dev/null
@@ -1,90 +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, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-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."
- )
- __properties: ClassVar[List[str]] = ["app_id", "subdomain"]
-
- 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 UpdateDomain 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 UpdateDomain from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate(
- {"app_id": obj.get("app_id"), "subdomain": obj.get("subdomain")}
- )
- return _obj
diff --git a/koyeb/models/update_service.py b/koyeb/models/update_service.py
deleted file mode 100644
index 6ebe99ed..00000000
--- a/koyeb/models/update_service.py
+++ /dev/null
@@ -1,117 +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, 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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class UpdateService(BaseModel):
- """
- UpdateService
- """ # 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.",
- )
- save_only: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = [
- "definition",
- "metadata",
- "skip_build",
- "save_only",
- ]
-
- 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 UpdateService 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 definition
- if self.definition:
- _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()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateService from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/update_user_request_user_update_body.py b/koyeb/models/update_user_request_user_update_body.py
deleted file mode 100644
index 2240dd4c..00000000
--- a/koyeb/models/update_user_request_user_update_body.py
+++ /dev/null
@@ -1,104 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class UpdateUserRequestUserUpdateBody(BaseModel):
- """
- UpdateUserRequestUserUpdateBody
- """ # 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",
- ]
-
- 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 UpdateUserRequestUserUpdateBody 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 UpdateUserRequestUserUpdateBody 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"),
- "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/usage.py b/koyeb/models/usage.py
deleted file mode 100644
index 9933dc4f..00000000
--- a/koyeb/models/usage.py
+++ /dev/null
@@ -1,104 +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.period_usage import PeriodUsage
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class Usage(BaseModel):
- """
- Usage
- """ # noqa: E501
-
- organization_id: Optional[StrictStr] = None
- periods: Optional[Dict[str, PeriodUsage]] = None
- __properties: ClassVar[List[str]] = ["organization_id", "periods"]
-
- 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 Usage 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 each value in periods (dict)
- _field_dict = {}
- if self.periods:
- 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
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Usage from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/usage_details.py b/koyeb/models/usage_details.py
deleted file mode 100644
index baafe744..00000000
--- a/koyeb/models/usage_details.py
+++ /dev/null
@@ -1,126 +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, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class UsageDetails(BaseModel):
- """
- UsageDetails
- """ # noqa: E501
-
- organization_id: Optional[StrictStr] = None
- instance_id: Optional[StrictStr] = None
- app_id: Optional[StrictStr] = None
- app_name: Optional[StrictStr] = None
- service_id: Optional[StrictStr] = None
- service_name: Optional[StrictStr] = None
- regional_deployment_id: Optional[StrictStr] = None
- region: Optional[StrictStr] = None
- deployment_id: Optional[StrictStr] = None
- instance_type: Optional[StrictStr] = None
- 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",
- ]
-
- 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 UsageDetails 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 UsageDetails from a dict"""
- if obj is None:
- return None
-
- 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"),
- }
- )
- return _obj
diff --git a/koyeb/models/user.py b/koyeb/models/user.py
deleted file mode 100644
index f6030139..00000000
--- a/koyeb/models/user.py
+++ /dev/null
@@ -1,133 +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.user_flags import UserFlags
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class User(BaseModel):
- """
- User
- """ # noqa: E501
-
- id: Optional[StrictStr] = None
- email: Optional[StrictStr] = None
- avatar_url: Optional[StrictStr] = None
- two_factor_authentication: Optional[StrictBool] = None
- last_login: Optional[datetime] = None
- last_login_ip: Optional[StrictStr] = None
- updated_at: Optional[datetime] = None
- created_at: Optional[datetime] = None
- newsletter_subscribed: Optional[StrictBool] = None
- github_id: Optional[StrictStr] = None
- github_user: Optional[StrictStr] = None
- flags: Optional[List[UserFlags]] = None
- 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",
- ]
-
- 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 User 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 User 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"),
- "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/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/models/user_role_role.py b/koyeb/models/user_role_role.py
deleted file mode 100644
index 966994e7..00000000
--- a/koyeb/models/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
-
-
-from __future__ import annotations
-import json
-from enum import Enum
-from typing_extensions import Self
-
-
-class UserRoleRole(str, Enum):
- """
- UserRoleRole
- """
-
- """
- allowed enum values
- """
- 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/models/user_settings.py
deleted file mode 100644
index cc7463b9..00000000
--- a/koyeb/models/user_settings.py
+++ /dev/null
@@ -1,97 +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 typing import Optional, Set
-from typing_extensions import Self
-
-
-class UserSettings(BaseModel):
- """
- UserSettings
- """ # 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",
- ]
-
- 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 UserSettings 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 UserSettings 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"),
- "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/models/verify_docker_image_reply.py
deleted file mode 100644
index d29fca20..00000000
--- a/koyeb/models/verify_docker_image_reply.py
+++ /dev/null
@@ -1,100 +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.verify_docker_image_reply_err_code import (
- VerifyDockerImageReplyErrCode,
-)
-from typing import Optional, Set
-from typing_extensions import Self
-
-
-class VerifyDockerImageReply(BaseModel):
- """
- VerifyDockerImageReply
- """ # noqa: E501
-
- success: Optional[StrictBool] = None
- reason: Optional[StrictStr] = None
- code: Optional[VerifyDockerImageReplyErrCode] = (
- VerifyDockerImageReplyErrCode.UNKNOWN
- )
- __properties: ClassVar[List[str]] = ["success", "reason", "code"]
-
- 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 VerifyDockerImageReply 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 VerifyDockerImageReply from a dict"""
- if obj is None:
- return None
-
- 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
- ),
- }
- )
- return _obj
diff --git a/koyeb/models/verify_docker_image_reply_err_code.py b/koyeb/models/verify_docker_image_reply_err_code.py
deleted file mode 100644
index 9dedc7d2..00000000
--- a/koyeb/models/verify_docker_image_reply_err_code.py
+++ /dev/null
@@ -1,46 +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 VerifyDockerImageReplyErrCode(str, Enum):
- """
- - UNKNOWN: Default value - AUTH_ACCESS_DENIED: The registry denied access to an authenticated request - ANON_ACCESS_DENIED: The registry denied access to an anonymous request - AUTH_NOT_FOUND: The image has not been found after an authenticated request - ANON_NOT_FOUND: The image has not been found after an anonymous request - REGISTRY_ERROR: The registry returned an error - TIMEOUT: The request to the registry timed out - DNS: There was an error trying to resolve the name of the registry - MALFORMED: The provided image name is malformed - INVALID_OS: The operating system is not supported - INVALID_ARCH: The architecture is not supported - INVALID_SCHEME: The scheme is not https - GENERIC: Generic catch-all error code
- """
-
- """
- 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"
-
- @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/test/test_accept_organization_invitation_reply.py b/koyeb/test/test_accept_organization_invitation_reply.py
deleted file mode 100644
index 0486f5c9..00000000
--- a/koyeb/test/test_accept_organization_invitation_reply.py
+++ /dev/null
@@ -1,81 +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.accept_organization_invitation_reply import (
- AcceptOrganizationInvitationReply,
-)
-
-
-class TestAcceptOrganizationInvitationReply(unittest.TestCase):
- """AcceptOrganizationInvitationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AcceptOrganizationInvitationReply`
- """
- model = AcceptOrganizationInvitationReply()
- if include_optional:
- return AcceptOrganizationInvitationReply(
- invitation = koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- )
- else:
- return AcceptOrganizationInvitationReply(
- )
- """
-
- def testAcceptOrganizationInvitationReply(self):
- """Test AcceptOrganizationInvitationReply"""
- # 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_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_activity.py b/koyeb/test/test_activity.py
deleted file mode 100644
index 8924d95c..00000000
--- a/koyeb/test/test_activity.py
+++ /dev/null
@@ -1,68 +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.activity import Activity
-
-
-class TestActivity(unittest.TestCase):
- """Activity unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Activity`
- """
- model = Activity()
- if include_optional:
- return Activity(
- id = '',
- actor = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- object = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- verb = '',
- metadata = None,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return Activity(
- )
- """
-
- def testActivity(self):
- """Test Activity"""
- # 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_activity_api.py b/koyeb/test/test_activity_api.py
deleted file mode 100644
index 899be8de..00000000
--- a/koyeb/test/test_activity_api.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
-
-
-import unittest
-
-from koyeb.api.activity_api import ActivityApi
-
-
-class TestActivityApi(unittest.TestCase):
- """ActivityApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = ActivityApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_account_activities(self) -> None:
- """Test case for get_account_activities"""
- pass
-
- def test_list_activities(self) -> None:
- """Test case for list_activities
-
- List Activities
- """
- pass
-
- def test_list_notifications(self) -> None:
- """Test case for list_notifications
-
- List Notifications
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_activity_list.py b/koyeb/test/test_activity_list.py
deleted file mode 100644
index 25ce5a9b..00000000
--- a/koyeb/test/test_activity_list.py
+++ /dev/null
@@ -1,74 +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.activity_list import ActivityList
-
-
-class TestActivityList(unittest.TestCase):
- """ActivityList unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ActivityList`
- """
- model = ActivityList()
- if include_optional:
- return ActivityList(
- activities = [
- koyeb.models.activity.Activity(
- id = '',
- actor = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- object = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- verb = '',
- metadata = koyeb.models.metadata.metadata(),
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- limit = 56,
- offset = 56,
- has_next = True
- )
- else:
- return ActivityList(
- )
- """
-
- def testActivityList(self):
- """Test ActivityList"""
- # 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_app_event.py b/koyeb/test/test_app_event.py
deleted file mode 100644
index 600604cd..00000000
--- a/koyeb/test/test_app_event.py
+++ /dev/null
@@ -1,59 +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_event import AppEvent
-
-
-class TestAppEvent(unittest.TestCase):
- """AppEvent unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AppEvent`
- """
- model = AppEvent()
- if include_optional:
- return 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 = None
- )
- else:
- return AppEvent(
- )
- """
-
- def testAppEvent(self):
- """Test AppEvent"""
- # 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_app_list_item.py b/koyeb/test/test_app_list_item.py
deleted file mode 100644
index 0e05d6b2..00000000
--- a/koyeb/test/test_app_list_item.py
+++ /dev/null
@@ -1,82 +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_list_item import AppListItem
-
-
-class TestAppListItem(unittest.TestCase):
- """AppListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AppListItem`
- """
- model = AppListItem()
- if include_optional:
- return 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(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, ), )
- ],
- status = 'STARTING',
- messages = [
- ''
- ]
- )
- else:
- return AppListItem(
- )
- """
-
- def testAppListItem(self):
- """Test AppListItem"""
- # 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_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_app_usage.py b/koyeb/test/test_app_usage.py
deleted file mode 100644
index 8039e01f..00000000
--- a/koyeb/test/test_app_usage.py
+++ /dev/null
@@ -1,73 +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_usage import AppUsage
-
-
-class TestAppUsage(unittest.TestCase):
- """AppUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AppUsage`
- """
- model = AppUsage()
- if include_optional:
- return AppUsage(
- app_id = '',
- app_name = '',
- services = [
- koyeb.models.service_usage.ServiceUsage(
- service_id = '',
- service_name = '',
- regions = {
- 'key' : koyeb.models.region_usage.RegionUsage(
- instances = {
- 'key' : koyeb.models.instance_usage.InstanceUsage(
- duration_seconds = 56, )
- }, )
- }, )
- ],
- databases = [
- koyeb.models.database_usage.DatabaseUsage(
- service_id = '',
- service_name = '',
- compute_time_seconds = 56,
- data_storage_megabytes_hours = 56, )
- ]
- )
- else:
- return AppUsage(
- )
- """
-
- def testAppUsage(self):
- """Test AppUsage"""
- # 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_apps_summary.py b/koyeb/test/test_apps_summary.py
deleted file mode 100644
index 25fb6078..00000000
--- a/koyeb/test/test_apps_summary.py
+++ /dev/null
@@ -1,56 +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.apps_summary import AppsSummary
-
-
-class TestAppsSummary(unittest.TestCase):
- """AppsSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AppsSummary`
- """
- model = AppsSummary()
- if include_optional:
- return AppsSummary(
- total = '',
- by_status = {
- 'key' : ''
- }
- )
- else:
- return AppsSummary(
- )
- """
-
- def testAppsSummary(self):
- """Test AppsSummary"""
- # 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_archive.py b/koyeb/test/test_archive.py
deleted file mode 100644
index 3b8ba38a..00000000
--- a/koyeb/test/test_archive.py
+++ /dev/null
@@ -1,58 +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.archive import Archive
-
-
-class TestArchive(unittest.TestCase):
- """Archive unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Archive`
- """
- model = Archive()
- if include_optional:
- return Archive(
- id = '',
- organization_id = '',
- upload_url = '',
- size = '',
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return Archive(
- )
- """
-
- def testArchive(self):
- """Test Archive"""
- # 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_archive_deployment_metadata.py b/koyeb/test/test_archive_deployment_metadata.py
deleted file mode 100644
index e09d3152..00000000
--- a/koyeb/test/test_archive_deployment_metadata.py
+++ /dev/null
@@ -1,53 +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.archive_deployment_metadata import ArchiveDeploymentMetadata
-
-
-class TestArchiveDeploymentMetadata(unittest.TestCase):
- """ArchiveDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ArchiveDeploymentMetadata`
- """
- model = ArchiveDeploymentMetadata()
- if include_optional:
- return ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = ''
- )
- else:
- return ArchiveDeploymentMetadata(
- )
- """
-
- def testArchiveDeploymentMetadata(self):
- """Test ArchiveDeploymentMetadata"""
- # 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_archive_source.py b/koyeb/test/test_archive_source.py
deleted file mode 100644
index bb2962c1..00000000
--- a/koyeb/test/test_archive_source.py
+++ /dev/null
@@ -1,68 +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.archive_source import ArchiveSource
-
-
-class TestArchiveSource(unittest.TestCase):
- """ArchiveSource unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ArchiveSource`
- """
- model = ArchiveSource()
- if include_optional:
- return ArchiveSource(
- id = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ),
- docker = koyeb.models.docker_builder.DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True, )
- )
- else:
- return ArchiveSource(
- )
- """
-
- def testArchiveSource(self):
- """Test ArchiveSource"""
- # 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_archives_api.py b/koyeb/test/test_archives_api.py
deleted file mode 100644
index 8a10d955..00000000
--- a/koyeb/test/test_archives_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.archives_api import ArchivesApi
-
-
-class TestArchivesApi(unittest.TestCase):
- """ArchivesApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = ArchivesApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_create_archive(self) -> None:
- """Test case for create_archive
-
- Create Archive
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_auto_release.py b/koyeb/test/test_auto_release.py
deleted file mode 100644
index 2f940660..00000000
--- a/koyeb/test/test_auto_release.py
+++ /dev/null
@@ -1,59 +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.auto_release import AutoRelease
-
-
-class TestAutoRelease(unittest.TestCase):
- """AutoRelease unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- name = '',
- repository = '',
- git_ref = '',
- latest_sha = '', )
- ]
- )
- else:
- return AutoRelease(
- )
- """
-
- def testAutoRelease(self):
- """Test AutoRelease"""
- # 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_auto_release_group.py b/koyeb/test/test_auto_release_group.py
deleted file mode 100644
index b36fc6bf..00000000
--- a/koyeb/test/test_auto_release_group.py
+++ /dev/null
@@ -1,56 +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.auto_release_group import AutoReleaseGroup
-
-
-class TestAutoReleaseGroup(unittest.TestCase):
- """AutoReleaseGroup unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AutoReleaseGroup`
- """
- model = AutoReleaseGroup()
- if include_optional:
- return AutoReleaseGroup(
- name = '',
- repository = '',
- git_ref = '',
- latest_sha = ''
- )
- else:
- return AutoReleaseGroup(
- )
- """
-
- def testAutoReleaseGroup(self):
- """Test AutoReleaseGroup"""
- # 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_autocomplete_reply.py b/koyeb/test/test_autocomplete_reply.py
deleted file mode 100644
index f2ba12a2..00000000
--- a/koyeb/test/test_autocomplete_reply.py
+++ /dev/null
@@ -1,61 +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.autocomplete_reply import AutocompleteReply
-
-
-class TestAutocompleteReply(unittest.TestCase):
- """AutocompleteReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AutocompleteReply`
- """
- model = AutocompleteReply()
- if include_optional:
- return AutocompleteReply(
- secrets = [
- ''
- ],
- user_env = [
- ''
- ],
- system_env = [
- ''
- ]
- )
- else:
- return AutocompleteReply(
- )
- """
-
- def testAutocompleteReply(self):
- """Test AutocompleteReply"""
- # 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_autocomplete_request.py b/koyeb/test/test_autocomplete_request.py
deleted file mode 100644
index 15d3a081..00000000
--- a/koyeb/test/test_autocomplete_request.py
+++ /dev/null
@@ -1,181 +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.autocomplete_request import AutocompleteRequest
-
-
-class TestAutocompleteRequest(unittest.TestCase):
- """AutocompleteRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AutocompleteRequest`
- """
- model = AutocompleteRequest()
- if include_optional:
- return AutocompleteRequest(
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), )
- )
- else:
- return AutocompleteRequest(
- )
- """
-
- def testAutocompleteRequest(self):
- """Test AutocompleteRequest"""
- # 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_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_azure_container_registry_configuration.py b/koyeb/test/test_azure_container_registry_configuration.py
deleted file mode 100644
index e2712003..00000000
--- a/koyeb/test/test_azure_container_registry_configuration.py
+++ /dev/null
@@ -1,57 +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.azure_container_registry_configuration import (
- AzureContainerRegistryConfiguration,
-)
-
-
-class TestAzureContainerRegistryConfiguration(unittest.TestCase):
- """AzureContainerRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `AzureContainerRegistryConfiguration`
- """
- model = AzureContainerRegistryConfiguration()
- if include_optional:
- return AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = ''
- )
- else:
- return AzureContainerRegistryConfiguration(
- )
- """
-
- def testAzureContainerRegistryConfiguration(self):
- """Test AzureContainerRegistryConfiguration"""
- # 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_billing_api.py b/koyeb/test/test_billing_api.py
deleted file mode 100644
index 76c2b7dd..00000000
--- a/koyeb/test/test_billing_api.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
-
-
-import unittest
-
-from koyeb.api.billing_api import BillingApi
-
-
-class TestBillingApi(unittest.TestCase):
- """BillingApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = BillingApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_has_unpaid_invoices(self) -> None:
- """Test case for has_unpaid_invoices
-
- Experimental: Has unpaid invoices
- """
- pass
-
- def test_manage(self) -> None:
- """Test case for manage"""
- pass
-
- def test_next_invoice(self) -> None:
- """Test case for next_invoice
-
- Experimental: Fetch next invoice
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_budget.py b/koyeb/test/test_budget.py
deleted file mode 100644
index 7148b94d..00000000
--- a/koyeb/test/test_budget.py
+++ /dev/null
@@ -1,56 +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.budget import Budget
-
-
-class TestBudget(unittest.TestCase):
- """Budget unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Budget`
- """
- model = Budget()
- if include_optional:
- return Budget(
- amount = '',
- thresholds = [
- ''
- ]
- )
- else:
- return Budget(
- )
- """
-
- def testBudget(self):
- """Test Budget"""
- # 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_buildpack_builder.py b/koyeb/test/test_buildpack_builder.py
deleted file mode 100644
index 9907d68d..00000000
--- a/koyeb/test/test_buildpack_builder.py
+++ /dev/null
@@ -1,55 +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.buildpack_builder import BuildpackBuilder
-
-
-class TestBuildpackBuilder(unittest.TestCase):
- """BuildpackBuilder unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `BuildpackBuilder`
- """
- model = BuildpackBuilder()
- if include_optional:
- return BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True
- )
- else:
- return BuildpackBuilder(
- )
- """
-
- def testBuildpackBuilder(self):
- """Test BuildpackBuilder"""
- # 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_canny_auth_reply.py b/koyeb/test/test_canny_auth_reply.py
deleted file mode 100644
index 7cb6825f..00000000
--- a/koyeb/test/test_canny_auth_reply.py
+++ /dev/null
@@ -1,53 +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.canny_auth_reply import CannyAuthReply
-
-
-class TestCannyAuthReply(unittest.TestCase):
- """CannyAuthReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CannyAuthReply`
- """
- model = CannyAuthReply()
- if include_optional:
- return CannyAuthReply(
- token = ''
- )
- else:
- return CannyAuthReply(
- )
- """
-
- def testCannyAuthReply(self):
- """Test CannyAuthReply"""
- # 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_catalog_datacenters_api.py b/koyeb/test/test_catalog_datacenters_api.py
deleted file mode 100644
index 4fb683aa..00000000
--- a/koyeb/test/test_catalog_datacenters_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.catalog_datacenters_api import CatalogDatacentersApi
-
-
-class TestCatalogDatacentersApi(unittest.TestCase):
- """CatalogDatacentersApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = CatalogDatacentersApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_list_datacenters(self) -> None:
- """Test case for list_datacenters
-
- List datacenters
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_catalog_gpu_details.py b/koyeb/test/test_catalog_gpu_details.py
deleted file mode 100644
index d0ccc31f..00000000
--- a/koyeb/test/test_catalog_gpu_details.py
+++ /dev/null
@@ -1,56 +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.catalog_gpu_details import CatalogGPUDetails
-
-
-class TestCatalogGPUDetails(unittest.TestCase):
- """CatalogGPUDetails unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CatalogGPUDetails`
- """
- model = CatalogGPUDetails()
- if include_optional:
- return CatalogGPUDetails(
- count = 56,
- brand = '',
- memory = '',
- name = ''
- )
- else:
- return CatalogGPUDetails(
- )
- """
-
- def testCatalogGPUDetails(self):
- """Test CatalogGPUDetails"""
- # 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_catalog_instance.py b/koyeb/test/test_catalog_instance.py
deleted file mode 100644
index c6e2add5..00000000
--- a/koyeb/test/test_catalog_instance.py
+++ /dev/null
@@ -1,83 +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.catalog_instance import CatalogInstance
-
-
-class TestCatalogInstance(unittest.TestCase):
- """CatalogInstance unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CatalogInstance`
- """
- model = CatalogInstance()
- if include_optional:
- return CatalogInstance(
- id = '',
- description = '',
- vcpu = 56,
- memory = '',
- disk = '',
- price_per_second = '',
- price_hourly = '',
- price_monthly = '',
- regions = [
- ''
- ],
- status = '',
- require_plan = [
- ''
- ],
- vcpu_shares = 1.337,
- display_name = '',
- aliases = [
- ''
- ],
- type = '',
- gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails(
- count = 56,
- brand = '',
- memory = '',
- name = '', ),
- service_types = [
- ''
- ],
- volumes_enabled = True,
- light_sleep_enabled = True
- )
- else:
- return CatalogInstance(
- )
- """
-
- def testCatalogInstance(self):
- """Test CatalogInstance"""
- # 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_catalog_instance_list_item.py b/koyeb/test/test_catalog_instance_list_item.py
deleted file mode 100644
index ec04ac74..00000000
--- a/koyeb/test/test_catalog_instance_list_item.py
+++ /dev/null
@@ -1,83 +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.catalog_instance_list_item import CatalogInstanceListItem
-
-
-class TestCatalogInstanceListItem(unittest.TestCase):
- """CatalogInstanceListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CatalogInstanceListItem`
- """
- model = CatalogInstanceListItem()
- if include_optional:
- return CatalogInstanceListItem(
- id = '',
- description = '',
- vcpu = 56,
- memory = '',
- disk = '',
- price_per_second = '',
- price_hourly = '',
- price_monthly = '',
- regions = [
- ''
- ],
- status = '',
- require_plan = [
- ''
- ],
- vcpu_shares = 1.337,
- display_name = '',
- aliases = [
- ''
- ],
- type = '',
- gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails(
- count = 56,
- brand = '',
- memory = '',
- name = '', ),
- service_types = [
- ''
- ],
- volumes_enabled = True,
- light_sleep_enabled = True
- )
- else:
- return CatalogInstanceListItem(
- )
- """
-
- def testCatalogInstanceListItem(self):
- """Test CatalogInstanceListItem"""
- # 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_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_catalog_instances_api.py b/koyeb/test/test_catalog_instances_api.py
deleted file mode 100644
index fb7624df..00000000
--- a/koyeb/test/test_catalog_instances_api.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
-
-
-import unittest
-
-from koyeb.api.catalog_instances_api import CatalogInstancesApi
-
-
-class TestCatalogInstancesApi(unittest.TestCase):
- """CatalogInstancesApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = CatalogInstancesApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_catalog_instance(self) -> None:
- """Test case for get_catalog_instance
-
- Get Instance
- """
- pass
-
- def test_list_catalog_instances(self) -> None:
- """Test case for list_catalog_instances
-
- List Instances
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_catalog_regions_api.py b/koyeb/test/test_catalog_regions_api.py
deleted file mode 100644
index b00d2bdb..00000000
--- a/koyeb/test/test_catalog_regions_api.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
-
-
-import unittest
-
-from koyeb.api.catalog_regions_api import CatalogRegionsApi
-
-
-class TestCatalogRegionsApi(unittest.TestCase):
- """CatalogRegionsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = CatalogRegionsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_region(self) -> None:
- """Test case for get_region
-
- Get Region
- """
- pass
-
- def test_list_regions(self) -> None:
- """Test case for list_regions
-
- List Region
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_catalog_usage.py b/koyeb/test/test_catalog_usage.py
deleted file mode 100644
index 48b0e555..00000000
--- a/koyeb/test/test_catalog_usage.py
+++ /dev/null
@@ -1,60 +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.catalog_usage import CatalogUsage
-
-
-class TestCatalogUsage(unittest.TestCase):
- """CatalogUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CatalogUsage`
- """
- model = CatalogUsage()
- if include_optional:
- return CatalogUsage(
- instances = {
- 'key' : koyeb.models.instance_availability.InstanceAvailability(
- regions = {
- 'key' : koyeb.models.region_availability.RegionAvailability(
- availability = 'UNKNOWN', )
- },
- availability = 'UNKNOWN', )
- }
- )
- else:
- return CatalogUsage(
- )
- """
-
- def testCatalogUsage(self):
- """Test CatalogUsage"""
- # 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_clear_idenfy_verification_result_request.py b/koyeb/test/test_clear_idenfy_verification_result_request.py
deleted file mode 100644
index 3ff5b5f0..00000000
--- a/koyeb/test/test_clear_idenfy_verification_result_request.py
+++ /dev/null
@@ -1,56 +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.clear_idenfy_verification_result_request import (
- ClearIdenfyVerificationResultRequest,
-)
-
-
-class TestClearIdenfyVerificationResultRequest(unittest.TestCase):
- """ClearIdenfyVerificationResultRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ClearIdenfyVerificationResultRequest`
- """
- model = ClearIdenfyVerificationResultRequest()
- if include_optional:
- return ClearIdenfyVerificationResultRequest(
- user_id = '',
- organization_id = ''
- )
- else:
- return ClearIdenfyVerificationResultRequest(
- )
- """
-
- def testClearIdenfyVerificationResultRequest(self):
- """Test ClearIdenfyVerificationResultRequest"""
- # 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_compose_api.py b/koyeb/test/test_compose_api.py
deleted file mode 100644
index d9c571bd..00000000
--- a/koyeb/test/test_compose_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.compose_api import ComposeApi
-
-
-class TestComposeApi(unittest.TestCase):
- """ComposeApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = ComposeApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_compose(self) -> None:
- """Test case for compose
-
- Create resources from compose.
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_config_file.py b/koyeb/test/test_config_file.py
deleted file mode 100644
index cf1331bb..00000000
--- a/koyeb/test/test_config_file.py
+++ /dev/null
@@ -1,55 +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.config_file import ConfigFile
-
-
-class TestConfigFile(unittest.TestCase):
- """ConfigFile unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ConfigFile`
- """
- model = ConfigFile()
- if include_optional:
- return ConfigFile(
- path = '',
- permissions = '',
- content = ''
- )
- else:
- return ConfigFile(
- )
- """
-
- def testConfigFile(self):
- """Test ConfigFile"""
- # 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_coupons_api.py b/koyeb/test/test_coupons_api.py
deleted file mode 100644
index 81fec805..00000000
--- a/koyeb/test/test_coupons_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.coupons_api import CouponsApi
-
-
-class TestCouponsApi(unittest.TestCase):
- """CouponsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = CouponsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_redeem_coupon(self) -> None:
- """Test case for redeem_coupon
-
- Redeem Coupon
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_create_access_token_reply.py b/koyeb/test/test_create_access_token_reply.py
deleted file mode 100644
index 93a2878d..00000000
--- a/koyeb/test/test_create_access_token_reply.py
+++ /dev/null
@@ -1,53 +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.create_access_token_reply import CreateAccessTokenReply
-
-
-class TestCreateAccessTokenReply(unittest.TestCase):
- """CreateAccessTokenReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateAccessTokenReply`
- """
- model = CreateAccessTokenReply()
- if include_optional:
- return CreateAccessTokenReply(
- token = ''
- )
- else:
- return CreateAccessTokenReply(
- )
- """
-
- def testCreateAccessTokenReply(self):
- """Test CreateAccessTokenReply"""
- # 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_create_access_token_request.py b/koyeb/test/test_create_access_token_request.py
deleted file mode 100644
index 8086ae0d..00000000
--- a/koyeb/test/test_create_access_token_request.py
+++ /dev/null
@@ -1,53 +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.create_access_token_request import CreateAccessTokenRequest
-
-
-class TestCreateAccessTokenRequest(unittest.TestCase):
- """CreateAccessTokenRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateAccessTokenRequest`
- """
- model = CreateAccessTokenRequest()
- if include_optional:
- return CreateAccessTokenRequest(
- validity = ''
- )
- else:
- return CreateAccessTokenRequest(
- )
- """
-
- def testCreateAccessTokenRequest(self):
- """Test CreateAccessTokenRequest"""
- # 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_create_account_request.py b/koyeb/test/test_create_account_request.py
deleted file mode 100644
index fe9f9fe9..00000000
--- a/koyeb/test/test_create_account_request.py
+++ /dev/null
@@ -1,58 +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.create_account_request import CreateAccountRequest
-
-
-class TestCreateAccountRequest(unittest.TestCase):
- """CreateAccountRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateAccountRequest`
- """
- model = CreateAccountRequest()
- if include_optional:
- return CreateAccountRequest(
- email = '',
- password = '',
- name = '',
- captcha = ''
- )
- else:
- return CreateAccountRequest(
- email = '',
- password = '',
- )
- """
-
- def testCreateAccountRequest(self):
- """Test CreateAccountRequest"""
- # 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_create_app.py b/koyeb/test/test_create_app.py
deleted file mode 100644
index 0bcd2113..00000000
--- a/koyeb/test/test_create_app.py
+++ /dev/null
@@ -1,53 +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.create_app import CreateApp
-
-
-class TestCreateApp(unittest.TestCase):
- """CreateApp unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateApp`
- """
- model = CreateApp()
- if include_optional:
- return CreateApp(
- name = ''
- )
- else:
- return CreateApp(
- )
- """
-
- def testCreateApp(self):
- """Test CreateApp"""
- # 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_create_archive.py b/koyeb/test/test_create_archive.py
deleted file mode 100644
index 48c5db65..00000000
--- a/koyeb/test/test_create_archive.py
+++ /dev/null
@@ -1,53 +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.create_archive import CreateArchive
-
-
-class TestCreateArchive(unittest.TestCase):
- """CreateArchive unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateArchive`
- """
- model = CreateArchive()
- if include_optional:
- return CreateArchive(
- size = ''
- )
- else:
- return CreateArchive(
- )
- """
-
- def testCreateArchive(self):
- """Test CreateArchive"""
- # 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_create_archive_reply.py b/koyeb/test/test_create_archive_reply.py
deleted file mode 100644
index cc9a7f52..00000000
--- a/koyeb/test/test_create_archive_reply.py
+++ /dev/null
@@ -1,59 +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.create_archive_reply import CreateArchiveReply
-
-
-class TestCreateArchiveReply(unittest.TestCase):
- """CreateArchiveReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateArchiveReply`
- """
- model = CreateArchiveReply()
- if include_optional:
- return CreateArchiveReply(
- archive = koyeb.models.archive.Archive(
- id = '',
- organization_id = '',
- upload_url = '',
- size = '',
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- )
- else:
- return CreateArchiveReply(
- )
- """
-
- def testCreateArchiveReply(self):
- """Test CreateArchiveReply"""
- # 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_create_budget_reply.py b/koyeb/test/test_create_budget_reply.py
deleted file mode 100644
index be8a0b1b..00000000
--- a/koyeb/test/test_create_budget_reply.py
+++ /dev/null
@@ -1,57 +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.create_budget_reply import CreateBudgetReply
-
-
-class TestCreateBudgetReply(unittest.TestCase):
- """CreateBudgetReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateBudgetReply`
- """
- model = CreateBudgetReply()
- if include_optional:
- return CreateBudgetReply(
- budget = koyeb.models.budget.Budget(
- amount = '',
- thresholds = [
- ''
- ], )
- )
- else:
- return CreateBudgetReply(
- )
- """
-
- def testCreateBudgetReply(self):
- """Test CreateBudgetReply"""
- # 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_create_compose.py b/koyeb/test/test_create_compose.py
deleted file mode 100644
index 62cb5d0b..00000000
--- a/koyeb/test/test_create_compose.py
+++ /dev/null
@@ -1,187 +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.create_compose import CreateCompose
-
-
-class TestCreateCompose(unittest.TestCase):
- """CreateCompose unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateCompose`
- """
- model = CreateCompose()
- if include_optional:
- return CreateCompose(
- app = koyeb.models.create_app.CreateApp(
- name = '', ),
- services = [
- koyeb.models.create_service.CreateService(
- app_id = '',
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ), )
- ]
- )
- else:
- return CreateCompose(
- )
- """
-
- def testCreateCompose(self):
- """Test CreateCompose"""
- # 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_create_credential.py b/koyeb/test/test_create_credential.py
deleted file mode 100644
index 5b9db494..00000000
--- a/koyeb/test/test_create_credential.py
+++ /dev/null
@@ -1,56 +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.create_credential import CreateCredential
-
-
-class TestCreateCredential(unittest.TestCase):
- """CreateCredential unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateCredential`
- """
- model = CreateCredential()
- if include_optional:
- return CreateCredential(
- name = '',
- description = '',
- type = 'INVALID',
- organization_id = ''
- )
- else:
- return CreateCredential(
- )
- """
-
- def testCreateCredential(self):
- """Test CreateCredential"""
- # 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_create_credential_reply.py b/koyeb/test/test_create_credential_reply.py
deleted file mode 100644
index e7f77fb9..00000000
--- a/koyeb/test/test_create_credential_reply.py
+++ /dev/null
@@ -1,63 +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.create_credential_reply import CreateCredentialReply
-
-
-class TestCreateCredentialReply(unittest.TestCase):
- """CreateCredentialReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateCredentialReply`
- """
- model = CreateCredentialReply()
- if include_optional:
- return CreateCredentialReply(
- credential = koyeb.models.credential.Credential(
- id = '',
- type = 'INVALID',
- name = '',
- token = '',
- description = '',
- user_id = '',
- 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'),
- expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- )
- else:
- return CreateCredentialReply(
- )
- """
-
- def testCreateCredentialReply(self):
- """Test CreateCredentialReply"""
- # 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_create_domain.py b/koyeb/test/test_create_domain.py
deleted file mode 100644
index 53f13c21..00000000
--- a/koyeb/test/test_create_domain.py
+++ /dev/null
@@ -1,58 +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.create_domain import CreateDomain
-
-
-class TestCreateDomain(unittest.TestCase):
- """CreateDomain unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateDomain`
- """
- model = CreateDomain()
- if include_optional:
- return CreateDomain(
- name = '',
- type = 'AUTOASSIGNED',
- app_id = '',
- cloudflare = None,
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, )
- )
- else:
- return CreateDomain(
- )
- """
-
- def testCreateDomain(self):
- """Test CreateDomain"""
- # 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_create_domain_reply.py b/koyeb/test/test_create_domain_reply.py
deleted file mode 100644
index d2744096..00000000
--- a/koyeb/test/test_create_domain_reply.py
+++ /dev/null
@@ -1,71 +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.create_domain_reply import CreateDomainReply
-
-
-class TestCreateDomainReply(unittest.TestCase):
- """CreateDomainReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateDomainReply`
- """
- model = CreateDomainReply()
- if include_optional:
- return CreateDomainReply(
- domain = koyeb.models.domain.Domain(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, ), )
- )
- else:
- return CreateDomainReply(
- )
- """
-
- def testCreateDomainReply(self):
- """Test CreateDomainReply"""
- # 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_create_organization_invitation_reply.py b/koyeb/test/test_create_organization_invitation_reply.py
deleted file mode 100644
index 75e6244c..00000000
--- a/koyeb/test/test_create_organization_invitation_reply.py
+++ /dev/null
@@ -1,81 +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.create_organization_invitation_reply import (
- CreateOrganizationInvitationReply,
-)
-
-
-class TestCreateOrganizationInvitationReply(unittest.TestCase):
- """CreateOrganizationInvitationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateOrganizationInvitationReply`
- """
- model = CreateOrganizationInvitationReply()
- if include_optional:
- return CreateOrganizationInvitationReply(
- invitation = koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- )
- else:
- return CreateOrganizationInvitationReply(
- )
- """
-
- def testCreateOrganizationInvitationReply(self):
- """Test CreateOrganizationInvitationReply"""
- # 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_create_organization_invitation_request.py b/koyeb/test/test_create_organization_invitation_request.py
deleted file mode 100644
index 974db650..00000000
--- a/koyeb/test/test_create_organization_invitation_request.py
+++ /dev/null
@@ -1,55 +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.create_organization_invitation_request import (
- CreateOrganizationInvitationRequest,
-)
-
-
-class TestCreateOrganizationInvitationRequest(unittest.TestCase):
- """CreateOrganizationInvitationRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateOrganizationInvitationRequest`
- """
- model = CreateOrganizationInvitationRequest()
- if include_optional:
- return CreateOrganizationInvitationRequest(
- email = ''
- )
- else:
- return CreateOrganizationInvitationRequest(
- )
- """
-
- def testCreateOrganizationInvitationRequest(self):
- """Test CreateOrganizationInvitationRequest"""
- # 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_create_organization_reply.py b/koyeb/test/test_create_organization_reply.py
deleted file mode 100644
index 8e26db31..00000000
--- a/koyeb/test/test_create_organization_reply.py
+++ /dev/null
@@ -1,84 +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.create_organization_reply import CreateOrganizationReply
-
-
-class TestCreateOrganizationReply(unittest.TestCase):
- """CreateOrganizationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateOrganizationReply`
- """
- model = CreateOrganizationReply()
- if include_optional:
- return CreateOrganizationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return CreateOrganizationReply(
- )
- """
-
- def testCreateOrganizationReply(self):
- """Test CreateOrganizationReply"""
- # 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_create_organization_request.py b/koyeb/test/test_create_organization_request.py
deleted file mode 100644
index 7e741014..00000000
--- a/koyeb/test/test_create_organization_request.py
+++ /dev/null
@@ -1,53 +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.create_organization_request import CreateOrganizationRequest
-
-
-class TestCreateOrganizationRequest(unittest.TestCase):
- """CreateOrganizationRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateOrganizationRequest`
- """
- model = CreateOrganizationRequest()
- if include_optional:
- return CreateOrganizationRequest(
- name = ''
- )
- else:
- return CreateOrganizationRequest(
- )
- """
-
- def testCreateOrganizationRequest(self):
- """Test CreateOrganizationRequest"""
- # 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_create_persistent_volume_reply.py b/koyeb/test/test_create_persistent_volume_reply.py
deleted file mode 100644
index 57470ea8..00000000
--- a/koyeb/test/test_create_persistent_volume_reply.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.create_persistent_volume_reply import CreatePersistentVolumeReply
-
-
-class TestCreatePersistentVolumeReply(unittest.TestCase):
- """CreatePersistentVolumeReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- id = '',
- name = '',
- snapshot_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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- service_id = '',
- region = '',
- read_only = True,
- max_size = 56,
- cur_size = 56,
- status = 'PERSISTENT_VOLUME_STATUS_INVALID',
- backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
- )
- else:
- return CreatePersistentVolumeReply(
- )
- """
-
- def testCreatePersistentVolumeReply(self):
- """Test CreatePersistentVolumeReply"""
- # 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_create_persistent_volume_request.py b/koyeb/test/test_create_persistent_volume_request.py
deleted file mode 100644
index e8b8d0c9..00000000
--- a/koyeb/test/test_create_persistent_volume_request.py
+++ /dev/null
@@ -1,58 +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.create_persistent_volume_request import CreatePersistentVolumeRequest
-
-
-class TestCreatePersistentVolumeRequest(unittest.TestCase):
- """CreatePersistentVolumeRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreatePersistentVolumeRequest`
- """
- model = CreatePersistentVolumeRequest()
- if include_optional:
- return CreatePersistentVolumeRequest(
- volume_type = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID',
- name = '',
- region = '',
- read_only = True,
- max_size = 56,
- snapshot_id = ''
- )
- else:
- return CreatePersistentVolumeRequest(
- )
- """
-
- def testCreatePersistentVolumeRequest(self):
- """Test CreatePersistentVolumeRequest"""
- # 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_create_secret.py b/koyeb/test/test_create_secret.py
deleted file mode 100644
index 1df81c82..00000000
--- a/koyeb/test/test_create_secret.py
+++ /dev/null
@@ -1,78 +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.create_secret import CreateSecret
-
-
-class TestCreateSecret(unittest.TestCase):
- """CreateSecret unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateSecret`
- """
- model = CreateSecret()
- if include_optional:
- return CreateSecret(
- name = '',
- type = 'SIMPLE',
- value = '',
- docker_hub_registry = koyeb.models.docker_hub_registry_configuration.DockerHubRegistryConfiguration(
- username = '',
- password = '', ),
- private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = '', ),
- digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
- username = '',
- password = '', ),
- github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
- username = '',
- password = '', ),
- gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
- username = '',
- password = '', ),
- gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = '', ),
- azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = '', )
- )
- else:
- return CreateSecret(
- )
- """
-
- def testCreateSecret(self):
- """Test CreateSecret"""
- # 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_create_secret_reply.py b/koyeb/test/test_create_secret_reply.py
deleted file mode 100644
index bf105ef9..00000000
--- a/koyeb/test/test_create_secret_reply.py
+++ /dev/null
@@ -1,86 +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.create_secret_reply import CreateSecretReply
-
-
-class TestCreateSecretReply(unittest.TestCase):
- """CreateSecretReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateSecretReply`
- """
- model = CreateSecretReply()
- if include_optional:
- return CreateSecretReply(
- secret = koyeb.models.secret.Secret(
- id = '',
- name = '',
- organization_id = '',
- type = 'SIMPLE',
- 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(
- username = '',
- password = '', ),
- private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = '', ),
- digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
- username = '',
- password = '', ),
- github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
- username = '',
- password = '', ),
- gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
- username = '',
- password = '', ),
- gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = '', ),
- azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = '', ),
- database_role_password = koyeb.models.database_role_password.DatabaseRolePassword(
- username = '',
- password = '', ), )
- )
- else:
- return CreateSecretReply(
- )
- """
-
- def testCreateSecretReply(self):
- """Test CreateSecretReply"""
- # 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_create_service.py b/koyeb/test/test_create_service.py
deleted file mode 100644
index 521df07d..00000000
--- a/koyeb/test/test_create_service.py
+++ /dev/null
@@ -1,182 +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.create_service import CreateService
-
-
-class TestCreateService(unittest.TestCase):
- """CreateService unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateService`
- """
- model = CreateService()
- if include_optional:
- return CreateService(
- app_id = '',
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), )
- )
- else:
- return CreateService(
- )
- """
-
- def testCreateService(self):
- """Test CreateService"""
- # 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_create_service_reply.py b/koyeb/test/test_create_service_reply.py
deleted file mode 100644
index 52efcc37..00000000
--- a/koyeb/test/test_create_service_reply.py
+++ /dev/null
@@ -1,83 +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.create_service_reply import CreateServiceReply
-
-
-class TestCreateServiceReply(unittest.TestCase):
- """CreateServiceReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateServiceReply`
- """
- model = CreateServiceReply()
- if include_optional:
- return CreateServiceReply(
- service = koyeb.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'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- name = '',
- type = 'INVALID_TYPE',
- organization_id = '',
- app_id = '',
- status = 'STARTING',
- messages = [
- ''
- ],
- version = '',
- active_deployment_id = '',
- latest_deployment_id = '',
- last_provisioned_deployment_id = '',
- state = koyeb.models.service_state.ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.models.auto_release.AutoRelease(), ), )
- )
- else:
- return CreateServiceReply(
- )
- """
-
- def testCreateServiceReply(self):
- """Test CreateServiceReply"""
- # 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_create_snapshot_reply.py b/koyeb/test/test_create_snapshot_reply.py
deleted file mode 100644
index 779a6daa..00000000
--- a/koyeb/test/test_create_snapshot_reply.py
+++ /dev/null
@@ -1,64 +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.create_snapshot_reply import CreateSnapshotReply
-
-
-class TestCreateSnapshotReply(unittest.TestCase):
- """CreateSnapshotReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateSnapshotReply`
- """
- model = CreateSnapshotReply()
- if include_optional:
- return CreateSnapshotReply(
- snapshot = koyeb.models.snapshot.Snapshot(
- id = '',
- name = '',
- size = 56,
- 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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- parent_volume_id = '',
- region = '',
- status = 'SNAPSHOT_STATUS_INVALID',
- type = 'SNAPSHOT_TYPE_INVALID', )
- )
- else:
- return CreateSnapshotReply(
- )
- """
-
- def testCreateSnapshotReply(self):
- """Test CreateSnapshotReply"""
- # 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_create_snapshot_request.py b/koyeb/test/test_create_snapshot_request.py
deleted file mode 100644
index bc6327ee..00000000
--- a/koyeb/test/test_create_snapshot_request.py
+++ /dev/null
@@ -1,54 +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.create_snapshot_request import CreateSnapshotRequest
-
-
-class TestCreateSnapshotRequest(unittest.TestCase):
- """CreateSnapshotRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateSnapshotRequest`
- """
- model = CreateSnapshotRequest()
- if include_optional:
- return CreateSnapshotRequest(
- parent_volume_id = '',
- name = ''
- )
- else:
- return CreateSnapshotRequest(
- )
- """
-
- def testCreateSnapshotRequest(self):
- """Test CreateSnapshotRequest"""
- # 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_create_stage_attempt_request.py b/koyeb/test/test_create_stage_attempt_request.py
deleted file mode 100644
index 6cef2c74..00000000
--- a/koyeb/test/test_create_stage_attempt_request.py
+++ /dev/null
@@ -1,61 +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.create_stage_attempt_request import CreateStageAttemptRequest
-
-
-class TestCreateStageAttemptRequest(unittest.TestCase):
- """CreateStageAttemptRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `CreateStageAttemptRequest`
- """
- model = CreateStageAttemptRequest()
- if include_optional:
- return CreateStageAttemptRequest(
- secret = '',
- status = 'UNKNOWN',
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- messages = [
- ''
- ],
- steps = [
- ''
- ]
- )
- else:
- return CreateStageAttemptRequest(
- )
- """
-
- def testCreateStageAttemptRequest(self):
- """Test CreateStageAttemptRequest"""
- # 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_credential.py b/koyeb/test/test_credential.py
deleted file mode 100644
index 610da3cc..00000000
--- a/koyeb/test/test_credential.py
+++ /dev/null
@@ -1,62 +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 import Credential
-
-
-class TestCredential(unittest.TestCase):
- """Credential unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Credential`
- """
- model = Credential()
- if include_optional:
- return Credential(
- id = '',
- type = 'INVALID',
- name = '',
- token = '',
- description = '',
- user_id = '',
- 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'),
- expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return Credential(
- )
- """
-
- def testCredential(self):
- """Test Credential"""
- # 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_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_credentials_api.py b/koyeb/test/test_credentials_api.py
deleted file mode 100644
index 864cf878..00000000
--- a/koyeb/test/test_credentials_api.py
+++ /dev/null
@@ -1,73 +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.credentials_api import CredentialsApi
-
-
-class TestCredentialsApi(unittest.TestCase):
- """CredentialsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = CredentialsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_create_credential(self) -> None:
- """Test case for create_credential
-
- Create credential
- """
- pass
-
- def test_delete_credential(self) -> None:
- """Test case for delete_credential
-
- Delete credential
- """
- pass
-
- def test_get_credential(self) -> None:
- """Test case for get_credential
-
- Get credential
- """
- pass
-
- def test_list_credentials(self) -> None:
- """Test case for list_credentials
-
- List credentials
- """
- pass
-
- def test_update_credential(self) -> None:
- """Test case for update_credential
-
- Update credential
- """
- pass
-
- def test_update_credential2(self) -> None:
- """Test case for update_credential2
-
- Update credential
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_database_deployment_metadata.py b/koyeb/test/test_database_deployment_metadata.py
deleted file mode 100644
index 95b72873..00000000
--- a/koyeb/test/test_database_deployment_metadata.py
+++ /dev/null
@@ -1,56 +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.database_deployment_metadata import DatabaseDeploymentMetadata
-
-
-class TestDatabaseDeploymentMetadata(unittest.TestCase):
- """DatabaseDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- reset_role_passwords = [
- ''
- ], )
- )
- else:
- return DatabaseDeploymentMetadata(
- )
- """
-
- def testDatabaseDeploymentMetadata(self):
- """Test DatabaseDeploymentMetadata"""
- # 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_database_role_password.py b/koyeb/test/test_database_role_password.py
deleted file mode 100644
index 37259c14..00000000
--- a/koyeb/test/test_database_role_password.py
+++ /dev/null
@@ -1,54 +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.database_role_password import DatabaseRolePassword
-
-
-class TestDatabaseRolePassword(unittest.TestCase):
- """DatabaseRolePassword unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DatabaseRolePassword`
- """
- model = DatabaseRolePassword()
- if include_optional:
- return DatabaseRolePassword(
- username = '',
- password = ''
- )
- else:
- return DatabaseRolePassword(
- )
- """
-
- def testDatabaseRolePassword(self):
- """Test DatabaseRolePassword"""
- # 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_database_source.py b/koyeb/test/test_database_source.py
deleted file mode 100644
index 7b3924ee..00000000
--- a/koyeb/test/test_database_source.py
+++ /dev/null
@@ -1,66 +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.database_source import DatabaseSource
-
-
-class TestDatabaseSource(unittest.TestCase):
- """DatabaseSource unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DatabaseSource`
- """
- model = DatabaseSource()
- if include_optional:
- return DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], )
- )
- else:
- return DatabaseSource(
- )
- """
-
- def testDatabaseSource(self):
- """Test DatabaseSource"""
- # 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_database_usage.py b/koyeb/test/test_database_usage.py
deleted file mode 100644
index e031fc6f..00000000
--- a/koyeb/test/test_database_usage.py
+++ /dev/null
@@ -1,56 +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.database_usage import DatabaseUsage
-
-
-class TestDatabaseUsage(unittest.TestCase):
- """DatabaseUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DatabaseUsage`
- """
- model = DatabaseUsage()
- if include_optional:
- return DatabaseUsage(
- service_id = '',
- service_name = '',
- compute_time_seconds = 56,
- data_storage_megabytes_hours = 56
- )
- else:
- return DatabaseUsage(
- )
- """
-
- def testDatabaseUsage(self):
- """Test DatabaseUsage"""
- # 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_database_usage_details.py b/koyeb/test/test_database_usage_details.py
deleted file mode 100644
index cd3fef2e..00000000
--- a/koyeb/test/test_database_usage_details.py
+++ /dev/null
@@ -1,61 +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.database_usage_details import DatabaseUsageDetails
-
-
-class TestDatabaseUsageDetails(unittest.TestCase):
- """DatabaseUsageDetails unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DatabaseUsageDetails`
- """
- model = DatabaseUsageDetails()
- if include_optional:
- return DatabaseUsageDetails(
- organization_id = '',
- app_id = '',
- app_name = '',
- service_id = '',
- service_name = '',
- compute_time_seconds = 56,
- data_storage_megabytes_hour = 56,
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return DatabaseUsageDetails(
- )
- """
-
- def testDatabaseUsageDetails(self):
- """Test DatabaseUsageDetails"""
- # 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_datacenter_list_item.py b/koyeb/test/test_datacenter_list_item.py
deleted file mode 100644
index e4ab8812..00000000
--- a/koyeb/test/test_datacenter_list_item.py
+++ /dev/null
@@ -1,62 +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.datacenter_list_item import DatacenterListItem
-
-
-class TestDatacenterListItem(unittest.TestCase):
- """DatacenterListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DatacenterListItem`
- """
- model = DatacenterListItem()
- if include_optional:
- return DatacenterListItem(
- id = '',
- region_id = '',
- domain = '',
- coordinates = [
- ''
- ],
- use_gpu = True,
- regions = [
- ''
- ]
- )
- else:
- return DatacenterListItem(
- )
- """
-
- def testDatacenterListItem(self):
- """Test DatacenterListItem"""
- # 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_deactivate_organization_reply.py b/koyeb/test/test_deactivate_organization_reply.py
deleted file mode 100644
index ab8dd731..00000000
--- a/koyeb/test/test_deactivate_organization_reply.py
+++ /dev/null
@@ -1,84 +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.deactivate_organization_reply import DeactivateOrganizationReply
-
-
-class TestDeactivateOrganizationReply(unittest.TestCase):
- """DeactivateOrganizationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeactivateOrganizationReply`
- """
- model = DeactivateOrganizationReply()
- if include_optional:
- return DeactivateOrganizationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return DeactivateOrganizationReply(
- )
- """
-
- def testDeactivateOrganizationReply(self):
- """Test DeactivateOrganizationReply"""
- # 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_deactivate_organization_request.py b/koyeb/test/test_deactivate_organization_request.py
deleted file mode 100644
index 836555c0..00000000
--- a/koyeb/test/test_deactivate_organization_request.py
+++ /dev/null
@@ -1,53 +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.deactivate_organization_request import DeactivateOrganizationRequest
-
-
-class TestDeactivateOrganizationRequest(unittest.TestCase):
- """DeactivateOrganizationRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeactivateOrganizationRequest`
- """
- model = DeactivateOrganizationRequest()
- if include_optional:
- return DeactivateOrganizationRequest(
- skip_confirmation = True
- )
- else:
- return DeactivateOrganizationRequest(
- )
- """
-
- def testDeactivateOrganizationRequest(self):
- """Test DeactivateOrganizationRequest"""
- # 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_declare_stage_progress_request.py b/koyeb/test/test_declare_stage_progress_request.py
deleted file mode 100644
index 5c07d994..00000000
--- a/koyeb/test/test_declare_stage_progress_request.py
+++ /dev/null
@@ -1,61 +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.declare_stage_progress_request import DeclareStageProgressRequest
-
-
-class TestDeclareStageProgressRequest(unittest.TestCase):
- """DeclareStageProgressRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeclareStageProgressRequest`
- """
- model = DeclareStageProgressRequest()
- if include_optional:
- return DeclareStageProgressRequest(
- secret = '',
- status = 'UNKNOWN',
- finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- messages = [
- ''
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True
- )
- else:
- return DeclareStageProgressRequest(
- )
- """
-
- def testDeclareStageProgressRequest(self):
- """Test DeclareStageProgressRequest"""
- # 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_declare_step_progress_request.py b/koyeb/test/test_declare_step_progress_request.py
deleted file mode 100644
index 70f5e24b..00000000
--- a/koyeb/test/test_declare_step_progress_request.py
+++ /dev/null
@@ -1,59 +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.declare_step_progress_request import DeclareStepProgressRequest
-
-
-class TestDeclareStepProgressRequest(unittest.TestCase):
- """DeclareStepProgressRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeclareStepProgressRequest`
- """
- model = DeclareStepProgressRequest()
- if include_optional:
- return DeclareStepProgressRequest(
- secret = '',
- status = 'UNKNOWN',
- 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'),
- messages = [
- ''
- ]
- )
- else:
- return DeclareStepProgressRequest(
- )
- """
-
- def testDeclareStepProgressRequest(self):
- """Test DeclareStepProgressRequest"""
- # 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_decline_organization_invitation_reply.py b/koyeb/test/test_decline_organization_invitation_reply.py
deleted file mode 100644
index 72374438..00000000
--- a/koyeb/test/test_decline_organization_invitation_reply.py
+++ /dev/null
@@ -1,81 +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.decline_organization_invitation_reply import (
- DeclineOrganizationInvitationReply,
-)
-
-
-class TestDeclineOrganizationInvitationReply(unittest.TestCase):
- """DeclineOrganizationInvitationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeclineOrganizationInvitationReply`
- """
- model = DeclineOrganizationInvitationReply()
- if include_optional:
- return DeclineOrganizationInvitationReply(
- invitation = koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- )
- else:
- return DeclineOrganizationInvitationReply(
- )
- """
-
- def testDeclineOrganizationInvitationReply(self):
- """Test DeclineOrganizationInvitationReply"""
- # 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_delete_organization_reply.py b/koyeb/test/test_delete_organization_reply.py
deleted file mode 100644
index c20c0029..00000000
--- a/koyeb/test/test_delete_organization_reply.py
+++ /dev/null
@@ -1,84 +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.delete_organization_reply import DeleteOrganizationReply
-
-
-class TestDeleteOrganizationReply(unittest.TestCase):
- """DeleteOrganizationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeleteOrganizationReply`
- """
- model = DeleteOrganizationReply()
- if include_optional:
- return DeleteOrganizationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return DeleteOrganizationReply(
- )
- """
-
- def testDeleteOrganizationReply(self):
- """Test DeleteOrganizationReply"""
- # 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_delete_persistent_volume_reply.py b/koyeb/test/test_delete_persistent_volume_reply.py
deleted file mode 100644
index 8f1d0efe..00000000
--- a/koyeb/test/test_delete_persistent_volume_reply.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.delete_persistent_volume_reply import DeletePersistentVolumeReply
-
-
-class TestDeletePersistentVolumeReply(unittest.TestCase):
- """DeletePersistentVolumeReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- id = '',
- name = '',
- snapshot_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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- service_id = '',
- region = '',
- read_only = True,
- max_size = 56,
- cur_size = 56,
- status = 'PERSISTENT_VOLUME_STATUS_INVALID',
- backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
- )
- else:
- return DeletePersistentVolumeReply(
- )
- """
-
- def testDeletePersistentVolumeReply(self):
- """Test DeletePersistentVolumeReply"""
- # 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_delete_snapshot_reply.py b/koyeb/test/test_delete_snapshot_reply.py
deleted file mode 100644
index 9338e8dd..00000000
--- a/koyeb/test/test_delete_snapshot_reply.py
+++ /dev/null
@@ -1,64 +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.delete_snapshot_reply import DeleteSnapshotReply
-
-
-class TestDeleteSnapshotReply(unittest.TestCase):
- """DeleteSnapshotReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeleteSnapshotReply`
- """
- model = DeleteSnapshotReply()
- if include_optional:
- return DeleteSnapshotReply(
- snapshot = koyeb.models.snapshot.Snapshot(
- id = '',
- name = '',
- size = 56,
- 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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- parent_volume_id = '',
- region = '',
- status = 'SNAPSHOT_STATUS_INVALID',
- type = 'SNAPSHOT_TYPE_INVALID', )
- )
- else:
- return DeleteSnapshotReply(
- )
- """
-
- def testDeleteSnapshotReply(self):
- """Test DeleteSnapshotReply"""
- # 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_delete_user_reply.py b/koyeb/test/test_delete_user_reply.py
deleted file mode 100644
index b0d65e85..00000000
--- a/koyeb/test/test_delete_user_reply.py
+++ /dev/null
@@ -1,53 +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.delete_user_reply import DeleteUserReply
-
-
-class TestDeleteUserReply(unittest.TestCase):
- """DeleteUserReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeleteUserReply`
- """
- model = DeleteUserReply()
- if include_optional:
- return DeleteUserReply(
- user = {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}
- )
- else:
- return DeleteUserReply(
- )
- """
-
- def testDeleteUserReply(self):
- """Test DeleteUserReply"""
- # 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.py b/koyeb/test/test_deployment.py
deleted file mode 100644
index 8a3bd3fd..00000000
--- a/koyeb/test/test_deployment.py
+++ /dev/null
@@ -1,283 +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 import Deployment
-
-
-class TestDeployment(unittest.TestCase):
- """Deployment unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Deployment`
- """
- model = Deployment()
- if include_optional:
- return 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'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- metadata = koyeb.models.deployment_metadata.DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ], ),
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ),
- messages = [
- ''
- ],
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(
- neon_postgres = koyeb.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo(
- active_time_seconds = '',
- compute_time_seconds = '',
- written_data_bytes = '',
- data_transfer_bytes = '',
- data_storage_bytes_hour = '',
- server_host = '',
- server_port = 56,
- endpoint_state = '',
- endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- default_branch_id = '',
- default_branch_name = '',
- default_branch_state = '',
- default_branch_logical_size = '',
- roles = [
- koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
- name = '',
- secret_id = '', )
- ], ), ),
- skip_build = True,
- role = 'INVALID',
- version = '',
- deployment_group = ''
- )
- else:
- return Deployment(
- )
- """
-
- def testDeployment(self):
- """Test Deployment"""
- # 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_database_info.py b/koyeb/test/test_deployment_database_info.py
deleted file mode 100644
index e93a9255..00000000
--- a/koyeb/test/test_deployment_database_info.py
+++ /dev/null
@@ -1,71 +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_database_info import DeploymentDatabaseInfo
-
-
-class TestDeploymentDatabaseInfo(unittest.TestCase):
- """DeploymentDatabaseInfo unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- active_time_seconds = '',
- compute_time_seconds = '',
- written_data_bytes = '',
- data_transfer_bytes = '',
- data_storage_bytes_hour = '',
- server_host = '',
- server_port = 56,
- endpoint_state = '',
- endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- default_branch_id = '',
- default_branch_name = '',
- default_branch_state = '',
- default_branch_logical_size = '',
- roles = [
- koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
- name = '',
- secret_id = '', )
- ], )
- )
- else:
- return DeploymentDatabaseInfo(
- )
- """
-
- def testDeploymentDatabaseInfo(self):
- """Test DeploymentDatabaseInfo"""
- # 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_definition.py b/koyeb/test/test_deployment_definition.py
deleted file mode 100644
index fcb841f1..00000000
--- a/koyeb/test/test_deployment_definition.py
+++ /dev/null
@@ -1,254 +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 import DeploymentDefinition
-
-
-class TestDeploymentDefinition(unittest.TestCase):
- """DeploymentDefinition unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentDefinition`
- """
- model = DeploymentDefinition()
- if include_optional:
- return DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(
- type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID', ),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- 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 = '', )
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56,
- scopes = [
- ''
- ], )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ),
- docker = koyeb.models.docker_builder.DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ),
- docker = koyeb.models.docker_builder.DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True, ), )
- )
- 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 = '', )
- ],
- )
- """
-
- def testDeploymentDefinition(self):
- """Test DeploymentDefinition"""
- # 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_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_env.py b/koyeb/test/test_deployment_env.py
deleted file mode 100644
index 1a25b745..00000000
--- a/koyeb/test/test_deployment_env.py
+++ /dev/null
@@ -1,58 +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_env import DeploymentEnv
-
-
-class TestDeploymentEnv(unittest.TestCase):
- """DeploymentEnv unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentEnv`
- """
- model = DeploymentEnv()
- if include_optional:
- return DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = ''
- )
- else:
- return DeploymentEnv(
- )
- """
-
- def testDeploymentEnv(self):
- """Test DeploymentEnv"""
- # 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_event.py b/koyeb/test/test_deployment_event.py
deleted file mode 100644
index 4095bb37..00000000
--- a/koyeb/test/test_deployment_event.py
+++ /dev/null
@@ -1,59 +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_event import DeploymentEvent
-
-
-class TestDeploymentEvent(unittest.TestCase):
- """DeploymentEvent unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentEvent`
- """
- model = DeploymentEvent()
- if include_optional:
- return 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 = None
- )
- else:
- return DeploymentEvent(
- )
- """
-
- def testDeploymentEvent(self):
- """Test DeploymentEvent"""
- # 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_health_check.py b/koyeb/test/test_deployment_health_check.py
deleted file mode 100644
index 1979ab7a..00000000
--- a/koyeb/test/test_deployment_health_check.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_health_check import DeploymentHealthCheck
-
-
-class TestDeploymentHealthCheck(unittest.TestCase):
- """DeploymentHealthCheck unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentHealthCheck`
- """
- model = DeploymentHealthCheck()
- if include_optional:
- return DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], )
- )
- else:
- return DeploymentHealthCheck(
- )
- """
-
- def testDeploymentHealthCheck(self):
- """Test DeploymentHealthCheck"""
- # 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_instance_type.py b/koyeb/test/test_deployment_instance_type.py
deleted file mode 100644
index 8ed70e68..00000000
--- a/koyeb/test/test_deployment_instance_type.py
+++ /dev/null
@@ -1,56 +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_instance_type import DeploymentInstanceType
-
-
-class TestDeploymentInstanceType(unittest.TestCase):
- """DeploymentInstanceType unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentInstanceType`
- """
- model = DeploymentInstanceType()
- if include_optional:
- return DeploymentInstanceType(
- scopes = [
- ''
- ],
- type = ''
- )
- else:
- return DeploymentInstanceType(
- )
- """
-
- def testDeploymentInstanceType(self):
- """Test DeploymentInstanceType"""
- # 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_list_item.py b/koyeb/test/test_deployment_list_item.py
deleted file mode 100644
index ebf6b9c3..00000000
--- a/koyeb/test/test_deployment_list_item.py
+++ /dev/null
@@ -1,281 +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_list_item import DeploymentListItem
-
-
-class TestDeploymentListItem(unittest.TestCase):
- """DeploymentListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentListItem`
- """
- model = DeploymentListItem()
- if include_optional:
- return 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'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- metadata = koyeb.models.deployment_metadata.DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ], ),
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ),
- messages = [
- ''
- ],
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(
- neon_postgres = koyeb.models.deployment_neon_postgres_database_info.DeploymentNeonPostgresDatabaseInfo(
- active_time_seconds = '',
- compute_time_seconds = '',
- written_data_bytes = '',
- data_transfer_bytes = '',
- data_storage_bytes_hour = '',
- server_host = '',
- server_port = 56,
- endpoint_state = '',
- endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- default_branch_id = '',
- default_branch_name = '',
- default_branch_state = '',
- default_branch_logical_size = '',
- roles = [
- koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
- name = '',
- secret_id = '', )
- ], ), ),
- version = '',
- deployment_group = ''
- )
- else:
- return DeploymentListItem(
- )
- """
-
- def testDeploymentListItem(self):
- """Test DeploymentListItem"""
- # 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_metadata.py b/koyeb/test/test_deployment_metadata.py
deleted file mode 100644
index e257d0c5..00000000
--- a/koyeb/test/test_deployment_metadata.py
+++ /dev/null
@@ -1,84 +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_metadata import DeploymentMetadata
-
-
-class TestDeploymentMetadata(unittest.TestCase):
- """DeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentMetadata`
- """
- model = DeploymentMetadata()
- if include_optional:
- return DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ]
- )
- else:
- return DeploymentMetadata(
- )
- """
-
- def testDeploymentMetadata(self):
- """Test DeploymentMetadata"""
- # 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_neon_postgres_database_info.py b/koyeb/test/test_deployment_neon_postgres_database_info.py
deleted file mode 100644
index 661e22ff..00000000
--- a/koyeb/test/test_deployment_neon_postgres_database_info.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.deployment_neon_postgres_database_info import (
- DeploymentNeonPostgresDatabaseInfo,
-)
-
-
-class TestDeploymentNeonPostgresDatabaseInfo(unittest.TestCase):
- """DeploymentNeonPostgresDatabaseInfo unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfo`
- """
- model = DeploymentNeonPostgresDatabaseInfo()
- if include_optional:
- return DeploymentNeonPostgresDatabaseInfo(
- active_time_seconds = '',
- compute_time_seconds = '',
- written_data_bytes = '',
- data_transfer_bytes = '',
- data_storage_bytes_hour = '',
- server_host = '',
- server_port = 56,
- endpoint_state = '',
- endpoint_last_active = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- default_branch_id = '',
- default_branch_name = '',
- default_branch_state = '',
- default_branch_logical_size = '',
- roles = [
- koyeb.models.deployment_neon_postgres_database_info_role.DeploymentNeonPostgresDatabaseInfoRole(
- name = '',
- secret_id = '', )
- ]
- )
- else:
- return DeploymentNeonPostgresDatabaseInfo(
- )
- """
-
- def testDeploymentNeonPostgresDatabaseInfo(self):
- """Test DeploymentNeonPostgresDatabaseInfo"""
- # 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_neon_postgres_database_info_role.py b/koyeb/test/test_deployment_neon_postgres_database_info_role.py
deleted file mode 100644
index 6877bca8..00000000
--- a/koyeb/test/test_deployment_neon_postgres_database_info_role.py
+++ /dev/null
@@ -1,56 +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_neon_postgres_database_info_role import (
- DeploymentNeonPostgresDatabaseInfoRole,
-)
-
-
-class TestDeploymentNeonPostgresDatabaseInfoRole(unittest.TestCase):
- """DeploymentNeonPostgresDatabaseInfoRole unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfoRole`
- """
- model = DeploymentNeonPostgresDatabaseInfoRole()
- if include_optional:
- return DeploymentNeonPostgresDatabaseInfoRole(
- name = '',
- secret_id = ''
- )
- else:
- return DeploymentNeonPostgresDatabaseInfoRole(
- )
- """
-
- def testDeploymentNeonPostgresDatabaseInfoRole(self):
- """Test DeploymentNeonPostgresDatabaseInfoRole"""
- # 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_port.py b/koyeb/test/test_deployment_port.py
deleted file mode 100644
index e092f0c1..00000000
--- a/koyeb/test/test_deployment_port.py
+++ /dev/null
@@ -1,54 +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_port import DeploymentPort
-
-
-class TestDeploymentPort(unittest.TestCase):
- """DeploymentPort unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentPort`
- """
- model = DeploymentPort()
- if include_optional:
- return DeploymentPort(
- port = 56,
- protocol = ''
- )
- else:
- return DeploymentPort(
- )
- """
-
- def testDeploymentPort(self):
- """Test DeploymentPort"""
- # 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_provisioning_info.py b/koyeb/test/test_deployment_provisioning_info.py
deleted file mode 100644
index 5c55197b..00000000
--- a/koyeb/test/test_deployment_provisioning_info.py
+++ /dev/null
@@ -1,80 +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_provisioning_info import DeploymentProvisioningInfo
-
-
-class TestDeploymentProvisioningInfo(unittest.TestCase):
- """DeploymentProvisioningInfo unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentProvisioningInfo`
- """
- model = DeploymentProvisioningInfo()
- if include_optional:
- return DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ]
- )
- else:
- return DeploymentProvisioningInfo(
- )
- """
-
- def testDeploymentProvisioningInfo(self):
- """Test DeploymentProvisioningInfo"""
- # 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_provisioning_info_stage.py b/koyeb/test/test_deployment_provisioning_info_stage.py
deleted file mode 100644
index 2ccd3598..00000000
--- a/koyeb/test/test_deployment_provisioning_info_stage.py
+++ /dev/null
@@ -1,81 +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_provisioning_info_stage import (
- DeploymentProvisioningInfoStage,
-)
-
-
-class TestDeploymentProvisioningInfoStage(unittest.TestCase):
- """DeploymentProvisioningInfoStage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentProvisioningInfoStage`
- """
- model = DeploymentProvisioningInfoStage()
- if include_optional:
- return DeploymentProvisioningInfoStage(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- id = 56,
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ]
- )
- else:
- return DeploymentProvisioningInfoStage(
- )
- """
-
- def testDeploymentProvisioningInfoStage(self):
- """Test DeploymentProvisioningInfoStage"""
- # 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_provisioning_info_stage_build_attempt.py b/koyeb/test/test_deployment_provisioning_info_stage_build_attempt.py
deleted file mode 100644
index 95a5344b..00000000
--- a/koyeb/test/test_deployment_provisioning_info_stage_build_attempt.py
+++ /dev/null
@@ -1,77 +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_provisioning_info_stage_build_attempt import (
- DeploymentProvisioningInfoStageBuildAttempt,
-)
-
-
-class TestDeploymentProvisioningInfoStageBuildAttempt(unittest.TestCase):
- """DeploymentProvisioningInfoStageBuildAttempt unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttempt`
- """
- model = DeploymentProvisioningInfoStageBuildAttempt()
- if include_optional:
- return DeploymentProvisioningInfoStageBuildAttempt(
- id = 56,
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True
- )
- else:
- return DeploymentProvisioningInfoStageBuildAttempt(
- )
- """
-
- def testDeploymentProvisioningInfoStageBuildAttempt(self):
- """Test DeploymentProvisioningInfoStageBuildAttempt"""
- # 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_provisioning_info_stage_build_attempt_build_step.py b/koyeb/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py
deleted file mode 100644
index 28b2599f..00000000
--- a/koyeb/test/test_deployment_provisioning_info_stage_build_attempt_build_step.py
+++ /dev/null
@@ -1,63 +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_provisioning_info_stage_build_attempt_build_step import (
- DeploymentProvisioningInfoStageBuildAttemptBuildStep,
-)
-
-
-class TestDeploymentProvisioningInfoStageBuildAttemptBuildStep(unittest.TestCase):
- """DeploymentProvisioningInfoStageBuildAttemptBuildStep unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttemptBuildStep`
- """
- model = DeploymentProvisioningInfoStageBuildAttemptBuildStep()
- if include_optional:
- return DeploymentProvisioningInfoStageBuildAttemptBuildStep(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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')
- )
- else:
- return DeploymentProvisioningInfoStageBuildAttemptBuildStep(
- )
- """
-
- def testDeploymentProvisioningInfoStageBuildAttemptBuildStep(self):
- """Test DeploymentProvisioningInfoStageBuildAttemptBuildStep"""
- # 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_provisioning_info_stage_status.py b/koyeb/test/test_deployment_provisioning_info_stage_status.py
deleted file mode 100644
index a857e911..00000000
--- a/koyeb/test/test_deployment_provisioning_info_stage_status.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.deployment_provisioning_info_stage_status import (
- DeploymentProvisioningInfoStageStatus,
-)
-
-
-class TestDeploymentProvisioningInfoStageStatus(unittest.TestCase):
- """DeploymentProvisioningInfoStageStatus unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testDeploymentProvisioningInfoStageStatus(self):
- """Test DeploymentProvisioningInfoStageStatus"""
- # inst = DeploymentProvisioningInfoStageStatus()
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_deployment_proxy_port.py b/koyeb/test/test_deployment_proxy_port.py
deleted file mode 100644
index aa592af3..00000000
--- a/koyeb/test/test_deployment_proxy_port.py
+++ /dev/null
@@ -1,54 +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_proxy_port import DeploymentProxyPort
-
-
-class TestDeploymentProxyPort(unittest.TestCase):
- """DeploymentProxyPort unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentProxyPort`
- """
- model = DeploymentProxyPort()
- if include_optional:
- return DeploymentProxyPort(
- port = 56,
- protocol = 'tcp'
- )
- else:
- return DeploymentProxyPort(
- )
- """
-
- def testDeploymentProxyPort(self):
- """Test DeploymentProxyPort"""
- # 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_proxy_port_metadata.py b/koyeb/test/test_deployment_proxy_port_metadata.py
deleted file mode 100644
index b3dd474f..00000000
--- a/koyeb/test/test_deployment_proxy_port_metadata.py
+++ /dev/null
@@ -1,56 +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_proxy_port_metadata import DeploymentProxyPortMetadata
-
-
-class TestDeploymentProxyPortMetadata(unittest.TestCase):
- """DeploymentProxyPortMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentProxyPortMetadata`
- """
- model = DeploymentProxyPortMetadata()
- if include_optional:
- return DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp'
- )
- else:
- return DeploymentProxyPortMetadata(
- )
- """
-
- def testDeploymentProxyPortMetadata(self):
- """Test DeploymentProxyPortMetadata"""
- # 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_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_route.py b/koyeb/test/test_deployment_route.py
deleted file mode 100644
index 23568719..00000000
--- a/koyeb/test/test_deployment_route.py
+++ /dev/null
@@ -1,54 +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_route import DeploymentRoute
-
-
-class TestDeploymentRoute(unittest.TestCase):
- """DeploymentRoute unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentRoute`
- """
- model = DeploymentRoute()
- if include_optional:
- return DeploymentRoute(
- port = 56,
- path = ''
- )
- else:
- return DeploymentRoute(
- )
- """
-
- def testDeploymentRoute(self):
- """Test DeploymentRoute"""
- # 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.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_scaling_target_average_cpu.py b/koyeb/test/test_deployment_scaling_target_average_cpu.py
deleted file mode 100644
index 52c6a74a..00000000
--- a/koyeb/test/test_deployment_scaling_target_average_cpu.py
+++ /dev/null
@@ -1,55 +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_average_cpu import (
- DeploymentScalingTargetAverageCPU,
-)
-
-
-class TestDeploymentScalingTargetAverageCPU(unittest.TestCase):
- """DeploymentScalingTargetAverageCPU unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentScalingTargetAverageCPU`
- """
- model = DeploymentScalingTargetAverageCPU()
- if include_optional:
- return DeploymentScalingTargetAverageCPU(
- value = 56
- )
- else:
- return DeploymentScalingTargetAverageCPU(
- )
- """
-
- def testDeploymentScalingTargetAverageCPU(self):
- """Test DeploymentScalingTargetAverageCPU"""
- # 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_mem.py b/koyeb/test/test_deployment_scaling_target_average_mem.py
deleted file mode 100644
index 2fc40e50..00000000
--- a/koyeb/test/test_deployment_scaling_target_average_mem.py
+++ /dev/null
@@ -1,55 +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_average_mem import (
- DeploymentScalingTargetAverageMem,
-)
-
-
-class TestDeploymentScalingTargetAverageMem(unittest.TestCase):
- """DeploymentScalingTargetAverageMem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentScalingTargetAverageMem`
- """
- model = DeploymentScalingTargetAverageMem()
- if include_optional:
- return DeploymentScalingTargetAverageMem(
- value = 56
- )
- else:
- return DeploymentScalingTargetAverageMem(
- )
- """
-
- def testDeploymentScalingTargetAverageMem(self):
- """Test DeploymentScalingTargetAverageMem"""
- # 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_concurrent_requests.py b/koyeb/test/test_deployment_scaling_target_concurrent_requests.py
deleted file mode 100644
index 7ea98428..00000000
--- a/koyeb/test/test_deployment_scaling_target_concurrent_requests.py
+++ /dev/null
@@ -1,57 +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_concurrent_requests import (
- DeploymentScalingTargetConcurrentRequests,
-)
-
-
-class TestDeploymentScalingTargetConcurrentRequests(unittest.TestCase):
- """DeploymentScalingTargetConcurrentRequests unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentScalingTargetConcurrentRequests`
- """
- model = DeploymentScalingTargetConcurrentRequests()
- if include_optional:
- return DeploymentScalingTargetConcurrentRequests(
- value = 56
- )
- else:
- return DeploymentScalingTargetConcurrentRequests(
- )
- """
-
- def testDeploymentScalingTargetConcurrentRequests(self):
- """Test DeploymentScalingTargetConcurrentRequests"""
- # 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_requests_per_second.py b/koyeb/test/test_deployment_scaling_target_requests_per_second.py
deleted file mode 100644
index f4dcf662..00000000
--- a/koyeb/test/test_deployment_scaling_target_requests_per_second.py
+++ /dev/null
@@ -1,57 +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_requests_per_second import (
- DeploymentScalingTargetRequestsPerSecond,
-)
-
-
-class TestDeploymentScalingTargetRequestsPerSecond(unittest.TestCase):
- """DeploymentScalingTargetRequestsPerSecond unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentScalingTargetRequestsPerSecond`
- """
- model = DeploymentScalingTargetRequestsPerSecond()
- if include_optional:
- return DeploymentScalingTargetRequestsPerSecond(
- value = 56
- )
- else:
- return DeploymentScalingTargetRequestsPerSecond(
- )
- """
-
- def testDeploymentScalingTargetRequestsPerSecond(self):
- """Test DeploymentScalingTargetRequestsPerSecond"""
- # 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_requests_response_time.py b/koyeb/test/test_deployment_scaling_target_requests_response_time.py
deleted file mode 100644
index 28ab6441..00000000
--- a/koyeb/test/test_deployment_scaling_target_requests_response_time.py
+++ /dev/null
@@ -1,58 +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_requests_response_time import (
- DeploymentScalingTargetRequestsResponseTime,
-)
-
-
-class TestDeploymentScalingTargetRequestsResponseTime(unittest.TestCase):
- """DeploymentScalingTargetRequestsResponseTime unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentScalingTargetRequestsResponseTime`
- """
- model = DeploymentScalingTargetRequestsResponseTime()
- if include_optional:
- return DeploymentScalingTargetRequestsResponseTime(
- value = 56,
- quantile = 56
- )
- else:
- return DeploymentScalingTargetRequestsResponseTime(
- )
- """
-
- def testDeploymentScalingTargetRequestsResponseTime(self):
- """Test DeploymentScalingTargetRequestsResponseTime"""
- # 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_sleep_idle_delay.py b/koyeb/test/test_deployment_scaling_target_sleep_idle_delay.py
deleted file mode 100644
index 0f0ec399..00000000
--- a/koyeb/test/test_deployment_scaling_target_sleep_idle_delay.py
+++ /dev/null
@@ -1,57 +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_sleep_idle_delay import (
- DeploymentScalingTargetSleepIdleDelay,
-)
-
-
-class TestDeploymentScalingTargetSleepIdleDelay(unittest.TestCase):
- """DeploymentScalingTargetSleepIdleDelay unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentScalingTargetSleepIdleDelay`
- """
- model = DeploymentScalingTargetSleepIdleDelay()
- if include_optional:
- return DeploymentScalingTargetSleepIdleDelay(
- value = 56,
- deep_sleep_value = 56,
- light_sleep_value = 56
- )
- else:
- return DeploymentScalingTargetSleepIdleDelay(
- )
- """
-
- def testDeploymentScalingTargetSleepIdleDelay(self):
- """Test DeploymentScalingTargetSleepIdleDelay"""
- # 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.py b/koyeb/test/test_deployment_strategy.py
deleted file mode 100644
index 1cd3619e..00000000
--- a/koyeb/test/test_deployment_strategy.py
+++ /dev/null
@@ -1,53 +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 import DeploymentStrategy
-
-
-class TestDeploymentStrategy(unittest.TestCase):
- """DeploymentStrategy unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentStrategy`
- """
- model = DeploymentStrategy()
- if include_optional:
- return DeploymentStrategy(
- type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID'
- )
- else:
- return DeploymentStrategy(
- )
- """
-
- def testDeploymentStrategy(self):
- """Test DeploymentStrategy"""
- # 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_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_deployment_volume.py b/koyeb/test/test_deployment_volume.py
deleted file mode 100644
index 857dd3a2..00000000
--- a/koyeb/test/test_deployment_volume.py
+++ /dev/null
@@ -1,58 +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_volume import DeploymentVolume
-
-
-class TestDeploymentVolume(unittest.TestCase):
- """DeploymentVolume unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DeploymentVolume`
- """
- model = DeploymentVolume()
- if include_optional:
- return DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56,
- scopes = [
- ''
- ]
- )
- else:
- return DeploymentVolume(
- )
- """
-
- def testDeploymentVolume(self):
- """Test DeploymentVolume"""
- # 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_deployments_api.py b/koyeb/test/test_deployments_api.py
deleted file mode 100644
index ca0c37d0..00000000
--- a/koyeb/test/test_deployments_api.py
+++ /dev/null
@@ -1,66 +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.deployments_api import DeploymentsApi
-
-
-class TestDeploymentsApi(unittest.TestCase):
- """DeploymentsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = DeploymentsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_cancel_deployment(self) -> None:
- """Test case for cancel_deployment
-
- Cancel Deployment
- """
- pass
-
- def test_get_deployment(self) -> None:
- """Test case for get_deployment
-
- Get Deployment
- """
- pass
-
- def test_get_deployment_scaling(self) -> None:
- """Test case for get_deployment_scaling
-
- Get Deployment Scaling
- """
- pass
-
- def test_list_deployment_events(self) -> None:
- """Test case for list_deployment_events
-
- List Deployment events
- """
- pass
-
- def test_list_deployments(self) -> None:
- """Test case for list_deployments
-
- List Deployments
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_desired_deployment.py b/koyeb/test/test_desired_deployment.py
deleted file mode 100644
index 7e815278..00000000
--- a/koyeb/test/test_desired_deployment.py
+++ /dev/null
@@ -1,59 +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.desired_deployment import DesiredDeployment
-
-
-class TestDesiredDeployment(unittest.TestCase):
- """DesiredDeployment unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DesiredDeployment`
- """
- model = DesiredDeployment()
- if include_optional:
- return DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ]
- )
- else:
- return DesiredDeployment(
- )
- """
-
- def testDesiredDeployment(self):
- """Test DesiredDeployment"""
- # 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_desired_deployment_group.py b/koyeb/test/test_desired_deployment_group.py
deleted file mode 100644
index b1913205..00000000
--- a/koyeb/test/test_desired_deployment_group.py
+++ /dev/null
@@ -1,56 +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.desired_deployment_group import DesiredDeploymentGroup
-
-
-class TestDesiredDeploymentGroup(unittest.TestCase):
- """DesiredDeploymentGroup unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DesiredDeploymentGroup`
- """
- model = DesiredDeploymentGroup()
- if include_optional:
- return DesiredDeploymentGroup(
- name = '',
- deployment_ids = [
- ''
- ]
- )
- else:
- return DesiredDeploymentGroup(
- )
- """
-
- def testDesiredDeploymentGroup(self):
- """Test DesiredDeploymentGroup"""
- # 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_digital_ocean_registry_configuration.py b/koyeb/test/test_digital_ocean_registry_configuration.py
deleted file mode 100644
index d329da45..00000000
--- a/koyeb/test/test_digital_ocean_registry_configuration.py
+++ /dev/null
@@ -1,56 +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.digital_ocean_registry_configuration import (
- DigitalOceanRegistryConfiguration,
-)
-
-
-class TestDigitalOceanRegistryConfiguration(unittest.TestCase):
- """DigitalOceanRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DigitalOceanRegistryConfiguration`
- """
- model = DigitalOceanRegistryConfiguration()
- if include_optional:
- return DigitalOceanRegistryConfiguration(
- username = '',
- password = ''
- )
- else:
- return DigitalOceanRegistryConfiguration(
- )
- """
-
- def testDigitalOceanRegistryConfiguration(self):
- """Test DigitalOceanRegistryConfiguration"""
- # 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_discourse_auth_reply.py b/koyeb/test/test_discourse_auth_reply.py
deleted file mode 100644
index 975b6875..00000000
--- a/koyeb/test/test_discourse_auth_reply.py
+++ /dev/null
@@ -1,54 +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.discourse_auth_reply import DiscourseAuthReply
-
-
-class TestDiscourseAuthReply(unittest.TestCase):
- """DiscourseAuthReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DiscourseAuthReply`
- """
- model = DiscourseAuthReply()
- if include_optional:
- return DiscourseAuthReply(
- sso = '',
- sig = ''
- )
- else:
- return DiscourseAuthReply(
- )
- """
-
- def testDiscourseAuthReply(self):
- """Test DiscourseAuthReply"""
- # 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_discourse_auth_request.py b/koyeb/test/test_discourse_auth_request.py
deleted file mode 100644
index 73f0486d..00000000
--- a/koyeb/test/test_discourse_auth_request.py
+++ /dev/null
@@ -1,54 +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.discourse_auth_request import DiscourseAuthRequest
-
-
-class TestDiscourseAuthRequest(unittest.TestCase):
- """DiscourseAuthRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DiscourseAuthRequest`
- """
- model = DiscourseAuthRequest()
- if include_optional:
- return DiscourseAuthRequest(
- payload = '',
- sig = ''
- )
- else:
- return DiscourseAuthRequest(
- )
- """
-
- def testDiscourseAuthRequest(self):
- """Test DiscourseAuthRequest"""
- # 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_docker_builder.py b/koyeb/test/test_docker_builder.py
deleted file mode 100644
index 1a7a562e..00000000
--- a/koyeb/test/test_docker_builder.py
+++ /dev/null
@@ -1,62 +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.docker_builder import DockerBuilder
-
-
-class TestDockerBuilder(unittest.TestCase):
- """DockerBuilder unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DockerBuilder`
- """
- model = DockerBuilder()
- if include_optional:
- return DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True
- )
- else:
- return DockerBuilder(
- )
- """
-
- def testDockerBuilder(self):
- """Test DockerBuilder"""
- # 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_docker_helper_api.py b/koyeb/test/test_docker_helper_api.py
deleted file mode 100644
index 836a8c46..00000000
--- a/koyeb/test/test_docker_helper_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.docker_helper_api import DockerHelperApi
-
-
-class TestDockerHelperApi(unittest.TestCase):
- """DockerHelperApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = DockerHelperApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_verify_docker_image(self) -> None:
- """Test case for verify_docker_image
-
- Verify Docker Image
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_docker_hub_registry_configuration.py b/koyeb/test/test_docker_hub_registry_configuration.py
deleted file mode 100644
index 28f488c3..00000000
--- a/koyeb/test/test_docker_hub_registry_configuration.py
+++ /dev/null
@@ -1,56 +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.docker_hub_registry_configuration import (
- DockerHubRegistryConfiguration,
-)
-
-
-class TestDockerHubRegistryConfiguration(unittest.TestCase):
- """DockerHubRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DockerHubRegistryConfiguration`
- """
- model = DockerHubRegistryConfiguration()
- if include_optional:
- return DockerHubRegistryConfiguration(
- username = '',
- password = ''
- )
- else:
- return DockerHubRegistryConfiguration(
- )
- """
-
- def testDockerHubRegistryConfiguration(self):
- """Test DockerHubRegistryConfiguration"""
- # 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_docker_source.py b/koyeb/test/test_docker_source.py
deleted file mode 100644
index 31f37a89..00000000
--- a/koyeb/test/test_docker_source.py
+++ /dev/null
@@ -1,62 +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.docker_source import DockerSource
-
-
-class TestDockerSource(unittest.TestCase):
- """DockerSource unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DockerSource`
- """
- model = DockerSource()
- if include_optional:
- return DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True
- )
- else:
- return DockerSource(
- )
- """
-
- def testDockerSource(self):
- """Test DockerSource"""
- # 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_domain.py b/koyeb/test/test_domain.py
deleted file mode 100644
index 3549373c..00000000
--- a/koyeb/test/test_domain.py
+++ /dev/null
@@ -1,70 +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 import Domain
-
-
-class TestDomain(unittest.TestCase):
- """Domain unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Domain`
- """
- model = Domain()
- if include_optional:
- return Domain(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, )
- )
- else:
- return Domain(
- )
- """
-
- def testDomain(self):
- """Test Domain"""
- # 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_domain_load_balancer_koyeb.py b/koyeb/test/test_domain_load_balancer_koyeb.py
deleted file mode 100644
index 5b64c95e..00000000
--- a/koyeb/test/test_domain_load_balancer_koyeb.py
+++ /dev/null
@@ -1,53 +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_load_balancer_koyeb import DomainLoadBalancerKoyeb
-
-
-class TestDomainLoadBalancerKoyeb(unittest.TestCase):
- """DomainLoadBalancerKoyeb unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DomainLoadBalancerKoyeb`
- """
- model = DomainLoadBalancerKoyeb()
- if include_optional:
- return DomainLoadBalancerKoyeb(
- request_timeout_seconds = 56
- )
- else:
- return DomainLoadBalancerKoyeb(
- )
- """
-
- def testDomainLoadBalancerKoyeb(self):
- """Test DomainLoadBalancerKoyeb"""
- # 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_domain_load_balancer_quotas.py b/koyeb/test/test_domain_load_balancer_quotas.py
deleted file mode 100644
index 52082936..00000000
--- a/koyeb/test/test_domain_load_balancer_quotas.py
+++ /dev/null
@@ -1,53 +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_load_balancer_quotas import DomainLoadBalancerQuotas
-
-
-class TestDomainLoadBalancerQuotas(unittest.TestCase):
- """DomainLoadBalancerQuotas unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DomainLoadBalancerQuotas`
- """
- model = DomainLoadBalancerQuotas()
- if include_optional:
- return DomainLoadBalancerQuotas(
- max_koyeb = 56
- )
- else:
- return DomainLoadBalancerQuotas(
- )
- """
-
- def testDomainLoadBalancerQuotas(self):
- """Test DomainLoadBalancerQuotas"""
- # 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_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_domains_api.py b/koyeb/test/test_domains_api.py
deleted file mode 100644
index ec8ce77f..00000000
--- a/koyeb/test/test_domains_api.py
+++ /dev/null
@@ -1,73 +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.domains_api import DomainsApi
-
-
-class TestDomainsApi(unittest.TestCase):
- """DomainsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = DomainsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_create_domain(self) -> None:
- """Test case for create_domain
-
- Create Domain
- """
- pass
-
- def test_delete_domain(self) -> None:
- """Test case for delete_domain
-
- Delete Domain
- """
- pass
-
- def test_get_domain(self) -> None:
- """Test case for get_domain
-
- Get Domain
- """
- pass
-
- def test_list_domains(self) -> None:
- """Test case for list_domains
-
- List Domains
- """
- pass
-
- def test_refresh_domain_status(self) -> None:
- """Test case for refresh_domain_status
-
- Refresh Domain Status
- """
- pass
-
- def test_update_domain(self) -> None:
- """Test case for update_domain
-
- Update Domain
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_domains_summary.py b/koyeb/test/test_domains_summary.py
deleted file mode 100644
index 0b535ccd..00000000
--- a/koyeb/test/test_domains_summary.py
+++ /dev/null
@@ -1,56 +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.domains_summary import DomainsSummary
-
-
-class TestDomainsSummary(unittest.TestCase):
- """DomainsSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `DomainsSummary`
- """
- model = DomainsSummary()
- if include_optional:
- return DomainsSummary(
- total = '',
- by_status = {
- 'key' : ''
- }
- )
- else:
- return DomainsSummary(
- )
- """
-
- def testDomainsSummary(self):
- """Test DomainsSummary"""
- # 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_env.py b/koyeb/test/test_env.py
deleted file mode 100644
index fdcbec29..00000000
--- a/koyeb/test/test_env.py
+++ /dev/null
@@ -1,55 +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.env import Env
-
-
-class TestEnv(unittest.TestCase):
- """Env unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Env`
- """
- model = Env()
- if include_optional:
- return Env(
- key = '',
- value = '',
- secret = ''
- )
- else:
- return Env(
- )
- """
-
- def testEnv(self):
- """Test Env"""
- # 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_error.py b/koyeb/test/test_error.py
deleted file mode 100644
index 6149d39a..00000000
--- a/koyeb/test/test_error.py
+++ /dev/null
@@ -1,55 +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.error import Error
-
-
-class TestError(unittest.TestCase):
- """Error unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Error`
- """
- model = Error()
- if include_optional:
- return Error(
- status = 56,
- code = '',
- message = ''
- )
- else:
- return Error(
- )
- """
-
- def testError(self):
- """Test Error"""
- # 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_error_field.py b/koyeb/test/test_error_field.py
deleted file mode 100644
index 1ac8509a..00000000
--- a/koyeb/test/test_error_field.py
+++ /dev/null
@@ -1,54 +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.error_field import ErrorField
-
-
-class TestErrorField(unittest.TestCase):
- """ErrorField unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ErrorField`
- """
- model = ErrorField()
- if include_optional:
- return ErrorField(
- var_field = '',
- description = ''
- )
- else:
- return ErrorField(
- )
- """
-
- def testErrorField(self):
- """Test ErrorField"""
- # 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_error_with_fields.py b/koyeb/test/test_error_with_fields.py
deleted file mode 100644
index 1ceb2066..00000000
--- a/koyeb/test/test_error_with_fields.py
+++ /dev/null
@@ -1,60 +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.error_with_fields import ErrorWithFields
-
-
-class TestErrorWithFields(unittest.TestCase):
- """ErrorWithFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ErrorWithFields`
- """
- model = ErrorWithFields()
- if include_optional:
- return ErrorWithFields(
- status = 56,
- code = '',
- message = '',
- fields = [
- koyeb.models.error_field.ErrorField(
- field = '',
- description = '', )
- ]
- )
- else:
- return ErrorWithFields(
- )
- """
-
- def testErrorWithFields(self):
- """Test ErrorWithFields"""
- # 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_exec_command_io.py b/koyeb/test/test_exec_command_io.py
deleted file mode 100644
index b9998e73..00000000
--- a/koyeb/test/test_exec_command_io.py
+++ /dev/null
@@ -1,54 +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_io import ExecCommandIO
-
-
-class TestExecCommandIO(unittest.TestCase):
- """ExecCommandIO unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ExecCommandIO`
- """
- model = ExecCommandIO()
- if include_optional:
- return ExecCommandIO(
- data = 'YQ==',
- close = True
- )
- else:
- return ExecCommandIO(
- )
- """
-
- def testExecCommandIO(self):
- """Test ExecCommandIO"""
- # 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_exec_command_reply.py b/koyeb/test/test_exec_command_reply.py
deleted file mode 100644
index a90e62bc..00000000
--- a/koyeb/test/test_exec_command_reply.py
+++ /dev/null
@@ -1,60 +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_reply import ExecCommandReply
-
-
-class TestExecCommandReply(unittest.TestCase):
- """ExecCommandReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ExecCommandReply`
- """
- model = ExecCommandReply()
- if include_optional:
- return ExecCommandReply(
- stdout = koyeb.models.exec_command_io.ExecCommandIO(
- data = 'YQ==',
- close = True, ),
- stderr = koyeb.models.exec_command_io.ExecCommandIO(
- data = 'YQ==',
- close = True, ),
- exited = True,
- exit_code = 56
- )
- else:
- return ExecCommandReply(
- )
- """
-
- def testExecCommandReply(self):
- """Test ExecCommandReply"""
- # 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_exec_command_request_body.py b/koyeb/test/test_exec_command_request_body.py
deleted file mode 100644
index 28281c17..00000000
--- a/koyeb/test/test_exec_command_request_body.py
+++ /dev/null
@@ -1,62 +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_body import ExecCommandRequestBody
-
-
-class TestExecCommandRequestBody(unittest.TestCase):
- """ExecCommandRequestBody unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ExecCommandRequestBody`
- """
- model = ExecCommandRequestBody()
- if include_optional:
- return ExecCommandRequestBody(
- command = [
- ''
- ],
- tty_size = koyeb.models.exec_command_request/terminal_size.ExecCommandRequest.TerminalSize(
- height = 56,
- width = 56, ),
- stdin = koyeb.models.exec_command_io.ExecCommandIO(
- data = 'YQ==',
- close = True, ),
- disable_tty = True
- )
- else:
- return ExecCommandRequestBody(
- )
- """
-
- def testExecCommandRequestBody(self):
- """Test ExecCommandRequestBody"""
- # 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_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_exec_command_request_terminal_size.py b/koyeb/test/test_exec_command_request_terminal_size.py
deleted file mode 100644
index 3c9cc303..00000000
--- a/koyeb/test/test_exec_command_request_terminal_size.py
+++ /dev/null
@@ -1,56 +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_terminal_size import (
- ExecCommandRequestTerminalSize,
-)
-
-
-class TestExecCommandRequestTerminalSize(unittest.TestCase):
- """ExecCommandRequestTerminalSize unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ExecCommandRequestTerminalSize`
- """
- model = ExecCommandRequestTerminalSize()
- if include_optional:
- return ExecCommandRequestTerminalSize(
- height = 56,
- width = 56
- )
- else:
- return ExecCommandRequestTerminalSize(
- )
- """
-
- def testExecCommandRequestTerminalSize(self):
- """Test ExecCommandRequestTerminalSize"""
- # 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_gcp_container_registry_configuration.py b/koyeb/test/test_gcp_container_registry_configuration.py
deleted file mode 100644
index 19e49dc1..00000000
--- a/koyeb/test/test_gcp_container_registry_configuration.py
+++ /dev/null
@@ -1,56 +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.gcp_container_registry_configuration import (
- GCPContainerRegistryConfiguration,
-)
-
-
-class TestGCPContainerRegistryConfiguration(unittest.TestCase):
- """GCPContainerRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GCPContainerRegistryConfiguration`
- """
- model = GCPContainerRegistryConfiguration()
- if include_optional:
- return GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = ''
- )
- else:
- return GCPContainerRegistryConfiguration(
- )
- """
-
- def testGCPContainerRegistryConfiguration(self):
- """Test GCPContainerRegistryConfiguration"""
- # 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_get_budget_reply.py b/koyeb/test/test_get_budget_reply.py
deleted file mode 100644
index d851f9b1..00000000
--- a/koyeb/test/test_get_budget_reply.py
+++ /dev/null
@@ -1,57 +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.get_budget_reply import GetBudgetReply
-
-
-class TestGetBudgetReply(unittest.TestCase):
- """GetBudgetReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetBudgetReply`
- """
- model = GetBudgetReply()
- if include_optional:
- return GetBudgetReply(
- budget = koyeb.models.budget.Budget(
- amount = '',
- thresholds = [
- ''
- ], )
- )
- else:
- return GetBudgetReply(
- )
- """
-
- def testGetBudgetReply(self):
- """Test GetBudgetReply"""
- # 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_get_catalog_instance_reply.py b/koyeb/test/test_get_catalog_instance_reply.py
deleted file mode 100644
index bb5dc1d5..00000000
--- a/koyeb/test/test_get_catalog_instance_reply.py
+++ /dev/null
@@ -1,84 +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.get_catalog_instance_reply import GetCatalogInstanceReply
-
-
-class TestGetCatalogInstanceReply(unittest.TestCase):
- """GetCatalogInstanceReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetCatalogInstanceReply`
- """
- model = GetCatalogInstanceReply()
- if include_optional:
- return GetCatalogInstanceReply(
- instance = koyeb.models.catalog_instance.CatalogInstance(
- id = '',
- description = '',
- vcpu = 56,
- memory = '',
- disk = '',
- price_per_second = '',
- price_hourly = '',
- price_monthly = '',
- regions = [
- ''
- ],
- status = '',
- require_plan = [
- ''
- ],
- vcpu_shares = 1.337,
- display_name = '',
- aliases = [
- ''
- ],
- type = '',
- gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails(
- count = 56,
- brand = '',
- memory = '',
- name = '', ),
- service_types = [
- ''
- ],
- volumes_enabled = True,
- light_sleep_enabled = True, )
- )
- else:
- return GetCatalogInstanceReply(
- )
- """
-
- def testGetCatalogInstanceReply(self):
- """Test GetCatalogInstanceReply"""
- # 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_get_credential_reply.py b/koyeb/test/test_get_credential_reply.py
deleted file mode 100644
index 9fa468c5..00000000
--- a/koyeb/test/test_get_credential_reply.py
+++ /dev/null
@@ -1,63 +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.get_credential_reply import GetCredentialReply
-
-
-class TestGetCredentialReply(unittest.TestCase):
- """GetCredentialReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetCredentialReply`
- """
- model = GetCredentialReply()
- if include_optional:
- return GetCredentialReply(
- credential = koyeb.models.credential.Credential(
- id = '',
- type = 'INVALID',
- name = '',
- token = '',
- description = '',
- user_id = '',
- 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'),
- expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- )
- else:
- return GetCredentialReply(
- )
- """
-
- def testGetCredentialReply(self):
- """Test GetCredentialReply"""
- # 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_get_deployment_reply.py b/koyeb/test/test_get_deployment_reply.py
deleted file mode 100644
index 599ed0b1..00000000
--- a/koyeb/test/test_get_deployment_reply.py
+++ /dev/null
@@ -1,225 +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.get_deployment_reply import GetDeploymentReply
-
-
-class TestGetDeploymentReply(unittest.TestCase):
- """GetDeploymentReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetDeploymentReply`
- """
- model = GetDeploymentReply()
- if include_optional:
- return GetDeploymentReply(
- deployment = koyeb.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'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- metadata = koyeb.models.deployment_metadata.DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ], ),
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56, )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ), ),
- messages = [
- ''
- ],
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(),
- skip_build = True,
- role = 'INVALID',
- version = '',
- deployment_group = '', )
- )
- else:
- return GetDeploymentReply(
- )
- """
-
- def testGetDeploymentReply(self):
- """Test GetDeploymentReply"""
- # 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_get_domain_reply.py b/koyeb/test/test_get_domain_reply.py
deleted file mode 100644
index 0caa39f8..00000000
--- a/koyeb/test/test_get_domain_reply.py
+++ /dev/null
@@ -1,71 +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.get_domain_reply import GetDomainReply
-
-
-class TestGetDomainReply(unittest.TestCase):
- """GetDomainReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetDomainReply`
- """
- model = GetDomainReply()
- if include_optional:
- return GetDomainReply(
- domain = koyeb.models.domain.Domain(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, ), )
- )
- else:
- return GetDomainReply(
- )
- """
-
- def testGetDomainReply(self):
- """Test GetDomainReply"""
- # 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_get_github_installation_reply.py b/koyeb/test/test_get_github_installation_reply.py
deleted file mode 100644
index f30654e5..00000000
--- a/koyeb/test/test_get_github_installation_reply.py
+++ /dev/null
@@ -1,62 +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.get_github_installation_reply import GetGithubInstallationReply
-
-
-class TestGetGithubInstallationReply(unittest.TestCase):
- """GetGithubInstallationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetGithubInstallationReply`
- """
- model = GetGithubInstallationReply()
- if include_optional:
- return GetGithubInstallationReply(
- installation_id = '',
- installation_url = '',
- name = '',
- avatar_url = '',
- status = 'INVALID',
- installed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- suspended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- indexing_status = 'INVALID_INDEXING_STATUS',
- indexed_repositories = 56,
- total_repositories = 56
- )
- else:
- return GetGithubInstallationReply(
- )
- """
-
- def testGetGithubInstallationReply(self):
- """Test GetGithubInstallationReply"""
- # 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_get_idenfy_token_reply.py b/koyeb/test/test_get_idenfy_token_reply.py
deleted file mode 100644
index 524578d1..00000000
--- a/koyeb/test/test_get_idenfy_token_reply.py
+++ /dev/null
@@ -1,53 +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.get_idenfy_token_reply import GetIdenfyTokenReply
-
-
-class TestGetIdenfyTokenReply(unittest.TestCase):
- """GetIdenfyTokenReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetIdenfyTokenReply`
- """
- model = GetIdenfyTokenReply()
- if include_optional:
- return GetIdenfyTokenReply(
- auth_token = ''
- )
- else:
- return GetIdenfyTokenReply(
- )
- """
-
- def testGetIdenfyTokenReply(self):
- """Test GetIdenfyTokenReply"""
- # 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_get_intercom_profile_reply.py b/koyeb/test/test_get_intercom_profile_reply.py
deleted file mode 100644
index 2421f906..00000000
--- a/koyeb/test/test_get_intercom_profile_reply.py
+++ /dev/null
@@ -1,53 +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.get_intercom_profile_reply import GetIntercomProfileReply
-
-
-class TestGetIntercomProfileReply(unittest.TestCase):
- """GetIntercomProfileReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetIntercomProfileReply`
- """
- model = GetIntercomProfileReply()
- if include_optional:
- return GetIntercomProfileReply(
- hash = ''
- )
- else:
- return GetIntercomProfileReply(
- )
- """
-
- def testGetIntercomProfileReply(self):
- """Test GetIntercomProfileReply"""
- # 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_get_metrics_reply.py b/koyeb/test/test_get_metrics_reply.py
deleted file mode 100644
index b816e087..00000000
--- a/koyeb/test/test_get_metrics_reply.py
+++ /dev/null
@@ -1,63 +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.get_metrics_reply import GetMetricsReply
-
-
-class TestGetMetricsReply(unittest.TestCase):
- """GetMetricsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetMetricsReply`
- """
- model = GetMetricsReply()
- if include_optional:
- return GetMetricsReply(
- metrics = [
- koyeb.models.get_metrics_reply/metric.GetMetricsReply.Metric(
- labels = {
- 'key' : ''
- },
- samples = [
- koyeb.models.sample.Sample(
- timestamp = '',
- value = 1.337, )
- ], )
- ]
- )
- else:
- return GetMetricsReply(
- )
- """
-
- def testGetMetricsReply(self):
- """Test GetMetricsReply"""
- # 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_get_metrics_reply_metric.py b/koyeb/test/test_get_metrics_reply_metric.py
deleted file mode 100644
index 772b2ce9..00000000
--- a/koyeb/test/test_get_metrics_reply_metric.py
+++ /dev/null
@@ -1,60 +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.get_metrics_reply_metric import GetMetricsReplyMetric
-
-
-class TestGetMetricsReplyMetric(unittest.TestCase):
- """GetMetricsReplyMetric unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetMetricsReplyMetric`
- """
- model = GetMetricsReplyMetric()
- if include_optional:
- return GetMetricsReplyMetric(
- labels = {
- 'key' : ''
- },
- samples = [
- koyeb.models.sample.Sample(
- timestamp = '',
- value = 1.337, )
- ]
- )
- else:
- return GetMetricsReplyMetric(
- )
- """
-
- def testGetMetricsReplyMetric(self):
- """Test GetMetricsReplyMetric"""
- # 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_get_o_auth_options_reply.py b/koyeb/test/test_get_o_auth_options_reply.py
deleted file mode 100644
index 8a8fa0eb..00000000
--- a/koyeb/test/test_get_o_auth_options_reply.py
+++ /dev/null
@@ -1,58 +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.get_o_auth_options_reply import GetOAuthOptionsReply
-
-
-class TestGetOAuthOptionsReply(unittest.TestCase):
- """GetOAuthOptionsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetOAuthOptionsReply`
- """
- model = GetOAuthOptionsReply()
- if include_optional:
- return GetOAuthOptionsReply(
- oauth_providers = [
- koyeb.models.o_auth_provider.OAuthProvider(
- id = '',
- url = '',
- state = '', )
- ]
- )
- else:
- return GetOAuthOptionsReply(
- )
- """
-
- def testGetOAuthOptionsReply(self):
- """Test GetOAuthOptionsReply"""
- # 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_get_organization_invitation_reply.py b/koyeb/test/test_get_organization_invitation_reply.py
deleted file mode 100644
index 068164bd..00000000
--- a/koyeb/test/test_get_organization_invitation_reply.py
+++ /dev/null
@@ -1,81 +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.get_organization_invitation_reply import (
- GetOrganizationInvitationReply,
-)
-
-
-class TestGetOrganizationInvitationReply(unittest.TestCase):
- """GetOrganizationInvitationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetOrganizationInvitationReply`
- """
- model = GetOrganizationInvitationReply()
- if include_optional:
- return GetOrganizationInvitationReply(
- invitation = koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- )
- else:
- return GetOrganizationInvitationReply(
- )
- """
-
- def testGetOrganizationInvitationReply(self):
- """Test GetOrganizationInvitationReply"""
- # 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_get_organization_reply.py b/koyeb/test/test_get_organization_reply.py
deleted file mode 100644
index e13f9dac..00000000
--- a/koyeb/test/test_get_organization_reply.py
+++ /dev/null
@@ -1,84 +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.get_organization_reply import GetOrganizationReply
-
-
-class TestGetOrganizationReply(unittest.TestCase):
- """GetOrganizationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetOrganizationReply`
- """
- model = GetOrganizationReply()
- if include_optional:
- return GetOrganizationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return GetOrganizationReply(
- )
- """
-
- def testGetOrganizationReply(self):
- """Test GetOrganizationReply"""
- # 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_get_organization_summary_reply.py b/koyeb/test/test_get_organization_summary_reply.py
deleted file mode 100644
index 7884d4be..00000000
--- a/koyeb/test/test_get_organization_summary_reply.py
+++ /dev/null
@@ -1,91 +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.get_organization_summary_reply import GetOrganizationSummaryReply
-
-
-class TestGetOrganizationSummaryReply(unittest.TestCase):
- """GetOrganizationSummaryReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetOrganizationSummaryReply`
- """
- model = GetOrganizationSummaryReply()
- if include_optional:
- return GetOrganizationSummaryReply(
- summary = koyeb.models.organization_summary.OrganizationSummary(
- organization_id = '',
- instances = koyeb.models.instances_summary.InstancesSummary(
- total = '',
- by_type = {
- 'key' : ''
- }, ),
- apps = koyeb.models.apps_summary.AppsSummary(
- total = '',
- by_status = {
- 'key' : ''
- }, ),
- services = {
- 'key' : koyeb.models.service_summary.ServiceSummary(
- total = '',
- by_status = {
- 'key' : ''
- }, )
- },
- domains = koyeb.models.domains_summary.DomainsSummary(
- total = '',
- by_status = {
- 'key' : ''
- }, ),
- secrets = koyeb.models.secrets_summary.SecretsSummary(
- total = '',
- by_type = {
- 'key' : ''
- }, ),
- neon_postgres = koyeb.models.neon_postgres_summary.NeonPostgresSummary(
- total = '',
- by_instance_type = {
- 'key' : ''
- }, ),
- members = koyeb.models.members_summary.MembersSummary(
- total = '',
- invitations_by_status = {
- 'key' : ''
- }, ), )
- )
- else:
- return GetOrganizationSummaryReply(
- )
- """
-
- def testGetOrganizationSummaryReply(self):
- """Test GetOrganizationSummaryReply"""
- # 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_get_organization_usage_reply.py b/koyeb/test/test_get_organization_usage_reply.py
deleted file mode 100644
index 9da5fa9c..00000000
--- a/koyeb/test/test_get_organization_usage_reply.py
+++ /dev/null
@@ -1,83 +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.get_organization_usage_reply import GetOrganizationUsageReply
-
-
-class TestGetOrganizationUsageReply(unittest.TestCase):
- """GetOrganizationUsageReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetOrganizationUsageReply`
- """
- model = GetOrganizationUsageReply()
- if include_optional:
- return GetOrganizationUsageReply(
- usage = koyeb.models.usage.Usage(
- organization_id = '',
- periods = {
- 'key' : koyeb.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(
- app_id = '',
- app_name = '',
- services = [
- koyeb.models.service_usage.ServiceUsage(
- service_id = '',
- service_name = '',
- regions = {
- 'key' : koyeb.models.region_usage.RegionUsage(
- instances = {
- 'key' : koyeb.models.instance_usage.InstanceUsage(
- duration_seconds = 56, )
- }, )
- }, )
- ],
- databases = [
- koyeb.models.database_usage.DatabaseUsage(
- service_id = '',
- service_name = '',
- compute_time_seconds = 56,
- data_storage_megabytes_hours = 56, )
- ], )
- ], )
- }, )
- )
- else:
- return GetOrganizationUsageReply(
- )
- """
-
- def testGetOrganizationUsageReply(self):
- """Test GetOrganizationUsageReply"""
- # 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_get_persistent_volume_reply.py b/koyeb/test/test_get_persistent_volume_reply.py
deleted file mode 100644
index 1e701cce..00000000
--- a/koyeb/test/test_get_persistent_volume_reply.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.get_persistent_volume_reply import GetPersistentVolumeReply
-
-
-class TestGetPersistentVolumeReply(unittest.TestCase):
- """GetPersistentVolumeReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- id = '',
- name = '',
- snapshot_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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- service_id = '',
- region = '',
- read_only = True,
- max_size = 56,
- cur_size = 56,
- status = 'PERSISTENT_VOLUME_STATUS_INVALID',
- backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
- )
- else:
- return GetPersistentVolumeReply(
- )
- """
-
- def testGetPersistentVolumeReply(self):
- """Test GetPersistentVolumeReply"""
- # 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_get_quotas_reply.py b/koyeb/test/test_get_quotas_reply.py
deleted file mode 100644
index 02711d72..00000000
--- a/koyeb/test/test_get_quotas_reply.py
+++ /dev/null
@@ -1,92 +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.get_quotas_reply import GetQuotasReply
-
-
-class TestGetQuotasReply(unittest.TestCase):
- """GetQuotasReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetQuotasReply`
- """
- model = GetQuotasReply()
- if include_optional:
- return GetQuotasReply(
- quotas = koyeb.models.quotas.Quotas(
- apps = '',
- services = '',
- domains = '',
- services_by_app = '',
- service_provisioning_concurrency = '',
- memory_mb = '',
- instance_types = [
- ''
- ],
- regions = [
- ''
- ],
- max_organization_members = '',
- max_instances_by_type = {
- 'key' : ''
- },
- persistent_volumes_by_region = {
- 'key' : koyeb.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(
- max_koyeb = 56, ),
- metrics_retention = 56,
- logs_retention = 56,
- access_reserved_subdomains = [
- ''
- ],
- proxy_ports = 56,
- scale_to_zero = koyeb.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 = '', )
- )
- else:
- return GetQuotasReply(
- )
- """
-
- def testGetQuotasReply(self):
- """Test GetQuotasReply"""
- # 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_get_region_reply.py b/koyeb/test/test_get_region_reply.py
deleted file mode 100644
index 7034ddc2..00000000
--- a/koyeb/test/test_get_region_reply.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.get_region_reply import GetRegionReply
-
-
-class TestGetRegionReply(unittest.TestCase):
- """GetRegionReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetRegionReply`
- """
- model = GetRegionReply()
- if include_optional:
- return GetRegionReply(
- region = koyeb.models.region.Region(
- id = '',
- name = '',
- coordinates = [
- ''
- ],
- status = '',
- instances = [
- ''
- ],
- datacenters = [
- ''
- ],
- volumes_enabled = True,
- scope = '', )
- )
- else:
- return GetRegionReply(
- )
- """
-
- def testGetRegionReply(self):
- """Test GetRegionReply"""
- # 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_get_regional_deployment_reply.py b/koyeb/test/test_get_regional_deployment_reply.py
deleted file mode 100644
index c3402ea0..00000000
--- a/koyeb/test/test_get_regional_deployment_reply.py
+++ /dev/null
@@ -1,205 +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.get_regional_deployment_reply import GetRegionalDeploymentReply
-
-
-class TestGetRegionalDeploymentReply(unittest.TestCase):
- """GetRegionalDeploymentReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetRegionalDeploymentReply`
- """
- model = GetRegionalDeploymentReply()
- if include_optional:
- return GetRegionalDeploymentReply(
- regional_deployment = koyeb.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'),
- scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- region = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- messages = [
- ''
- ],
- definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.route.Route(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.port.Port(
- port = 56,
- protocol = '', )
- ],
- env = [
- koyeb.models.env.Env(
- key = '',
- value = '',
- secret = '', )
- ],
- region = '',
- scaling = koyeb.models.scaling.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, ), )
- ], ),
- instance_type = '',
- deployment_group = '',
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.regional_deployment_volume.RegionalDeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ),
- datacenters = [
- ''
- ],
- metadata = koyeb.models.regional_deployment_metadata.RegionalDeploymentMetadata(),
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- role = 'INVALID',
- version = '',
- deployment_group = '',
- deployment_id = '', )
- )
- else:
- return GetRegionalDeploymentReply(
- )
- """
-
- def testGetRegionalDeploymentReply(self):
- """Test GetRegionalDeploymentReply"""
- # 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_get_secret_reply.py b/koyeb/test/test_get_secret_reply.py
deleted file mode 100644
index 48a5f668..00000000
--- a/koyeb/test/test_get_secret_reply.py
+++ /dev/null
@@ -1,86 +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.get_secret_reply import GetSecretReply
-
-
-class TestGetSecretReply(unittest.TestCase):
- """GetSecretReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetSecretReply`
- """
- model = GetSecretReply()
- if include_optional:
- return GetSecretReply(
- secret = koyeb.models.secret.Secret(
- id = '',
- name = '',
- organization_id = '',
- type = 'SIMPLE',
- 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(
- username = '',
- password = '', ),
- private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = '', ),
- digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
- username = '',
- password = '', ),
- github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
- username = '',
- password = '', ),
- gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
- username = '',
- password = '', ),
- gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = '', ),
- azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = '', ),
- database_role_password = koyeb.models.database_role_password.DatabaseRolePassword(
- username = '',
- password = '', ), )
- )
- else:
- return GetSecretReply(
- )
- """
-
- def testGetSecretReply(self):
- """Test GetSecretReply"""
- # 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_get_service_reply.py b/koyeb/test/test_get_service_reply.py
deleted file mode 100644
index 017347eb..00000000
--- a/koyeb/test/test_get_service_reply.py
+++ /dev/null
@@ -1,83 +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.get_service_reply import GetServiceReply
-
-
-class TestGetServiceReply(unittest.TestCase):
- """GetServiceReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetServiceReply`
- """
- model = GetServiceReply()
- if include_optional:
- return GetServiceReply(
- service = koyeb.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'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- name = '',
- type = 'INVALID_TYPE',
- organization_id = '',
- app_id = '',
- status = 'STARTING',
- messages = [
- ''
- ],
- version = '',
- active_deployment_id = '',
- latest_deployment_id = '',
- last_provisioned_deployment_id = '',
- state = koyeb.models.service_state.ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.models.auto_release.AutoRelease(), ), )
- )
- else:
- return GetServiceReply(
- )
- """
-
- def testGetServiceReply(self):
- """Test GetServiceReply"""
- # 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_get_snapshot_reply.py b/koyeb/test/test_get_snapshot_reply.py
deleted file mode 100644
index a2dbbf0d..00000000
--- a/koyeb/test/test_get_snapshot_reply.py
+++ /dev/null
@@ -1,64 +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.get_snapshot_reply import GetSnapshotReply
-
-
-class TestGetSnapshotReply(unittest.TestCase):
- """GetSnapshotReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetSnapshotReply`
- """
- model = GetSnapshotReply()
- if include_optional:
- return GetSnapshotReply(
- snapshot = koyeb.models.snapshot.Snapshot(
- id = '',
- name = '',
- size = 56,
- 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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- parent_volume_id = '',
- region = '',
- status = 'SNAPSHOT_STATUS_INVALID',
- type = 'SNAPSHOT_TYPE_INVALID', )
- )
- else:
- return GetSnapshotReply(
- )
- """
-
- def testGetSnapshotReply(self):
- """Test GetSnapshotReply"""
- # 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_get_user_organization_invitation_reply.py b/koyeb/test/test_get_user_organization_invitation_reply.py
deleted file mode 100644
index f498a070..00000000
--- a/koyeb/test/test_get_user_organization_invitation_reply.py
+++ /dev/null
@@ -1,81 +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.get_user_organization_invitation_reply import (
- GetUserOrganizationInvitationReply,
-)
-
-
-class TestGetUserOrganizationInvitationReply(unittest.TestCase):
- """GetUserOrganizationInvitationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetUserOrganizationInvitationReply`
- """
- model = GetUserOrganizationInvitationReply()
- if include_optional:
- return GetUserOrganizationInvitationReply(
- invitation = koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- )
- else:
- return GetUserOrganizationInvitationReply(
- )
- """
-
- def testGetUserOrganizationInvitationReply(self):
- """Test GetUserOrganizationInvitationReply"""
- # 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_get_user_settings_reply.py b/koyeb/test/test_get_user_settings_reply.py
deleted file mode 100644
index f6e93fdf..00000000
--- a/koyeb/test/test_get_user_settings_reply.py
+++ /dev/null
@@ -1,56 +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.get_user_settings_reply import GetUserSettingsReply
-
-
-class TestGetUserSettingsReply(unittest.TestCase):
- """GetUserSettingsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GetUserSettingsReply`
- """
- model = GetUserSettingsReply()
- if include_optional:
- return GetUserSettingsReply(
- settings = koyeb.models.user_settings.UserSettings(
- id = '',
- user_id = '',
- failed_deployment_email_notification = True, )
- )
- else:
- return GetUserSettingsReply(
- )
- """
-
- def testGetUserSettingsReply(self):
- """Test GetUserSettingsReply"""
- # 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_git_deployment_metadata.py b/koyeb/test/test_git_deployment_metadata.py
deleted file mode 100644
index 85c55b7d..00000000
--- a/koyeb/test/test_git_deployment_metadata.py
+++ /dev/null
@@ -1,57 +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.git_deployment_metadata import GitDeploymentMetadata
-
-
-class TestGitDeploymentMetadata(unittest.TestCase):
- """GitDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- sha = '',
- commit_author = '',
- commit_message = '', )
- )
- else:
- return GitDeploymentMetadata(
- )
- """
-
- def testGitDeploymentMetadata(self):
- """Test GitDeploymentMetadata"""
- # 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_git_env_deployment_metadata.py b/koyeb/test/test_git_env_deployment_metadata.py
deleted file mode 100644
index 15ab5561..00000000
--- a/koyeb/test/test_git_env_deployment_metadata.py
+++ /dev/null
@@ -1,55 +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.git_env_deployment_metadata import GitEnvDeploymentMetadata
-
-
-class TestGitEnvDeploymentMetadata(unittest.TestCase):
- """GitEnvDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GitEnvDeploymentMetadata`
- """
- model = GitEnvDeploymentMetadata()
- if include_optional:
- return GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = ''
- )
- else:
- return GitEnvDeploymentMetadata(
- )
- """
-
- def testGitEnvDeploymentMetadata(self):
- """Test GitEnvDeploymentMetadata"""
- # 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_git_hub_registry_configuration.py b/koyeb/test/test_git_hub_registry_configuration.py
deleted file mode 100644
index 91718876..00000000
--- a/koyeb/test/test_git_hub_registry_configuration.py
+++ /dev/null
@@ -1,54 +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.git_hub_registry_configuration import GitHubRegistryConfiguration
-
-
-class TestGitHubRegistryConfiguration(unittest.TestCase):
- """GitHubRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GitHubRegistryConfiguration`
- """
- model = GitHubRegistryConfiguration()
- if include_optional:
- return GitHubRegistryConfiguration(
- username = '',
- password = ''
- )
- else:
- return GitHubRegistryConfiguration(
- )
- """
-
- def testGitHubRegistryConfiguration(self):
- """Test GitHubRegistryConfiguration"""
- # 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_git_lab_registry_configuration.py b/koyeb/test/test_git_lab_registry_configuration.py
deleted file mode 100644
index d1e4ba8b..00000000
--- a/koyeb/test/test_git_lab_registry_configuration.py
+++ /dev/null
@@ -1,54 +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.git_lab_registry_configuration import GitLabRegistryConfiguration
-
-
-class TestGitLabRegistryConfiguration(unittest.TestCase):
- """GitLabRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GitLabRegistryConfiguration`
- """
- model = GitLabRegistryConfiguration()
- if include_optional:
- return GitLabRegistryConfiguration(
- username = '',
- password = ''
- )
- else:
- return GitLabRegistryConfiguration(
- )
- """
-
- def testGitLabRegistryConfiguration(self):
- """Test GitLabRegistryConfiguration"""
- # 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_git_source.py b/koyeb/test/test_git_source.py
deleted file mode 100644
index 7f5a51bc..00000000
--- a/koyeb/test/test_git_source.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.git_source import GitSource
-
-
-class TestGitSource(unittest.TestCase):
- """GitSource unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GitSource`
- """
- model = GitSource()
- if include_optional:
- return GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ),
- docker = koyeb.models.docker_builder.DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True, )
- )
- else:
- return GitSource(
- )
- """
-
- def testGitSource(self):
- """Test GitSource"""
- # 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_github_installation_reply.py b/koyeb/test/test_github_installation_reply.py
deleted file mode 100644
index a34536b9..00000000
--- a/koyeb/test/test_github_installation_reply.py
+++ /dev/null
@@ -1,56 +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.github_installation_reply import GithubInstallationReply
-
-
-class TestGithubInstallationReply(unittest.TestCase):
- """GithubInstallationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GithubInstallationReply`
- """
- model = GithubInstallationReply()
- if include_optional:
- return GithubInstallationReply(
- app_name = '',
- app_id = '',
- url = '',
- state = ''
- )
- else:
- return GithubInstallationReply(
- )
- """
-
- def testGithubInstallationReply(self):
- """Test GithubInstallationReply"""
- # 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_github_installation_request.py b/koyeb/test/test_github_installation_request.py
deleted file mode 100644
index 5d92a778..00000000
--- a/koyeb/test/test_github_installation_request.py
+++ /dev/null
@@ -1,53 +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.github_installation_request import GithubInstallationRequest
-
-
-class TestGithubInstallationRequest(unittest.TestCase):
- """GithubInstallationRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GithubInstallationRequest`
- """
- model = GithubInstallationRequest()
- if include_optional:
- return GithubInstallationRequest(
- metadata = ''
- )
- else:
- return GithubInstallationRequest(
- )
- """
-
- def testGithubInstallationRequest(self):
- """Test GithubInstallationRequest"""
- # 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_google_protobuf_any.py b/koyeb/test/test_google_protobuf_any.py
deleted file mode 100644
index b8f56080..00000000
--- a/koyeb/test/test_google_protobuf_any.py
+++ /dev/null
@@ -1,53 +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_any import GoogleProtobufAny
-
-
-class TestGoogleProtobufAny(unittest.TestCase):
- """GoogleProtobufAny unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GoogleProtobufAny`
- """
- model = GoogleProtobufAny()
- if include_optional:
- return GoogleProtobufAny(
- type = ''
- )
- else:
- return GoogleProtobufAny(
- )
- """
-
- def testGoogleProtobufAny(self):
- """Test GoogleProtobufAny"""
- # 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_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_google_rpc_status.py b/koyeb/test/test_google_rpc_status.py
deleted file mode 100644
index 4b0719d8..00000000
--- a/koyeb/test/test_google_rpc_status.py
+++ /dev/null
@@ -1,59 +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_rpc_status import GoogleRpcStatus
-
-
-class TestGoogleRpcStatus(unittest.TestCase):
- """GoogleRpcStatus unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `GoogleRpcStatus`
- """
- model = GoogleRpcStatus()
- if include_optional:
- return GoogleRpcStatus(
- code = 56,
- message = '',
- details = [
- {
- 'key' : None
- }
- ]
- )
- else:
- return GoogleRpcStatus(
- )
- """
-
- def testGoogleRpcStatus(self):
- """Test GoogleRpcStatus"""
- # 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_has_unpaid_invoices_reply.py b/koyeb/test/test_has_unpaid_invoices_reply.py
deleted file mode 100644
index c8875b1b..00000000
--- a/koyeb/test/test_has_unpaid_invoices_reply.py
+++ /dev/null
@@ -1,53 +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.has_unpaid_invoices_reply import HasUnpaidInvoicesReply
-
-
-class TestHasUnpaidInvoicesReply(unittest.TestCase):
- """HasUnpaidInvoicesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `HasUnpaidInvoicesReply`
- """
- model = HasUnpaidInvoicesReply()
- if include_optional:
- return HasUnpaidInvoicesReply(
- has_unpaid_invoices = True
- )
- else:
- return HasUnpaidInvoicesReply(
- )
- """
-
- def testHasUnpaidInvoicesReply(self):
- """Test HasUnpaidInvoicesReply"""
- # 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_http_header.py b/koyeb/test/test_http_header.py
deleted file mode 100644
index cf08af81..00000000
--- a/koyeb/test/test_http_header.py
+++ /dev/null
@@ -1,54 +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.http_header import HTTPHeader
-
-
-class TestHTTPHeader(unittest.TestCase):
- """HTTPHeader unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `HTTPHeader`
- """
- model = HTTPHeader()
- if include_optional:
- return HTTPHeader(
- key = '',
- value = ''
- )
- else:
- return HTTPHeader(
- )
- """
-
- def testHTTPHeader(self):
- """Test HTTPHeader"""
- # 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_http_health_check.py b/koyeb/test/test_http_health_check.py
deleted file mode 100644
index 2b1d30cf..00000000
--- a/koyeb/test/test_http_health_check.py
+++ /dev/null
@@ -1,60 +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.http_health_check import HTTPHealthCheck
-
-
-class TestHTTPHealthCheck(unittest.TestCase):
- """HTTPHealthCheck unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `HTTPHealthCheck`
- """
- model = HTTPHealthCheck()
- if include_optional:
- return HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ]
- )
- else:
- return HTTPHealthCheck(
- )
- """
-
- def testHTTPHealthCheck(self):
- """Test HTTPHealthCheck"""
- # 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_instance_availability.py b/koyeb/test/test_instance_availability.py
deleted file mode 100644
index e5b54c65..00000000
--- a/koyeb/test/test_instance_availability.py
+++ /dev/null
@@ -1,57 +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_availability import InstanceAvailability
-
-
-class TestInstanceAvailability(unittest.TestCase):
- """InstanceAvailability unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `InstanceAvailability`
- """
- model = InstanceAvailability()
- if include_optional:
- return InstanceAvailability(
- regions = {
- 'key' : koyeb.models.region_availability.RegionAvailability(
- availability = 'UNKNOWN', )
- },
- availability = 'UNKNOWN'
- )
- else:
- return InstanceAvailability(
- )
- """
-
- def testInstanceAvailability(self):
- """Test InstanceAvailability"""
- # 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_instance_event.py b/koyeb/test/test_instance_event.py
deleted file mode 100644
index 21dda714..00000000
--- a/koyeb/test/test_instance_event.py
+++ /dev/null
@@ -1,59 +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_event import InstanceEvent
-
-
-class TestInstanceEvent(unittest.TestCase):
- """InstanceEvent unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `InstanceEvent`
- """
- model = InstanceEvent()
- if include_optional:
- return 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 = None
- )
- else:
- return InstanceEvent(
- )
- """
-
- def testInstanceEvent(self):
- """Test InstanceEvent"""
- # 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_instance_list_item.py b/koyeb/test/test_instance_list_item.py
deleted file mode 100644
index 94cd9d1f..00000000
--- a/koyeb/test/test_instance_list_item.py
+++ /dev/null
@@ -1,69 +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_list_item import InstanceListItem
-
-
-class TestInstanceListItem(unittest.TestCase):
- """InstanceListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `InstanceListItem`
- """
- model = InstanceListItem()
- if include_optional:
- return 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'),
- organization_id = '',
- app_id = '',
- service_id = '',
- regional_deployment_id = '',
- allocation_id = '',
- type = '',
- replica_index = 56,
- region = '',
- datacenter = '',
- status = 'ALLOCATING',
- messages = [
- ''
- ],
- xyz_deployment_id = ''
- )
- else:
- return InstanceListItem(
- )
- """
-
- def testInstanceListItem(self):
- """Test InstanceListItem"""
- # 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_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_instance_usage.py b/koyeb/test/test_instance_usage.py
deleted file mode 100644
index 16e72794..00000000
--- a/koyeb/test/test_instance_usage.py
+++ /dev/null
@@ -1,53 +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_usage import InstanceUsage
-
-
-class TestInstanceUsage(unittest.TestCase):
- """InstanceUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `InstanceUsage`
- """
- model = InstanceUsage()
- if include_optional:
- return InstanceUsage(
- duration_seconds = 56
- )
- else:
- return InstanceUsage(
- )
- """
-
- def testInstanceUsage(self):
- """Test InstanceUsage"""
- # 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_instances_api.py b/koyeb/test/test_instances_api.py
deleted file mode 100644
index 1ad5cd90..00000000
--- a/koyeb/test/test_instances_api.py
+++ /dev/null
@@ -1,59 +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.instances_api import InstancesApi
-
-
-class TestInstancesApi(unittest.TestCase):
- """InstancesApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = InstancesApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_exec_command(self) -> None:
- """Test case for exec_command
-
- Exec Command
- """
- pass
-
- def test_get_instance(self) -> None:
- """Test case for get_instance
-
- Get Instance
- """
- pass
-
- def test_list_instance_events(self) -> None:
- """Test case for list_instance_events
-
- List Instance events
- """
- pass
-
- def test_list_instances(self) -> None:
- """Test case for list_instances
-
- List Instances
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_instances_summary.py b/koyeb/test/test_instances_summary.py
deleted file mode 100644
index ccec83b0..00000000
--- a/koyeb/test/test_instances_summary.py
+++ /dev/null
@@ -1,56 +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.instances_summary import InstancesSummary
-
-
-class TestInstancesSummary(unittest.TestCase):
- """InstancesSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `InstancesSummary`
- """
- model = InstancesSummary()
- if include_optional:
- return InstancesSummary(
- total = '',
- by_type = {
- 'key' : ''
- }
- )
- else:
- return InstancesSummary(
- )
- """
-
- def testInstancesSummary(self):
- """Test InstancesSummary"""
- # 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_intercom_api.py b/koyeb/test/test_intercom_api.py
deleted file mode 100644
index cf14be22..00000000
--- a/koyeb/test/test_intercom_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.intercom_api import IntercomApi
-
-
-class TestIntercomApi(unittest.TestCase):
- """IntercomApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = IntercomApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_intercom_profile(self) -> None:
- """Test case for get_intercom_profile
-
- Get intercom profile
- """
- pass
-
-
-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_invite_user_request.py b/koyeb/test/test_invite_user_request.py
deleted file mode 100644
index 1d933a84..00000000
--- a/koyeb/test/test_invite_user_request.py
+++ /dev/null
@@ -1,55 +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.invite_user_request import InviteUserRequest
-
-
-class TestInviteUserRequest(unittest.TestCase):
- """InviteUserRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `InviteUserRequest`
- """
- model = InviteUserRequest()
- if include_optional:
- return InviteUserRequest(
- email = '',
- name = '',
- message = ''
- )
- else:
- return InviteUserRequest(
- )
- """
-
- def testInviteUserRequest(self):
- """Test InviteUserRequest"""
- # 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_kgitproxy_branch.py b/koyeb/test/test_kgitproxy_branch.py
deleted file mode 100644
index 601af212..00000000
--- a/koyeb/test/test_kgitproxy_branch.py
+++ /dev/null
@@ -1,59 +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_branch import KgitproxyBranch
-
-
-class TestKgitproxyBranch(unittest.TestCase):
- """KgitproxyBranch unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KgitproxyBranch`
- """
- model = KgitproxyBranch()
- if include_optional:
- return KgitproxyBranch(
- id = '',
- organization_id = '',
- repository_id = '',
- name = '',
- is_default = True,
- is_protected = True,
- provider = 'INVALID_PROVIDER'
- )
- else:
- return KgitproxyBranch(
- )
- """
-
- def testKgitproxyBranch(self):
- """Test KgitproxyBranch"""
- # 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_kgitproxy_git_hub_repository.py b/koyeb/test/test_kgitproxy_git_hub_repository.py
deleted file mode 100644
index 8336e990..00000000
--- a/koyeb/test/test_kgitproxy_git_hub_repository.py
+++ /dev/null
@@ -1,53 +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_git_hub_repository import KgitproxyGitHubRepository
-
-
-class TestKgitproxyGitHubRepository(unittest.TestCase):
- """KgitproxyGitHubRepository unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KgitproxyGitHubRepository`
- """
- model = KgitproxyGitHubRepository()
- if include_optional:
- return KgitproxyGitHubRepository(
- github_id = ''
- )
- else:
- return KgitproxyGitHubRepository(
- )
- """
-
- def testKgitproxyGitHubRepository(self):
- """Test KgitproxyGitHubRepository"""
- # 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_kgitproxy_github_installation_status.py b/koyeb/test/test_kgitproxy_github_installation_status.py
deleted file mode 100644
index dc4cf153..00000000
--- a/koyeb/test/test_kgitproxy_github_installation_status.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.kgitproxy_github_installation_status import (
- KgitproxyGithubInstallationStatus,
-)
-
-
-class TestKgitproxyGithubInstallationStatus(unittest.TestCase):
- """KgitproxyGithubInstallationStatus unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testKgitproxyGithubInstallationStatus(self):
- """Test KgitproxyGithubInstallationStatus"""
- # inst = KgitproxyGithubInstallationStatus()
-
-
-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_list_branches_reply.py b/koyeb/test/test_kgitproxy_list_branches_reply.py
deleted file mode 100644
index d389c085..00000000
--- a/koyeb/test/test_kgitproxy_list_branches_reply.py
+++ /dev/null
@@ -1,65 +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_list_branches_reply import KgitproxyListBranchesReply
-
-
-class TestKgitproxyListBranchesReply(unittest.TestCase):
- """KgitproxyListBranchesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KgitproxyListBranchesReply`
- """
- model = KgitproxyListBranchesReply()
- if include_optional:
- return KgitproxyListBranchesReply(
- branches = [
- koyeb.models.kgitproxy/branch.kgitproxy.Branch(
- id = '',
- organization_id = '',
- repository_id = '',
- name = '',
- is_default = True,
- is_protected = True,
- provider = 'INVALID_PROVIDER', )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return KgitproxyListBranchesReply(
- )
- """
-
- def testKgitproxyListBranchesReply(self):
- """Test KgitproxyListBranchesReply"""
- # 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_kgitproxy_list_repositories_reply.py b/koyeb/test/test_kgitproxy_list_repositories_reply.py
deleted file mode 100644
index 6f51bf34..00000000
--- a/koyeb/test/test_kgitproxy_list_repositories_reply.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.kgitproxy_list_repositories_reply import (
- KgitproxyListRepositoriesReply,
-)
-
-
-class TestKgitproxyListRepositoriesReply(unittest.TestCase):
- """KgitproxyListRepositoriesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KgitproxyListRepositoriesReply`
- """
- model = KgitproxyListRepositoriesReply()
- if include_optional:
- return KgitproxyListRepositoriesReply(
- repositories = [
- koyeb.models.kgitproxy/repository.kgitproxy.Repository(
- id = '',
- organization_id = '',
- name = '',
- url = '',
- description = '',
- is_private = True,
- is_disabled = True,
- 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_id = '', ), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return KgitproxyListRepositoriesReply(
- )
- """
-
- def testKgitproxyListRepositoriesReply(self):
- """Test KgitproxyListRepositoriesReply"""
- # 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_kgitproxy_repository.py b/koyeb/test/test_kgitproxy_repository.py
deleted file mode 100644
index 637065f4..00000000
--- a/koyeb/test/test_kgitproxy_repository.py
+++ /dev/null
@@ -1,64 +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 import KgitproxyRepository
-
-
-class TestKgitproxyRepository(unittest.TestCase):
- """KgitproxyRepository unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KgitproxyRepository`
- """
- model = KgitproxyRepository()
- if include_optional:
- return KgitproxyRepository(
- id = '',
- organization_id = '',
- name = '',
- url = '',
- description = '',
- is_private = True,
- is_disabled = True,
- 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_id = '', )
- )
- else:
- return KgitproxyRepository(
- )
- """
-
- def testKgitproxyRepository(self):
- """Test KgitproxyRepository"""
- # 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_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_ksearch_app.py b/koyeb/test/test_ksearch_app.py
deleted file mode 100644
index f18bdbba..00000000
--- a/koyeb/test/test_ksearch_app.py
+++ /dev/null
@@ -1,55 +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.ksearch_app import KsearchApp
-
-
-class TestKsearchApp(unittest.TestCase):
- """KsearchApp unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchApp`
- """
- model = KsearchApp()
- if include_optional:
- return KsearchApp(
- id = '',
- organization_id = '',
- name = ''
- )
- else:
- return KsearchApp(
- )
- """
-
- def testKsearchApp(self):
- """Test KsearchApp"""
- # 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_ksearch_global_deployment.py b/koyeb/test/test_ksearch_global_deployment.py
deleted file mode 100644
index 0a68a48c..00000000
--- a/koyeb/test/test_ksearch_global_deployment.py
+++ /dev/null
@@ -1,56 +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.ksearch_global_deployment import KsearchGlobalDeployment
-
-
-class TestKsearchGlobalDeployment(unittest.TestCase):
- """KsearchGlobalDeployment unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchGlobalDeployment`
- """
- model = KsearchGlobalDeployment()
- if include_optional:
- return KsearchGlobalDeployment(
- id = '',
- organization_id = '',
- app_id = '',
- service_id = ''
- )
- else:
- return KsearchGlobalDeployment(
- )
- """
-
- def testKsearchGlobalDeployment(self):
- """Test KsearchGlobalDeployment"""
- # 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_ksearch_instance.py b/koyeb/test/test_ksearch_instance.py
deleted file mode 100644
index a83b04bb..00000000
--- a/koyeb/test/test_ksearch_instance.py
+++ /dev/null
@@ -1,57 +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.ksearch_instance import KsearchInstance
-
-
-class TestKsearchInstance(unittest.TestCase):
- """KsearchInstance unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchInstance`
- """
- model = KsearchInstance()
- if include_optional:
- return KsearchInstance(
- id = '',
- organization_id = '',
- app_id = '',
- service_id = '',
- allocation_id = ''
- )
- else:
- return KsearchInstance(
- )
- """
-
- def testKsearchInstance(self):
- """Test KsearchInstance"""
- # 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_ksearch_organization.py b/koyeb/test/test_ksearch_organization.py
deleted file mode 100644
index ad79324e..00000000
--- a/koyeb/test/test_ksearch_organization.py
+++ /dev/null
@@ -1,54 +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.ksearch_organization import KsearchOrganization
-
-
-class TestKsearchOrganization(unittest.TestCase):
- """KsearchOrganization unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchOrganization`
- """
- model = KsearchOrganization()
- if include_optional:
- return KsearchOrganization(
- id = '',
- name = ''
- )
- else:
- return KsearchOrganization(
- )
- """
-
- def testKsearchOrganization(self):
- """Test KsearchOrganization"""
- # 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_ksearch_regional_deployment.py b/koyeb/test/test_ksearch_regional_deployment.py
deleted file mode 100644
index ba3d82ad..00000000
--- a/koyeb/test/test_ksearch_regional_deployment.py
+++ /dev/null
@@ -1,57 +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.ksearch_regional_deployment import KsearchRegionalDeployment
-
-
-class TestKsearchRegionalDeployment(unittest.TestCase):
- """KsearchRegionalDeployment unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchRegionalDeployment`
- """
- model = KsearchRegionalDeployment()
- if include_optional:
- return KsearchRegionalDeployment(
- id = '',
- organization_id = '',
- app_id = '',
- service_id = '',
- region = ''
- )
- else:
- return KsearchRegionalDeployment(
- )
- """
-
- def testKsearchRegionalDeployment(self):
- """Test KsearchRegionalDeployment"""
- # 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_ksearch_search_reply.py b/koyeb/test/test_ksearch_search_reply.py
deleted file mode 100644
index 49227d49..00000000
--- a/koyeb/test/test_ksearch_search_reply.py
+++ /dev/null
@@ -1,100 +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.ksearch_search_reply import KsearchSearchReply
-
-
-class TestKsearchSearchReply(unittest.TestCase):
- """KsearchSearchReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchSearchReply`
- """
- model = KsearchSearchReply()
- if include_optional:
- return KsearchSearchReply(
- organizations = [
- koyeb.models.ksearch/organization.ksearch.Organization(
- id = '',
- name = '', )
- ],
- users = [
- koyeb.models.ksearch/user.ksearch.User(
- id = '',
- email = '',
- name = '',
- github_user = '', )
- ],
- apps = [
- koyeb.models.ksearch/app.ksearch.App(
- id = '',
- organization_id = '',
- name = '', )
- ],
- services = [
- koyeb.models.ksearch/service.ksearch.Service(
- id = '',
- organization_id = '',
- app_id = '',
- name = '', )
- ],
- global_deployments = [
- koyeb.models.ksearch/global_deployment.ksearch.GlobalDeployment(
- id = '',
- organization_id = '',
- app_id = '',
- service_id = '', )
- ],
- regional_deployments = [
- koyeb.models.ksearch/regional_deployment.ksearch.RegionalDeployment(
- id = '',
- organization_id = '',
- app_id = '',
- service_id = '',
- region = '', )
- ],
- instances = [
- koyeb.models.ksearch/instance.ksearch.Instance(
- id = '',
- organization_id = '',
- app_id = '',
- service_id = '',
- allocation_id = '', )
- ]
- )
- else:
- return KsearchSearchReply(
- )
- """
-
- def testKsearchSearchReply(self):
- """Test KsearchSearchReply"""
- # 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_ksearch_service.py b/koyeb/test/test_ksearch_service.py
deleted file mode 100644
index 3c6a0364..00000000
--- a/koyeb/test/test_ksearch_service.py
+++ /dev/null
@@ -1,56 +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.ksearch_service import KsearchService
-
-
-class TestKsearchService(unittest.TestCase):
- """KsearchService unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchService`
- """
- model = KsearchService()
- if include_optional:
- return KsearchService(
- id = '',
- organization_id = '',
- app_id = '',
- name = ''
- )
- else:
- return KsearchService(
- )
- """
-
- def testKsearchService(self):
- """Test KsearchService"""
- # 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_ksearch_user.py b/koyeb/test/test_ksearch_user.py
deleted file mode 100644
index dda0f627..00000000
--- a/koyeb/test/test_ksearch_user.py
+++ /dev/null
@@ -1,56 +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.ksearch_user import KsearchUser
-
-
-class TestKsearchUser(unittest.TestCase):
- """KsearchUser unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `KsearchUser`
- """
- model = KsearchUser()
- if include_optional:
- return KsearchUser(
- id = '',
- email = '',
- name = '',
- github_user = ''
- )
- else:
- return KsearchUser(
- )
- """
-
- def testKsearchUser(self):
- """Test KsearchUser"""
- # 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_list_app_events_reply.py b/koyeb/test/test_list_app_events_reply.py
deleted file mode 100644
index 54ecc175..00000000
--- a/koyeb/test/test_list_app_events_reply.py
+++ /dev/null
@@ -1,66 +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.list_app_events_reply import ListAppEventsReply
-
-
-class TestListAppEventsReply(unittest.TestCase):
- """ListAppEventsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListAppEventsReply`
- """
- model = ListAppEventsReply()
- if include_optional:
- return ListAppEventsReply(
- events = [
- koyeb.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(), )
- ],
- limit = 56,
- offset = 56,
- order = '',
- has_next = True
- )
- else:
- return ListAppEventsReply(
- )
- """
-
- def testListAppEventsReply(self):
- """Test ListAppEventsReply"""
- # 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_list_apps_reply.py b/koyeb/test/test_list_apps_reply.py
deleted file mode 100644
index 1d1c3b05..00000000
--- a/koyeb/test/test_list_apps_reply.py
+++ /dev/null
@@ -1,89 +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.list_apps_reply import ListAppsReply
-
-
-class TestListAppsReply(unittest.TestCase):
- """ListAppsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListAppsReply`
- """
- model = ListAppsReply()
- if include_optional:
- return ListAppsReply(
- apps = [
- koyeb.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(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, ), )
- ],
- status = 'STARTING',
- messages = [
- ''
- ], )
- ],
- limit = 56,
- offset = 56,
- count = 56,
- has_next = True
- )
- else:
- return ListAppsReply(
- )
- """
-
- def testListAppsReply(self):
- """Test ListAppsReply"""
- # 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_list_catalog_instances_reply.py b/koyeb/test/test_list_catalog_instances_reply.py
deleted file mode 100644
index 7e06213a..00000000
--- a/koyeb/test/test_list_catalog_instances_reply.py
+++ /dev/null
@@ -1,89 +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.list_catalog_instances_reply import ListCatalogInstancesReply
-
-
-class TestListCatalogInstancesReply(unittest.TestCase):
- """ListCatalogInstancesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListCatalogInstancesReply`
- """
- model = ListCatalogInstancesReply()
- if include_optional:
- return ListCatalogInstancesReply(
- instances = [
- koyeb.models.catalog_instance_list_item.CatalogInstanceListItem(
- id = '',
- description = '',
- vcpu = 56,
- memory = '',
- disk = '',
- price_per_second = '',
- price_hourly = '',
- price_monthly = '',
- regions = [
- ''
- ],
- status = '',
- require_plan = [
- ''
- ],
- vcpu_shares = 1.337,
- display_name = '',
- aliases = [
- ''
- ],
- type = '',
- gpu = koyeb.models.catalog_gpu_details.CatalogGPUDetails(
- count = 56,
- brand = '',
- memory = '',
- name = '', ),
- service_types = [
- ''
- ],
- volumes_enabled = True,
- light_sleep_enabled = True, )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListCatalogInstancesReply(
- )
- """
-
- def testListCatalogInstancesReply(self):
- """Test ListCatalogInstancesReply"""
- # 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_list_credentials_reply.py b/koyeb/test/test_list_credentials_reply.py
deleted file mode 100644
index 6380526a..00000000
--- a/koyeb/test/test_list_credentials_reply.py
+++ /dev/null
@@ -1,68 +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.list_credentials_reply import ListCredentialsReply
-
-
-class TestListCredentialsReply(unittest.TestCase):
- """ListCredentialsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListCredentialsReply`
- """
- model = ListCredentialsReply()
- if include_optional:
- return ListCredentialsReply(
- credentials = [
- koyeb.models.credential.Credential(
- id = '',
- type = 'INVALID',
- name = '',
- token = '',
- description = '',
- user_id = '',
- 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'),
- expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListCredentialsReply(
- )
- """
-
- def testListCredentialsReply(self):
- """Test ListCredentialsReply"""
- # 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_list_datacenters_reply.py b/koyeb/test/test_list_datacenters_reply.py
deleted file mode 100644
index 78187717f..00000000
--- a/koyeb/test/test_list_datacenters_reply.py
+++ /dev/null
@@ -1,65 +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.list_datacenters_reply import ListDatacentersReply
-
-
-class TestListDatacentersReply(unittest.TestCase):
- """ListDatacentersReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListDatacentersReply`
- """
- model = ListDatacentersReply()
- if include_optional:
- return ListDatacentersReply(
- datacenters = [
- koyeb.models.datacenter_list_item.DatacenterListItem(
- id = '',
- region_id = '',
- domain = '',
- coordinates = [
- ''
- ],
- use_gpu = True,
- regions = [
- ''
- ], )
- ]
- )
- else:
- return ListDatacentersReply(
- )
- """
-
- def testListDatacentersReply(self):
- """Test ListDatacentersReply"""
- # 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_list_deployment_events_reply.py b/koyeb/test/test_list_deployment_events_reply.py
deleted file mode 100644
index 79d416e2..00000000
--- a/koyeb/test/test_list_deployment_events_reply.py
+++ /dev/null
@@ -1,66 +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.list_deployment_events_reply import ListDeploymentEventsReply
-
-
-class TestListDeploymentEventsReply(unittest.TestCase):
- """ListDeploymentEventsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListDeploymentEventsReply`
- """
- model = ListDeploymentEventsReply()
- if include_optional:
- return ListDeploymentEventsReply(
- events = [
- koyeb.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(), )
- ],
- limit = 56,
- offset = 56,
- order = '',
- has_next = True
- )
- else:
- return ListDeploymentEventsReply(
- )
- """
-
- def testListDeploymentEventsReply(self):
- """Test ListDeploymentEventsReply"""
- # 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_list_deployments_reply.py b/koyeb/test/test_list_deployments_reply.py
deleted file mode 100644
index 41b0b805..00000000
--- a/koyeb/test/test_list_deployments_reply.py
+++ /dev/null
@@ -1,229 +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.list_deployments_reply import ListDeploymentsReply
-
-
-class TestListDeploymentsReply(unittest.TestCase):
- """ListDeploymentsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListDeploymentsReply`
- """
- model = ListDeploymentsReply()
- if include_optional:
- return ListDeploymentsReply(
- deployments = [
- koyeb.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'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- metadata = koyeb.models.deployment_metadata.DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ], ),
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56, )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ), ),
- messages = [
- ''
- ],
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(),
- version = '',
- deployment_group = '', )
- ],
- limit = 56,
- offset = 56,
- count = 56,
- has_next = True
- )
- else:
- return ListDeploymentsReply(
- )
- """
-
- def testListDeploymentsReply(self):
- """Test ListDeploymentsReply"""
- # 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_list_domains_reply.py b/koyeb/test/test_list_domains_reply.py
deleted file mode 100644
index 0cefc59d..00000000
--- a/koyeb/test/test_list_domains_reply.py
+++ /dev/null
@@ -1,76 +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.list_domains_reply import ListDomainsReply
-
-
-class TestListDomainsReply(unittest.TestCase):
- """ListDomainsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListDomainsReply`
- """
- model = ListDomainsReply()
- if include_optional:
- return ListDomainsReply(
- domains = [
- koyeb.models.domain.Domain(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, ), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListDomainsReply(
- )
- """
-
- def testListDomainsReply(self):
- """Test ListDomainsReply"""
- # 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_list_instance_events_reply.py b/koyeb/test/test_list_instance_events_reply.py
deleted file mode 100644
index c22063be..00000000
--- a/koyeb/test/test_list_instance_events_reply.py
+++ /dev/null
@@ -1,66 +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.list_instance_events_reply import ListInstanceEventsReply
-
-
-class TestListInstanceEventsReply(unittest.TestCase):
- """ListInstanceEventsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListInstanceEventsReply`
- """
- model = ListInstanceEventsReply()
- if include_optional:
- return ListInstanceEventsReply(
- events = [
- koyeb.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(), )
- ],
- limit = 56,
- offset = 56,
- order = '',
- has_next = True
- )
- else:
- return ListInstanceEventsReply(
- )
- """
-
- def testListInstanceEventsReply(self):
- """Test ListInstanceEventsReply"""
- # 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_list_instances_reply.py b/koyeb/test/test_list_instances_reply.py
deleted file mode 100644
index 5b311da9..00000000
--- a/koyeb/test/test_list_instances_reply.py
+++ /dev/null
@@ -1,76 +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.list_instances_reply import ListInstancesReply
-
-
-class TestListInstancesReply(unittest.TestCase):
- """ListInstancesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListInstancesReply`
- """
- model = ListInstancesReply()
- if include_optional:
- return ListInstancesReply(
- instances = [
- koyeb.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'),
- organization_id = '',
- app_id = '',
- service_id = '',
- regional_deployment_id = '',
- allocation_id = '',
- type = '',
- replica_index = 56,
- region = '',
- datacenter = '',
- status = 'ALLOCATING',
- messages = [
- ''
- ],
- xyz_deployment_id = '', )
- ],
- limit = 56,
- offset = 56,
- count = 56,
- order = ''
- )
- else:
- return ListInstancesReply(
- )
- """
-
- def testListInstancesReply(self):
- """Test ListInstancesReply"""
- # 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_list_organization_invitations_reply.py b/koyeb/test/test_list_organization_invitations_reply.py
deleted file mode 100644
index 883b60a5..00000000
--- a/koyeb/test/test_list_organization_invitations_reply.py
+++ /dev/null
@@ -1,86 +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.list_organization_invitations_reply import (
- ListOrganizationInvitationsReply,
-)
-
-
-class TestListOrganizationInvitationsReply(unittest.TestCase):
- """ListOrganizationInvitationsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListOrganizationInvitationsReply`
- """
- model = ListOrganizationInvitationsReply()
- if include_optional:
- return ListOrganizationInvitationsReply(
- invitations = [
- koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListOrganizationInvitationsReply(
- )
- """
-
- def testListOrganizationInvitationsReply(self):
- """Test ListOrganizationInvitationsReply"""
- # 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_list_organization_members_reply.py b/koyeb/test/test_list_organization_members_reply.py
deleted file mode 100644
index e706599d..00000000
--- a/koyeb/test/test_list_organization_members_reply.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.list_organization_members_reply import ListOrganizationMembersReply
-
-
-class TestListOrganizationMembersReply(unittest.TestCase):
- """ListOrganizationMembersReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListOrganizationMembersReply`
- """
- model = ListOrganizationMembersReply()
- if include_optional:
- return ListOrganizationMembersReply(
- members = [
- koyeb.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(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- organization = koyeb.models.public_organization.PublicOrganization(
- id = '',
- name = '',
- plan = 'hobby', ), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListOrganizationMembersReply(
- )
- """
-
- def testListOrganizationMembersReply(self):
- """Test ListOrganizationMembersReply"""
- # 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_list_persistent_volume_events_reply.py b/koyeb/test/test_list_persistent_volume_events_reply.py
deleted file mode 100644
index d67a881f..00000000
--- a/koyeb/test/test_list_persistent_volume_events_reply.py
+++ /dev/null
@@ -1,68 +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.list_persistent_volume_events_reply import (
- ListPersistentVolumeEventsReply,
-)
-
-
-class TestListPersistentVolumeEventsReply(unittest.TestCase):
- """ListPersistentVolumeEventsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListPersistentVolumeEventsReply`
- """
- model = ListPersistentVolumeEventsReply()
- if include_optional:
- return ListPersistentVolumeEventsReply(
- events = [
- koyeb.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(), )
- ],
- limit = 56,
- offset = 56,
- order = '',
- has_next = True
- )
- else:
- return ListPersistentVolumeEventsReply(
- )
- """
-
- def testListPersistentVolumeEventsReply(self):
- """Test ListPersistentVolumeEventsReply"""
- # 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_list_persistent_volumes_reply.py b/koyeb/test/test_list_persistent_volumes_reply.py
deleted file mode 100644
index c204d3db..00000000
--- a/koyeb/test/test_list_persistent_volumes_reply.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.list_persistent_volumes_reply import ListPersistentVolumesReply
-
-
-class TestListPersistentVolumesReply(unittest.TestCase):
- """ListPersistentVolumesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- id = '',
- name = '',
- snapshot_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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- service_id = '',
- region = '',
- read_only = True,
- max_size = 56,
- cur_size = 56,
- status = 'PERSISTENT_VOLUME_STATUS_INVALID',
- backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
- ],
- limit = 56,
- offset = 56,
- has_next = True
- )
- else:
- return ListPersistentVolumesReply(
- )
- """
-
- def testListPersistentVolumesReply(self):
- """Test ListPersistentVolumesReply"""
- # 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_list_regional_deployment_events_reply.py b/koyeb/test/test_list_regional_deployment_events_reply.py
deleted file mode 100644
index 001ba948..00000000
--- a/koyeb/test/test_list_regional_deployment_events_reply.py
+++ /dev/null
@@ -1,68 +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.list_regional_deployment_events_reply import (
- ListRegionalDeploymentEventsReply,
-)
-
-
-class TestListRegionalDeploymentEventsReply(unittest.TestCase):
- """ListRegionalDeploymentEventsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListRegionalDeploymentEventsReply`
- """
- model = ListRegionalDeploymentEventsReply()
- if include_optional:
- return ListRegionalDeploymentEventsReply(
- events = [
- koyeb.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(), )
- ],
- limit = 56,
- offset = 56,
- order = '',
- has_next = True
- )
- else:
- return ListRegionalDeploymentEventsReply(
- )
- """
-
- def testListRegionalDeploymentEventsReply(self):
- """Test ListRegionalDeploymentEventsReply"""
- # 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_list_regional_deployments_reply.py b/koyeb/test/test_list_regional_deployments_reply.py
deleted file mode 100644
index 55ad0a7a..00000000
--- a/koyeb/test/test_list_regional_deployments_reply.py
+++ /dev/null
@@ -1,168 +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.list_regional_deployments_reply import ListRegionalDeploymentsReply
-
-
-class TestListRegionalDeploymentsReply(unittest.TestCase):
- """ListRegionalDeploymentsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListRegionalDeploymentsReply`
- """
- model = ListRegionalDeploymentsReply()
- if include_optional:
- return ListRegionalDeploymentsReply(
- regional_deployments = [
- koyeb.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'),
- region = '',
- status = 'PENDING',
- messages = [
- ''
- ],
- definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.route.Route(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.port.Port(
- port = 56,
- protocol = '', )
- ],
- env = [
- koyeb.models.env.Env(
- key = '',
- value = '',
- secret = '', )
- ],
- region = '',
- scaling = koyeb.models.scaling.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, ), )
- ], ),
- instance_type = '',
- deployment_group = '',
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.regional_deployment_volume.RegionalDeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ), )
- ],
- limit = 56,
- offset = 56,
- count = 56,
- has_next = True
- )
- else:
- return ListRegionalDeploymentsReply(
- )
- """
-
- def testListRegionalDeploymentsReply(self):
- """Test ListRegionalDeploymentsReply"""
- # 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_list_regions_reply.py b/koyeb/test/test_list_regions_reply.py
deleted file mode 100644
index 80799526..00000000
--- a/koyeb/test/test_list_regions_reply.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.list_regions_reply import ListRegionsReply
-
-
-class TestListRegionsReply(unittest.TestCase):
- """ListRegionsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListRegionsReply`
- """
- model = ListRegionsReply()
- if include_optional:
- return ListRegionsReply(
- regions = [
- koyeb.models.region_list_item.RegionListItem(
- id = '',
- name = '',
- coordinates = [
- ''
- ],
- status = '',
- instances = [
- ''
- ],
- datacenters = [
- ''
- ],
- volumes_enabled = True,
- scope = '', )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListRegionsReply(
- )
- """
-
- def testListRegionsReply(self):
- """Test ListRegionsReply"""
- # 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_list_secrets_reply.py b/koyeb/test/test_list_secrets_reply.py
deleted file mode 100644
index 128ad427..00000000
--- a/koyeb/test/test_list_secrets_reply.py
+++ /dev/null
@@ -1,91 +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.list_secrets_reply import ListSecretsReply
-
-
-class TestListSecretsReply(unittest.TestCase):
- """ListSecretsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListSecretsReply`
- """
- model = ListSecretsReply()
- if include_optional:
- return ListSecretsReply(
- secrets = [
- koyeb.models.secret.Secret(
- id = '',
- name = '',
- organization_id = '',
- type = 'SIMPLE',
- 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(
- username = '',
- password = '', ),
- private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = '', ),
- digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
- username = '',
- password = '', ),
- github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
- username = '',
- password = '', ),
- gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
- username = '',
- password = '', ),
- gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = '', ),
- azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = '', ),
- database_role_password = koyeb.models.database_role_password.DatabaseRolePassword(
- username = '',
- password = '', ), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListSecretsReply(
- )
- """
-
- def testListSecretsReply(self):
- """Test ListSecretsReply"""
- # 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_list_service_events_reply.py b/koyeb/test/test_list_service_events_reply.py
deleted file mode 100644
index c80d96b3..00000000
--- a/koyeb/test/test_list_service_events_reply.py
+++ /dev/null
@@ -1,66 +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.list_service_events_reply import ListServiceEventsReply
-
-
-class TestListServiceEventsReply(unittest.TestCase):
- """ListServiceEventsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListServiceEventsReply`
- """
- model = ListServiceEventsReply()
- if include_optional:
- return ListServiceEventsReply(
- events = [
- koyeb.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(), )
- ],
- limit = 56,
- offset = 56,
- order = '',
- has_next = True
- )
- else:
- return ListServiceEventsReply(
- )
- """
-
- def testListServiceEventsReply(self):
- """Test ListServiceEventsReply"""
- # 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_list_services_reply.py b/koyeb/test/test_list_services_reply.py
deleted file mode 100644
index b44ab617..00000000
--- a/koyeb/test/test_list_services_reply.py
+++ /dev/null
@@ -1,83 +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.list_services_reply import ListServicesReply
-
-
-class TestListServicesReply(unittest.TestCase):
- """ListServicesReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListServicesReply`
- """
- model = ListServicesReply()
- if include_optional:
- return ListServicesReply(
- services = [
- koyeb.models.service_list_item.ServiceListItem(
- id = '',
- name = '',
- type = 'INVALID_TYPE',
- organization_id = '',
- app_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'),
- status = 'STARTING',
- messages = [
- ''
- ],
- version = '',
- state = koyeb.models.service_state.ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.models.auto_release.AutoRelease(), ),
- active_deployment_id = '',
- latest_deployment_id = '', )
- ],
- limit = 56,
- offset = 56,
- count = 56,
- has_next = True
- )
- else:
- return ListServicesReply(
- )
- """
-
- def testListServicesReply(self):
- """Test ListServicesReply"""
- # 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_list_snapshots_reply.py b/koyeb/test/test_list_snapshots_reply.py
deleted file mode 100644
index 12bfdf0d..00000000
--- a/koyeb/test/test_list_snapshots_reply.py
+++ /dev/null
@@ -1,69 +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.list_snapshots_reply import ListSnapshotsReply
-
-
-class TestListSnapshotsReply(unittest.TestCase):
- """ListSnapshotsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListSnapshotsReply`
- """
- model = ListSnapshotsReply()
- if include_optional:
- return ListSnapshotsReply(
- snapshots = [
- koyeb.models.snapshot.Snapshot(
- id = '',
- name = '',
- size = 56,
- 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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- parent_volume_id = '',
- region = '',
- status = 'SNAPSHOT_STATUS_INVALID',
- type = 'SNAPSHOT_TYPE_INVALID', )
- ],
- limit = 56,
- offset = 56,
- has_next = True
- )
- else:
- return ListSnapshotsReply(
- )
- """
-
- def testListSnapshotsReply(self):
- """Test ListSnapshotsReply"""
- # 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_list_usage_reply.py b/koyeb/test/test_list_usage_reply.py
deleted file mode 100644
index f0ffc24b..00000000
--- a/koyeb/test/test_list_usage_reply.py
+++ /dev/null
@@ -1,61 +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.list_usage_reply import ListUsageReply
-
-
-class TestListUsageReply(unittest.TestCase):
- """ListUsageReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListUsageReply`
- """
- model = ListUsageReply()
- if include_optional:
- return ListUsageReply(
- usage = koyeb.models.catalog_usage.CatalogUsage(
- instances = {
- 'key' : koyeb.models.instance_availability.InstanceAvailability(
- regions = {
- 'key' : koyeb.models.region_availability.RegionAvailability(
- availability = 'UNKNOWN', )
- },
- availability = 'UNKNOWN', )
- }, )
- )
- else:
- return ListUsageReply(
- )
- """
-
- def testListUsageReply(self):
- """Test ListUsageReply"""
- # 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_list_user_organization_invitations_reply.py b/koyeb/test/test_list_user_organization_invitations_reply.py
deleted file mode 100644
index 088ab6f8..00000000
--- a/koyeb/test/test_list_user_organization_invitations_reply.py
+++ /dev/null
@@ -1,86 +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.list_user_organization_invitations_reply import (
- ListUserOrganizationInvitationsReply,
-)
-
-
-class TestListUserOrganizationInvitationsReply(unittest.TestCase):
- """ListUserOrganizationInvitationsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ListUserOrganizationInvitationsReply`
- """
- model = ListUserOrganizationInvitationsReply()
- if include_optional:
- return ListUserOrganizationInvitationsReply(
- invitations = [
- koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- ],
- limit = 56,
- offset = 56,
- count = 56
- )
- else:
- return ListUserOrganizationInvitationsReply(
- )
- """
-
- def testListUserOrganizationInvitationsReply(self):
- """Test ListUserOrganizationInvitationsReply"""
- # 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_log_entry.py b/koyeb/test/test_log_entry.py
deleted file mode 100644
index b9e611ab..00000000
--- a/koyeb/test/test_log_entry.py
+++ /dev/null
@@ -1,55 +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.log_entry import LogEntry
-
-
-class TestLogEntry(unittest.TestCase):
- """LogEntry unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `LogEntry`
- """
- model = LogEntry()
- if include_optional:
- return LogEntry(
- msg = '',
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- labels = None
- )
- else:
- return LogEntry(
- )
- """
-
- def testLogEntry(self):
- """Test LogEntry"""
- # 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_login_method_reply.py b/koyeb/test/test_login_method_reply.py
deleted file mode 100644
index bd76454f..00000000
--- a/koyeb/test/test_login_method_reply.py
+++ /dev/null
@@ -1,53 +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 import LoginMethodReply
-
-
-class TestLoginMethodReply(unittest.TestCase):
- """LoginMethodReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `LoginMethodReply`
- """
- model = LoginMethodReply()
- if include_optional:
- return LoginMethodReply(
- method = 'KOYEB'
- )
- else:
- return LoginMethodReply(
- )
- """
-
- def testLoginMethodReply(self):
- """Test LoginMethodReply"""
- # 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_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_login_reply.py b/koyeb/test/test_login_reply.py
deleted file mode 100644
index 5d163f7c..00000000
--- a/koyeb/test/test_login_reply.py
+++ /dev/null
@@ -1,53 +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_reply import LoginReply
-
-
-class TestLoginReply(unittest.TestCase):
- """LoginReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `LoginReply`
- """
- model = LoginReply()
- if include_optional:
- return LoginReply(
- token = {id=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..., expires=2022-09-08T14:00:00Z, user_id=996d7822-6b58-11e9-956f-32001b70f000, organization_id=9f33b2c6-6b58-11e9-883c-32001b70f000}
- )
- else:
- return LoginReply(
- )
- """
-
- def testLoginReply(self):
- """Test LoginReply"""
- # 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_login_request.py b/koyeb/test/test_login_request.py
deleted file mode 100644
index 2a2635d8..00000000
--- a/koyeb/test/test_login_request.py
+++ /dev/null
@@ -1,55 +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_request import LoginRequest
-
-
-class TestLoginRequest(unittest.TestCase):
- """LoginRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `LoginRequest`
- """
- model = LoginRequest()
- if include_optional:
- return LoginRequest(
- email = '',
- password = '',
- organization_id = ''
- )
- else:
- return LoginRequest(
- )
- """
-
- def testLoginRequest(self):
- """Test LoginRequest"""
- # 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_logs_api.py b/koyeb/test/test_logs_api.py
deleted file mode 100644
index c18ac7b2..00000000
--- a/koyeb/test/test_logs_api.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
-
-
-import unittest
-
-from koyeb.api.logs_api import LogsApi
-
-
-class TestLogsApi(unittest.TestCase):
- """LogsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = LogsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_query_logs(self) -> None:
- """Test case for query_logs
-
- Query logs
- """
- pass
-
- def test_tail_logs(self) -> None:
- """Test case for tail_logs
-
- Tails logs
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_manage_reply.py b/koyeb/test/test_manage_reply.py
deleted file mode 100644
index 740834cd..00000000
--- a/koyeb/test/test_manage_reply.py
+++ /dev/null
@@ -1,53 +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.manage_reply import ManageReply
-
-
-class TestManageReply(unittest.TestCase):
- """ManageReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ManageReply`
- """
- model = ManageReply()
- if include_optional:
- return ManageReply(
- url = ''
- )
- else:
- return ManageReply(
- )
- """
-
- def testManageReply(self):
- """Test ManageReply"""
- # 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_members_summary.py b/koyeb/test/test_members_summary.py
deleted file mode 100644
index e35257e0..00000000
--- a/koyeb/test/test_members_summary.py
+++ /dev/null
@@ -1,56 +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.members_summary import MembersSummary
-
-
-class TestMembersSummary(unittest.TestCase):
- """MembersSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `MembersSummary`
- """
- model = MembersSummary()
- if include_optional:
- return MembersSummary(
- total = '',
- invitations_by_status = {
- 'key' : ''
- }
- )
- else:
- return MembersSummary(
- )
- """
-
- def testMembersSummary(self):
- """Test MembersSummary"""
- # 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_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_metrics_api.py b/koyeb/test/test_metrics_api.py
deleted file mode 100644
index 283c0425..00000000
--- a/koyeb/test/test_metrics_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.metrics_api import MetricsApi
-
-
-class TestMetricsApi(unittest.TestCase):
- """MetricsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = MetricsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_metrics(self) -> None:
- """Test case for get_metrics
-
- Get Metrics
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_neon_postgres_database.py b/koyeb/test/test_neon_postgres_database.py
deleted file mode 100644
index 5bedd0f5..00000000
--- a/koyeb/test/test_neon_postgres_database.py
+++ /dev/null
@@ -1,65 +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.neon_postgres_database import NeonPostgresDatabase
-
-
-class TestNeonPostgresDatabase(unittest.TestCase):
- """NeonPostgresDatabase unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NeonPostgresDatabase`
- """
- model = NeonPostgresDatabase()
- if include_optional:
- return NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ]
- )
- else:
- return NeonPostgresDatabase(
- )
- """
-
- def testNeonPostgresDatabase(self):
- """Test NeonPostgresDatabase"""
- # 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_neon_postgres_database_deployment_metadata.py b/koyeb/test/test_neon_postgres_database_deployment_metadata.py
deleted file mode 100644
index 2f73f62d..00000000
--- a/koyeb/test/test_neon_postgres_database_deployment_metadata.py
+++ /dev/null
@@ -1,57 +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.neon_postgres_database_deployment_metadata import (
- NeonPostgresDatabaseDeploymentMetadata,
-)
-
-
-class TestNeonPostgresDatabaseDeploymentMetadata(unittest.TestCase):
- """NeonPostgresDatabaseDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NeonPostgresDatabaseDeploymentMetadata`
- """
- model = NeonPostgresDatabaseDeploymentMetadata()
- if include_optional:
- return NeonPostgresDatabaseDeploymentMetadata(
- reset_role_passwords = [
- ''
- ]
- )
- else:
- return NeonPostgresDatabaseDeploymentMetadata(
- )
- """
-
- def testNeonPostgresDatabaseDeploymentMetadata(self):
- """Test NeonPostgresDatabaseDeploymentMetadata"""
- # 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_neon_postgres_database_neon_database.py b/koyeb/test/test_neon_postgres_database_neon_database.py
deleted file mode 100644
index 81279573..00000000
--- a/koyeb/test/test_neon_postgres_database_neon_database.py
+++ /dev/null
@@ -1,56 +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.neon_postgres_database_neon_database import (
- NeonPostgresDatabaseNeonDatabase,
-)
-
-
-class TestNeonPostgresDatabaseNeonDatabase(unittest.TestCase):
- """NeonPostgresDatabaseNeonDatabase unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NeonPostgresDatabaseNeonDatabase`
- """
- model = NeonPostgresDatabaseNeonDatabase()
- if include_optional:
- return NeonPostgresDatabaseNeonDatabase(
- name = '',
- owner = ''
- )
- else:
- return NeonPostgresDatabaseNeonDatabase(
- )
- """
-
- def testNeonPostgresDatabaseNeonDatabase(self):
- """Test NeonPostgresDatabaseNeonDatabase"""
- # 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_neon_postgres_database_neon_role.py b/koyeb/test/test_neon_postgres_database_neon_role.py
deleted file mode 100644
index f4db49f0..00000000
--- a/koyeb/test/test_neon_postgres_database_neon_role.py
+++ /dev/null
@@ -1,54 +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.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole
-
-
-class TestNeonPostgresDatabaseNeonRole(unittest.TestCase):
- """NeonPostgresDatabaseNeonRole unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NeonPostgresDatabaseNeonRole`
- """
- model = NeonPostgresDatabaseNeonRole()
- if include_optional:
- return NeonPostgresDatabaseNeonRole(
- name = '',
- secret = ''
- )
- else:
- return NeonPostgresDatabaseNeonRole(
- )
- """
-
- def testNeonPostgresDatabaseNeonRole(self):
- """Test NeonPostgresDatabaseNeonRole"""
- # 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_neon_postgres_summary.py b/koyeb/test/test_neon_postgres_summary.py
deleted file mode 100644
index 17b6ceea..00000000
--- a/koyeb/test/test_neon_postgres_summary.py
+++ /dev/null
@@ -1,56 +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.neon_postgres_summary import NeonPostgresSummary
-
-
-class TestNeonPostgresSummary(unittest.TestCase):
- """NeonPostgresSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NeonPostgresSummary`
- """
- model = NeonPostgresSummary()
- if include_optional:
- return NeonPostgresSummary(
- total = '',
- by_instance_type = {
- 'key' : ''
- }
- )
- else:
- return NeonPostgresSummary(
- )
- """
-
- def testNeonPostgresSummary(self):
- """Test NeonPostgresSummary"""
- # 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_next_invoice_reply.py b/koyeb/test/test_next_invoice_reply.py
deleted file mode 100644
index ade848a5..00000000
--- a/koyeb/test/test_next_invoice_reply.py
+++ /dev/null
@@ -1,70 +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 import NextInvoiceReply
-
-
-class TestNextInvoiceReply(unittest.TestCase):
- """NextInvoiceReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NextInvoiceReply`
- """
- model = NextInvoiceReply()
- if include_optional:
- return NextInvoiceReply(
- stripe_invoice = None,
- lines = [
- koyeb.models.next_invoice_reply/line.NextInvoiceReply.Line(
- amount_excluding_tax = 56,
- period = koyeb.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(
- unit_amount_decimal = 1.337, ),
- quantity = 56, )
- ],
- discounts = [
- koyeb.models.next_invoice_reply/discount.NextInvoiceReply.Discount(
- type = 'PERCENT_OFF',
- name = '',
- amount = '', )
- ]
- )
- else:
- return NextInvoiceReply(
- )
- """
-
- def testNextInvoiceReply(self):
- """Test NextInvoiceReply"""
- # 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_next_invoice_reply_discount.py b/koyeb/test/test_next_invoice_reply_discount.py
deleted file mode 100644
index d29a136c..00000000
--- a/koyeb/test/test_next_invoice_reply_discount.py
+++ /dev/null
@@ -1,55 +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 import NextInvoiceReplyDiscount
-
-
-class TestNextInvoiceReplyDiscount(unittest.TestCase):
- """NextInvoiceReplyDiscount unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NextInvoiceReplyDiscount`
- """
- model = NextInvoiceReplyDiscount()
- if include_optional:
- return NextInvoiceReplyDiscount(
- type = 'PERCENT_OFF',
- name = '',
- amount = ''
- )
- else:
- return NextInvoiceReplyDiscount(
- )
- """
-
- def testNextInvoiceReplyDiscount(self):
- """Test NextInvoiceReplyDiscount"""
- # 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_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_next_invoice_reply_line.py b/koyeb/test/test_next_invoice_reply_line.py
deleted file mode 100644
index 70420b45..00000000
--- a/koyeb/test/test_next_invoice_reply_line.py
+++ /dev/null
@@ -1,60 +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_line import NextInvoiceReplyLine
-
-
-class TestNextInvoiceReplyLine(unittest.TestCase):
- """NextInvoiceReplyLine unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- 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(
- unit_amount_decimal = 1.337, ),
- quantity = 56
- )
- else:
- return NextInvoiceReplyLine(
- )
- """
-
- def testNextInvoiceReplyLine(self):
- """Test NextInvoiceReplyLine"""
- # 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_next_invoice_reply_line_period.py b/koyeb/test/test_next_invoice_reply_line_period.py
deleted file mode 100644
index 8c0fc94a..00000000
--- a/koyeb/test/test_next_invoice_reply_line_period.py
+++ /dev/null
@@ -1,54 +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_line_period import NextInvoiceReplyLinePeriod
-
-
-class TestNextInvoiceReplyLinePeriod(unittest.TestCase):
- """NextInvoiceReplyLinePeriod unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NextInvoiceReplyLinePeriod`
- """
- model = NextInvoiceReplyLinePeriod()
- if include_optional:
- return NextInvoiceReplyLinePeriod(
- 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')
- )
- else:
- return NextInvoiceReplyLinePeriod(
- )
- """
-
- def testNextInvoiceReplyLinePeriod(self):
- """Test NextInvoiceReplyLinePeriod"""
- # 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_next_invoice_reply_line_price.py b/koyeb/test/test_next_invoice_reply_line_price.py
deleted file mode 100644
index 05a27a30..00000000
--- a/koyeb/test/test_next_invoice_reply_line_price.py
+++ /dev/null
@@ -1,53 +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_line_price import NextInvoiceReplyLinePrice
-
-
-class TestNextInvoiceReplyLinePrice(unittest.TestCase):
- """NextInvoiceReplyLinePrice unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NextInvoiceReplyLinePrice`
- """
- model = NextInvoiceReplyLinePrice()
- if include_optional:
- return NextInvoiceReplyLinePrice(
- unit_amount_decimal = 1.337
- )
- else:
- return NextInvoiceReplyLinePrice(
- )
- """
-
- def testNextInvoiceReplyLinePrice(self):
- """Test NextInvoiceReplyLinePrice"""
- # 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_notification.py b/koyeb/test/test_notification.py
deleted file mode 100644
index 83493c5c..00000000
--- a/koyeb/test/test_notification.py
+++ /dev/null
@@ -1,73 +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.notification import Notification
-
-
-class TestNotification(unittest.TestCase):
- """Notification unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Notification`
- """
- model = Notification()
- if include_optional:
- return Notification(
- id = '',
- activity = koyeb.models.activity.Activity(
- id = '',
- actor = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- object = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- verb = '',
- metadata = koyeb.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,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return Notification(
- )
- """
-
- def testNotification(self):
- """Test Notification"""
- # 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_notification_list.py b/koyeb/test/test_notification_list.py
deleted file mode 100644
index 3d16dca0..00000000
--- a/koyeb/test/test_notification_list.py
+++ /dev/null
@@ -1,83 +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.notification_list import NotificationList
-
-
-class TestNotificationList(unittest.TestCase):
- """NotificationList unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `NotificationList`
- """
- model = NotificationList()
- if include_optional:
- return NotificationList(
- notifications = [
- koyeb.models.notification.Notification(
- id = '',
- activity = koyeb.models.activity.Activity(
- id = '',
- actor = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- object = koyeb.models.object.Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True, ),
- verb = '',
- metadata = koyeb.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,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- limit = 56,
- offset = 56,
- count = 56,
- is_read = True,
- is_seen = True,
- unread = 56,
- unseen = 56
- )
- else:
- return NotificationList(
- )
- """
-
- def testNotificationList(self):
- """Test NotificationList"""
- # 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_o_auth_callback_reply.py b/koyeb/test/test_o_auth_callback_reply.py
deleted file mode 100644
index a93a615d..00000000
--- a/koyeb/test/test_o_auth_callback_reply.py
+++ /dev/null
@@ -1,53 +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.o_auth_callback_reply import OAuthCallbackReply
-
-
-class TestOAuthCallbackReply(unittest.TestCase):
- """OAuthCallbackReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `OAuthCallbackReply`
- """
- model = OAuthCallbackReply()
- if include_optional:
- return OAuthCallbackReply(
- token = {id=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..., expires=2022-09-08T14:00:00Z, user_id=996d7822-6b58-11e9-956f-32001b70f000, organization_id=9f33b2c6-6b58-11e9-883c-32001b70f000}
- )
- else:
- return OAuthCallbackReply(
- )
- """
-
- def testOAuthCallbackReply(self):
- """Test OAuthCallbackReply"""
- # 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_o_auth_callback_request.py b/koyeb/test/test_o_auth_callback_request.py
deleted file mode 100644
index a55ec619..00000000
--- a/koyeb/test/test_o_auth_callback_request.py
+++ /dev/null
@@ -1,56 +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.o_auth_callback_request import OAuthCallbackRequest
-
-
-class TestOAuthCallbackRequest(unittest.TestCase):
- """OAuthCallbackRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `OAuthCallbackRequest`
- """
- model = OAuthCallbackRequest()
- if include_optional:
- return OAuthCallbackRequest(
- state = '',
- code = '',
- setup_action = '',
- installation_id = ''
- )
- else:
- return OAuthCallbackRequest(
- )
- """
-
- def testOAuthCallbackRequest(self):
- """Test OAuthCallbackRequest"""
- # 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_o_auth_provider.py b/koyeb/test/test_o_auth_provider.py
deleted file mode 100644
index 84a582fb..00000000
--- a/koyeb/test/test_o_auth_provider.py
+++ /dev/null
@@ -1,55 +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.o_auth_provider import OAuthProvider
-
-
-class TestOAuthProvider(unittest.TestCase):
- """OAuthProvider unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `OAuthProvider`
- """
- model = OAuthProvider()
- if include_optional:
- return OAuthProvider(
- id = '',
- url = '',
- state = ''
- )
- else:
- return OAuthProvider(
- )
- """
-
- def testOAuthProvider(self):
- """Test OAuthProvider"""
- # 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_object.py b/koyeb/test/test_object.py
deleted file mode 100644
index 01a22b9f..00000000
--- a/koyeb/test/test_object.py
+++ /dev/null
@@ -1,57 +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.object import Object
-
-
-class TestObject(unittest.TestCase):
- """Object unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Object`
- """
- model = Object()
- if include_optional:
- return Object(
- id = '',
- name = '',
- type = '',
- metadata = koyeb.models.metadata.metadata(),
- deleted = True
- )
- else:
- return Object(
- )
- """
-
- def testObject(self):
- """Test Object"""
- # 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_organization_confirmations_api.py b/koyeb/test/test_organization_confirmations_api.py
deleted file mode 100644
index afc2c4bc..00000000
--- a/koyeb/test/test_organization_confirmations_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.organization_confirmations_api import OrganizationConfirmationsApi
-
-
-class TestOrganizationConfirmationsApi(unittest.TestCase):
- """OrganizationConfirmationsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = OrganizationConfirmationsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_confirm_organization_action(self) -> None:
- """Test case for confirm_organization_action
-
- Confirm organization action
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_organization_deactivation_reason.py b/koyeb/test/test_organization_deactivation_reason.py
deleted file mode 100644
index f629e74c..00000000
--- a/koyeb/test/test_organization_deactivation_reason.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_deactivation_reason import OrganizationDeactivationReason
-
-
-class TestOrganizationDeactivationReason(unittest.TestCase):
- """OrganizationDeactivationReason unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testOrganizationDeactivationReason(self):
- """Test OrganizationDeactivationReason"""
- # inst = OrganizationDeactivationReason()
-
-
-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.py b/koyeb/test/test_organization_invitation.py
deleted file mode 100644
index 8ed2eb48..00000000
--- a/koyeb/test/test_organization_invitation.py
+++ /dev/null
@@ -1,79 +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 import OrganizationInvitation
-
-
-class TestOrganizationInvitation(unittest.TestCase):
- """OrganizationInvitation unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `OrganizationInvitation`
- """
- model = OrganizationInvitation()
- if include_optional:
- return 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(
- id = '',
- name = '',
- plan = 'hobby',
- status = 'WARNING', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', )
- )
- else:
- return OrganizationInvitation(
- )
- """
-
- def testOrganizationInvitation(self):
- """Test OrganizationInvitation"""
- # 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_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_invitations_api.py b/koyeb/test/test_organization_invitations_api.py
deleted file mode 100644
index 736acad1..00000000
--- a/koyeb/test/test_organization_invitations_api.py
+++ /dev/null
@@ -1,66 +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_invitations_api import OrganizationInvitationsApi
-
-
-class TestOrganizationInvitationsApi(unittest.TestCase):
- """OrganizationInvitationsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = OrganizationInvitationsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_create_organization_invitation(self) -> None:
- """Test case for create_organization_invitation
-
- Create Organization Invitation
- """
- pass
-
- def test_delete_organization_invitation(self) -> None:
- """Test case for delete_organization_invitation
-
- Delete Organization Invitation
- """
- pass
-
- def test_get_organization_invitation(self) -> None:
- """Test case for get_organization_invitation
-
- Get Organization Invitation
- """
- pass
-
- def test_list_organization_invitations(self) -> None:
- """Test case for list_organization_invitations
-
- List Organization Invitations
- """
- pass
-
- def test_resend_organization_invitation(self) -> None:
- """Test case for resend_organization_invitation
-
- Resend Organization Invitation
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_organization_member.py b/koyeb/test/test_organization_member.py
deleted file mode 100644
index 0879fed0..00000000
--- a/koyeb/test/test_organization_member.py
+++ /dev/null
@@ -1,70 +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 import OrganizationMember
-
-
-class TestOrganizationMember(unittest.TestCase):
- """OrganizationMember unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `OrganizationMember`
- """
- model = OrganizationMember()
- if include_optional:
- return 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(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- organization = koyeb.models.public_organization.PublicOrganization(
- id = '',
- name = '',
- plan = 'hobby',
- status = 'WARNING', )
- )
- else:
- return OrganizationMember(
- )
- """
-
- def testOrganizationMember(self):
- """Test OrganizationMember"""
- # 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_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_members_api.py b/koyeb/test/test_organization_members_api.py
deleted file mode 100644
index 8b06d299..00000000
--- a/koyeb/test/test_organization_members_api.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
-
-
-import unittest
-
-from koyeb.api.organization_members_api import OrganizationMembersApi
-
-
-class TestOrganizationMembersApi(unittest.TestCase):
- """OrganizationMembersApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = OrganizationMembersApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_list_organization_members(self) -> None:
- """Test case for list_organization_members
-
- List organization members
- """
- pass
-
- def test_remove_organization_member(self) -> None:
- """Test case for remove_organization_member
-
- Remove an organization member
- """
- pass
-
-
-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_organization_summary.py b/koyeb/test/test_organization_summary.py
deleted file mode 100644
index 0773fa0f..00000000
--- a/koyeb/test/test_organization_summary.py
+++ /dev/null
@@ -1,90 +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_summary import OrganizationSummary
-
-
-class TestOrganizationSummary(unittest.TestCase):
- """OrganizationSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `OrganizationSummary`
- """
- model = OrganizationSummary()
- if include_optional:
- return OrganizationSummary(
- organization_id = '',
- instances = koyeb.models.instances_summary.InstancesSummary(
- total = '',
- by_type = {
- 'key' : ''
- }, ),
- apps = koyeb.models.apps_summary.AppsSummary(
- total = '',
- by_status = {
- 'key' : ''
- }, ),
- services = {
- 'key' : koyeb.models.service_summary.ServiceSummary(
- total = '',
- by_status = {
- 'key' : ''
- }, )
- },
- domains = koyeb.models.domains_summary.DomainsSummary(
- total = '',
- by_status = {
- 'key' : ''
- }, ),
- secrets = koyeb.models.secrets_summary.SecretsSummary(
- total = '',
- by_type = {
- 'key' : ''
- }, ),
- neon_postgres = koyeb.models.neon_postgres_summary.NeonPostgresSummary(
- total = '',
- by_instance_type = {
- 'key' : ''
- }, ),
- members = koyeb.models.members_summary.MembersSummary(
- total = '',
- invitations_by_status = {
- 'key' : ''
- }, )
- )
- else:
- return OrganizationSummary(
- )
- """
-
- def testOrganizationSummary(self):
- """Test OrganizationSummary"""
- # 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_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_payment_methods_api.py b/koyeb/test/test_payment_methods_api.py
deleted file mode 100644
index 19724117..00000000
--- a/koyeb/test/test_payment_methods_api.py
+++ /dev/null
@@ -1,66 +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.payment_methods_api import PaymentMethodsApi
-
-
-class TestPaymentMethodsApi(unittest.TestCase):
- """PaymentMethodsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = PaymentMethodsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_confirm_payment_authorization(self) -> None:
- """Test case for confirm_payment_authorization
-
- Confirm payment authorization
- """
- pass
-
- def test_create_payment_authorization(self) -> None:
- """Test case for create_payment_authorization
-
- Create payment authorization
- """
- pass
-
- def test_delete_payment_method(self) -> None:
- """Test case for delete_payment_method
-
- Delete payment method
- """
- pass
-
- def test_get_payment_method(self) -> None:
- """Test case for get_payment_method
-
- Get payment method
- """
- pass
-
- def test_list_payment_methods(self) -> None:
- """Test case for list_payment_methods
-
- List payment methods
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_period_usage.py b/koyeb/test/test_period_usage.py
deleted file mode 100644
index b860ed88..00000000
--- a/koyeb/test/test_period_usage.py
+++ /dev/null
@@ -1,78 +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.period_usage import PeriodUsage
-
-
-class TestPeriodUsage(unittest.TestCase):
- """PeriodUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PeriodUsage`
- """
- model = PeriodUsage()
- if include_optional:
- return 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(
- app_id = '',
- app_name = '',
- services = [
- koyeb.models.service_usage.ServiceUsage(
- service_id = '',
- service_name = '',
- regions = {
- 'key' : koyeb.models.region_usage.RegionUsage(
- instances = {
- 'key' : koyeb.models.instance_usage.InstanceUsage(
- duration_seconds = 56, )
- }, )
- }, )
- ],
- databases = [
- koyeb.models.database_usage.DatabaseUsage(
- service_id = '',
- service_name = '',
- compute_time_seconds = 56,
- data_storage_megabytes_hours = 56, )
- ], )
- ]
- )
- else:
- return PeriodUsage(
- )
- """
-
- def testPeriodUsage(self):
- """Test PeriodUsage"""
- # 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_persistent_volume.py b/koyeb/test/test_persistent_volume.py
deleted file mode 100644
index a311076d..00000000
--- a/koyeb/test/test_persistent_volume.py
+++ /dev/null
@@ -1,66 +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 import PersistentVolume
-
-
-class TestPersistentVolume(unittest.TestCase):
- """PersistentVolume unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PersistentVolume`
- """
- model = PersistentVolume()
- if include_optional:
- return PersistentVolume(
- id = '',
- name = '',
- snapshot_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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- service_id = '',
- region = '',
- read_only = True,
- max_size = 56,
- cur_size = 56,
- status = 'PERSISTENT_VOLUME_STATUS_INVALID',
- backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID'
- )
- else:
- return PersistentVolume(
- )
- """
-
- def testPersistentVolume(self):
- """Test PersistentVolume"""
- # 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_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_event.py b/koyeb/test/test_persistent_volume_event.py
deleted file mode 100644
index 1cdb9dd8..00000000
--- a/koyeb/test/test_persistent_volume_event.py
+++ /dev/null
@@ -1,59 +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_event import PersistentVolumeEvent
-
-
-class TestPersistentVolumeEvent(unittest.TestCase):
- """PersistentVolumeEvent unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PersistentVolumeEvent`
- """
- model = PersistentVolumeEvent()
- if include_optional:
- return 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()
- )
- else:
- return PersistentVolumeEvent(
- )
- """
-
- def testPersistentVolumeEvent(self):
- """Test PersistentVolumeEvent"""
- # 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_persistent_volume_quotas.py b/koyeb/test/test_persistent_volume_quotas.py
deleted file mode 100644
index da6d79b6..00000000
--- a/koyeb/test/test_persistent_volume_quotas.py
+++ /dev/null
@@ -1,55 +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_quotas import PersistentVolumeQuotas
-
-
-class TestPersistentVolumeQuotas(unittest.TestCase):
- """PersistentVolumeQuotas unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PersistentVolumeQuotas`
- """
- model = PersistentVolumeQuotas()
- if include_optional:
- return PersistentVolumeQuotas(
- max_total_size = 56,
- max_volume_size = 56,
- max_per_instance_size = 56
- )
- else:
- return PersistentVolumeQuotas(
- )
- """
-
- def testPersistentVolumeQuotas(self):
- """Test PersistentVolumeQuotas"""
- # 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_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_port.py b/koyeb/test/test_port.py
deleted file mode 100644
index 3599cf5e..00000000
--- a/koyeb/test/test_port.py
+++ /dev/null
@@ -1,54 +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.port import Port
-
-
-class TestPort(unittest.TestCase):
- """Port unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Port`
- """
- model = Port()
- if include_optional:
- return Port(
- port = 56,
- protocol = ''
- )
- else:
- return Port(
- )
- """
-
- def testPort(self):
- """Test Port"""
- # 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_private_registry_configuration.py b/koyeb/test/test_private_registry_configuration.py
deleted file mode 100644
index 786cadd9..00000000
--- a/koyeb/test/test_private_registry_configuration.py
+++ /dev/null
@@ -1,55 +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.private_registry_configuration import PrivateRegistryConfiguration
-
-
-class TestPrivateRegistryConfiguration(unittest.TestCase):
- """PrivateRegistryConfiguration unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PrivateRegistryConfiguration`
- """
- model = PrivateRegistryConfiguration()
- if include_optional:
- return PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = ''
- )
- else:
- return PrivateRegistryConfiguration(
- )
- """
-
- def testPrivateRegistryConfiguration(self):
- """Test PrivateRegistryConfiguration"""
- # 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_provisioning_api.py b/koyeb/test/test_provisioning_api.py
deleted file mode 100644
index c5619d23..00000000
--- a/koyeb/test/test_provisioning_api.py
+++ /dev/null
@@ -1,52 +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.provisioning_api import ProvisioningApi
-
-
-class TestProvisioningApi(unittest.TestCase):
- """ProvisioningApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = ProvisioningApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_create_stage_attempt(self) -> None:
- """Test case for create_stage_attempt
-
- Create an attempt for a stage
- """
- pass
-
- def test_declare_stage_progress(self) -> None:
- """Test case for declare_stage_progress
-
- Declare stage progress
- """
- pass
-
- def test_declare_step_progress(self) -> None:
- """Test case for declare_step_progress
-
- Declare step progress
- """
- pass
-
-
-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_public_organization.py b/koyeb/test/test_public_organization.py
deleted file mode 100644
index f9402d64..00000000
--- a/koyeb/test/test_public_organization.py
+++ /dev/null
@@ -1,56 +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.public_organization import PublicOrganization
-
-
-class TestPublicOrganization(unittest.TestCase):
- """PublicOrganization unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PublicOrganization`
- """
- model = PublicOrganization()
- if include_optional:
- return PublicOrganization(
- id = '',
- name = '',
- plan = 'hobby',
- status = 'WARNING'
- )
- else:
- return PublicOrganization(
- )
- """
-
- def testPublicOrganization(self):
- """Test PublicOrganization"""
- # 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_public_user.py b/koyeb/test/test_public_user.py
deleted file mode 100644
index b4770d9c..00000000
--- a/koyeb/test/test_public_user.py
+++ /dev/null
@@ -1,58 +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.public_user import PublicUser
-
-
-class TestPublicUser(unittest.TestCase):
- """PublicUser unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `PublicUser`
- """
- model = PublicUser()
- if include_optional:
- return PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = ''
- )
- else:
- return PublicUser(
- )
- """
-
- def testPublicUser(self):
- """Test PublicUser"""
- # 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_query_logs_reply.py b/koyeb/test/test_query_logs_reply.py
deleted file mode 100644
index 8299505a..00000000
--- a/koyeb/test/test_query_logs_reply.py
+++ /dev/null
@@ -1,62 +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.query_logs_reply import QueryLogsReply
-
-
-class TestQueryLogsReply(unittest.TestCase):
- """QueryLogsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `QueryLogsReply`
- """
- model = QueryLogsReply()
- if include_optional:
- return QueryLogsReply(
- data = [
- koyeb.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(), )
- ],
- pagination = koyeb.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'), )
- )
- else:
- return QueryLogsReply(
- )
- """
-
- def testQueryLogsReply(self):
- """Test QueryLogsReply"""
- # 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_query_logs_reply_pagination.py b/koyeb/test/test_query_logs_reply_pagination.py
deleted file mode 100644
index 35a63193..00000000
--- a/koyeb/test/test_query_logs_reply_pagination.py
+++ /dev/null
@@ -1,55 +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.query_logs_reply_pagination import QueryLogsReplyPagination
-
-
-class TestQueryLogsReplyPagination(unittest.TestCase):
- """QueryLogsReplyPagination unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `QueryLogsReplyPagination`
- """
- model = QueryLogsReplyPagination()
- if include_optional:
- return 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')
- )
- else:
- return QueryLogsReplyPagination(
- )
- """
-
- def testQueryLogsReplyPagination(self):
- """Test QueryLogsReplyPagination"""
- # 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_quotas.py b/koyeb/test/test_quotas.py
deleted file mode 100644
index 5aea8b54..00000000
--- a/koyeb/test/test_quotas.py
+++ /dev/null
@@ -1,91 +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.quotas import Quotas
-
-
-class TestQuotas(unittest.TestCase):
- """Quotas unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Quotas`
- """
- model = Quotas()
- if include_optional:
- return Quotas(
- apps = '',
- services = '',
- domains = '',
- services_by_app = '',
- service_provisioning_concurrency = '',
- memory_mb = '',
- instance_types = [
- ''
- ],
- regions = [
- ''
- ],
- max_organization_members = '',
- max_instances_by_type = {
- 'key' : ''
- },
- persistent_volumes_by_region = {
- 'key' : koyeb.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(
- max_koyeb = 56, ),
- metrics_retention = 56,
- logs_retention = 56,
- access_reserved_subdomains = [
- ''
- ],
- proxy_ports = 56,
- scale_to_zero = koyeb.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 = ''
- )
- else:
- return Quotas(
- )
- """
-
- def testQuotas(self):
- """Test Quotas"""
- # 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_quotas_api.py b/koyeb/test/test_quotas_api.py
deleted file mode 100644
index 2a5d3255..00000000
--- a/koyeb/test/test_quotas_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.quotas_api import QuotasApi
-
-
-class TestQuotasApi(unittest.TestCase):
- """QuotasApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = QuotasApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_review_organization_capacity(self) -> None:
- """Test case for review_organization_capacity
-
- DEPRECATED: Review Organization Capacity
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_reactivate_organization_reply.py b/koyeb/test/test_reactivate_organization_reply.py
deleted file mode 100644
index a28ee99a..00000000
--- a/koyeb/test/test_reactivate_organization_reply.py
+++ /dev/null
@@ -1,84 +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.reactivate_organization_reply import ReactivateOrganizationReply
-
-
-class TestReactivateOrganizationReply(unittest.TestCase):
- """ReactivateOrganizationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ReactivateOrganizationReply`
- """
- model = ReactivateOrganizationReply()
- if include_optional:
- return ReactivateOrganizationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return ReactivateOrganizationReply(
- )
- """
-
- def testReactivateOrganizationReply(self):
- """Test ReactivateOrganizationReply"""
- # 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_redeem_coupon_request.py b/koyeb/test/test_redeem_coupon_request.py
deleted file mode 100644
index 50a065a1..00000000
--- a/koyeb/test/test_redeem_coupon_request.py
+++ /dev/null
@@ -1,53 +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.redeem_coupon_request import RedeemCouponRequest
-
-
-class TestRedeemCouponRequest(unittest.TestCase):
- """RedeemCouponRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RedeemCouponRequest`
- """
- model = RedeemCouponRequest()
- if include_optional:
- return RedeemCouponRequest(
- code = ''
- )
- else:
- return RedeemCouponRequest(
- )
- """
-
- def testRedeemCouponRequest(self):
- """Test RedeemCouponRequest"""
- # 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_redeploy_reply.py b/koyeb/test/test_redeploy_reply.py
deleted file mode 100644
index 1a695249..00000000
--- a/koyeb/test/test_redeploy_reply.py
+++ /dev/null
@@ -1,225 +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.redeploy_reply import RedeployReply
-
-
-class TestRedeployReply(unittest.TestCase):
- """RedeployReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RedeployReply`
- """
- model = RedeployReply()
- if include_optional:
- return RedeployReply(
- deployment = koyeb.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'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- metadata = koyeb.models.deployment_metadata.DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ], ),
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56, )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ), ),
- messages = [
- ''
- ],
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- database_info = koyeb.models.deployment_database_info.DeploymentDatabaseInfo(),
- skip_build = True,
- role = 'INVALID',
- version = '',
- deployment_group = '', )
- )
- else:
- return RedeployReply(
- )
- """
-
- def testRedeployReply(self):
- """Test RedeployReply"""
- # 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_redeploy_request_info.py b/koyeb/test/test_redeploy_request_info.py
deleted file mode 100644
index 283910a6..00000000
--- a/koyeb/test/test_redeploy_request_info.py
+++ /dev/null
@@ -1,56 +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.redeploy_request_info import RedeployRequestInfo
-
-
-class TestRedeployRequestInfo(unittest.TestCase):
- """RedeployRequestInfo unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RedeployRequestInfo`
- """
- model = RedeployRequestInfo()
- if include_optional:
- return RedeployRequestInfo(
- deployment_group = '',
- sha = '',
- use_cache = True,
- skip_build = True
- )
- else:
- return RedeployRequestInfo(
- )
- """
-
- def testRedeployRequestInfo(self):
- """Test RedeployRequestInfo"""
- # 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_region.py b/koyeb/test/test_region.py
deleted file mode 100644
index 7d90bb16..00000000
--- a/koyeb/test/test_region.py
+++ /dev/null
@@ -1,66 +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.region import Region
-
-
-class TestRegion(unittest.TestCase):
- """Region unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Region`
- """
- model = Region()
- if include_optional:
- return Region(
- id = '',
- name = '',
- coordinates = [
- ''
- ],
- status = '',
- instances = [
- ''
- ],
- datacenters = [
- ''
- ],
- volumes_enabled = True,
- scope = ''
- )
- else:
- return Region(
- )
- """
-
- def testRegion(self):
- """Test Region"""
- # 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_region_availability.py b/koyeb/test/test_region_availability.py
deleted file mode 100644
index 6351cc06..00000000
--- a/koyeb/test/test_region_availability.py
+++ /dev/null
@@ -1,53 +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.region_availability import RegionAvailability
-
-
-class TestRegionAvailability(unittest.TestCase):
- """RegionAvailability unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionAvailability`
- """
- model = RegionAvailability()
- if include_optional:
- return RegionAvailability(
- availability = 'UNKNOWN'
- )
- else:
- return RegionAvailability(
- )
- """
-
- def testRegionAvailability(self):
- """Test RegionAvailability"""
- # 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_region_list_item.py b/koyeb/test/test_region_list_item.py
deleted file mode 100644
index 68827758..00000000
--- a/koyeb/test/test_region_list_item.py
+++ /dev/null
@@ -1,66 +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.region_list_item import RegionListItem
-
-
-class TestRegionListItem(unittest.TestCase):
- """RegionListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionListItem`
- """
- model = RegionListItem()
- if include_optional:
- return RegionListItem(
- id = '',
- name = '',
- coordinates = [
- ''
- ],
- status = '',
- instances = [
- ''
- ],
- datacenters = [
- ''
- ],
- volumes_enabled = True,
- scope = ''
- )
- else:
- return RegionListItem(
- )
- """
-
- def testRegionListItem(self):
- """Test RegionListItem"""
- # 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_region_usage.py b/koyeb/test/test_region_usage.py
deleted file mode 100644
index b3279b00..00000000
--- a/koyeb/test/test_region_usage.py
+++ /dev/null
@@ -1,56 +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.region_usage import RegionUsage
-
-
-class TestRegionUsage(unittest.TestCase):
- """RegionUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionUsage`
- """
- model = RegionUsage()
- if include_optional:
- return RegionUsage(
- instances = {
- 'key' : koyeb.models.instance_usage.InstanceUsage(
- duration_seconds = 56, )
- }
- )
- else:
- return RegionUsage(
- )
- """
-
- def testRegionUsage(self):
- """Test RegionUsage"""
- # 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_regional_deployment.py b/koyeb/test/test_regional_deployment.py
deleted file mode 100644
index 1bd578e3..00000000
--- a/koyeb/test/test_regional_deployment.py
+++ /dev/null
@@ -1,208 +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 import RegionalDeployment
-
-
-class TestRegionalDeployment(unittest.TestCase):
- """RegionalDeployment unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionalDeployment`
- """
- model = RegionalDeployment()
- if include_optional:
- return 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'),
- scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- allocated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- app_id = '',
- service_id = '',
- region = '',
- parent_id = '',
- child_id = '',
- status = 'PENDING',
- messages = [
- ''
- ],
- definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.route.Route(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.port.Port(
- port = 56,
- protocol = '', )
- ],
- env = [
- koyeb.models.env.Env(
- key = '',
- value = '',
- secret = '', )
- ],
- region = '',
- scaling = koyeb.models.scaling.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, ), )
- ], ),
- instance_type = '',
- deployment_group = '',
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.regional_deployment_volume.RegionalDeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ),
- datacenters = [
- ''
- ],
- metadata = koyeb.models.regional_deployment_metadata.RegionalDeploymentMetadata(),
- provisioning_info = koyeb.models.deployment_provisioning_info.DeploymentProvisioningInfo(
- sha = '',
- image = '',
- stages = [
- koyeb.models.deployment_provisioning_info/stage.DeploymentProvisioningInfo.Stage(
- name = '',
- status = 'UNKNOWN',
- messages = [
- ''
- ],
- 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(
- 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(
- 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'), )
- ],
- image_pushed = True,
- internal_failure = True,
- retryable_failure = True,
- wait_completion = True, )
- ], )
- ], ),
- role = 'INVALID',
- version = '',
- deployment_group = '',
- deployment_id = ''
- )
- else:
- return RegionalDeployment(
- )
- """
-
- def testRegionalDeployment(self):
- """Test RegionalDeployment"""
- # 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_regional_deployment_definition.py b/koyeb/test/test_regional_deployment_definition.py
deleted file mode 100644
index 07e8e5bb..00000000
--- a/koyeb/test/test_regional_deployment_definition.py
+++ /dev/null
@@ -1,179 +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_definition import RegionalDeploymentDefinition
-
-
-class TestRegionalDeploymentDefinition(unittest.TestCase):
- """RegionalDeploymentDefinition unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionalDeploymentDefinition`
- """
- model = RegionalDeploymentDefinition()
- if include_optional:
- return RegionalDeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(
- type = 'DEPLOYMENT_STRATEGY_TYPE_INVALID', ),
- routes = [
- koyeb.models.route.Route(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.port.Port(
- port = 56,
- protocol = '', )
- ],
- env = [
- koyeb.models.env.Env(
- key = '',
- value = '',
- secret = '', )
- ],
- region = '',
- scaling = koyeb.models.scaling.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, ), )
- ], ),
- instance_type = '',
- deployment_group = '',
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.regional_deployment_volume.RegionalDeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ),
- docker = koyeb.models.docker_builder.DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True, ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ),
- docker = koyeb.models.docker_builder.DockerBuilder(
- dockerfile = '',
- entrypoint = [
- ''
- ],
- command = '',
- args = [
- ''
- ],
- target = '',
- privileged = True, ), )
- )
- else:
- return RegionalDeploymentDefinition(
- )
- """
-
- def testRegionalDeploymentDefinition(self):
- """Test RegionalDeploymentDefinition"""
- # 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_regional_deployment_definition_type.py b/koyeb/test/test_regional_deployment_definition_type.py
deleted file mode 100644
index 8a77b530..00000000
--- a/koyeb/test/test_regional_deployment_definition_type.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.regional_deployment_definition_type import (
- RegionalDeploymentDefinitionType,
-)
-
-
-class TestRegionalDeploymentDefinitionType(unittest.TestCase):
- """RegionalDeploymentDefinitionType unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testRegionalDeploymentDefinitionType(self):
- """Test RegionalDeploymentDefinitionType"""
- # inst = RegionalDeploymentDefinitionType()
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_regional_deployment_event.py b/koyeb/test/test_regional_deployment_event.py
deleted file mode 100644
index 4b1de2de..00000000
--- a/koyeb/test/test_regional_deployment_event.py
+++ /dev/null
@@ -1,59 +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_event import RegionalDeploymentEvent
-
-
-class TestRegionalDeploymentEvent(unittest.TestCase):
- """RegionalDeploymentEvent unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionalDeploymentEvent`
- """
- model = RegionalDeploymentEvent()
- if include_optional:
- return 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()
- )
- else:
- return RegionalDeploymentEvent(
- )
- """
-
- def testRegionalDeploymentEvent(self):
- """Test RegionalDeploymentEvent"""
- # 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_regional_deployment_list_item.py b/koyeb/test/test_regional_deployment_list_item.py
deleted file mode 100644
index ebb8ce15..00000000
--- a/koyeb/test/test_regional_deployment_list_item.py
+++ /dev/null
@@ -1,161 +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_list_item import RegionalDeploymentListItem
-
-
-class TestRegionalDeploymentListItem(unittest.TestCase):
- """RegionalDeploymentListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionalDeploymentListItem`
- """
- model = RegionalDeploymentListItem()
- if include_optional:
- return 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'),
- region = '',
- status = 'PENDING',
- messages = [
- ''
- ],
- definition = koyeb.models.regional_deployment_definition.RegionalDeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.route.Route(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.port.Port(
- port = 56,
- protocol = '', )
- ],
- env = [
- koyeb.models.env.Env(
- key = '',
- value = '',
- secret = '', )
- ],
- region = '',
- scaling = koyeb.models.scaling.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, ), )
- ], ),
- instance_type = '',
- deployment_group = '',
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.regional_deployment_volume.RegionalDeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), )
- )
- else:
- return RegionalDeploymentListItem(
- )
- """
-
- def testRegionalDeploymentListItem(self):
- """Test RegionalDeploymentListItem"""
- # 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_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_regional_deployment_volume.py b/koyeb/test/test_regional_deployment_volume.py
deleted file mode 100644
index 8265fbe4..00000000
--- a/koyeb/test/test_regional_deployment_volume.py
+++ /dev/null
@@ -1,55 +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_volume import RegionalDeploymentVolume
-
-
-class TestRegionalDeploymentVolume(unittest.TestCase):
- """RegionalDeploymentVolume unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RegionalDeploymentVolume`
- """
- model = RegionalDeploymentVolume()
- if include_optional:
- return RegionalDeploymentVolume(
- id = '',
- path = '',
- replica_index = 56
- )
- else:
- return RegionalDeploymentVolume(
- )
- """
-
- def testRegionalDeploymentVolume(self):
- """Test RegionalDeploymentVolume"""
- # 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_regional_deployments_api.py b/koyeb/test/test_regional_deployments_api.py
deleted file mode 100644
index 910c2d33..00000000
--- a/koyeb/test/test_regional_deployments_api.py
+++ /dev/null
@@ -1,52 +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.regional_deployments_api import RegionalDeploymentsApi
-
-
-class TestRegionalDeploymentsApi(unittest.TestCase):
- """RegionalDeploymentsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = RegionalDeploymentsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_regional_deployment(self) -> None:
- """Test case for get_regional_deployment
-
- Get Regional Deployment
- """
- pass
-
- def test_list_regional_deployment_events(self) -> None:
- """Test case for list_regional_deployment_events
-
- List Regional Deployment events
- """
- pass
-
- def test_list_regional_deployments(self) -> None:
- """Test case for list_regional_deployments
-
- List Regional Deployments
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_remove_organization_member_reply.py b/koyeb/test/test_remove_organization_member_reply.py
deleted file mode 100644
index 56e6ba96..00000000
--- a/koyeb/test/test_remove_organization_member_reply.py
+++ /dev/null
@@ -1,70 +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.remove_organization_member_reply import RemoveOrganizationMemberReply
-
-
-class TestRemoveOrganizationMemberReply(unittest.TestCase):
- """RemoveOrganizationMemberReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RemoveOrganizationMemberReply`
- """
- model = RemoveOrganizationMemberReply()
- if include_optional:
- return RemoveOrganizationMemberReply(
- member = koyeb.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(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- organization = koyeb.models.public_organization.PublicOrganization(
- id = '',
- name = '',
- plan = 'hobby', ), )
- )
- else:
- return RemoveOrganizationMemberReply(
- )
- """
-
- def testRemoveOrganizationMemberReply(self):
- """Test RemoveOrganizationMemberReply"""
- # 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_repositories_api.py b/koyeb/test/test_repositories_api.py
deleted file mode 100644
index e62cc269..00000000
--- a/koyeb/test/test_repositories_api.py
+++ /dev/null
@@ -1,52 +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.repositories_api import RepositoriesApi
-
-
-class TestRepositoriesApi(unittest.TestCase):
- """RepositoriesApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = RepositoriesApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_list_branches(self) -> None:
- """Test case for list_branches
-
- List Branches
- """
- pass
-
- def test_list_repositories(self) -> None:
- """Test case for list_repositories
-
- List Repositories
- """
- pass
-
- def test_resync_organization(self) -> None:
- """Test case for resync_organization
-
- Resync Organization
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_resend_organization_invitation_reply.py b/koyeb/test/test_resend_organization_invitation_reply.py
deleted file mode 100644
index b47fcc77..00000000
--- a/koyeb/test/test_resend_organization_invitation_reply.py
+++ /dev/null
@@ -1,81 +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.resend_organization_invitation_reply import (
- ResendOrganizationInvitationReply,
-)
-
-
-class TestResendOrganizationInvitationReply(unittest.TestCase):
- """ResendOrganizationInvitationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ResendOrganizationInvitationReply`
- """
- model = ResendOrganizationInvitationReply()
- if include_optional:
- return ResendOrganizationInvitationReply(
- invitation = koyeb.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(
- id = '',
- name = '',
- plan = 'hobby', ),
- invitee_id = '',
- invitee = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ),
- inviter_id = '',
- inviter = koyeb.models.public_user.PublicUser(
- id = '',
- email = '',
- name = '',
- avatar_url = '',
- github_id = '',
- github_user = '', ), )
- )
- else:
- return ResendOrganizationInvitationReply(
- )
- """
-
- def testResendOrganizationInvitationReply(self):
- """Test ResendOrganizationInvitationReply"""
- # 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_reset_password_request.py b/koyeb/test/test_reset_password_request.py
deleted file mode 100644
index 88d4d4b3..00000000
--- a/koyeb/test/test_reset_password_request.py
+++ /dev/null
@@ -1,53 +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.reset_password_request import ResetPasswordRequest
-
-
-class TestResetPasswordRequest(unittest.TestCase):
- """ResetPasswordRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ResetPasswordRequest`
- """
- model = ResetPasswordRequest()
- if include_optional:
- return ResetPasswordRequest(
- email = ''
- )
- else:
- return ResetPasswordRequest(
- )
- """
-
- def testResetPasswordRequest(self):
- """Test ResetPasswordRequest"""
- # 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_reveal_secret_reply.py b/koyeb/test/test_reveal_secret_reply.py
deleted file mode 100644
index e5a01718..00000000
--- a/koyeb/test/test_reveal_secret_reply.py
+++ /dev/null
@@ -1,53 +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.reveal_secret_reply import RevealSecretReply
-
-
-class TestRevealSecretReply(unittest.TestCase):
- """RevealSecretReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `RevealSecretReply`
- """
- model = RevealSecretReply()
- if include_optional:
- return RevealSecretReply(
- value = None
- )
- else:
- return RevealSecretReply(
- )
- """
-
- def testRevealSecretReply(self):
- """Test RevealSecretReply"""
- # 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_review_organization_capacity_reply.py b/koyeb/test/test_review_organization_capacity_reply.py
deleted file mode 100644
index fd73ca2d..00000000
--- a/koyeb/test/test_review_organization_capacity_reply.py
+++ /dev/null
@@ -1,55 +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.review_organization_capacity_reply import (
- ReviewOrganizationCapacityReply,
-)
-
-
-class TestReviewOrganizationCapacityReply(unittest.TestCase):
- """ReviewOrganizationCapacityReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ReviewOrganizationCapacityReply`
- """
- model = ReviewOrganizationCapacityReply()
- if include_optional:
- return ReviewOrganizationCapacityReply(
- has_capacity = True
- )
- else:
- return ReviewOrganizationCapacityReply(
- )
- """
-
- def testReviewOrganizationCapacityReply(self):
- """Test ReviewOrganizationCapacityReply"""
- # 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_review_organization_capacity_request.py b/koyeb/test/test_review_organization_capacity_request.py
deleted file mode 100644
index 81dbaaf7..00000000
--- a/koyeb/test/test_review_organization_capacity_request.py
+++ /dev/null
@@ -1,56 +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.review_organization_capacity_request import (
- ReviewOrganizationCapacityRequest,
-)
-
-
-class TestReviewOrganizationCapacityRequest(unittest.TestCase):
- """ReviewOrganizationCapacityRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ReviewOrganizationCapacityRequest`
- """
- model = ReviewOrganizationCapacityRequest()
- if include_optional:
- return ReviewOrganizationCapacityRequest(
- plan = '',
- trialing = True
- )
- else:
- return ReviewOrganizationCapacityRequest(
- )
- """
-
- def testReviewOrganizationCapacityRequest(self):
- """Test ReviewOrganizationCapacityRequest"""
- # 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_route.py b/koyeb/test/test_route.py
deleted file mode 100644
index d6ecf3ab..00000000
--- a/koyeb/test/test_route.py
+++ /dev/null
@@ -1,54 +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.route import Route
-
-
-class TestRoute(unittest.TestCase):
- """Route unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Route`
- """
- model = Route()
- if include_optional:
- return Route(
- port = 56,
- path = ''
- )
- else:
- return Route(
- )
- """
-
- def testRoute(self):
- """Test Route"""
- # 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_sample.py b/koyeb/test/test_sample.py
deleted file mode 100644
index ee88331f..00000000
--- a/koyeb/test/test_sample.py
+++ /dev/null
@@ -1,54 +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.sample import Sample
-
-
-class TestSample(unittest.TestCase):
- """Sample unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Sample`
- """
- model = Sample()
- if include_optional:
- return Sample(
- timestamp = '',
- value = 1.337
- )
- else:
- return Sample(
- )
- """
-
- def testSample(self):
- """Test Sample"""
- # 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_scale_to_zero_quotas.py b/koyeb/test/test_scale_to_zero_quotas.py
deleted file mode 100644
index 73bdbc49..00000000
--- a/koyeb/test/test_scale_to_zero_quotas.py
+++ /dev/null
@@ -1,58 +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.scale_to_zero_quotas import ScaleToZeroQuotas
-
-
-class TestScaleToZeroQuotas(unittest.TestCase):
- """ScaleToZeroQuotas unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ScaleToZeroQuotas`
- """
- model = ScaleToZeroQuotas()
- if include_optional:
- return 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
- )
- else:
- return ScaleToZeroQuotas(
- )
- """
-
- def testScaleToZeroQuotas(self):
- """Test ScaleToZeroQuotas"""
- # 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_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_search_api.py b/koyeb/test/test_search_api.py
deleted file mode 100644
index bda54aca..00000000
--- a/koyeb/test/test_search_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.search_api import SearchApi
-
-
-class TestSearchApi(unittest.TestCase):
- """SearchApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = SearchApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_search(self) -> None:
- """Test case for search
-
- Search
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_secret.py b/koyeb/test/test_secret.py
deleted file mode 100644
index 62b8d7ff..00000000
--- a/koyeb/test/test_secret.py
+++ /dev/null
@@ -1,85 +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 import Secret
-
-
-class TestSecret(unittest.TestCase):
- """Secret unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Secret`
- """
- model = Secret()
- if include_optional:
- return Secret(
- id = '',
- name = '',
- organization_id = '',
- type = 'SIMPLE',
- 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(
- username = '',
- password = '', ),
- private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = '', ),
- digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
- username = '',
- password = '', ),
- github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
- username = '',
- password = '', ),
- gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
- username = '',
- password = '', ),
- gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = '', ),
- azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = '', ),
- database_role_password = koyeb.models.database_role_password.DatabaseRolePassword(
- username = '',
- password = '', )
- )
- else:
- return Secret(
- )
- """
-
- def testSecret(self):
- """Test Secret"""
- # 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_secrets_summary.py b/koyeb/test/test_secrets_summary.py
deleted file mode 100644
index ae89b4d2..00000000
--- a/koyeb/test/test_secrets_summary.py
+++ /dev/null
@@ -1,56 +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.secrets_summary import SecretsSummary
-
-
-class TestSecretsSummary(unittest.TestCase):
- """SecretsSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `SecretsSummary`
- """
- model = SecretsSummary()
- if include_optional:
- return SecretsSummary(
- total = '',
- by_type = {
- 'key' : ''
- }
- )
- else:
- return SecretsSummary(
- )
- """
-
- def testSecretsSummary(self):
- """Test SecretsSummary"""
- # 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_service.py b/koyeb/test/test_service.py
deleted file mode 100644
index 96bbb06e..00000000
--- a/koyeb/test/test_service.py
+++ /dev/null
@@ -1,82 +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 import Service
-
-
-class TestService(unittest.TestCase):
- """Service unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Service`
- """
- model = Service()
- if include_optional:
- return 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'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- name = '',
- type = 'INVALID_TYPE',
- organization_id = '',
- app_id = '',
- status = 'STARTING',
- messages = [
- ''
- ],
- version = '',
- active_deployment_id = '',
- latest_deployment_id = '',
- last_provisioned_deployment_id = '',
- state = koyeb.models.service_state.ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.models.auto_release.AutoRelease(), )
- )
- else:
- return Service(
- )
- """
-
- def testService(self):
- """Test Service"""
- # 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_service_event.py b/koyeb/test/test_service_event.py
deleted file mode 100644
index 1f066dac..00000000
--- a/koyeb/test/test_service_event.py
+++ /dev/null
@@ -1,59 +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_event import ServiceEvent
-
-
-class TestServiceEvent(unittest.TestCase):
- """ServiceEvent unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ServiceEvent`
- """
- model = ServiceEvent()
- if include_optional:
- return 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()
- )
- else:
- return ServiceEvent(
- )
- """
-
- def testServiceEvent(self):
- """Test ServiceEvent"""
- # 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_service_list_item.py b/koyeb/test/test_service_list_item.py
deleted file mode 100644
index ac15a08f..00000000
--- a/koyeb/test/test_service_list_item.py
+++ /dev/null
@@ -1,76 +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_list_item import ServiceListItem
-
-
-class TestServiceListItem(unittest.TestCase):
- """ServiceListItem unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ServiceListItem`
- """
- model = ServiceListItem()
- if include_optional:
- return ServiceListItem(
- id = '',
- name = '',
- type = 'INVALID_TYPE',
- organization_id = '',
- app_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'),
- status = 'STARTING',
- messages = [
- ''
- ],
- version = '',
- state = koyeb.models.service_state.ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.models.auto_release.AutoRelease(), ),
- active_deployment_id = '',
- latest_deployment_id = ''
- )
- else:
- return ServiceListItem(
- )
- """
-
- def testServiceListItem(self):
- """Test ServiceListItem"""
- # 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_service_state.py b/koyeb/test/test_service_state.py
deleted file mode 100644
index b3374c34..00000000
--- a/koyeb/test/test_service_state.py
+++ /dev/null
@@ -1,68 +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_state import ServiceState
-
-
-class TestServiceState(unittest.TestCase):
- """ServiceState unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ServiceState`
- """
- model = ServiceState()
- if include_optional:
- return ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.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(
- name = '',
- repository = '',
- git_ref = '',
- latest_sha = '', )
- ], )
- )
- else:
- return ServiceState(
- )
- """
-
- def testServiceState(self):
- """Test ServiceState"""
- # 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_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_summary.py b/koyeb/test/test_service_summary.py
deleted file mode 100644
index afb6c1e0..00000000
--- a/koyeb/test/test_service_summary.py
+++ /dev/null
@@ -1,56 +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_summary import ServiceSummary
-
-
-class TestServiceSummary(unittest.TestCase):
- """ServiceSummary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ServiceSummary`
- """
- model = ServiceSummary()
- if include_optional:
- return ServiceSummary(
- total = '',
- by_status = {
- 'key' : ''
- }
- )
- else:
- return ServiceSummary(
- )
- """
-
- def testServiceSummary(self):
- """Test ServiceSummary"""
- # 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_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_service_usage.py b/koyeb/test/test_service_usage.py
deleted file mode 100644
index 1883a176..00000000
--- a/koyeb/test/test_service_usage.py
+++ /dev/null
@@ -1,61 +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_usage import ServiceUsage
-
-
-class TestServiceUsage(unittest.TestCase):
- """ServiceUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `ServiceUsage`
- """
- model = ServiceUsage()
- if include_optional:
- return ServiceUsage(
- service_id = '',
- service_name = '',
- regions = {
- 'key' : koyeb.models.region_usage.RegionUsage(
- instances = {
- 'key' : koyeb.models.instance_usage.InstanceUsage(
- duration_seconds = 56, )
- }, )
- }
- )
- else:
- return ServiceUsage(
- )
- """
-
- def testServiceUsage(self):
- """Test ServiceUsage"""
- # 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_sessions_api.py b/koyeb/test/test_sessions_api.py
deleted file mode 100644
index 4887c1e6..00000000
--- a/koyeb/test/test_sessions_api.py
+++ /dev/null
@@ -1,59 +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.sessions_api import SessionsApi
-
-
-class TestSessionsApi(unittest.TestCase):
- """SessionsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = SessionsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_login(self) -> None:
- """Test case for login
-
- Login user
- """
- pass
-
- def test_logout(self) -> None:
- """Test case for logout
-
- Logout user
- """
- pass
-
- def test_new_session(self) -> None:
- """Test case for new_session
-
- New session
- """
- pass
-
- def test_refresh_token(self) -> None:
- """Test case for refresh_token
-
- Refresh token
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_snapshot.py b/koyeb/test/test_snapshot.py
deleted file mode 100644
index 4cd057d4..00000000
--- a/koyeb/test/test_snapshot.py
+++ /dev/null
@@ -1,63 +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 import Snapshot
-
-
-class TestSnapshot(unittest.TestCase):
- """Snapshot unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Snapshot`
- """
- model = Snapshot()
- if include_optional:
- return Snapshot(
- id = '',
- name = '',
- size = 56,
- 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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- parent_volume_id = '',
- region = '',
- status = 'SNAPSHOT_STATUS_INVALID',
- type = 'SNAPSHOT_TYPE_INVALID'
- )
- else:
- return Snapshot(
- )
- """
-
- def testSnapshot(self):
- """Test Snapshot"""
- # 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_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_snapshots_api.py b/koyeb/test/test_snapshots_api.py
deleted file mode 100644
index 985e50fe..00000000
--- a/koyeb/test/test_snapshots_api.py
+++ /dev/null
@@ -1,66 +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.snapshots_api import SnapshotsApi
-
-
-class TestSnapshotsApi(unittest.TestCase):
- """SnapshotsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = SnapshotsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_create_snapshot(self) -> None:
- """Test case for create_snapshot
-
- Create a Snapshot
- """
- pass
-
- def test_delete_snapshot(self) -> None:
- """Test case for delete_snapshot
-
- Delete a Snapshot
- """
- pass
-
- def test_get_snapshot(self) -> None:
- """Test case for get_snapshot
-
- Get a Snapshot
- """
- pass
-
- def test_list_snapshots(self) -> None:
- """Test case for list_snapshots
-
- List all Snapshots
- """
- pass
-
- def test_update_snapshot(self) -> None:
- """Test case for update_snapshot
-
- Update a Snapshot
- """
- pass
-
-
-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_stream_result_of_exec_command_reply.py b/koyeb/test/test_stream_result_of_exec_command_reply.py
deleted file mode 100644
index 63aa9716..00000000
--- a/koyeb/test/test_stream_result_of_exec_command_reply.py
+++ /dev/null
@@ -1,71 +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.stream_result_of_exec_command_reply import (
- StreamResultOfExecCommandReply,
-)
-
-
-class TestStreamResultOfExecCommandReply(unittest.TestCase):
- """StreamResultOfExecCommandReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- data = 'YQ==',
- close = True, ),
- stderr = koyeb.models.exec_command_io.ExecCommandIO(
- data = 'YQ==',
- close = True, ),
- exited = True,
- exit_code = 56, ),
- error = koyeb.models.google/rpc/status.google.rpc.Status(
- code = 56,
- message = '',
- details = [
- {
- 'key' : None
- }
- ], )
- )
- else:
- return StreamResultOfExecCommandReply(
- )
- """
-
- def testStreamResultOfExecCommandReply(self):
- """Test StreamResultOfExecCommandReply"""
- # 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_stream_result_of_log_entry.py b/koyeb/test/test_stream_result_of_log_entry.py
deleted file mode 100644
index ce0f6d4e..00000000
--- a/koyeb/test/test_stream_result_of_log_entry.py
+++ /dev/null
@@ -1,64 +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.stream_result_of_log_entry import StreamResultOfLogEntry
-
-
-class TestStreamResultOfLogEntry(unittest.TestCase):
- """StreamResultOfLogEntry unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `StreamResultOfLogEntry`
- """
- model = StreamResultOfLogEntry()
- if include_optional:
- return StreamResultOfLogEntry(
- result = koyeb.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(
- code = 56,
- message = '',
- details = [
- {
- 'key' : None
- }
- ], )
- )
- else:
- return StreamResultOfLogEntry(
- )
- """
-
- def testStreamResultOfLogEntry(self):
- """Test StreamResultOfLogEntry"""
- # 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_subscription_payment_failure.py b/koyeb/test/test_subscription_payment_failure.py
deleted file mode 100644
index cbfca8eb..00000000
--- a/koyeb/test/test_subscription_payment_failure.py
+++ /dev/null
@@ -1,64 +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_payment_failure import SubscriptionPaymentFailure
-
-
-class TestSubscriptionPaymentFailure(unittest.TestCase):
- """SubscriptionPaymentFailure unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `SubscriptionPaymentFailure`
- """
- model = SubscriptionPaymentFailure()
- if include_optional:
- return SubscriptionPaymentFailure(
- 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 = '',
- error_code = '',
- error_reason = '',
- error_type = '',
- error_message = '',
- payment_method_required = True,
- redirect_url = '',
- stripe_sdk = koyeb.models.subscription/payment_failure/stripe_sdk.Subscription.PaymentFailure.StripeSDK(
- client_secret_key = '',
- raw_json = '', )
- )
- else:
- return SubscriptionPaymentFailure(
- )
- """
-
- def testSubscriptionPaymentFailure(self):
- """Test SubscriptionPaymentFailure"""
- # 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_subscription_payment_failure_stripe_sdk.py b/koyeb/test/test_subscription_payment_failure_stripe_sdk.py
deleted file mode 100644
index a058f8c5..00000000
--- a/koyeb/test/test_subscription_payment_failure_stripe_sdk.py
+++ /dev/null
@@ -1,56 +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_payment_failure_stripe_sdk import (
- SubscriptionPaymentFailureStripeSDK,
-)
-
-
-class TestSubscriptionPaymentFailureStripeSDK(unittest.TestCase):
- """SubscriptionPaymentFailureStripeSDK unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `SubscriptionPaymentFailureStripeSDK`
- """
- model = SubscriptionPaymentFailureStripeSDK()
- if include_optional:
- return SubscriptionPaymentFailureStripeSDK(
- client_secret_key = '',
- raw_json = ''
- )
- else:
- return SubscriptionPaymentFailureStripeSDK(
- )
- """
-
- def testSubscriptionPaymentFailureStripeSDK(self):
- """Test SubscriptionPaymentFailureStripeSDK"""
- # 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_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_subscriptions_api.py b/koyeb/test/test_subscriptions_api.py
deleted file mode 100644
index 709c49e9..00000000
--- a/koyeb/test/test_subscriptions_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.subscriptions_api import SubscriptionsApi
-
-
-class TestSubscriptionsApi(unittest.TestCase):
- """SubscriptionsApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = SubscriptionsApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_subscription(self) -> None:
- """Test case for get_subscription
-
- Get Subscription
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_summary_api.py b/koyeb/test/test_summary_api.py
deleted file mode 100644
index c767db06..00000000
--- a/koyeb/test/test_summary_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.summary_api import SummaryApi
-
-
-class TestSummaryApi(unittest.TestCase):
- """SummaryApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = SummaryApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_organization_summary(self) -> None:
- """Test case for get_organization_summary
-
- Get organization usage summary
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_tcp_health_check.py b/koyeb/test/test_tcp_health_check.py
deleted file mode 100644
index 639a7626..00000000
--- a/koyeb/test/test_tcp_health_check.py
+++ /dev/null
@@ -1,53 +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.tcp_health_check import TCPHealthCheck
-
-
-class TestTCPHealthCheck(unittest.TestCase):
- """TCPHealthCheck unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `TCPHealthCheck`
- """
- model = TCPHealthCheck()
- if include_optional:
- return TCPHealthCheck(
- port = 56
- )
- else:
- return TCPHealthCheck(
- )
- """
-
- def testTCPHealthCheck(self):
- """Test TCPHealthCheck"""
- # 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_token.py b/koyeb/test/test_token.py
deleted file mode 100644
index a974eb8b..00000000
--- a/koyeb/test/test_token.py
+++ /dev/null
@@ -1,56 +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.token import Token
-
-
-class TestToken(unittest.TestCase):
- """Token unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Token`
- """
- model = Token()
- if include_optional:
- return Token(
- id = '',
- user_id = '',
- organization_id = '',
- expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return Token(
- )
- """
-
- def testToken(self):
- """Test Token"""
- # 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_trigger_deployment_metadata.py b/koyeb/test/test_trigger_deployment_metadata.py
deleted file mode 100644
index 604262d3..00000000
--- a/koyeb/test/test_trigger_deployment_metadata.py
+++ /dev/null
@@ -1,63 +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.trigger_deployment_metadata import TriggerDeploymentMetadata
-
-
-class TestTriggerDeploymentMetadata(unittest.TestCase):
- """TriggerDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `TriggerDeploymentMetadata`
- """
- model = TriggerDeploymentMetadata()
- if include_optional:
- return TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- sender_username = '',
- sender_avatar_url = '',
- sender_profile_url = '', )
- )
- else:
- return TriggerDeploymentMetadata(
- )
- """
-
- def testTriggerDeploymentMetadata(self):
- """Test TriggerDeploymentMetadata"""
- # 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_trigger_deployment_metadata_actor_type.py b/koyeb/test/test_trigger_deployment_metadata_actor_type.py
deleted file mode 100644
index 7d1dbc02..00000000
--- a/koyeb/test/test_trigger_deployment_metadata_actor_type.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.trigger_deployment_metadata_actor_type import (
- TriggerDeploymentMetadataActorType,
-)
-
-
-class TestTriggerDeploymentMetadataActorType(unittest.TestCase):
- """TriggerDeploymentMetadataActorType unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testTriggerDeploymentMetadataActorType(self):
- """Test TriggerDeploymentMetadataActorType"""
- # inst = TriggerDeploymentMetadataActorType()
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_trigger_deployment_metadata_trigger_type.py b/koyeb/test/test_trigger_deployment_metadata_trigger_type.py
deleted file mode 100644
index 4361049d..00000000
--- a/koyeb/test/test_trigger_deployment_metadata_trigger_type.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.trigger_deployment_metadata_trigger_type import (
- TriggerDeploymentMetadataTriggerType,
-)
-
-
-class TestTriggerDeploymentMetadataTriggerType(unittest.TestCase):
- """TriggerDeploymentMetadataTriggerType unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testTriggerDeploymentMetadataTriggerType(self):
- """Test TriggerDeploymentMetadataTriggerType"""
- # inst = TriggerDeploymentMetadataTriggerType()
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_trigger_git_deployment_metadata.py b/koyeb/test/test_trigger_git_deployment_metadata.py
deleted file mode 100644
index 23c2827c..00000000
--- a/koyeb/test/test_trigger_git_deployment_metadata.py
+++ /dev/null
@@ -1,60 +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.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata
-
-
-class TestTriggerGitDeploymentMetadata(unittest.TestCase):
- """TriggerGitDeploymentMetadata unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `TriggerGitDeploymentMetadata`
- """
- model = TriggerGitDeploymentMetadata()
- if include_optional:
- return TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- sender_username = '',
- sender_avatar_url = '',
- sender_profile_url = ''
- )
- else:
- return TriggerGitDeploymentMetadata(
- )
- """
-
- def testTriggerGitDeploymentMetadata(self):
- """Test TriggerGitDeploymentMetadata"""
- # 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_trigger_git_deployment_metadata_provider.py b/koyeb/test/test_trigger_git_deployment_metadata_provider.py
deleted file mode 100644
index f3af4cd4..00000000
--- a/koyeb/test/test_trigger_git_deployment_metadata_provider.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.trigger_git_deployment_metadata_provider import (
- TriggerGitDeploymentMetadataProvider,
-)
-
-
-class TestTriggerGitDeploymentMetadataProvider(unittest.TestCase):
- """TriggerGitDeploymentMetadataProvider unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def testTriggerGitDeploymentMetadataProvider(self):
- """Test TriggerGitDeploymentMetadataProvider"""
- # inst = TriggerGitDeploymentMetadataProvider()
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_update_app.py b/koyeb/test/test_update_app.py
deleted file mode 100644
index 1c756649..00000000
--- a/koyeb/test/test_update_app.py
+++ /dev/null
@@ -1,53 +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.update_app import UpdateApp
-
-
-class TestUpdateApp(unittest.TestCase):
- """UpdateApp unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateApp`
- """
- model = UpdateApp()
- if include_optional:
- return UpdateApp(
- name = ''
- )
- else:
- return UpdateApp(
- )
- """
-
- def testUpdateApp(self):
- """Test UpdateApp"""
- # 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_update_budget_reply.py b/koyeb/test/test_update_budget_reply.py
deleted file mode 100644
index 48aadd45..00000000
--- a/koyeb/test/test_update_budget_reply.py
+++ /dev/null
@@ -1,57 +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.update_budget_reply import UpdateBudgetReply
-
-
-class TestUpdateBudgetReply(unittest.TestCase):
- """UpdateBudgetReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateBudgetReply`
- """
- model = UpdateBudgetReply()
- if include_optional:
- return UpdateBudgetReply(
- budget = koyeb.models.budget.Budget(
- amount = '',
- thresholds = [
- ''
- ], )
- )
- else:
- return UpdateBudgetReply(
- )
- """
-
- def testUpdateBudgetReply(self):
- """Test UpdateBudgetReply"""
- # 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_update_budget_request.py b/koyeb/test/test_update_budget_request.py
deleted file mode 100644
index c74be12c..00000000
--- a/koyeb/test/test_update_budget_request.py
+++ /dev/null
@@ -1,53 +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.update_budget_request import UpdateBudgetRequest
-
-
-class TestUpdateBudgetRequest(unittest.TestCase):
- """UpdateBudgetRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateBudgetRequest`
- """
- model = UpdateBudgetRequest()
- if include_optional:
- return UpdateBudgetRequest(
- amount = ''
- )
- else:
- return UpdateBudgetRequest(
- )
- """
-
- def testUpdateBudgetRequest(self):
- """Test UpdateBudgetRequest"""
- # 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_update_credential_reply.py b/koyeb/test/test_update_credential_reply.py
deleted file mode 100644
index 9ad81ed2..00000000
--- a/koyeb/test/test_update_credential_reply.py
+++ /dev/null
@@ -1,63 +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.update_credential_reply import UpdateCredentialReply
-
-
-class TestUpdateCredentialReply(unittest.TestCase):
- """UpdateCredentialReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateCredentialReply`
- """
- model = UpdateCredentialReply()
- if include_optional:
- return UpdateCredentialReply(
- credential = koyeb.models.credential.Credential(
- id = '',
- type = 'INVALID',
- name = '',
- token = '',
- description = '',
- user_id = '',
- 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'),
- expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- )
- else:
- return UpdateCredentialReply(
- )
- """
-
- def testUpdateCredentialReply(self):
- """Test UpdateCredentialReply"""
- # 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_update_domain.py b/koyeb/test/test_update_domain.py
deleted file mode 100644
index a484f90a..00000000
--- a/koyeb/test/test_update_domain.py
+++ /dev/null
@@ -1,54 +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.update_domain import UpdateDomain
-
-
-class TestUpdateDomain(unittest.TestCase):
- """UpdateDomain unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateDomain`
- """
- model = UpdateDomain()
- if include_optional:
- return UpdateDomain(
- app_id = '',
- subdomain = ''
- )
- else:
- return UpdateDomain(
- )
- """
-
- def testUpdateDomain(self):
- """Test UpdateDomain"""
- # 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_update_domain_reply.py b/koyeb/test/test_update_domain_reply.py
deleted file mode 100644
index bca42951..00000000
--- a/koyeb/test/test_update_domain_reply.py
+++ /dev/null
@@ -1,71 +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.update_domain_reply import UpdateDomainReply
-
-
-class TestUpdateDomainReply(unittest.TestCase):
- """UpdateDomainReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateDomainReply`
- """
- model = UpdateDomainReply()
- if include_optional:
- return UpdateDomainReply(
- domain = koyeb.models.domain.Domain(
- id = '',
- organization_id = '',
- name = '',
- 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'),
- status = 'PENDING',
- type = 'AUTOASSIGNED',
- app_id = '',
- deployment_group = '',
- verified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- intended_cname = '',
- messages = [
- ''
- ],
- version = '',
- cloudflare = koyeb.models.domain/load_balancer_cloudflare.Domain.LoadBalancerCloudflare(),
- koyeb = koyeb.models.domain/load_balancer_koyeb.Domain.LoadBalancerKoyeb(
- request_timeout_seconds = 56, ), )
- )
- else:
- return UpdateDomainReply(
- )
- """
-
- def testUpdateDomainReply(self):
- """Test UpdateDomainReply"""
- # 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_update_organization_plan_reply.py b/koyeb/test/test_update_organization_plan_reply.py
deleted file mode 100644
index c999766b..00000000
--- a/koyeb/test/test_update_organization_plan_reply.py
+++ /dev/null
@@ -1,84 +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.update_organization_plan_reply import UpdateOrganizationPlanReply
-
-
-class TestUpdateOrganizationPlanReply(unittest.TestCase):
- """UpdateOrganizationPlanReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateOrganizationPlanReply`
- """
- model = UpdateOrganizationPlanReply()
- if include_optional:
- return UpdateOrganizationPlanReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return UpdateOrganizationPlanReply(
- )
- """
-
- def testUpdateOrganizationPlanReply(self):
- """Test UpdateOrganizationPlanReply"""
- # 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_update_organization_plan_request.py b/koyeb/test/test_update_organization_plan_request.py
deleted file mode 100644
index 565a6b91..00000000
--- a/koyeb/test/test_update_organization_plan_request.py
+++ /dev/null
@@ -1,53 +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.update_organization_plan_request import UpdateOrganizationPlanRequest
-
-
-class TestUpdateOrganizationPlanRequest(unittest.TestCase):
- """UpdateOrganizationPlanRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateOrganizationPlanRequest`
- """
- model = UpdateOrganizationPlanRequest()
- if include_optional:
- return UpdateOrganizationPlanRequest(
- plan = 'hobby'
- )
- else:
- return UpdateOrganizationPlanRequest(
- )
- """
-
- def testUpdateOrganizationPlanRequest(self):
- """Test UpdateOrganizationPlanRequest"""
- # 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_update_organization_reply.py b/koyeb/test/test_update_organization_reply.py
deleted file mode 100644
index 1f8eb3d9..00000000
--- a/koyeb/test/test_update_organization_reply.py
+++ /dev/null
@@ -1,84 +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.update_organization_reply import UpdateOrganizationReply
-
-
-class TestUpdateOrganizationReply(unittest.TestCase):
- """UpdateOrganizationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateOrganizationReply`
- """
- model = UpdateOrganizationReply()
- if include_optional:
- return UpdateOrganizationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return UpdateOrganizationReply(
- )
- """
-
- def testUpdateOrganizationReply(self):
- """Test UpdateOrganizationReply"""
- # 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_update_password_request.py b/koyeb/test/test_update_password_request.py
deleted file mode 100644
index 27dd2dd6..00000000
--- a/koyeb/test/test_update_password_request.py
+++ /dev/null
@@ -1,54 +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.update_password_request import UpdatePasswordRequest
-
-
-class TestUpdatePasswordRequest(unittest.TestCase):
- """UpdatePasswordRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdatePasswordRequest`
- """
- model = UpdatePasswordRequest()
- if include_optional:
- return UpdatePasswordRequest(
- id = '',
- password = ''
- )
- else:
- return UpdatePasswordRequest(
- )
- """
-
- def testUpdatePasswordRequest(self):
- """Test UpdatePasswordRequest"""
- # 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_update_persistent_volume_reply.py b/koyeb/test/test_update_persistent_volume_reply.py
deleted file mode 100644
index dd04587e..00000000
--- a/koyeb/test/test_update_persistent_volume_reply.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.update_persistent_volume_reply import UpdatePersistentVolumeReply
-
-
-class TestUpdatePersistentVolumeReply(unittest.TestCase):
- """UpdatePersistentVolumeReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # 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(
- id = '',
- name = '',
- snapshot_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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- service_id = '',
- region = '',
- read_only = True,
- max_size = 56,
- cur_size = 56,
- status = 'PERSISTENT_VOLUME_STATUS_INVALID',
- backing_store = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID', )
- )
- else:
- return UpdatePersistentVolumeReply(
- )
- """
-
- def testUpdatePersistentVolumeReply(self):
- """Test UpdatePersistentVolumeReply"""
- # 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_update_persistent_volume_request.py b/koyeb/test/test_update_persistent_volume_request.py
deleted file mode 100644
index 1ea2a54a..00000000
--- a/koyeb/test/test_update_persistent_volume_request.py
+++ /dev/null
@@ -1,54 +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.update_persistent_volume_request import UpdatePersistentVolumeRequest
-
-
-class TestUpdatePersistentVolumeRequest(unittest.TestCase):
- """UpdatePersistentVolumeRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdatePersistentVolumeRequest`
- """
- model = UpdatePersistentVolumeRequest()
- if include_optional:
- return UpdatePersistentVolumeRequest(
- name = '',
- max_size = 56
- )
- else:
- return UpdatePersistentVolumeRequest(
- )
- """
-
- def testUpdatePersistentVolumeRequest(self):
- """Test UpdatePersistentVolumeRequest"""
- # 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_update_secret_reply.py b/koyeb/test/test_update_secret_reply.py
deleted file mode 100644
index 05cb75e5..00000000
--- a/koyeb/test/test_update_secret_reply.py
+++ /dev/null
@@ -1,86 +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.update_secret_reply import UpdateSecretReply
-
-
-class TestUpdateSecretReply(unittest.TestCase):
- """UpdateSecretReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateSecretReply`
- """
- model = UpdateSecretReply()
- if include_optional:
- return UpdateSecretReply(
- secret = koyeb.models.secret.Secret(
- id = '',
- name = '',
- organization_id = '',
- type = 'SIMPLE',
- 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(
- username = '',
- password = '', ),
- private_registry = koyeb.models.private_registry_configuration.PrivateRegistryConfiguration(
- username = '',
- password = '',
- url = '', ),
- digital_ocean_registry = koyeb.models.digital_ocean_registry_configuration.DigitalOceanRegistryConfiguration(
- username = '',
- password = '', ),
- github_registry = koyeb.models.git_hub_registry_configuration.GitHubRegistryConfiguration(
- username = '',
- password = '', ),
- gitlab_registry = koyeb.models.git_lab_registry_configuration.GitLabRegistryConfiguration(
- username = '',
- password = '', ),
- gcp_container_registry = koyeb.models.gcp_container_registry_configuration.GCPContainerRegistryConfiguration(
- keyfile_content = '',
- url = '', ),
- azure_container_registry = koyeb.models.azure_container_registry_configuration.AzureContainerRegistryConfiguration(
- registry_name = '',
- username = '',
- password = '', ),
- database_role_password = koyeb.models.database_role_password.DatabaseRolePassword(
- username = '',
- password = '', ), )
- )
- else:
- return UpdateSecretReply(
- )
- """
-
- def testUpdateSecretReply(self):
- """Test UpdateSecretReply"""
- # 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_update_service.py b/koyeb/test/test_update_service.py
deleted file mode 100644
index 0e5a0670..00000000
--- a/koyeb/test/test_update_service.py
+++ /dev/null
@@ -1,216 +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.update_service import UpdateService
-
-
-class TestUpdateService(unittest.TestCase):
- """UpdateService unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateService`
- """
- model = UpdateService()
- if include_optional:
- return UpdateService(
- definition = koyeb.models.deployment_definition.DeploymentDefinition(
- name = '',
- type = 'INVALID',
- strategy = koyeb.models.deployment_strategy.DeploymentStrategy(),
- routes = [
- koyeb.models.deployment_route.DeploymentRoute(
- port = 56,
- path = '', )
- ],
- ports = [
- koyeb.models.deployment_port.DeploymentPort(
- port = 56,
- protocol = '', )
- ],
- proxy_ports = [
- koyeb.models.deployment_proxy_port.DeploymentProxyPort(
- port = 56,
- protocol = 'tcp', )
- ],
- env = [
- koyeb.models.deployment_env.DeploymentEnv(
- scopes = [
- ''
- ],
- key = '',
- value = '',
- secret = '', )
- ],
- regions = [
- ''
- ],
- scalings = [
- koyeb.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(
- 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()
- ],
- health_checks = [
- koyeb.models.deployment_health_check.DeploymentHealthCheck(
- grace_period = 56,
- interval = 56,
- restart_limit = 56,
- timeout = 56,
- tcp = koyeb.models.tcp_health_check.TCPHealthCheck(
- port = 56, ),
- http = koyeb.models.http_health_check.HTTPHealthCheck(
- port = 56,
- path = '',
- method = '',
- headers = [
- koyeb.models.http_header.HTTPHeader(
- key = '',
- value = '', )
- ], ), )
- ],
- volumes = [
- koyeb.models.deployment_volume.DeploymentVolume(
- id = '',
- path = '',
- replica_index = 56, )
- ],
- config_files = [
- koyeb.models.config_file.ConfigFile(
- path = '',
- permissions = '',
- content = '', )
- ],
- skip_cache = True,
- docker = koyeb.models.docker_source.DockerSource(
- image = '',
- command = '',
- args = [
- ''
- ],
- image_registry_secret = '',
- entrypoint = [
- ''
- ],
- privileged = True, ),
- git = koyeb.models.git_source.GitSource(
- repository = '',
- branch = '',
- tag = '',
- sha = '',
- build_command = '',
- run_command = '',
- no_deploy_on_push = True,
- workdir = '',
- buildpack = koyeb.models.buildpack_builder.BuildpackBuilder(
- build_command = '',
- run_command = '',
- privileged = True, ), ),
- database = koyeb.models.database_source.DatabaseSource(
- neon_postgres = koyeb.models.neon_postgres_database.NeonPostgresDatabase(
- pg_version = 56,
- region = '',
- instance_type = '',
- roles = [
- koyeb.models.neon_postgres_database/neon_role.NeonPostgresDatabase.NeonRole(
- name = '',
- secret = '', )
- ],
- databases = [
- koyeb.models.neon_postgres_database/neon_database.NeonPostgresDatabase.NeonDatabase(
- name = '',
- owner = '', )
- ], ), ),
- archive = koyeb.models.archive_source.ArchiveSource(
- id = '', ), ),
- metadata = koyeb.models.deployment_metadata.DeploymentMetadata(
- trigger = koyeb.models.trigger_deployment_metadata.TriggerDeploymentMetadata(
- type = 'UNKNOWN_TYPE',
- actor = 'UNKNOWN_ACTOR',
- git = koyeb.models.trigger_git_deployment_metadata.TriggerGitDeploymentMetadata(
- provider = 'UNKNOWN',
- repository = '',
- branch = '',
- sha = '',
- message = '',
- 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(
- reset_role_passwords = [
- ''
- ], ), ),
- git = koyeb.models.git_deployment_metadata.GitDeploymentMetadata(
- last_provisioned_deployment_id = '',
- git_env = koyeb.models.git_env_deployment_metadata.GitEnvDeploymentMetadata(
- sha = '',
- commit_author = '',
- commit_message = '', ), ),
- archive = koyeb.models.archive_deployment_metadata.ArchiveDeploymentMetadata(
- last_provisioned_deployment_id = '', ),
- proxy_ports = [
- koyeb.models.deployment_proxy_port_metadata.DeploymentProxyPortMetadata(
- host = '',
- public_port = 56,
- port = 56,
- protocol = 'tcp', )
- ], ),
- skip_build = True,
- save_only = True
- )
- else:
- return UpdateService(
- )
- """
-
- def testUpdateService(self):
- """Test UpdateService"""
- # 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_update_service_reply.py b/koyeb/test/test_update_service_reply.py
deleted file mode 100644
index a9c57a35..00000000
--- a/koyeb/test/test_update_service_reply.py
+++ /dev/null
@@ -1,83 +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.update_service_reply import UpdateServiceReply
-
-
-class TestUpdateServiceReply(unittest.TestCase):
- """UpdateServiceReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateServiceReply`
- """
- model = UpdateServiceReply()
- if include_optional:
- return UpdateServiceReply(
- service = koyeb.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'),
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- succeeded_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- resumed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- name = '',
- type = 'INVALID_TYPE',
- organization_id = '',
- app_id = '',
- status = 'STARTING',
- messages = [
- ''
- ],
- version = '',
- active_deployment_id = '',
- latest_deployment_id = '',
- last_provisioned_deployment_id = '',
- state = koyeb.models.service_state.ServiceState(
- desired_deployment = koyeb.models.desired_deployment.DesiredDeployment(
- groups = [
- koyeb.models.desired_deployment/group.DesiredDeployment.Group(
- name = '',
- deployment_ids = [
- ''
- ], )
- ], ),
- auto_release = koyeb.models.auto_release.AutoRelease(), ), )
- )
- else:
- return UpdateServiceReply(
- )
- """
-
- def testUpdateServiceReply(self):
- """Test UpdateServiceReply"""
- # 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_update_snapshot_reply.py b/koyeb/test/test_update_snapshot_reply.py
deleted file mode 100644
index 02ea4d63..00000000
--- a/koyeb/test/test_update_snapshot_reply.py
+++ /dev/null
@@ -1,64 +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.update_snapshot_reply import UpdateSnapshotReply
-
-
-class TestUpdateSnapshotReply(unittest.TestCase):
- """UpdateSnapshotReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateSnapshotReply`
- """
- model = UpdateSnapshotReply()
- if include_optional:
- return UpdateSnapshotReply(
- snapshot = koyeb.models.snapshot.Snapshot(
- id = '',
- name = '',
- size = 56,
- 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'),
- deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- organization_id = '',
- parent_volume_id = '',
- region = '',
- status = 'SNAPSHOT_STATUS_INVALID',
- type = 'SNAPSHOT_TYPE_INVALID', )
- )
- else:
- return UpdateSnapshotReply(
- )
- """
-
- def testUpdateSnapshotReply(self):
- """Test UpdateSnapshotReply"""
- # 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_update_snapshot_request.py b/koyeb/test/test_update_snapshot_request.py
deleted file mode 100644
index bb883f1c..00000000
--- a/koyeb/test/test_update_snapshot_request.py
+++ /dev/null
@@ -1,53 +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.update_snapshot_request import UpdateSnapshotRequest
-
-
-class TestUpdateSnapshotRequest(unittest.TestCase):
- """UpdateSnapshotRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateSnapshotRequest`
- """
- model = UpdateSnapshotRequest()
- if include_optional:
- return UpdateSnapshotRequest(
- name = ''
- )
- else:
- return UpdateSnapshotRequest(
- )
- """
-
- def testUpdateSnapshotRequest(self):
- """Test UpdateSnapshotRequest"""
- # 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_update_user_request_user_update_body.py b/koyeb/test/test_update_user_request_user_update_body.py
deleted file mode 100644
index 732af1a2..00000000
--- a/koyeb/test/test_update_user_request_user_update_body.py
+++ /dev/null
@@ -1,60 +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.update_user_request_user_update_body import (
- UpdateUserRequestUserUpdateBody,
-)
-
-
-class TestUpdateUserRequestUserUpdateBody(unittest.TestCase):
- """UpdateUserRequestUserUpdateBody unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateUserRequestUserUpdateBody`
- """
- model = UpdateUserRequestUserUpdateBody()
- if include_optional:
- return UpdateUserRequestUserUpdateBody(
- id = '',
- email = '',
- current_password = '',
- password = '',
- newsletter_subscribed = True,
- name = ''
- )
- else:
- return UpdateUserRequestUserUpdateBody(
- )
- """
-
- def testUpdateUserRequestUserUpdateBody(self):
- """Test UpdateUserRequestUserUpdateBody"""
- # 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_update_user_settings_reply.py b/koyeb/test/test_update_user_settings_reply.py
deleted file mode 100644
index db618535..00000000
--- a/koyeb/test/test_update_user_settings_reply.py
+++ /dev/null
@@ -1,56 +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.update_user_settings_reply import UpdateUserSettingsReply
-
-
-class TestUpdateUserSettingsReply(unittest.TestCase):
- """UpdateUserSettingsReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateUserSettingsReply`
- """
- model = UpdateUserSettingsReply()
- if include_optional:
- return UpdateUserSettingsReply(
- settings = koyeb.models.user_settings.UserSettings(
- id = '',
- user_id = '',
- failed_deployment_email_notification = True, )
- )
- else:
- return UpdateUserSettingsReply(
- )
- """
-
- def testUpdateUserSettingsReply(self):
- """Test UpdateUserSettingsReply"""
- # 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_update_user_settings_request.py b/koyeb/test/test_update_user_settings_request.py
deleted file mode 100644
index 8d2821d0..00000000
--- a/koyeb/test/test_update_user_settings_request.py
+++ /dev/null
@@ -1,53 +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.update_user_settings_request import UpdateUserSettingsRequest
-
-
-class TestUpdateUserSettingsRequest(unittest.TestCase):
- """UpdateUserSettingsRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpdateUserSettingsRequest`
- """
- model = UpdateUserSettingsRequest()
- if include_optional:
- return UpdateUserSettingsRequest(
- failed_deployment_email_notification = True
- )
- else:
- return UpdateUserSettingsRequest(
- )
- """
-
- def testUpdateUserSettingsRequest(self):
- """Test UpdateUserSettingsRequest"""
- # 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_upsert_signup_qualification_reply.py b/koyeb/test/test_upsert_signup_qualification_reply.py
deleted file mode 100644
index 76c6b473..00000000
--- a/koyeb/test/test_upsert_signup_qualification_reply.py
+++ /dev/null
@@ -1,86 +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.upsert_signup_qualification_reply import (
- UpsertSignupQualificationReply,
-)
-
-
-class TestUpsertSignupQualificationReply(unittest.TestCase):
- """UpsertSignupQualificationReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpsertSignupQualificationReply`
- """
- model = UpsertSignupQualificationReply()
- if include_optional:
- return UpsertSignupQualificationReply(
- organization = koyeb.models.represent_an_organization.Represent an Organization(
- id = '',
- address1 = '',
- address2 = '',
- city = '',
- postal_code = '',
- state = '',
- country = '',
- company = True,
- vat_number = '',
- billing_name = '',
- billing_email = '',
- name = '',
- plan = 'hobby',
- plan_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- has_payment_method = True,
- subscription_id = '',
- current_subscription_id = '',
- latest_subscription_id = '',
- signup_qualification = koyeb.models.signup_qualification.signup_qualification(),
- status = 'WARNING',
- status_message = 'NEW',
- deactivation_reason = 'INVALID',
- verified = True,
- qualifies_for_hobby23 = True,
- reprocess_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trialing = True,
- trial_starts_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- trial_ends_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- email_domain_allowlist = [
- ''
- ], )
- )
- else:
- return UpsertSignupQualificationReply(
- )
- """
-
- def testUpsertSignupQualificationReply(self):
- """Test UpsertSignupQualificationReply"""
- # 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_upsert_signup_qualification_request.py b/koyeb/test/test_upsert_signup_qualification_request.py
deleted file mode 100644
index a8f6f8ef..00000000
--- a/koyeb/test/test_upsert_signup_qualification_request.py
+++ /dev/null
@@ -1,55 +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.upsert_signup_qualification_request import (
- UpsertSignupQualificationRequest,
-)
-
-
-class TestUpsertSignupQualificationRequest(unittest.TestCase):
- """UpsertSignupQualificationRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UpsertSignupQualificationRequest`
- """
- model = UpsertSignupQualificationRequest()
- if include_optional:
- return UpsertSignupQualificationRequest(
- signup_qualification = None
- )
- else:
- return UpsertSignupQualificationRequest(
- )
- """
-
- def testUpsertSignupQualificationRequest(self):
- """Test UpsertSignupQualificationRequest"""
- # 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_usage.py b/koyeb/test/test_usage.py
deleted file mode 100644
index 8615b111..00000000
--- a/koyeb/test/test_usage.py
+++ /dev/null
@@ -1,82 +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.usage import Usage
-
-
-class TestUsage(unittest.TestCase):
- """Usage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `Usage`
- """
- model = Usage()
- if include_optional:
- return Usage(
- organization_id = '',
- periods = {
- 'key' : koyeb.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(
- app_id = '',
- app_name = '',
- services = [
- koyeb.models.service_usage.ServiceUsage(
- service_id = '',
- service_name = '',
- regions = {
- 'key' : koyeb.models.region_usage.RegionUsage(
- instances = {
- 'key' : koyeb.models.instance_usage.InstanceUsage(
- duration_seconds = 56, )
- }, )
- }, )
- ],
- databases = [
- koyeb.models.database_usage.DatabaseUsage(
- service_id = '',
- service_name = '',
- compute_time_seconds = 56,
- data_storage_megabytes_hours = 56, )
- ], )
- ], )
- }
- )
- else:
- return Usage(
- )
- """
-
- def testUsage(self):
- """Test Usage"""
- # 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_usage_details.py b/koyeb/test/test_usage_details.py
deleted file mode 100644
index 241ee0a0..00000000
--- a/koyeb/test/test_usage_details.py
+++ /dev/null
@@ -1,65 +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.usage_details import UsageDetails
-
-
-class TestUsageDetails(unittest.TestCase):
- """UsageDetails unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UsageDetails`
- """
- model = UsageDetails()
- if include_optional:
- return UsageDetails(
- organization_id = '',
- instance_id = '',
- app_id = '',
- app_name = '',
- service_id = '',
- service_name = '',
- regional_deployment_id = '',
- region = '',
- deployment_id = '',
- instance_type = '',
- duration_seconds = 56,
- started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- terminated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return UsageDetails(
- )
- """
-
- def testUsageDetails(self):
- """Test UsageDetails"""
- # 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_usages_api.py b/koyeb/test/test_usages_api.py
deleted file mode 100644
index 95bd10c6..00000000
--- a/koyeb/test/test_usages_api.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
-
-
-import unittest
-
-from koyeb.api.usages_api import UsagesApi
-
-
-class TestUsagesApi(unittest.TestCase):
- """UsagesApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = UsagesApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_get_organization_usage(self) -> None:
- """Test case for get_organization_usage
-
- Get organization usage
- """
- pass
-
- def test_get_organization_usage_details(self) -> None:
- """Test case for get_organization_usage_details
-
- Get organization usage details
- """
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/koyeb/test/test_user.py b/koyeb/test/test_user.py
deleted file mode 100644
index 7802fe30..00000000
--- a/koyeb/test/test_user.py
+++ /dev/null
@@ -1,69 +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 import User
-
-
-class TestUser(unittest.TestCase):
- """User unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `User`
- """
- model = User()
- if include_optional:
- return User(
- id = '',
- email = '',
- avatar_url = '',
- two_factor_authentication = True,
- last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- last_login_ip = '',
- 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'),
- newsletter_subscribed = True,
- github_id = '',
- github_user = '',
- flags = [
- 'ADMIN'
- ],
- name = '',
- email_validated = True,
- trialed = True
- )
- else:
- return User(
- )
- """
-
- def testUser(self):
- """Test User"""
- # 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_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_reply.py b/koyeb/test/test_user_reply.py
deleted file mode 100644
index df03e892..00000000
--- a/koyeb/test/test_user_reply.py
+++ /dev/null
@@ -1,53 +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_reply import UserReply
-
-
-class TestUserReply(unittest.TestCase):
- """UserReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UserReply`
- """
- model = UserReply()
- if include_optional:
- return UserReply(
- user = {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}
- )
- else:
- return UserReply(
- )
- """
-
- def testUserReply(self):
- """Test UserReply"""
- # 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_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_user_settings.py b/koyeb/test/test_user_settings.py
deleted file mode 100644
index 4962423b..00000000
--- a/koyeb/test/test_user_settings.py
+++ /dev/null
@@ -1,55 +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_settings import UserSettings
-
-
-class TestUserSettings(unittest.TestCase):
- """UserSettings unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `UserSettings`
- """
- model = UserSettings()
- if include_optional:
- return UserSettings(
- id = '',
- user_id = '',
- failed_deployment_email_notification = True
- )
- else:
- return UserSettings(
- )
- """
-
- def testUserSettings(self):
- """Test UserSettings"""
- # 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_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.py b/koyeb/test/test_verify_docker_image_reply.py
deleted file mode 100644
index 1f1ea620..00000000
--- a/koyeb/test/test_verify_docker_image_reply.py
+++ /dev/null
@@ -1,55 +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 import VerifyDockerImageReply
-
-
-class TestVerifyDockerImageReply(unittest.TestCase):
- """VerifyDockerImageReply unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- 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"""
- # uncomment below to create an instance of `VerifyDockerImageReply`
- """
- model = VerifyDockerImageReply()
- if include_optional:
- return VerifyDockerImageReply(
- success = True,
- reason = '',
- code = 'UNKNOWN'
- )
- else:
- return VerifyDockerImageReply(
- )
- """
-
- def testVerifyDockerImageReply(self):
- """Test VerifyDockerImageReply"""
- # 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_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()
diff --git a/koyeb_README.md b/koyeb_README.md
deleted file mode 100644
index 47816a71..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: 2025.7.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
-
-
-
-
diff --git a/pyproject.toml b/pyproject.toml
index ae9fda2e..6e0683e9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,24 +1,22 @@
[project]
name = "koyeb-sdk"
-version = "2025.7.0"
-description = "Koyeb Rest API"
-authors = [
- {name = "OpenAPI Generator Community",email = "team@openapitools.org"},
-]
+version = "1.0.0"
+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"
@@ -39,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"
@@ -81,9 +85,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/spec/openapi.json b/spec/openapi.json
index 03abc6e0..a20d2265 100644
--- a/spec/openapi.json
+++ b/spec/openapi.json
@@ -67,146 +67,51 @@
}
],
"paths": {
- "/v1/catalog/instances": {
+ "/v1/git/branches": {
"get": {
- "summary": "List Instances",
- "operationId": "ListCatalogInstances",
+ "summary": "List Branches",
+ "operationId": "ListBranches",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListCatalogInstancesReply"
+ "$ref": "#/definitions/kgitproxy.ListBranchesReply"
}
},
- "default": {
- "description": "An unexpected error response.",
+ "400": {
+ "description": "Validation error",
"schema": {
- "$ref": "#/definitions/google.rpc.Status"
+ "$ref": "#/definitions/ErrorWithFields"
}
- }
- },
- "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.",
+ "401": {
+ "description": "Returned when the token is not valid.",
"schema": {
- "$ref": "#/definitions/GetCatalogInstanceReply"
+ "$ref": "#/definitions/Error"
}
},
- "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.",
+ "403": {
+ "description": "Returned when the user does not have permission to access the resource.",
"schema": {
- "$ref": "#/definitions/ListUsageReply"
+ "$ref": "#/definitions/Error"
}
},
- "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.",
+ "404": {
+ "description": "Returned when the resource does not exist.",
"schema": {
- "$ref": "#/definitions/ListDatacentersReply"
+ "$ref": "#/definitions/Error"
}
},
- "default": {
- "description": "An unexpected error response.",
+ "500": {
+ "description": "Returned in case of server error.",
"schema": {
- "$ref": "#/definitions/google.rpc.Status"
+ "$ref": "#/definitions/Error"
}
- }
- },
- "tags": [
- "CatalogDatacenters"
- ]
- }
- },
- "/v1/catalog/regions": {
- "get": {
- "summary": "List Region",
- "operationId": "ListRegions",
- "responses": {
- "200": {
- "description": "A successful response.",
+ },
+ "503": {
+ "description": "Service is unavailable.",
"schema": {
- "$ref": "#/definitions/ListRegionsReply"
+ "$ref": "#/definitions/Error"
}
},
"default": {
@@ -218,73 +123,48 @@
},
"parameters": [
{
- "name": "limit",
- "description": "(Optional) The number of items to return",
+ "name": "repository_id",
+ "description": "(Optional) Filter on one repository.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
+ "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": "id",
- "description": "(Optional) A filter for regions",
+ "name": "limit",
+ "description": "(Optional) The number of items to return.",
"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,
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return.",
+ "in": "query",
+ "required": false,
"type": "string"
}
],
"tags": [
- "CatalogRegions"
+ "Repositories"
]
}
},
- "/v1/activities": {
+ "/v1/git/repositories": {
"get": {
- "summary": "List Activities",
- "operationId": "ListActivities",
+ "summary": "List Repositories",
+ "operationId": "ListRepositories",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ActivityList"
+ "$ref": "#/definitions/kgitproxy.ListRepositoriesReply"
}
},
"400": {
@@ -332,43 +212,48 @@
},
"parameters": [
{
- "name": "limit",
+ "name": "name",
+ "description": "(Optional) Filter on repository name using a fuzzy search.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "offset",
+ "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": "types",
- "description": "(Optional) Filter on object type",
+ "name": "limit",
+ "description": "(Optional) The number of items to return.",
"in": "query",
"required": false,
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "multi"
+ "type": "string"
+ },
+ {
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return.",
+ "in": "query",
+ "required": false,
+ "type": "string"
}
],
"tags": [
- "activity"
+ "Repositories"
]
}
},
- "/v1/notifications": {
- "get": {
- "summary": "List Notifications",
- "operationId": "ListNotifications",
+ "/v1/git/sync/organization/{organization_id}": {
+ "post": {
+ "summary": "Resync Organization",
+ "operationId": "ResyncOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/NotificationList"
+ "$ref": "#/definitions/kgitproxy.ResyncOrganizationReply"
}
},
"400": {
@@ -416,56 +301,136 @@
},
"parameters": [
{
- "name": "limit",
- "in": "query",
- "required": false,
+ "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"
+ }
},
- {
- "name": "offset",
+ "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"
+ "type": "string",
+ "format": "date-time"
},
{
- "name": "mark_read",
+ "name": "ending_time",
+ "description": "The ending time of the period to get data from",
"in": "query",
"required": false,
- "type": "string"
+ "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": "mark_seen",
+ "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": "unread",
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "unseen",
+ "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": [
- "activity"
+ "Usages"
]
}
},
- "/v1/git/branches": {
+ "/v1/regional_deployment_events": {
"get": {
- "summary": "List Branches",
- "operationId": "ListBranches",
+ "summary": "List Regional Deployment events",
+ "operationId": "ListRegionalDeploymentEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/kgitproxy.ListBranchesReply"
+ "$ref": "#/definitions/ListRegionalDeploymentEventsReply"
}
},
"400": {
@@ -513,48 +478,60 @@
},
"parameters": [
{
- "name": "repository_id",
- "description": "(Optional) Filter on one repository.",
+ "name": "regional_deployment_id",
+ "description": "(Optional) Filter on regional deployment id",
"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.",
+ "name": "types",
+ "description": "(Optional) Filter on regional deployment event types",
"in": "query",
"required": false,
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "collectionFormat": "multi"
},
{
"name": "limit",
- "description": "(Optional) The number of items to return.",
+ "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.",
+ "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": [
- "Repositories"
+ "RegionalDeployments"
]
}
},
- "/v1/git/repositories": {
+ "/v1/regional_deployments": {
"get": {
- "summary": "List Repositories",
- "operationId": "ListRepositories",
+ "summary": "List Regional Deployments",
+ "description": "Experimental: use at your own risk",
+ "operationId": "ListRegionalDeployments",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/kgitproxy.ListRepositoriesReply"
+ "$ref": "#/definitions/ListRegionalDeploymentsReply"
}
},
"400": {
@@ -602,48 +579,42 @@
},
"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.",
+ "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.",
+ "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.",
+ "description": "(Optional) The offset in the list of item to return",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
- "Repositories"
+ "RegionalDeployments"
]
}
},
- "/v1/git/sync/organization/{organization_id}": {
- "post": {
- "summary": "Resync Organization",
- "operationId": "ResyncOrganization",
+ "/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/kgitproxy.ResyncOrganizationReply"
+ "$ref": "#/definitions/GetRegionalDeploymentReply"
}
},
"400": {
@@ -691,36 +662,97 @@
},
"parameters": [
{
- "name": "organization_id",
+ "name": "id",
+ "description": "The id of the regional deployment",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Repositories"
+ "RegionalDeployments"
]
}
},
- "/v1/streams/instances/exec": {
+ "/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": "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",
+ "summary": "Verify Docker Image",
+ "description": "Verify if a docker image is reachable",
+ "operationId": "VerifyDockerImage",
"responses": {
"200": {
- "description": "A successful response.(streaming responses)",
+ "description": "A successful response.",
"schema": {
- "type": "object",
- "properties": {
- "result": {
- "$ref": "#/definitions/ExecCommandReply"
- },
- "error": {
- "$ref": "#/definitions/google.rpc.Status"
- }
- },
- "title": "Stream result of ExecCommandReply"
+ "$ref": "#/definitions/VerifyDockerImageReply"
}
},
"400": {
@@ -768,87 +800,34 @@
},
"parameters": [
{
- "name": "id",
- "description": "ID of the resource to exec on.",
+ "name": "image",
+ "description": "The full image uri to be verified",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "body.command",
- "description": "Command to exec. Mandatory in the first frame sent",
+ "name": "secret_id",
+ "description": "(Optional) the id of the secret to use to authenticate to the registry",
"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"
+ "type": "string"
}
],
"tags": [
- "Instances"
+ "DockerHelper"
]
}
},
- "/v1/streams/logs/query": {
+ "/v1/deployment/{id}/scaling": {
"get": {
- "summary": "Query logs",
- "operationId": "QueryLogs",
+ "summary": "Get Deployment Scaling",
+ "operationId": "GetDeploymentScaling",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/QueryLogsReply"
+ "$ref": "#/definitions/GetDeploymentScalingReply"
}
},
"400": {
@@ -896,116 +875,41 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"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`.",
+ "name": "region",
+ "description": "(Optional) Filter on region",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "limit",
- "description": "(Optional) Defaults to 100. Maximum of 1000.",
+ "name": "replica_index",
+ "description": "(Optional) Filter on replica_index",
"in": "query",
"required": false,
- "type": "string",
+ "type": "integer",
"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"
+ "Deployments"
]
}
},
- "/v1/streams/logs/tail": {
+ "/v1/deployment_events": {
"get": {
- "summary": "Tails logs",
- "operationId": "TailLogs",
+ "summary": "List Deployment events",
+ "operationId": "ListDeploymentEvents",
"responses": {
"200": {
- "description": "A successful response.(streaming responses)",
+ "description": "A successful response.",
"schema": {
- "type": "object",
- "properties": {
- "result": {
- "$ref": "#/definitions/LogEntry"
- },
- "error": {
- "$ref": "#/definitions/google.rpc.Status"
- }
- },
- "title": "Stream result of LogEntry"
+ "$ref": "#/definitions/ListDeploymentEventsReply"
}
},
"400": {
@@ -1052,91 +956,60 @@
}
},
"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",
+ "description": "(Optional) Filter on 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",
+ "name": "types",
+ "description": "(Optional) Filter on deployment event types",
"in": "query",
"required": false,
- "type": "string",
- "format": "date-time"
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "collectionFormat": "multi"
},
{
"name": "limit",
+ "description": "(Optional) The number of items to return",
"in": "query",
"required": false,
- "type": "string",
- "format": "int64"
+ "type": "string"
},
{
- "name": "regex",
- "description": "(Optional) Apply a regex to filter logs. Can't be used with `text`.",
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "text",
- "description": "(Optional) Looks for this string in logs. Can't be used with `regex`.",
+ "name": "order",
+ "description": "(Optional) Sorts the list in the ascending or the descending order",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
- "Logs"
+ "Deployments"
]
}
},
- "/v1/streams/metrics": {
+ "/v1/deployments": {
"get": {
- "summary": "Get Metrics",
- "operationId": "GetMetrics",
+ "summary": "List Deployments",
+ "operationId": "ListDeployments",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetMetricsReply"
+ "$ref": "#/definitions/ListDeploymentsReply"
}
},
"400": {
@@ -1183,78 +1056,78 @@
}
},
"parameters": [
+ {
+ "name": "app_id",
+ "description": "(Optional) Filter on application id",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
{
"name": "service_id",
- "description": "ID of the service to query instances metrics for. Ignored if instance_id is set.",
+ "description": "(Optional) Filter on service id",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "instance_id",
- "description": "ID of the instance to query metrics for.",
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "name",
- "description": "Metric to query.",
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
"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"
+ "type": "string"
},
{
- "name": "step",
- "description": "(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.",
+ "name": "statuses",
+ "description": "(Optional) Filter on statuses",
"in": "query",
"required": false,
- "type": "string"
+ "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": [
- "Metrics"
+ "Deployments"
]
}
},
- "/v1/domains": {
+ "/v1/deployments/{id}": {
"get": {
- "summary": "List Domains",
- "operationId": "ListDomains",
+ "summary": "Get Deployment",
+ "operationId": "GetDeployment",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListDomainsReply"
+ "$ref": "#/definitions/GetDeploymentReply"
}
},
"400": {
@@ -1302,83 +1175,28 @@
},
"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,
+ "name": "id",
+ "description": "The id of the deployment",
+ "in": "path",
+ "required": true,
"type": "string"
}
],
"tags": [
- "Domains"
+ "Deployments"
]
- },
+ }
+ },
+ "/v1/deployments/{id}/cancel": {
"post": {
- "summary": "Create Domain",
- "operationId": "CreateDomain",
+ "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/CreateDomainReply"
+ "$ref": "#/definitions/CancelDeploymentReply"
}
},
"400": {
@@ -1426,28 +1244,27 @@
},
"parameters": [
{
- "name": "domain",
- "in": "body",
+ "name": "id",
+ "description": "The id of the deployment to cancel.",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/CreateDomain"
- }
+ "type": "string"
}
],
"tags": [
- "Domains"
+ "Deployments"
]
}
},
- "/v1/domains/{id}": {
- "get": {
- "summary": "Get Domain",
- "operationId": "GetDomain",
+ "/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/GetDomainReply"
+ "$ref": "#/definitions/CreateStageAttemptReply"
}
},
"400": {
@@ -1495,24 +1312,68 @@
},
"parameters": [
{
- "name": "id",
+ "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": [
- "Domains"
+ "Provisioning"
]
},
- "delete": {
- "summary": "Delete Domain",
- "operationId": "DeleteDomain",
+ "patch": {
+ "summary": "Declare stage progress",
+ "operationId": "DeclareStageProgress",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeleteDomainReply"
+ "$ref": "#/definitions/DeclareStageProgressReply"
}
},
"400": {
@@ -1560,40 +1421,89 @@
},
"parameters": [
{
- "name": "id",
+ "name": "deployment_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"
- }
+ {
+ "name": "stage",
+ "in": "path",
+ "required": true,
+ "type": "string"
},
- "403": {
- "description": "Returned when the user does not have permission to access the resource.",
+ {
+ "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"
}
@@ -1625,47 +1535,74 @@
},
"parameters": [
{
- "name": "id",
+ "name": "deployment_id",
"in": "path",
"required": true,
"type": "string"
},
{
- "name": "domain",
- "in": "body",
+ "name": "stage",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/UpdateDomain"
- }
+ "type": "string"
},
{
- "name": "update_mask",
- "in": "query",
- "required": false,
+ "name": "attempt",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "dry_run",
- "description": "If set, run validation and check that the domain is available.",
- "in": "query",
- "required": false,
- "type": "boolean"
+ "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": [
- "Domains"
+ "Provisioning"
]
}
},
- "/v1/domains/{id}/refresh": {
- "post": {
- "summary": "Refresh Domain Status",
- "operationId": "RefreshDomainStatus",
+ "/v1/volume_events": {
+ "get": {
+ "summary": "List Persistent Volume events",
+ "operationId": "ListPersistentVolumeEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/RefreshDomainStatusReply"
+ "$ref": "#/definitions/ListPersistentVolumeEventsReply"
}
},
"400": {
@@ -1713,27 +1650,59 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "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": [
- "Domains"
+ "PersistentVolumes"
]
}
},
- "/v1/docker-helper/verify": {
+ "/v1/volumes": {
"get": {
- "summary": "Verify Docker Image",
- "description": "Verify if a docker image is reachable",
- "operationId": "VerifyDockerImage",
+ "summary": "List all PersistentVolumes",
+ "operationId": "ListPersistentVolumes",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/VerifyDockerImageReply"
+ "$ref": "#/definitions/ListPersistentVolumesReply"
}
},
"400": {
@@ -1781,144 +1750,53 @@
},
"parameters": [
{
- "name": "image",
- "description": "The full image uri to be verified",
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "secret_id",
- "description": "(Optional) the id of the secret to use to authenticate to the registry",
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
"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",
+ "name": "service_id",
+ "description": "(Optional) A filter for the service id",
"in": "query",
"required": false,
- "type": "string",
- "format": "date-time"
+ "type": "string"
},
{
- "name": "ending_time",
- "description": "The ending time of the period to get data from",
+ "name": "region",
+ "description": "(Optional) A filter for the region",
"in": "query",
"required": false,
- "type": "string",
- "format": "date-time"
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "description": "(Optional) A filter for the name",
+ "in": "query",
+ "required": false,
+ "type": "string"
}
],
"tags": [
- "Usages"
+ "PersistentVolumes"
]
- }
- },
- "/v1/usages/details": {
- "get": {
- "summary": "Get organization usage details",
- "operationId": "GetOrganizationUsageDetails",
+ },
+ "post": {
+ "summary": "Create a PersistentVolume",
+ "operationId": "CreatePersistentVolume",
"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"
+ "$ref": "#/definitions/CreatePersistentVolumeReply"
}
},
"400": {
@@ -1966,60 +1844,28 @@
},
"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"
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CreatePersistentVolumeRequest"
+ }
}
],
"tags": [
- "RegionalDeployments"
+ "PersistentVolumes"
]
}
},
- "/v1/regional_deployments": {
+ "/v1/volumes/{id}": {
"get": {
- "summary": "List Regional Deployments",
- "description": "Experimental: use at your own risk",
- "operationId": "ListRegionalDeployments",
+ "summary": "Get a PersistentVolume",
+ "operationId": "GetPersistentVolume",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListRegionalDeploymentsReply"
+ "$ref": "#/definitions/GetPersistentVolumeReply"
}
},
"400": {
@@ -2067,42 +1913,24 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
}
],
"tags": [
- "RegionalDeployments"
+ "PersistentVolumes"
]
- }
- },
- "/v1/regional_deployments/{id}": {
- "get": {
- "summary": "Get Regional Deployment",
- "description": "Experimental: use at your own risk",
- "operationId": "GetRegionalDeployment",
+ },
+ "delete": {
+ "summary": "Delete a PersistentVolume",
+ "operationId": "DeletePersistentVolume",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetRegionalDeploymentReply"
+ "$ref": "#/definitions/DeletePersistentVolumeReply"
}
},
"400": {
@@ -2151,26 +1979,23 @@
"parameters": [
{
"name": "id",
- "description": "The id of the regional deployment",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "RegionalDeployments"
+ "PersistentVolumes"
]
- }
- },
- "/v1/volume_events": {
- "get": {
- "summary": "List Persistent Volume events",
- "operationId": "ListPersistentVolumeEvents",
+ },
+ "post": {
+ "summary": "Update a PersistentVolume",
+ "operationId": "UpdatePersistentVolume",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListPersistentVolumeEventsReply"
+ "$ref": "#/definitions/UpdatePersistentVolumeReply"
}
},
"400": {
@@ -2218,43 +2043,29 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "order",
- "description": "(Optional) Sorts the list in the ascending or the descending order",
- "in": "query",
- "required": false,
- "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": [
@@ -2262,15 +2073,15 @@
]
}
},
- "/v1/volumes": {
+ "/v1/domains": {
"get": {
- "summary": "List all PersistentVolumes",
- "operationId": "ListPersistentVolumes",
+ "summary": "List Domains",
+ "operationId": "ListDomains",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListPersistentVolumesReply"
+ "$ref": "#/definitions/ListDomainsReply"
}
},
"400": {
@@ -2332,39 +2143,69 @@
"type": "string"
},
{
- "name": "service_id",
- "description": "(Optional) A filter for the service id",
+ "name": "types",
+ "description": "(Optional) A filter for types\n\n - AUTOASSIGNED: Domain like -.koyeb.app",
"in": "query",
"required": false,
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "AUTOASSIGNED",
+ "CUSTOM"
+ ]
+ },
+ "collectionFormat": "multi"
},
{
- "name": "region",
- "description": "(Optional) A filter for the region",
+ "name": "statuses",
+ "description": "(Optional) A filter for statuses",
"in": "query",
"required": false,
- "type": "string"
+ "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 the name",
+ "description": "(Optional) A filter for name",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
- "PersistentVolumes"
+ "Domains"
]
},
"post": {
- "summary": "Create a PersistentVolume",
- "operationId": "CreatePersistentVolume",
+ "summary": "Create Domain",
+ "operationId": "CreateDomain",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreatePersistentVolumeReply"
+ "$ref": "#/definitions/CreateDomainReply"
}
},
"400": {
@@ -2412,28 +2253,28 @@
},
"parameters": [
{
- "name": "body",
+ "name": "domain",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/CreatePersistentVolumeRequest"
+ "$ref": "#/definitions/CreateDomain"
}
}
],
"tags": [
- "PersistentVolumes"
+ "Domains"
]
}
},
- "/v1/volumes/{id}": {
+ "/v1/domains/{id}": {
"get": {
- "summary": "Get a PersistentVolume",
- "operationId": "GetPersistentVolume",
+ "summary": "Get Domain",
+ "operationId": "GetDomain",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetPersistentVolumeReply"
+ "$ref": "#/definitions/GetDomainReply"
}
},
"400": {
@@ -2488,17 +2329,17 @@
}
],
"tags": [
- "PersistentVolumes"
+ "Domains"
]
},
"delete": {
- "summary": "Delete a PersistentVolume",
- "operationId": "DeletePersistentVolume",
+ "summary": "Delete Domain",
+ "operationId": "DeleteDomain",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeletePersistentVolumeReply"
+ "$ref": "#/definitions/DeleteDomainReply"
}
},
"400": {
@@ -2553,17 +2394,17 @@
}
],
"tags": [
- "PersistentVolumes"
+ "Domains"
]
},
- "post": {
- "summary": "Update a PersistentVolume",
- "operationId": "UpdatePersistentVolume",
+ "patch": {
+ "summary": "Update Domain",
+ "operationId": "UpdateDomain",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdatePersistentVolumeReply"
+ "$ref": "#/definitions/UpdateDomainReply"
}
},
"400": {
@@ -2617,39 +2458,41 @@
"type": "string"
},
{
- "name": "body",
+ "name": "domain",
"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)"
- }
- }
+ "$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": [
- "PersistentVolumes"
+ "Domains"
]
}
},
- "/v1/secrets": {
- "get": {
- "summary": "List Secrets",
- "operationId": "ListSecrets",
+ "/v1/domains/{id}/refresh": {
+ "post": {
+ "summary": "Refresh Domain Status",
+ "operationId": "RefreshDomainStatus",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListSecretsReply"
+ "$ref": "#/definitions/RefreshDomainStatusReply"
}
},
"400": {
@@ -2697,52 +2540,26 @@
},
"parameters": [
{
- "name": "name",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "offset",
- "in": "query",
- "required": false,
+ "name": "id",
+ "in": "path",
+ "required": true,
"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"
+ "Domains"
]
- },
- "post": {
- "summary": "Create Secret",
- "operationId": "CreateSecret",
+ }
+ },
+ "/v1/instance_events": {
+ "get": {
+ "summary": "List Instance events",
+ "operationId": "ListInstanceEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateSecretReply"
+ "$ref": "#/definitions/ListInstanceEventsReply"
}
},
"400": {
@@ -2790,28 +2607,63 @@
},
"parameters": [
{
- "name": "secret",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateSecret"
- }
+ "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": [
- "Secrets"
+ "Instances"
]
}
},
- "/v1/secrets/{id}": {
+ "/v1/instances": {
"get": {
- "summary": "Get Secret",
- "operationId": "GetSecret",
+ "summary": "List Instances",
+ "operationId": "ListInstances",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetSecretReply"
+ "$ref": "#/definitions/ListInstancesReply"
}
},
"400": {
@@ -2859,168 +2711,120 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "name": "app_id",
+ "description": "(Optional) Filter on application id",
+ "in": "query",
+ "required": false,
"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"
- }
+ {
+ "name": "service_id",
+ "description": "(Optional) Filter on service id",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "401": {
- "description": "Returned when the token is not valid.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
+ {
+ "name": "deployment_id",
+ "description": "(Optional) Filter on deployment id",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "403": {
- "description": "Returned when the user does not have permission to access the resource.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
- },
- "404": {
- "description": "Returned when the resource does not exist.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
- },
- "500": {
- "description": "Returned in case of server error.",
- "schema": {
- "$ref": "#/definitions/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,
+ "name": "regional_deployment_id",
+ "description": "(Optional) Filter on regional deployment id",
+ "in": "query",
+ "required": false,
"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"
- }
+ {
+ "name": "allocation_id",
+ "description": "(Optional) Filter on allocation id",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "403": {
- "description": "Returned when the user does not have permission to access the resource.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
+ {
+ "name": "replica_index",
+ "description": "(Optional) Filter on replica index",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "404": {
- "description": "Returned when the resource does not exist.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
+ {
+ "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"
},
- "500": {
- "description": "Returned in case of server error.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
+ {
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "503": {
- "description": "Service is unavailable.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
+ {
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/google.rpc.Status"
- }
- }
- },
- "parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "name": "order",
+ "description": "(Optional) Sorts the list in the ascending or the descending order",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "secret",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Secret"
- }
+ "name": "starting_time",
+ "description": "(Optional) The starting time of the period of running instance",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
},
{
- "name": "update_mask",
+ "name": "ending_time",
+ "description": "(Optional) The ending time of the period of running instance",
"in": "query",
"required": false,
- "type": "string"
+ "type": "string",
+ "format": "date-time"
}
],
"tags": [
- "Secrets"
+ "Instances"
]
- },
- "patch": {
- "summary": "Update Secret",
- "operationId": "UpdateSecret2",
+ }
+ },
+ "/v1/instances/{id}": {
+ "get": {
+ "summary": "Get Instance",
+ "operationId": "GetInstance",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateSecretReply"
+ "$ref": "#/definitions/GetInstanceReply"
}
},
"400": {
@@ -3069,39 +2873,27 @@
"parameters": [
{
"name": "id",
+ "description": "The id of the instance",
"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"
+ "Instances"
]
}
},
- "/v1/secrets/{id}/reveal": {
+ "/v1/archives": {
"post": {
- "summary": "Reveal Secret",
- "operationId": "RevealSecret",
+ "summary": "Create Archive",
+ "description": "Create a signed URL to upload an archive.",
+ "operationId": "CreateArchive",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/RevealSecretReply"
+ "$ref": "#/definitions/CreateArchiveReply"
}
},
"400": {
@@ -3149,34 +2941,28 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
- "type": "string"
- },
- {
- "name": "body",
+ "name": "archive",
"in": "body",
"required": true,
"schema": {
- "type": "object"
+ "$ref": "#/definitions/CreateArchive"
}
}
],
"tags": [
- "Secrets"
+ "Archives"
]
}
},
- "/v1/instance_events": {
+ "/v1/app_events": {
"get": {
- "summary": "List Instance events",
- "operationId": "ListInstanceEvents",
+ "summary": "List App events",
+ "operationId": "ListAppEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListInstanceEventsReply"
+ "$ref": "#/definitions/ListAppEventsReply"
}
},
"400": {
@@ -3224,19 +3010,15 @@
},
"parameters": [
{
- "name": "instance_ids",
- "description": "(Optional) Filter on list of instance id",
+ "name": "app_id",
+ "description": "(Optional) Filter on app id",
"in": "query",
"required": false,
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "multi"
+ "type": "string"
},
{
"name": "types",
- "description": "(Optional) Filter on instance event types",
+ "description": "(Optional) Filter on app event types",
"in": "query",
"required": false,
"type": "array",
@@ -3268,19 +3050,19 @@
}
],
"tags": [
- "Instances"
+ "Apps"
]
}
},
- "/v1/instances": {
+ "/v1/apps": {
"get": {
- "summary": "List Instances",
- "operationId": "ListInstances",
+ "summary": "List App",
+ "operationId": "ListApps",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListInstancesReply"
+ "$ref": "#/definitions/ListAppsReply"
}
},
"400": {
@@ -3328,120 +3110,108 @@
},
"parameters": [
{
- "name": "app_id",
- "description": "(Optional) Filter on application id",
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "service_id",
- "description": "(Optional) Filter on service id",
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
"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",
+ "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"
+ }
},
- {
- "name": "replica_index",
- "description": "(Optional) Filter on replica index",
- "in": "query",
- "required": false,
- "type": "string"
+ "400": {
+ "description": "Validation error",
+ "schema": {
+ "$ref": "#/definitions/ErrorWithFields"
+ }
},
- {
- "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"
+ "401": {
+ "description": "Returned when the token is not valid.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
},
- {
- "name": "limit",
- "description": "(Optional) The number of items to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "403": {
+ "description": "Returned when the user does not have permission to access the resource.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
},
- {
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "404": {
+ "description": "Returned when the resource does not exist.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
},
- {
- "name": "order",
- "description": "(Optional) Sorts the list in the ascending or the descending order",
- "in": "query",
- "required": false,
- "type": "string"
+ "500": {
+ "description": "Returned in case of server error.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
},
- {
- "name": "starting_time",
- "description": "(Optional) The starting time of the period of running instance",
- "in": "query",
- "required": false,
- "type": "string",
- "format": "date-time"
+ "503": {
+ "description": "Service is unavailable.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
},
+ "default": {
+ "description": "An unexpected error response.",
+ "schema": {
+ "$ref": "#/definitions/google.rpc.Status"
+ }
+ }
+ },
+ "parameters": [
{
- "name": "ending_time",
- "description": "(Optional) The ending time of the period of running instance",
- "in": "query",
- "required": false,
- "type": "string",
- "format": "date-time"
+ "name": "app",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CreateApp"
+ }
}
],
"tags": [
- "Instances"
+ "Apps"
]
}
},
- "/v1/instances/{id}": {
+ "/v1/apps/{id}": {
"get": {
- "summary": "Get Instance",
- "operationId": "GetInstance",
+ "summary": "Get App",
+ "operationId": "GetApp",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetInstanceReply"
+ "$ref": "#/definitions/GetAppReply"
}
},
"400": {
@@ -3490,26 +3260,25 @@
"parameters": [
{
"name": "id",
- "description": "The id of the instance",
+ "description": "The id of the App",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Instances"
+ "Apps"
]
- }
- },
- "/v1/deployment/{id}/scaling": {
- "get": {
- "summary": "Get Deployment Scaling",
- "operationId": "GetDeploymentScaling",
+ },
+ "delete": {
+ "summary": "Delete App",
+ "description": "App deletion is allowed for all status.",
+ "operationId": "DeleteApp",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetDeploymentScalingReply"
+ "$ref": "#/definitions/DeleteAppReply"
}
},
"400": {
@@ -3558,40 +3327,24 @@
"parameters": [
{
"name": "id",
+ "description": "The id of the App to delete",
"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"
+ "Apps"
]
- }
- },
- "/v1/deployment_events": {
- "get": {
- "summary": "List Deployment events",
- "operationId": "ListDeploymentEvents",
+ },
+ "put": {
+ "summary": "Update App",
+ "operationId": "UpdateApp",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListDeploymentEventsReply"
+ "$ref": "#/definitions/UpdateAppReply"
}
},
"400": {
@@ -3639,59 +3392,39 @@
},
"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,
+ "name": "id",
+ "description": "The id of the app to update.",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "app",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/UpdateApp"
+ }
},
{
- "name": "order",
- "description": "(Optional) Sorts the list in the ascending or the descending order",
+ "name": "update_mask",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
- "Deployments"
+ "Apps"
]
- }
- },
- "/v1/deployments": {
- "get": {
- "summary": "List Deployments",
- "operationId": "ListDeployments",
+ },
+ "patch": {
+ "summary": "Update App",
+ "operationId": "UpdateApp2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListDeploymentsReply"
+ "$ref": "#/definitions/UpdateAppReply"
}
},
"400": {
@@ -3739,77 +3472,42 @@
},
"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,
+ "name": "id",
+ "description": "The id of the app to update.",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "limit",
- "description": "(Optional) The number of items to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "app",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/UpdateApp"
+ }
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
+ "name": "update_mask",
"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"
+ "Apps"
]
}
},
- "/v1/deployments/{id}": {
- "get": {
- "summary": "Get Deployment",
- "operationId": "GetDeployment",
+ "/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/GetDeploymentReply"
+ "$ref": "#/definitions/PauseAppReply"
}
},
"400": {
@@ -3858,27 +3556,27 @@
"parameters": [
{
"name": "id",
- "description": "The id of the deployment",
+ "description": "The id of the app to pause.",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Deployments"
+ "Apps"
]
}
},
- "/v1/deployments/{id}/cancel": {
+ "/v1/apps/{id}/resume": {
"post": {
- "summary": "Cancel Deployment",
- "description": "Deployment cancellation is allowed for the following status:\n - pending\n - provisioning\n - scheduled",
- "operationId": "CancelDeployment",
+ "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/CancelDeploymentReply"
+ "$ref": "#/definitions/ResumeAppReply"
}
},
"400": {
@@ -3927,14 +3625,14 @@
"parameters": [
{
"name": "id",
- "description": "The id of the deployment to cancel.",
+ "description": "The id of the app to resume.",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Deployments"
+ "Apps"
]
}
},
@@ -4007,15 +3705,15 @@
]
}
},
- "/v1/provisioning/{deployment_id}/status/{stage}/{attempt}": {
- "post": {
- "summary": "Create an attempt for a stage",
- "operationId": "CreateStageAttempt",
+ "/v1/service_events": {
+ "get": {
+ "summary": "List Service events",
+ "operationId": "ListServiceEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateStageAttemptReply"
+ "$ref": "#/definitions/ListServiceEventsReply"
}
},
"400": {
@@ -4063,68 +3761,59 @@
},
"parameters": [
{
- "name": "deployment_id",
- "in": "path",
- "required": true,
+ "name": "service_id",
+ "description": "(Optional) Filter on service id",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "stage",
- "in": "path",
- "required": true,
+ "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": "attempt",
- "in": "path",
- "required": true,
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
+ "in": "query",
+ "required": false,
"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"
- }
- }
- }
- }
+ "name": "order",
+ "description": "(Optional) Sorts the list in the ascending or the descending order",
+ "in": "query",
+ "required": false,
+ "type": "string"
}
],
"tags": [
- "Provisioning"
+ "Services"
]
- },
- "patch": {
- "summary": "Declare stage progress",
- "operationId": "DeclareStageProgress",
+ }
+ },
+ "/v1/services": {
+ "get": {
+ "summary": "List Services",
+ "operationId": "ListServices",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeclareStageProgressReply"
+ "$ref": "#/definitions/ListServicesReply"
}
},
"400": {
@@ -4172,73 +3861,85 @@
},
"parameters": [
{
- "name": "deployment_id",
- "in": "path",
- "required": true,
+ "name": "app_id",
+ "description": "(Optional) The id of the app",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "stage",
- "in": "path",
- "required": true,
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "attempt",
- "in": "path",
- "required": true,
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
+ "in": "query",
+ "required": false,
"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"
- }
- }
- }
+ "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": [
- "Provisioning"
+ "Services"
]
- }
- },
- "/v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step}": {
- "patch": {
- "summary": "Declare step progress",
- "operationId": "DeclareStepProgress",
+ },
+ "post": {
+ "summary": "Create Service",
+ "operationId": "CreateService",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeclareStepProgressReply"
+ "$ref": "#/definitions/CreateServiceReply"
}
},
"400": {
@@ -4286,74 +3987,36 @@
},
"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",
+ "name": "service",
"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"
- }
- }
- }
+ "$ref": "#/definitions/CreateService"
}
+ },
+ {
+ "name": "dry_run",
+ "description": "If set only run validation",
+ "in": "query",
+ "required": false,
+ "type": "boolean"
}
],
"tags": [
- "Provisioning"
+ "Services"
]
}
},
- "/v1/compose": {
+ "/v1/services-autocomplete": {
"post": {
- "summary": "Create resources from compose.",
- "operationId": "Compose",
+ "summary": "Autocomplete definition",
+ "description": "Generate autocomplete definition for a service",
+ "operationId": "Autocomplete",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ComposeReply"
+ "$ref": "#/definitions/AutocompleteReply"
}
},
"400": {
@@ -4401,29 +4064,28 @@
},
"parameters": [
{
- "name": "compose",
+ "name": "body",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/CreateCompose"
+ "$ref": "#/definitions/AutocompleteRequest"
}
}
],
"tags": [
- "Compose"
+ "Services"
]
}
},
- "/v1/archives": {
- "post": {
- "summary": "Create Archive",
- "description": "Create a signed URL to upload an archive.",
- "operationId": "CreateArchive",
+ "/v1/services/{id}": {
+ "get": {
+ "summary": "Get Service",
+ "operationId": "GetService",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateArchiveReply"
+ "$ref": "#/definitions/GetServiceReply"
}
},
"400": {
@@ -4471,28 +4133,26 @@
},
"parameters": [
{
- "name": "archive",
- "in": "body",
+ "name": "id",
+ "description": "The id of the Service",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/CreateArchive"
- }
+ "type": "string"
}
],
"tags": [
- "Archives"
+ "Services"
]
- }
- },
- "/v1/app_events": {
- "get": {
- "summary": "List App events",
- "operationId": "ListAppEvents",
+ },
+ "delete": {
+ "summary": "Delete Service",
+ "description": "Service deletion is allowed for all status.",
+ "operationId": "DeleteService",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListAppEventsReply"
+ "$ref": "#/definitions/DeleteServiceReply"
}
},
"400": {
@@ -4540,59 +4200,25 @@
},
"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,
+ "name": "id",
+ "description": "The id of the entity to delete",
+ "in": "path",
+ "required": true,
"type": "string"
}
],
"tags": [
- "Apps"
+ "Services"
]
- }
- },
- "/v1/apps": {
- "get": {
- "summary": "List App",
- "operationId": "ListApps",
+ },
+ "put": {
+ "summary": "Update Service",
+ "operationId": "UpdateService",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListAppsReply"
+ "$ref": "#/definitions/UpdateServiceReply"
}
},
"400": {
@@ -4640,39 +4266,40 @@
},
"parameters": [
{
- "name": "limit",
- "description": "(Optional) The number of items to return",
- "in": "query",
- "required": false,
+ "name": "id",
+ "description": "The id of the entity to update",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "service",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/UpdateService"
+ }
},
{
- "name": "name",
- "description": "(Optional) A filter for name",
+ "name": "dry_run",
+ "description": "If set, run validation and check that the service exists",
"in": "query",
"required": false,
- "type": "string"
+ "type": "boolean"
}
],
"tags": [
- "Apps"
+ "Services"
]
},
- "post": {
- "summary": "Create App",
- "operationId": "CreateApp",
+ "patch": {
+ "summary": "Update Service",
+ "operationId": "UpdateService2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateAppReply"
+ "$ref": "#/definitions/UpdateServiceReply"
}
},
"400": {
@@ -4720,28 +4347,43 @@
},
"parameters": [
{
- "name": "app",
+ "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/CreateApp"
+ "$ref": "#/definitions/UpdateService"
}
+ },
+ {
+ "name": "dry_run",
+ "description": "If set, run validation and check that the service exists",
+ "in": "query",
+ "required": false,
+ "type": "boolean"
}
],
"tags": [
- "Apps"
+ "Services"
]
}
},
- "/v1/apps/{id}": {
- "get": {
- "summary": "Get App",
- "operationId": "GetApp",
+ "/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/GetAppReply"
+ "$ref": "#/definitions/PauseServiceReply"
}
},
"400": {
@@ -4790,25 +4432,26 @@
"parameters": [
{
"name": "id",
- "description": "The id of the App",
+ "description": "The id of the service to pause.",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Apps"
+ "Services"
]
- },
- "delete": {
- "summary": "Delete App",
- "description": "App deletion is allowed for all status.",
- "operationId": "DeleteApp",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/DeleteAppReply"
+ }
+ },
+ "/v1/services/{id}/redeploy": {
+ "post": {
+ "summary": "ReDeploy Service",
+ "operationId": "ReDeploy",
+ "responses": {
+ "200": {
+ "description": "A successful response.",
+ "schema": {
+ "$ref": "#/definitions/RedeployReply"
}
},
"400": {
@@ -4857,24 +4500,34 @@
"parameters": [
{
"name": "id",
- "description": "The id of the App to delete",
"in": "path",
"required": true,
"type": "string"
+ },
+ {
+ "name": "info",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/RedeployRequest.Info"
+ }
}
],
"tags": [
- "Apps"
+ "Services"
]
- },
- "put": {
- "summary": "Update App",
- "operationId": "UpdateApp",
+ }
+ },
+ "/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/UpdateAppReply"
+ "$ref": "#/definitions/ResumeServiceReply"
}
},
"400": {
@@ -4923,38 +4576,39 @@
"parameters": [
{
"name": "id",
- "description": "The id of the app to update.",
+ "description": "The id of the service to pause.",
"in": "path",
"required": true,
"type": "string"
},
{
- "name": "app",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UpdateApp"
- }
+ "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": "update_mask",
+ "name": "use_cache",
"in": "query",
"required": false,
- "type": "string"
+ "type": "boolean"
}
],
"tags": [
- "Apps"
+ "Services"
]
- },
- "patch": {
- "summary": "Update App",
- "operationId": "UpdateApp2",
+ }
+ },
+ "/v1/secrets": {
+ "get": {
+ "summary": "List Secrets",
+ "operationId": "ListSecrets",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateAppReply"
+ "$ref": "#/definitions/ListSecretsReply"
}
},
"400": {
@@ -5002,42 +4656,52 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the app to update.",
- "in": "path",
- "required": true,
+ "name": "name",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "app",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UpdateApp"
- }
+ "name": "limit",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
{
- "name": "update_mask",
+ "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": [
- "Apps"
+ "Secrets"
]
- }
- },
- "/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",
+ "summary": "Create Secret",
+ "operationId": "CreateSecret",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/PauseAppReply"
+ "$ref": "#/definitions/CreateSecretReply"
}
},
"400": {
@@ -5085,28 +4749,28 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the app to pause.",
- "in": "path",
+ "name": "secret",
+ "in": "body",
"required": true,
- "type": "string"
+ "schema": {
+ "$ref": "#/definitions/CreateSecret"
+ }
}
],
"tags": [
- "Apps"
+ "Secrets"
]
}
},
- "/v1/apps/{id}/resume": {
- "post": {
- "summary": "Resume App",
- "description": "App resume action is allowed for the following status:\n - paused",
- "operationId": "ResumeApp",
+ "/v1/secrets/{id}": {
+ "get": {
+ "summary": "Get Secret",
+ "operationId": "GetSecret",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ResumeAppReply"
+ "$ref": "#/definitions/GetSecretReply"
}
},
"400": {
@@ -5155,26 +4819,23 @@
"parameters": [
{
"name": "id",
- "description": "The id of the app to resume.",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Apps"
+ "Secrets"
]
- }
- },
- "/v1/service_events": {
- "get": {
- "summary": "List Service events",
- "operationId": "ListServiceEvents",
+ },
+ "delete": {
+ "summary": "Delete Secret",
+ "operationId": "DeleteSecret",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListServiceEventsReply"
+ "$ref": "#/definitions/DeleteSecretReply"
}
},
"400": {
@@ -5222,59 +4883,24 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
}
],
"tags": [
- "Services"
+ "Secrets"
]
- }
- },
- "/v1/services": {
- "get": {
- "summary": "List Services",
- "operationId": "ListServices",
+ },
+ "put": {
+ "summary": "Update Secret",
+ "operationId": "UpdateSecret",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListServicesReply"
+ "$ref": "#/definitions/UpdateSecretReply"
}
},
"400": {
@@ -5322,63 +4948,38 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "secret",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Secret"
+ }
},
{
- "name": "name",
- "description": "(Optional) A filter for name",
+ "name": "update_mask",
"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"
+ "Secrets"
]
},
- "post": {
- "summary": "Create Service",
- "operationId": "CreateService",
- "responses": {
+ "patch": {
+ "summary": "Update Secret",
+ "operationId": "UpdateSecret2",
+ "responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateServiceReply"
+ "$ref": "#/definitions/UpdateSecretReply"
}
},
"400": {
@@ -5426,36 +5027,40 @@
},
"parameters": [
{
- "name": "service",
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "secret",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/CreateService"
+ "$ref": "#/definitions/Secret"
}
},
{
- "name": "dry_run",
- "description": "If set only run validation",
+ "name": "update_mask",
"in": "query",
"required": false,
- "type": "boolean"
+ "type": "string"
}
],
"tags": [
- "Services"
+ "Secrets"
]
}
},
- "/v1/services-autocomplete": {
+ "/v1/secrets/{id}/reveal": {
"post": {
- "summary": "Autocomplete definition",
- "description": "Generate autocomplete definition for a service",
- "operationId": "Autocomplete",
+ "summary": "Reveal Secret",
+ "operationId": "RevealSecret",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/AutocompleteReply"
+ "$ref": "#/definitions/RevealSecretReply"
}
},
"400": {
@@ -5502,29 +5107,35 @@
}
},
"parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
{
"name": "body",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/AutocompleteRequest"
+ "type": "object"
}
}
],
"tags": [
- "Services"
+ "Secrets"
]
}
},
- "/v1/services/{id}": {
+ "/v1/snapshots": {
"get": {
- "summary": "Get Service",
- "operationId": "GetService",
+ "summary": "List all Snapshots",
+ "operationId": "ListSnapshots",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetServiceReply"
+ "$ref": "#/definitions/ListSnapshotsReply"
}
},
"400": {
@@ -5572,26 +5183,65 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the Service",
- "in": "path",
- "required": true,
+ "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": [
- "Services"
+ "Snapshots"
]
},
- "delete": {
- "summary": "Delete Service",
- "description": "Service deletion is allowed for all status.",
- "operationId": "DeleteService",
+ "post": {
+ "summary": "Create a Snapshot",
+ "operationId": "CreateSnapshot",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeleteServiceReply"
+ "$ref": "#/definitions/CreateSnapshotReply"
}
},
"400": {
@@ -5639,25 +5289,28 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the entity to delete",
- "in": "path",
+ "name": "body",
+ "in": "body",
"required": true,
- "type": "string"
+ "schema": {
+ "$ref": "#/definitions/CreateSnapshotRequest"
+ }
}
],
"tags": [
- "Services"
+ "Snapshots"
]
- },
- "put": {
- "summary": "Update Service",
- "operationId": "UpdateService",
+ }
+ },
+ "/v1/snapshots/{id}": {
+ "get": {
+ "summary": "Get a Snapshot",
+ "operationId": "GetSnapshot",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateServiceReply"
+ "$ref": "#/definitions/GetSnapshotReply"
}
},
"400": {
@@ -5706,39 +5359,23 @@
"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"
+ "Snapshots"
]
},
- "patch": {
- "summary": "Update Service",
- "operationId": "UpdateService2",
+ "delete": {
+ "summary": "Delete a Snapshot",
+ "operationId": "DeleteSnapshot",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateServiceReply"
+ "$ref": "#/definitions/DeleteSnapshotReply"
}
},
"400": {
@@ -5787,42 +5424,23 @@
"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"
+ "Snapshots"
]
- }
- },
- "/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",
+ "summary": "Update a Snapshot",
+ "operationId": "UpdateSnapshot",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/PauseServiceReply"
+ "$ref": "#/definitions/UpdateSnapshotReply"
}
},
"400": {
@@ -5871,26 +5489,40 @@
"parameters": [
{
"name": "id",
- "description": "The id of the service to pause.",
+ "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": [
- "Services"
+ "Snapshots"
]
}
},
- "/v1/services/{id}/redeploy": {
- "post": {
- "summary": "ReDeploy Service",
- "operationId": "ReDeploy",
+ "/v1/search": {
+ "get": {
+ "summary": "Search",
+ "operationId": "Search",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/RedeployReply"
+ "$ref": "#/definitions/ksearch.SearchReply"
}
},
"400": {
@@ -5938,35 +5570,27 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "name": "query",
+ "description": "(Optional) Search query",
+ "in": "query",
+ "required": false,
"type": "string"
- },
- {
- "name": "info",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/RedeployRequest.Info"
- }
}
],
"tags": [
- "Services"
+ "Search"
]
}
},
- "/v1/services/{id}/resume": {
- "post": {
- "summary": "Resume Service",
- "description": "Service resume action is allowed for the following status:\n - paused",
- "operationId": "ResumeService",
+ "/v1/activities": {
+ "get": {
+ "summary": "List Activities",
+ "operationId": "ListActivities",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ResumeServiceReply"
+ "$ref": "#/definitions/ActivityList"
}
},
"400": {
@@ -6014,40 +5638,43 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the service to pause.",
- "in": "path",
- "required": true,
+ "name": "limit",
+ "in": "query",
+ "required": false,
"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.",
+ "name": "offset",
"in": "query",
"required": false,
- "type": "boolean"
+ "type": "string"
},
{
- "name": "use_cache",
+ "name": "types",
+ "description": "(Optional) Filter on object type",
"in": "query",
"required": false,
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "collectionFormat": "multi"
}
],
"tags": [
- "Services"
+ "activity"
]
}
},
- "/v1/snapshots": {
+ "/v1/notifications": {
"get": {
- "summary": "List all Snapshots",
- "operationId": "ListSnapshots",
+ "summary": "List Notifications",
+ "operationId": "ListNotifications",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListSnapshotsReply"
+ "$ref": "#/definitions/NotificationList"
}
},
"400": {
@@ -6096,100 +5723,55 @@
"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",
+ "name": "mark_read",
"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",
+ "name": "mark_seen",
"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"
+ "type": "string"
},
{
- "name": "region",
- "description": "(Optional) A filter for the region",
+ "name": "unread",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "unseen",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
- "Snapshots"
+ "activity"
]
- },
- "post": {
- "summary": "Create a Snapshot",
- "operationId": "CreateSnapshot",
+ }
+ },
+ "/v1/catalog/regions": {
+ "get": {
+ "summary": "List Region",
+ "operationId": "ListRegions",
"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"
+ "$ref": "#/definitions/ListRegionsReply"
}
},
"default": {
@@ -6201,64 +5783,41 @@
},
"parameters": [
{
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateSnapshotRequest"
- }
+ "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": [
- "Snapshots"
+ "CatalogRegions"
]
}
},
- "/v1/snapshots/{id}": {
+ "/v1/catalog/regions/{id}": {
"get": {
- "summary": "Get a Snapshot",
- "operationId": "GetSnapshot",
+ "summary": "Get Region",
+ "operationId": "GetRegion",
"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"
+ "$ref": "#/definitions/GetRegionReply"
}
},
"default": {
@@ -6271,59 +5830,72 @@
"parameters": [
{
"name": "id",
+ "description": "The name of the region",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Snapshots"
+ "CatalogRegions"
]
- },
- "delete": {
- "summary": "Delete a Snapshot",
- "operationId": "DeleteSnapshot",
+ }
+ },
+ "/v1/catalog/instances": {
+ "get": {
+ "summary": "List Instances",
+ "operationId": "ListCatalogInstances",
"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"
+ "$ref": "#/definitions/ListCatalogInstancesReply"
}
},
- "404": {
- "description": "Returned when the resource does not exist.",
+ "default": {
+ "description": "An unexpected error response.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/google.rpc.Status"
}
+ }
+ },
+ "parameters": [
+ {
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "500": {
- "description": "Returned in case of server error.",
- "schema": {
- "$ref": "#/definitions/Error"
- }
+ {
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "503": {
- "description": "Service is unavailable.",
+ {
+ "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/Error"
+ "$ref": "#/definitions/GetCatalogInstanceReply"
}
},
"default": {
@@ -6336,59 +5908,48 @@
"parameters": [
{
"name": "id",
+ "description": "The name of the instance",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Snapshots"
+ "CatalogInstances"
]
- },
- "post": {
- "summary": "Update a Snapshot",
- "operationId": "UpdateSnapshot",
+ }
+ },
+ "/v1/catalog/datacenters": {
+ "get": {
+ "summary": "List datacenters",
+ "operationId": "ListDatacenters",
"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"
+ "$ref": "#/definitions/ListDatacentersReply"
}
},
- "500": {
- "description": "Returned in case of server error.",
+ "default": {
+ "description": "An unexpected error response.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/google.rpc.Status"
}
- },
- "503": {
- "description": "Service is unavailable.",
+ }
+ },
+ "tags": [
+ "CatalogDatacenters"
+ ]
+ }
+ },
+ "/v1/catalog/usage": {
+ "get": {
+ "operationId": "ListUsage",
+ "responses": {
+ "200": {
+ "description": "A successful response.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ListUsageReply"
}
},
"default": {
@@ -6400,42 +5961,36 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the snapshot",
- "in": "path",
- "required": true,
+ "name": "region",
+ "in": "query",
+ "required": false,
"type": "string"
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "title": "Change the name of the snapshot"
- }
- }
- }
}
],
"tags": [
- "Snapshots"
+ "CatalogInstanceUsage"
]
}
},
- "/v1/coupons": {
- "post": {
- "summary": "Redeem Coupon",
- "description": "This API allows to redeem a coupon. Pass the code you received in the body.",
- "operationId": "RedeemCoupon",
+ "/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.",
+ "description": "A successful response.(streaming responses)",
"schema": {
- "$ref": "#/definitions/RedeemCouponReply"
+ "type": "object",
+ "properties": {
+ "result": {
+ "$ref": "#/definitions/ExecCommandReply"
+ },
+ "error": {
+ "$ref": "#/definitions/google.rpc.Status"
+ }
+ },
+ "title": "Stream result of ExecCommandReply"
}
},
"400": {
@@ -6483,28 +6038,87 @@
},
"parameters": [
{
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/RedeemCouponRequest"
- }
+ "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": [
- "Coupons"
+ "Instances"
]
}
},
- "/v1/organizations/{organization_id}/summary": {
+ "/v1/streams/metrics": {
"get": {
- "summary": "Get organization usage summary",
- "operationId": "GetOrganizationSummary",
+ "summary": "Get Metrics",
+ "operationId": "GetMetrics",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetOrganizationSummaryReply"
+ "$ref": "#/definitions/GetMetricsReply"
}
},
"400": {
@@ -6552,27 +6166,77 @@
},
"parameters": [
{
- "name": "organization_id",
- "description": "Organization ID",
- "in": "path",
- "required": true,
+ "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": [
- "Summary"
+ "Metrics"
]
}
},
- "/v1/subscriptions/{id}": {
+ "/v1/streams/logs/query": {
"get": {
- "summary": "Get Subscription",
- "operationId": "GetSubscription",
+ "summary": "Query logs",
+ "operationId": "QueryLogs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetSubscriptionReply"
+ "$ref": "#/definitions/QueryLogsReply"
}
},
"400": {
@@ -6620,27 +6284,116 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the instance",
- "in": "path",
- "required": true,
+ "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": [
- "Subscriptions"
+ "Logs"
]
}
},
- "/v1/users/{id}": {
- "delete": {
- "summary": "Delete user",
- "operationId": "DeleteUser",
+ "/v1/streams/logs/tail": {
+ "get": {
+ "summary": "Tails logs",
+ "operationId": "TailLogs",
"responses": {
"200": {
- "description": "A successful response.",
+ "description": "A successful response.(streaming responses)",
"schema": {
- "$ref": "#/definitions/DeleteUserReply"
+ "type": "object",
+ "properties": {
+ "result": {
+ "$ref": "#/definitions/LogEntry"
+ },
+ "error": {
+ "$ref": "#/definitions/google.rpc.Status"
+ }
+ },
+ "title": "Stream result of LogEntry"
}
},
"400": {
@@ -6688,26 +6441,90 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the user",
- "in": "path",
- "required": true,
+ "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": [
- "Users"
+ "Logs"
]
}
},
- "/v1/organizations/{organization_id}/quotas": {
- "get": {
- "operationId": "GetQuotas",
+ "/v1/account/login": {
+ "post": {
+ "summary": "Login user",
+ "operationId": "Login",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetQuotasReply"
+ "$ref": "#/definitions/LoginReply"
}
},
"400": {
@@ -6755,26 +6572,35 @@
},
"parameters": [
{
- "name": "organization_id",
- "in": "path",
+ "name": "body",
+ "in": "body",
"required": true,
+ "schema": {
+ "$ref": "#/definitions/LoginRequest"
+ }
+ },
+ {
+ "name": "seon-fp",
+ "description": "Seon Fingerprint",
+ "in": "header",
+ "required": false,
"type": "string"
}
],
"tags": [
- "OrganizationQuotas"
+ "Sessions"
]
}
},
- "/v1/organization_confirmations/{id}": {
- "post": {
- "summary": "Confirm organization action",
- "operationId": "ConfirmOrganizationAction",
+ "/v1/account/logout": {
+ "delete": {
+ "summary": "Logout user",
+ "operationId": "Logout",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ConfirmOrganizationActionReply"
+ "$ref": "#/definitions/LogoutReply"
}
},
"400": {
@@ -6820,23 +6646,15 @@
}
}
},
- "parameters": [
- {
- "name": "id",
- "in": "path",
- "required": true,
- "type": "string"
- }
- ],
"tags": [
- "OrganizationConfirmations"
+ "Sessions"
]
}
},
- "/v1/account/login": {
- "post": {
- "summary": "Login user",
- "operationId": "Login",
+ "/v1/account/refresh": {
+ "put": {
+ "summary": "Refresh token",
+ "operationId": "RefreshToken",
"responses": {
"200": {
"description": "A successful response.",
@@ -6887,37 +6705,21 @@
}
}
},
- "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",
+ "/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/LogoutReply"
+ "$ref": "#/definitions/LoginReply"
}
},
"400": {
@@ -6968,15 +6770,15 @@
]
}
},
- "/v1/account/refresh": {
- "put": {
- "summary": "Refresh token",
- "operationId": "RefreshToken",
+ "/v1/intercom/profile": {
+ "get": {
+ "summary": "Get intercom profile",
+ "operationId": "GetIntercomProfile",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginReply"
+ "$ref": "#/definitions/GetIntercomProfileReply"
}
},
"400": {
@@ -7023,20 +6825,19 @@
}
},
"tags": [
- "Sessions"
+ "Intercom"
]
}
},
- "/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",
+ "/v1/users/{id}": {
+ "delete": {
+ "summary": "Delete user",
+ "operationId": "DeleteUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginReply"
+ "$ref": "#/definitions/DeleteUserReply"
}
},
"400": {
@@ -7082,19 +6883,29 @@
}
}
},
+ "parameters": [
+ {
+ "name": "id",
+ "description": "The id of the user",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ ],
"tags": [
- "Sessions"
+ "Users"
]
}
},
- "/v1/account/activities": {
- "get": {
- "operationId": "GetAccountActivities",
+ "/v2/users/{id}": {
+ "delete": {
+ "summary": "V2 Delete user",
+ "operationId": "DeleteUserV2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ActivityList"
+ "$ref": "#/definitions/DeleteUserReply"
}
},
"400": {
@@ -7142,32 +6953,27 @@
},
"parameters": [
{
- "name": "limit",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "offset",
- "in": "query",
- "required": false,
+ "name": "id",
+ "description": "The id of the user",
+ "in": "path",
+ "required": true,
"type": "string"
}
],
"tags": [
- "activity"
+ "Users"
]
}
},
- "/v1/account/idenfy": {
+ "/v1/payment_methods": {
"get": {
- "summary": "Begin a session with iDenfy, emit an authToken",
- "operationId": "GetIdenfyToken",
+ "summary": "List payment methods",
+ "operationId": "ListPaymentMethods",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetIdenfyTokenReply"
+ "$ref": "#/definitions/ListPaymentMethodsReply"
}
},
"400": {
@@ -7213,18 +7019,54 @@
}
}
},
+ "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": [
- "Profile"
+ "PaymentMethods"
]
},
"post": {
- "summary": "ClearIdenfyVerificationResult marks the current result for idenfy as superseded",
- "operationId": "ClearIdenfyVerificationResult",
+ "summary": "Create payment authorization",
+ "operationId": "CreatePaymentAuthorization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ClearIdenfyVerificationResultReply"
+ "$ref": "#/definitions/CreatePaymentAuthorizationReply"
}
},
"400": {
@@ -7276,23 +7118,24 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/ClearIdenfyVerificationResultRequest"
+ "$ref": "#/definitions/CreatePaymentAuthorizationRequest"
}
}
],
"tags": [
- "Profile"
+ "PaymentMethods"
]
}
},
- "/v1/account/invite": {
- "post": {
- "operationId": "CreateInvite",
+ "/v1/payment_methods/{id}": {
+ "get": {
+ "summary": "Get payment method",
+ "operationId": "GetPaymentMethod",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/Empty"
+ "$ref": "#/definitions/GetPaymentMethodReply"
}
},
"400": {
@@ -7340,28 +7183,24 @@
},
"parameters": [
{
- "name": "body",
- "in": "body",
+ "name": "id",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/InviteUserRequest"
- }
+ "type": "string"
}
],
"tags": [
- "invite"
+ "PaymentMethods"
]
- }
- },
- "/v1/account/login_method": {
- "get": {
- "summary": "Get the login method for an email address",
- "operationId": "LoginMethod",
+ },
+ "delete": {
+ "summary": "Delete payment method",
+ "operationId": "DeletePaymentMethod",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginMethodReply"
+ "$ref": "#/definitions/DeletePaymentMethodReply"
}
},
"400": {
@@ -7409,26 +7248,26 @@
},
"parameters": [
{
- "name": "email",
- "in": "query",
- "required": false,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
}
],
"tags": [
- "Profile"
+ "PaymentMethods"
]
}
},
- "/v1/account/oauth": {
- "get": {
- "summary": "Get OAuth Providers",
- "operationId": "GetOAuthOptions",
+ "/v1/payment_methods/{id}/confirm": {
+ "post": {
+ "summary": "Confirm payment authorization",
+ "operationId": "ConfirmPaymentAuthorization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetOAuthOptionsReply"
+ "$ref": "#/definitions/ConfirmPaymentAuthorizationReply"
}
},
"400": {
@@ -7476,38 +7315,35 @@
},
"parameters": [
{
- "name": "action",
- "description": "Which authentication flow is being initiated",
- "in": "query",
- "required": false,
- "type": "string",
- "enum": [
- "signin",
- "signup",
- "register"
- ],
- "default": "signin"
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "type": "string"
},
{
- "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"
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "object"
+ }
}
],
"tags": [
- "Profile"
+ "PaymentMethods"
]
- },
+ }
+ },
+ "/v1/coupons": {
"post": {
- "summary": "Authenticate using OAuth",
- "operationId": "OAuthCallback",
+ "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/OAuthCallbackReply"
+ "$ref": "#/definitions/RedeemCouponReply"
}
},
"400": {
@@ -7559,31 +7395,24 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/OAuthCallbackRequest"
+ "$ref": "#/definitions/RedeemCouponRequest"
}
- },
- {
- "name": "seon-fp",
- "description": "Seon Fingerprint",
- "in": "header",
- "required": false,
- "type": "string"
}
],
"tags": [
- "Profile"
+ "Coupons"
]
}
},
- "/v1/account/organization": {
+ "/v1/credentials": {
"get": {
- "summary": "Get Current Organization",
- "operationId": "GetCurrentOrganization",
+ "summary": "List credentials",
+ "operationId": "ListCredentials",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetOrganizationReply"
+ "$ref": "#/definitions/ListCredentialsReply"
}
},
"400": {
@@ -7629,25 +7458,73 @@
}
}
},
- "tags": [
- "Profile"
- ]
- }
- },
- "/v1/account/organization_invitations": {
- "get": {
- "summary": "List User Organization Invitations",
- "operationId": "ListUserOrganizationInvitations",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/ListUserOrganizationInvitationsReply"
- }
+ "parameters": [
+ {
+ "name": "type",
+ "description": "(Optional) A filter for type",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "INVALID",
+ "USER",
+ "ORGANIZATION"
+ ],
+ "default": "INVALID"
},
- "400": {
- "description": "Validation error",
- "schema": {
+ {
+ "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"
}
},
@@ -7690,52 +7567,28 @@
},
"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": "credential",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CreateCredential"
+ }
}
],
"tags": [
- "Profile"
+ "Credentials"
]
}
},
- "/v1/account/organization_invitations/{id}": {
+ "/v1/credentials/{id}": {
"get": {
- "summary": "Get User Organization Invitation",
- "operationId": "GetUserOrganizationInvitation",
+ "summary": "Get credential",
+ "operationId": "GetCredential",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetUserOrganizationInvitationReply"
+ "$ref": "#/definitions/GetCredentialReply"
}
},
"400": {
@@ -7784,26 +7637,23 @@
"parameters": [
{
"name": "id",
- "description": "The id of the organization invitation to get",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "Profile"
+ "Credentials"
]
- }
- },
- "/v1/account/organization_invitations/{id}/accept": {
- "post": {
- "summary": "Accept Organization Invitation",
- "operationId": "AcceptOrganizationInvitation",
+ },
+ "delete": {
+ "summary": "Delete credential",
+ "operationId": "DeleteCredential",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/AcceptOrganizationInvitationReply"
+ "$ref": "#/definitions/DeleteCredentialReply"
}
},
"400": {
@@ -7852,34 +7702,23 @@
"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"
+ "Credentials"
]
- }
- },
- "/v1/account/organization_invitations/{id}/decline": {
- "post": {
- "summary": "Decline Organization Invitation",
- "operationId": "DeclineOrganizationInvitation",
+ },
+ "put": {
+ "summary": "Update credential",
+ "operationId": "UpdateCredential",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeclineOrganizationInvitationReply"
+ "$ref": "#/definitions/UpdateCredentialReply"
}
},
"400": {
@@ -7928,35 +7767,37 @@
"parameters": [
{
"name": "id",
- "description": "The id of the organization invitation to decline",
"in": "path",
"required": true,
"type": "string"
},
{
- "name": "body",
+ "name": "credential",
"in": "body",
"required": true,
"schema": {
- "type": "object"
+ "$ref": "#/definitions/Credential"
}
+ },
+ {
+ "name": "update_mask",
+ "in": "query",
+ "required": false,
+ "type": "string"
}
],
"tags": [
- "Profile"
+ "Credentials"
]
- }
- },
- "/v1/account/organizations": {
- "get": {
- "summary": "List User Organizations",
- "description": "List all organizations that the current user is a member of.",
- "operationId": "ListUserOrganizations",
+ },
+ "patch": {
+ "summary": "Update credential",
+ "operationId": "UpdateCredential2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListUserOrganizationsReply"
+ "$ref": "#/definitions/UpdateCredentialReply"
}
},
"400": {
@@ -8004,68 +7845,40 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "order",
- "description": "(Optional) Sorts the list in the ascending or the descending order",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "credential",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Credential"
+ }
},
{
- "name": "search",
- "description": "(Optional) Fuzzy case-insensitive search based on organization name or organization id",
+ "name": "update_mask",
"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"
+ "Credentials"
]
}
},
- "/v1/account/profile": {
+ "/v1/subscriptions/{id}": {
"get": {
- "summary": "Get Current User",
- "operationId": "GetCurrentUser",
+ "summary": "Get Subscription",
+ "operationId": "GetSubscription",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UserReply"
+ "$ref": "#/definitions/GetSubscriptionReply"
}
},
"400": {
@@ -8111,18 +7924,29 @@
}
}
},
+ "parameters": [
+ {
+ "name": "id",
+ "description": "The id of the instance",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ ],
"tags": [
- "Profile"
+ "Subscriptions"
]
- },
- "put": {
- "summary": "Update User",
- "operationId": "UpdateUser",
+ }
+ },
+ "/v1/organization_invitations": {
+ "get": {
+ "summary": "List Organization Invitations",
+ "operationId": "ListOrganizationInvitations",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UserReply"
+ "$ref": "#/definitions/ListOrganizationInvitationsReply"
}
},
"400": {
@@ -8170,107 +7994,57 @@
},
"parameters": [
{
- "name": "user",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody"
- }
- },
- {
- "name": "update_mask",
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
"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"
- }
+ {
+ "name": "offset",
+ "description": "(Optional) The offset in the list of item to return",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
- "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": "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": "update_mask",
+ "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": [
- "Profile"
+ "OrganizationInvitations"
]
- }
- },
- "/v1/account/resend_validation": {
+ },
"post": {
- "summary": "Resend Email Verification",
- "operationId": "ResendEmailValidation",
+ "summary": "Create Organization Invitation",
+ "operationId": "CreateOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ResendEmailValidationReply"
+ "$ref": "#/definitions/CreateOrganizationInvitationReply"
}
},
"400": {
@@ -8322,24 +8096,24 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/ResendEmailValidationRequest"
+ "$ref": "#/definitions/CreateOrganizationInvitationRequest"
}
}
],
"tags": [
- "Profile"
+ "OrganizationInvitations"
]
}
},
- "/v1/account/reset_password": {
- "post": {
- "summary": "Reset Password",
- "operationId": "ResetPassword",
+ "/v1/organization_invitations/{id}": {
+ "get": {
+ "summary": "Get Organization Invitation",
+ "operationId": "GetOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ResetPasswordReply"
+ "$ref": "#/definitions/GetOrganizationInvitationReply"
}
},
"400": {
@@ -8387,27 +8161,25 @@
},
"parameters": [
{
- "name": "body",
- "in": "body",
+ "name": "id",
+ "description": "The id of the invitation to get",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/ResetPasswordRequest"
- }
+ "type": "string"
}
],
"tags": [
- "Profile"
+ "OrganizationInvitations"
]
- }
- },
- "/v1/account/settings": {
- "get": {
- "operationId": "GetUserSettings",
+ },
+ "delete": {
+ "summary": "Delete Organization Invitation",
+ "operationId": "DeleteOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetUserSettingsReply"
+ "$ref": "#/definitions/DeleteOrganizationInvitationReply"
}
},
"400": {
@@ -8453,17 +8225,29 @@
}
}
},
+ "parameters": [
+ {
+ "name": "id",
+ "description": "The id of the organization invitation to delete",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ ],
"tags": [
- "Profile"
+ "OrganizationInvitations"
]
- },
- "patch": {
- "operationId": "UpdateUserSettings",
+ }
+ },
+ "/v1/organization_invitations/{id}/resend": {
+ "post": {
+ "summary": "Resend Organization Invitation",
+ "operationId": "ResendOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateUserSettingsReply"
+ "$ref": "#/definitions/ResendOrganizationInvitationReply"
}
},
"400": {
@@ -8510,29 +8294,36 @@
}
},
"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": {
- "$ref": "#/definitions/UpdateUserSettingsRequest"
+ "type": "object"
}
}
],
"tags": [
- "Profile"
+ "OrganizationInvitations"
]
}
},
- "/v1/account/signup": {
+ "/v1/organization_confirmations/{id}": {
"post": {
- "summary": "Signup",
- "operationId": "Signup",
+ "summary": "Confirm organization action",
+ "operationId": "ConfirmOrganizationAction",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginReply"
+ "$ref": "#/definitions/ConfirmOrganizationActionReply"
}
},
"400": {
@@ -8580,36 +8371,25 @@
},
"parameters": [
{
- "name": "body",
- "description": "Create new account",
- "in": "body",
+ "name": "id",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/CreateAccountRequest"
- }
- },
- {
- "name": "seon-fp",
- "description": "Seon Fingerprint",
- "in": "header",
- "required": false,
"type": "string"
}
],
"tags": [
- "Profile"
+ "OrganizationConfirmations"
]
}
},
- "/v1/account/update_password": {
- "post": {
- "summary": "Update Password",
- "operationId": "UpdatePassword",
+ "/v1/organizations/{organization_id}/quotas": {
+ "get": {
+ "operationId": "GetQuotas",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginReply"
+ "$ref": "#/definitions/GetQuotasReply"
}
},
"400": {
@@ -8657,35 +8437,26 @@
},
"parameters": [
{
- "name": "body",
- "in": "body",
+ "name": "organization_id",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/UpdatePasswordRequest"
- }
- },
- {
- "name": "seon-fp",
- "description": "Seon Fingerprint",
- "in": "header",
- "required": false,
"type": "string"
}
],
"tags": [
- "Profile"
+ "OrganizationQuotas"
]
}
},
- "/v1/account/validate/{id}": {
- "post": {
- "summary": "Validate",
- "operationId": "Validate",
+ "/v1/organizations/{organization_id}/summary": {
+ "get": {
+ "summary": "Get organization usage summary",
+ "operationId": "GetOrganizationSummary",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginReply"
+ "$ref": "#/definitions/GetOrganizationSummaryReply"
}
},
"400": {
@@ -8733,34 +8504,27 @@
},
"parameters": [
{
- "name": "id",
+ "name": "organization_id",
+ "description": "Organization ID",
"in": "path",
"required": true,
"type": "string"
- },
- {
- "name": "seon-fp",
- "description": "Seon Fingerprint",
- "in": "header",
- "required": false,
- "type": "string"
}
],
"tags": [
- "Profile"
+ "Summary"
]
}
},
- "/v1/billing/has_unpaid_invoices": {
+ "/v1/organization_members": {
"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",
+ "summary": "List organization members",
+ "operationId": "ListOrganizationMembers",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/HasUnpaidInvoicesReply"
+ "$ref": "#/definitions/ListOrganizationMembersReply"
}
},
"400": {
@@ -8806,19 +8570,70 @@
}
}
},
- "tags": [
- "billing"
- ]
- }
- },
- "/v1/billing/manage": {
- "get": {
- "operationId": "Manage",
+ "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/ManageReply"
+ "$ref": "#/definitions/RemoveOrganizationMemberReply"
}
},
"400": {
@@ -8864,21 +8679,27 @@
}
}
},
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ ],
"tags": [
- "billing"
+ "OrganizationMembers"
]
}
},
- "/v1/billing/next_invoice": {
+ "/v1/account/activities": {
"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",
+ "operationId": "GetAccountActivities",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/NextInvoiceReply"
+ "$ref": "#/definitions/ActivityList"
}
},
"400": {
@@ -8924,20 +8745,34 @@
}
}
},
+ "parameters": [
+ {
+ "name": "limit",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "offset",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
"tags": [
- "billing"
+ "activity"
]
}
},
- "/v1/github/installation": {
+ "/v1/account/idenfy": {
"get": {
- "summary": "Fetch Github Installation configuration",
- "operationId": "GetGithubInstallation",
+ "summary": "Begin a session with iDenfy, emit an authToken",
+ "operationId": "GetIdenfyToken",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetGithubInstallationReply"
+ "$ref": "#/definitions/GetIdenfyTokenReply"
}
},
"400": {
@@ -8984,17 +8819,17 @@
}
},
"tags": [
- "organization"
+ "Profile"
]
},
"post": {
- "summary": "Start Github Installation",
- "operationId": "GithubInstallation",
+ "summary": "ClearIdenfyVerificationResult marks the current result for idenfy as superseded",
+ "operationId": "ClearIdenfyVerificationResult",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GithubInstallationReply"
+ "$ref": "#/definitions/ClearIdenfyVerificationResultReply"
}
},
"400": {
@@ -9046,24 +8881,23 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/GithubInstallationRequest"
+ "$ref": "#/definitions/ClearIdenfyVerificationResultRequest"
}
}
],
"tags": [
- "organization"
+ "Profile"
]
}
},
- "/v1/organizations": {
+ "/v1/account/invite": {
"post": {
- "summary": "Create Organization",
- "operationId": "CreateOrganization",
+ "operationId": "CreateInvite",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateOrganizationReply"
+ "$ref": "#/definitions/Empty"
}
},
"400": {
@@ -9115,24 +8949,24 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/CreateOrganizationRequest"
+ "$ref": "#/definitions/InviteUserRequest"
}
}
],
"tags": [
- "organization"
+ "invite"
]
}
},
- "/v1/organizations/{id}": {
+ "/v1/account/login_method": {
"get": {
- "summary": "Get Organization",
- "operationId": "GetOrganization",
+ "summary": "Get the login method for an email address",
+ "operationId": "LoginMethod",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetOrganizationReply"
+ "$ref": "#/definitions/LoginMethodReply"
}
},
"400": {
@@ -9180,24 +9014,26 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "name": "email",
+ "in": "query",
+ "required": false,
"type": "string"
}
],
"tags": [
- "organization"
+ "Profile"
]
- },
- "delete": {
- "summary": "Delete an Organization",
- "operationId": "DeleteOrganization",
+ }
+ },
+ "/v1/account/oauth": {
+ "get": {
+ "summary": "Get OAuth Providers",
+ "operationId": "GetOAuthOptions",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeleteOrganizationReply"
+ "$ref": "#/definitions/GetOAuthOptionsReply"
}
},
"400": {
@@ -9245,24 +9081,38 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "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": [
- "organization"
+ "Profile"
]
},
- "put": {
- "summary": "Update Organization",
- "operationId": "UpdateOrganization",
+ "post": {
+ "summary": "Authenticate using OAuth",
+ "operationId": "OAuthCallback",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateOrganizationReply"
+ "$ref": "#/definitions/OAuthCallbackReply"
}
},
"400": {
@@ -9310,38 +9160,35 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
- "type": "string"
- },
- {
- "name": "organization",
+ "name": "body",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/Organization"
+ "$ref": "#/definitions/OAuthCallbackRequest"
}
},
{
- "name": "update_mask",
- "in": "query",
+ "name": "seon-fp",
+ "description": "Seon Fingerprint",
+ "in": "header",
"required": false,
"type": "string"
}
],
"tags": [
- "organization"
+ "Profile"
]
- },
- "patch": {
- "summary": "Update Organization",
- "operationId": "UpdateOrganization2",
+ }
+ },
+ "/v1/account/organization": {
+ "get": {
+ "summary": "Get Current Organization",
+ "operationId": "GetCurrentOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateOrganizationReply"
+ "$ref": "#/definitions/GetOrganizationReply"
}
},
"400": {
@@ -9387,43 +9234,20 @@
}
}
},
- "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"
+ "Profile"
]
}
},
- "/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",
+ "/v1/account/organization_invitations": {
+ "get": {
+ "summary": "List User Organization Invitations",
+ "operationId": "ListUserOrganizationInvitations",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateAccessTokenReply"
+ "$ref": "#/definitions/ListUserOrganizationInvitationsReply"
}
},
"400": {
@@ -9471,41 +9295,52 @@
},
"parameters": [
{
- "name": "id",
- "description": "Organization id for ephemeral credential",
- "in": "path",
- "required": true,
+ "name": "limit",
+ "description": "(Optional) The number of items to return",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "properties": {
- "validity": {
- "type": "string",
- "title": "Validity of the credential"
- }
- }
- }
+ "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": [
- "organization"
+ "Profile"
]
}
},
- "/v1/organizations/{id}/deactivate": {
- "post": {
- "summary": "Deactivate an Organization",
- "operationId": "DeactivateOrganization",
+ "/v1/account/organization_invitations/{id}": {
+ "get": {
+ "summary": "Get User Organization Invitation",
+ "operationId": "GetUserOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeactivateOrganizationReply"
+ "$ref": "#/definitions/GetUserOrganizationInvitationReply"
}
},
"400": {
@@ -9554,39 +9389,26 @@
"parameters": [
{
"name": "id",
+ "description": "The id of the organization invitation to get",
"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"
+ "Profile"
]
}
},
- "/v1/organizations/{id}/plan": {
+ "/v1/account/organization_invitations/{id}/accept": {
"post": {
- "summary": "Update Organization plan",
- "operationId": "UpdateOrganizationPlan",
+ "summary": "Accept Organization Invitation",
+ "operationId": "AcceptOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateOrganizationPlanReply"
+ "$ref": "#/definitions/AcceptOrganizationInvitationReply"
}
},
"400": {
@@ -9635,6 +9457,7 @@
"parameters": [
{
"name": "id",
+ "description": "The id of the organization invitation to accept",
"in": "path",
"required": true,
"type": "string"
@@ -9644,29 +9467,24 @@
"in": "body",
"required": true,
"schema": {
- "type": "object",
- "properties": {
- "plan": {
- "$ref": "#/definitions/Plan"
- }
- }
+ "type": "object"
}
}
],
"tags": [
- "organization"
+ "Profile"
]
}
},
- "/v1/organizations/{id}/reactivate": {
+ "/v1/account/organization_invitations/{id}/decline": {
"post": {
- "summary": "Reactivate an Organization",
- "operationId": "ReactivateOrganization",
+ "summary": "Decline Organization Invitation",
+ "operationId": "DeclineOrganizationInvitation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ReactivateOrganizationReply"
+ "$ref": "#/definitions/DeclineOrganizationInvitationReply"
}
},
"400": {
@@ -9715,6 +9533,7 @@
"parameters": [
{
"name": "id",
+ "description": "The id of the organization invitation to decline",
"in": "path",
"required": true,
"type": "string"
@@ -9729,19 +9548,20 @@
}
],
"tags": [
- "organization"
+ "Profile"
]
}
},
- "/v1/organizations/{id}/signup_qualification": {
- "post": {
- "summary": "Upsert Organization's signup qualification",
- "operationId": "UpsertSignupQualification",
+ "/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/UpsertSignupQualificationReply"
+ "$ref": "#/definitions/ListUserOrganizationsReply"
}
},
"400": {
@@ -9789,39 +9609,68 @@
},
"parameters": [
{
- "name": "id",
- "in": "path",
- "required": true,
+ "name": "limit",
+ "description": "(Optional) Define pagination limit",
+ "in": "query",
+ "required": false,
"type": "string"
},
{
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "properties": {
- "signup_qualification": {
- "type": "object"
- }
- }
- }
+ "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": [
- "organization"
+ "Profile"
]
}
},
- "/v1/organizations/{id}/switch": {
- "post": {
- "summary": "Switch Organization context",
- "operationId": "SwitchOrganization",
+ "/v1/account/profile": {
+ "get": {
+ "summary": "Get Current User",
+ "operationId": "GetCurrentUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/LoginReply"
+ "$ref": "#/definitions/UserReply"
}
},
"400": {
@@ -9867,43 +9716,18 @@
}
}
},
- "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"
+ "Profile"
]
- }
- },
- "/v1/organizations/{organization_id}/budget": {
- "get": {
- "summary": "Get Budget",
- "operationId": "GetBudget",
+ },
+ "put": {
+ "summary": "Update User",
+ "operationId": "UpdateUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetBudgetReply"
+ "$ref": "#/definitions/UserReply"
}
},
"400": {
@@ -9951,24 +9775,32 @@
},
"parameters": [
{
- "name": "organization_id",
- "in": "path",
+ "name": "user",
+ "in": "body",
"required": true,
+ "schema": {
+ "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody"
+ }
+ },
+ {
+ "name": "update_mask",
+ "in": "query",
+ "required": false,
"type": "string"
}
],
"tags": [
- "organization"
+ "Profile"
]
},
- "delete": {
- "summary": "Delete Budget",
- "operationId": "DeleteBudget",
+ "patch": {
+ "summary": "Update User",
+ "operationId": "UpdateUser2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeleteBudgetReply"
+ "$ref": "#/definitions/UserReply"
}
},
"400": {
@@ -10016,24 +9848,34 @@
},
"parameters": [
{
- "name": "organization_id",
- "in": "path",
+ "name": "user",
+ "in": "body",
"required": true,
+ "schema": {
+ "$ref": "#/definitions/UpdateUserRequest.UserUpdateBody"
+ }
+ },
+ {
+ "name": "update_mask",
+ "in": "query",
+ "required": false,
"type": "string"
}
],
"tags": [
- "organization"
+ "Profile"
]
- },
+ }
+ },
+ "/v1/account/resend_validation": {
"post": {
- "summary": "Create Budget",
- "operationId": "CreateBudget",
+ "summary": "Resend Email Verification",
+ "operationId": "ResendEmailValidation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateBudgetReply"
+ "$ref": "#/definitions/ResendEmailValidationReply"
}
},
"400": {
@@ -10080,40 +9922,29 @@
}
},
"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."
- }
- }
+ "$ref": "#/definitions/ResendEmailValidationRequest"
}
}
],
"tags": [
- "organization"
+ "Profile"
]
- },
- "put": {
- "summary": "Update Budget",
- "operationId": "UpdateBudget",
+ }
+ },
+ "/v1/account/reset_password": {
+ "post": {
+ "summary": "Reset Password",
+ "operationId": "ResetPassword",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateBudgetReply"
+ "$ref": "#/definitions/ResetPasswordReply"
}
},
"400": {
@@ -10160,41 +9991,28 @@
}
},
"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."
- }
- }
+ "$ref": "#/definitions/ResetPasswordRequest"
}
}
],
"tags": [
- "organization"
+ "Profile"
]
}
},
- "/v1/sso/canny": {
- "post": {
- "operationId": "CannyAuth",
+ "/v1/account/settings": {
+ "get": {
+ "operationId": "GetUserSettings",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CannyAuthReply"
+ "$ref": "#/definitions/GetUserSettingsReply"
}
},
"400": {
@@ -10240,29 +10058,17 @@
}
}
},
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CannyAuthRequest"
- }
- }
- ],
"tags": [
- "sso"
+ "Profile"
]
- }
- },
- "/v1/sso/discourse": {
- "post": {
- "operationId": "DiscourseAuth",
+ },
+ "patch": {
+ "operationId": "UpdateUserSettings",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DiscourseAuthReply"
+ "$ref": "#/definitions/UpdateUserSettingsReply"
}
},
"400": {
@@ -10314,20 +10120,19 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/DiscourseAuthRequest"
+ "$ref": "#/definitions/UpdateUserSettingsRequest"
}
}
],
"tags": [
- "sso"
+ "Profile"
]
}
},
- "/v1/unscope_organization_token": {
+ "/v1/account/signup": {
"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",
+ "summary": "Signup",
+ "operationId": "Signup",
"responses": {
"200": {
"description": "A successful response.",
@@ -10381,10 +10186,11 @@
"parameters": [
{
"name": "body",
+ "description": "Create new account",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/UnscopeOrganizationTokenRequest"
+ "$ref": "#/definitions/CreateAccountRequest"
}
},
{
@@ -10396,19 +10202,19 @@
}
],
"tags": [
- "organization"
+ "Profile"
]
}
},
- "/v1/payment_methods": {
- "get": {
- "summary": "List payment methods",
- "operationId": "ListPaymentMethods",
+ "/v1/account/update_password": {
+ "post": {
+ "summary": "Update Password",
+ "operationId": "UpdatePassword",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListPaymentMethodsReply"
+ "$ref": "#/definitions/LoginReply"
}
},
"400": {
@@ -10456,52 +10262,35 @@
},
"parameters": [
{
- "name": "limit",
- "description": "(Optional) The number of items to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/UpdatePasswordRequest"
+ }
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
- "in": "query",
+ "name": "seon-fp",
+ "description": "Seon Fingerprint",
+ "in": "header",
"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"
+ "Profile"
]
- },
+ }
+ },
+ "/v1/account/validate/{id}": {
"post": {
- "summary": "Create payment authorization",
- "operationId": "CreatePaymentAuthorization",
+ "summary": "Validate",
+ "operationId": "Validate",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreatePaymentAuthorizationReply"
+ "$ref": "#/definitions/LoginReply"
}
},
"400": {
@@ -10549,28 +10338,34 @@
},
"parameters": [
{
- "name": "body",
- "in": "body",
+ "name": "id",
+ "in": "path",
"required": true,
- "schema": {
- "$ref": "#/definitions/CreatePaymentAuthorizationRequest"
- }
+ "type": "string"
+ },
+ {
+ "name": "seon-fp",
+ "description": "Seon Fingerprint",
+ "in": "header",
+ "required": false,
+ "type": "string"
}
],
"tags": [
- "PaymentMethods"
+ "Profile"
]
}
},
- "/v1/payment_methods/{id}": {
+ "/v1/billing/has_unpaid_invoices": {
"get": {
- "summary": "Get payment method",
- "operationId": "GetPaymentMethod",
+ "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/GetPaymentMethodReply"
+ "$ref": "#/definitions/HasUnpaidInvoicesReply"
}
},
"400": {
@@ -10616,26 +10411,19 @@
}
}
},
- "parameters": [
- {
- "name": "id",
- "in": "path",
- "required": true,
- "type": "string"
- }
- ],
"tags": [
- "PaymentMethods"
+ "billing"
]
- },
- "delete": {
- "summary": "Delete payment method",
- "operationId": "DeletePaymentMethod",
+ }
+ },
+ "/v1/billing/manage": {
+ "get": {
+ "operationId": "Manage",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeletePaymentMethodReply"
+ "$ref": "#/definitions/ManageReply"
}
},
"400": {
@@ -10681,28 +10469,21 @@
}
}
},
- "parameters": [
- {
- "name": "id",
- "in": "path",
- "required": true,
- "type": "string"
- }
- ],
"tags": [
- "PaymentMethods"
+ "billing"
]
}
},
- "/v1/payment_methods/{id}/confirm": {
- "post": {
- "summary": "Confirm payment authorization",
- "operationId": "ConfirmPaymentAuthorization",
+ "/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/ConfirmPaymentAuthorizationReply"
+ "$ref": "#/definitions/NextInvoiceReply"
}
},
"400": {
@@ -10748,36 +10529,20 @@
}
}
},
- "parameters": [
- {
- "name": "id",
- "in": "path",
- "required": true,
- "type": "string"
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object"
- }
- }
- ],
"tags": [
- "PaymentMethods"
+ "billing"
]
}
},
- "/v1/organization_invitations": {
+ "/v1/github/installation": {
"get": {
- "summary": "List Organization Invitations",
- "operationId": "ListOrganizationInvitations",
+ "summary": "Fetch Github Installation configuration",
+ "operationId": "GetGithubInstallation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListOrganizationInvitationsReply"
+ "$ref": "#/definitions/GetGithubInstallationReply"
}
},
"400": {
@@ -10823,59 +10588,18 @@
}
}
},
- "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"
+ "organization"
]
},
"post": {
- "summary": "Create Organization Invitation",
- "operationId": "CreateOrganizationInvitation",
+ "summary": "Start Github Installation",
+ "operationId": "GithubInstallation",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateOrganizationInvitationReply"
+ "$ref": "#/definitions/GithubInstallationReply"
}
},
"400": {
@@ -10927,24 +10651,24 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/CreateOrganizationInvitationRequest"
+ "$ref": "#/definitions/GithubInstallationRequest"
}
}
],
"tags": [
- "OrganizationInvitations"
+ "organization"
]
}
},
- "/v1/organization_invitations/{id}": {
- "get": {
- "summary": "Get Organization Invitation",
- "operationId": "GetOrganizationInvitation",
+ "/v1/organizations": {
+ "post": {
+ "summary": "Create Organization",
+ "operationId": "CreateOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetOrganizationInvitationReply"
+ "$ref": "#/definitions/CreateOrganizationReply"
}
},
"400": {
@@ -10992,25 +10716,28 @@
},
"parameters": [
{
- "name": "id",
- "description": "The id of the invitation to get",
- "in": "path",
+ "name": "body",
+ "in": "body",
"required": true,
- "type": "string"
+ "schema": {
+ "$ref": "#/definitions/CreateOrganizationRequest"
+ }
}
],
"tags": [
- "OrganizationInvitations"
+ "organization"
]
- },
- "delete": {
- "summary": "Delete Organization Invitation",
- "operationId": "DeleteOrganizationInvitation",
+ }
+ },
+ "/v1/organizations/{id}": {
+ "get": {
+ "summary": "Get Organization",
+ "operationId": "GetOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeleteOrganizationInvitationReply"
+ "$ref": "#/definitions/GetOrganizationReply"
}
},
"400": {
@@ -11059,26 +10786,23 @@
"parameters": [
{
"name": "id",
- "description": "The id of the organization invitation to delete",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "OrganizationInvitations"
+ "organization"
]
- }
- },
- "/v1/organization_invitations/{id}/resend": {
- "post": {
- "summary": "Resend Organization Invitation",
- "operationId": "ResendOrganizationInvitation",
+ },
+ "delete": {
+ "summary": "Delete an Organization",
+ "operationId": "DeleteOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ResendOrganizationInvitationReply"
+ "$ref": "#/definitions/DeleteOrganizationReply"
}
},
"400": {
@@ -11127,34 +10851,23 @@
"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"
+ "organization"
]
- }
- },
- "/v1/credentials": {
- "get": {
- "summary": "List credentials",
- "operationId": "ListCredentials",
+ },
+ "put": {
+ "summary": "Update Organization",
+ "operationId": "UpdateOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListCredentialsReply"
+ "$ref": "#/definitions/UpdateOrganizationReply"
}
},
"400": {
@@ -11202,66 +10915,38 @@
},
"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,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "limit",
- "description": "(Optional) The number of items to return",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "organization",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Organization"
+ }
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
+ "name": "update_mask",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
- "Credentials"
+ "organization"
]
},
- "post": {
- "summary": "Create credential",
- "operationId": "CreateCredential",
+ "patch": {
+ "summary": "Update Organization",
+ "operationId": "UpdateOrganization2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/CreateCredentialReply"
+ "$ref": "#/definitions/UpdateOrganizationReply"
}
},
"400": {
@@ -11309,28 +10994,41 @@
},
"parameters": [
{
- "name": "credential",
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "organization",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/CreateCredential"
+ "$ref": "#/definitions/Organization"
}
+ },
+ {
+ "name": "update_mask",
+ "in": "query",
+ "required": false,
+ "type": "string"
}
],
"tags": [
- "Credentials"
+ "organization"
]
}
},
- "/v1/credentials/{id}": {
- "get": {
- "summary": "Get credential",
- "operationId": "GetCredential",
+ "/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/GetCredentialReply"
+ "$ref": "#/definitions/CreateAccessTokenReply"
}
},
"400": {
@@ -11379,23 +11077,40 @@
"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": [
- "Credentials"
+ "organization"
]
- },
- "delete": {
- "summary": "Delete credential",
- "operationId": "DeleteCredential",
+ }
+ },
+ "/v1/organizations/{id}/deactivate": {
+ "post": {
+ "summary": "Deactivate an Organization",
+ "operationId": "DeactivateOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/DeleteCredentialReply"
+ "$ref": "#/definitions/DeactivateOrganizationReply"
}
},
"400": {
@@ -11447,20 +11162,36 @@
"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": [
- "Credentials"
+ "organization"
]
- },
- "put": {
- "summary": "Update credential",
- "operationId": "UpdateCredential",
+ }
+ },
+ "/v1/organizations/{id}/plan": {
+ "post": {
+ "summary": "Update Organization plan",
+ "operationId": "UpdateOrganizationPlan",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateCredentialReply"
+ "$ref": "#/definitions/UpdateOrganizationPlanReply"
}
},
"400": {
@@ -11514,32 +11245,33 @@
"type": "string"
},
{
- "name": "credential",
+ "name": "body",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/Credential"
+ "type": "object",
+ "properties": {
+ "plan": {
+ "$ref": "#/definitions/Plan"
+ }
+ }
}
- },
- {
- "name": "update_mask",
- "in": "query",
- "required": false,
- "type": "string"
}
],
"tags": [
- "Credentials"
+ "organization"
]
- },
- "patch": {
- "summary": "Update credential",
- "operationId": "UpdateCredential2",
+ }
+ },
+ "/v1/organizations/{id}/reactivate": {
+ "post": {
+ "summary": "Reactivate an Organization",
+ "operationId": "ReactivateOrganization",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/UpdateCredentialReply"
+ "$ref": "#/definitions/ReactivateOrganizationReply"
}
},
"400": {
@@ -11593,34 +11325,28 @@
"type": "string"
},
{
- "name": "credential",
+ "name": "body",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/Credential"
+ "type": "object"
}
- },
- {
- "name": "update_mask",
- "in": "query",
- "required": false,
- "type": "string"
}
],
"tags": [
- "Credentials"
+ "organization"
]
}
},
- "/v1/organization_members": {
- "get": {
- "summary": "List organization members",
- "operationId": "ListOrganizationMembers",
+ "/v1/organizations/{id}/signup_qualification": {
+ "post": {
+ "summary": "Upsert Organization's signup qualification",
+ "operationId": "UpsertSignupQualification",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ListOrganizationMembersReply"
+ "$ref": "#/definitions/UpsertSignupQualificationReply"
}
},
"400": {
@@ -11668,68 +11394,121 @@
},
"parameters": [
{
- "name": "limit",
- "description": "(Optional) The number of items to return",
- "in": "query",
- "required": false,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "offset",
- "description": "(Optional) The offset in the list of item to return",
- "in": "query",
- "required": false,
- "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": "organization_id",
- "description": "(Optional) Filter for an organization",
- "in": "query",
- "required": false,
+ "name": "id",
+ "in": "path",
+ "required": true,
"type": "string"
},
{
- "name": "user_id",
- "description": "(Optional) Filter for an user",
- "in": "query",
- "required": false,
- "type": "string"
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "object"
+ }
},
{
- "name": "organization_statuses",
- "description": "(Optional) Filter for organization statuses",
- "in": "query",
+ "name": "seon-fp",
+ "description": "Seon Fingerprint",
+ "in": "header",
"required": false,
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "WARNING",
- "LOCKED",
- "ACTIVE",
- "DEACTIVATING",
- "DEACTIVATED",
- "DELETING",
- "DELETED"
- ]
- },
- "collectionFormat": "multi"
+ "type": "string"
}
],
"tags": [
- "OrganizationMembers"
+ "organization"
]
}
},
- "/v1/organization_members/{id}": {
- "delete": {
- "summary": "Remove an organization member",
- "operationId": "RemoveOrganizationMember",
+ "/v1/organizations/{organization_id}/budget": {
+ "get": {
+ "summary": "Get Budget",
+ "operationId": "GetBudget",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/RemoveOrganizationMemberReply"
+ "$ref": "#/definitions/GetBudgetReply"
}
},
"400": {
@@ -11777,26 +11556,24 @@
},
"parameters": [
{
- "name": "id",
+ "name": "organization_id",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
- "OrganizationMembers"
+ "organization"
]
- }
- },
- "/v1/intercom/profile": {
- "get": {
- "summary": "Get intercom profile",
- "operationId": "GetIntercomProfile",
+ },
+ "delete": {
+ "summary": "Delete Budget",
+ "operationId": "DeleteBudget",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/GetIntercomProfileReply"
+ "$ref": "#/definitions/DeleteBudgetReply"
}
},
"400": {
@@ -11842,20 +11619,26 @@
}
}
},
+ "parameters": [
+ {
+ "name": "organization_id",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ ],
"tags": [
- "Intercom"
+ "organization"
]
- }
- },
- "/v1/search": {
- "get": {
- "summary": "Search",
- "operationId": "Search",
+ },
+ "post": {
+ "summary": "Create Budget",
+ "operationId": "CreateBudget",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/ksearch.SearchReply"
+ "$ref": "#/definitions/CreateBudgetReply"
}
},
"400": {
@@ -11903,23 +11686,478 @@
},
"parameters": [
{
- "name": "query",
- "description": "(Optional) Search query",
- "in": "query",
- "required": false,
+ "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": [
- "Search"
+ "organization"
]
- }
- }
- },
- "definitions": {
- "google.protobuf.Any": {
- "type": "object",
- "properties": {
+ },
+ "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"
}
@@ -11944,235 +12182,285 @@
}
}
},
- "CatalogGPUDetails": {
+ "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",
- "title": "The number of GPUs"
- },
- "brand": {
- "type": "string",
- "title": "The brand of GPU"
+ "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."
},
- "memory": {
- "type": "string",
- "title": "GPU memory"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The offset in the request."
},
- "name": {
- "type": "string",
- "title": "Name of GPU"
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The total number of items."
}
}
},
- "CatalogInstance": {
+ "kgitproxy.Repository": {
"type": "object",
"properties": {
"id": {
- "type": "string",
- "title": "The name of the instance"
+ "type": "string"
},
- "description": {
- "type": "string",
- "title": "A short description of the instance"
+ "organization_id": {
+ "type": "string"
},
- "vcpu": {
- "type": "integer",
- "format": "int64",
- "description": "The number of cpus. Deprecated. Use vcpu_shares instead."
+ "name": {
+ "type": "string"
},
- "memory": {
- "type": "string",
- "title": "The memory in bytes in a format like 5MB"
+ "url": {
+ "type": "string"
},
- "disk": {
- "type": "string",
- "title": "The size of the disk in bytes in a format like 5MB"
+ "description": {
+ "type": "string"
},
- "price_per_second": {
- "type": "string",
- "title": "The price to pay per second"
+ "is_private": {
+ "type": "boolean"
},
- "price_hourly": {
- "type": "string",
- "title": "The price to pay per hour"
+ "is_disabled": {
+ "type": "boolean"
},
- "price_monthly": {
- "type": "string",
- "title": "The price to pay per month"
+ "default_branch": {
+ "type": "string"
},
- "regions": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "The regions where this instance type is available"
+ "provider": {
+ "$ref": "#/definitions/kgitproxy.RepositoryProvider"
},
- "status": {
+ "last_push_date": {
"type": "string",
- "title": "The status of the instance"
- },
- "require_plan": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "The plan required to use instance"
+ "format": "date-time"
},
- "vcpu_shares": {
- "type": "number",
- "format": "float",
- "description": "The number of vcpu shares reserved for the instance."
+ "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"
},
- "display_name": {
- "type": "string",
- "title": "The display name of the instance"
+ "app_name": {
+ "type": "string"
},
- "aliases": {
+ "services": {
"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"
+ "$ref": "#/definitions/ServiceUsage"
+ }
},
- "service_types": {
+ "databases": {
"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"
+ "$ref": "#/definitions/DatabaseUsage"
+ }
}
}
},
- "CatalogInstanceListItem": {
+ "DatabaseUsage": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "title": "The name of the instance"
+ "service_id": {
+ "type": "string"
},
- "description": {
- "type": "string",
- "title": "A short description of the instance"
+ "service_name": {
+ "type": "string"
},
- "vcpu": {
+ "compute_time_seconds": {
"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"
+ "format": "int64"
},
- "price_monthly": {
- "type": "string",
- "title": "The price to pay per month"
+ "data_storage_megabytes_hours": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ },
+ "DatabaseUsageDetails": {
+ "type": "object",
+ "properties": {
+ "organization_id": {
+ "type": "string"
},
- "regions": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "The regions where this instance type is available"
+ "app_id": {
+ "type": "string"
},
- "status": {
- "type": "string",
- "title": "The status of the instance"
+ "app_name": {
+ "type": "string"
},
- "require_plan": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "The plan required to use instance"
+ "service_id": {
+ "type": "string"
},
- "vcpu_shares": {
- "type": "number",
- "format": "float",
- "description": "The number of vcpu shares reserved for the instance."
+ "service_name": {
+ "type": "string"
},
- "display_name": {
- "type": "string",
- "title": "The display name of the instance"
+ "compute_time_seconds": {
+ "type": "integer",
+ "format": "int64"
},
- "aliases": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "Aliases"
+ "data_storage_megabytes_hour": {
+ "type": "integer",
+ "format": "int64"
},
- "type": {
+ "started_at": {
"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"
+ "format": "date-time"
},
- "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"
+ "terminated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
},
- "ListCatalogInstancesReply": {
+ "GetOrganizationUsageDetailsReply": {
"type": "object",
"properties": {
- "instances": {
+ "usage_details": {
"type": "array",
"items": {
- "$ref": "#/definitions/CatalogInstanceListItem"
- }
+ "$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",
@@ -12188,231 +12476,136 @@
"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"
+ "order": {
+ "type": "string",
+ "title": "The order in the request"
}
}
},
- "ListUsageReply": {
+ "GetOrganizationUsageReply": {
"type": "object",
"properties": {
"usage": {
- "$ref": "#/definitions/CatalogUsage",
- "title": "The Usage retrieved"
+ "$ref": "#/definitions/Usage",
+ "title": "The computed usage of instances per month"
}
}
},
- "RegionAvailability": {
+ "InstanceUsage": {
"type": "object",
"properties": {
- "availability": {
- "$ref": "#/definitions/AvailabilityLevel"
+ "duration_seconds": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "DatacenterListItem": {
+ "PeriodUsage": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "title": "e.g. \"par1\""
- },
- "region_id": {
+ "starting_time": {
"type": "string",
- "title": "e.g. \"par\""
+ "format": "date-time"
},
- "domain": {
+ "ending_time": {
"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"
+ "format": "date-time"
},
- "regions": {
+ "apps": {
"type": "array",
"items": {
- "type": "string"
- },
- "title": "e.g. \"par\", \"fra\""
+ "$ref": "#/definitions/AppUsage"
+ }
}
}
},
- "ListDatacentersReply": {
+ "RegionUsage": {
"type": "object",
"properties": {
- "datacenters": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/DatacenterListItem"
+ "instances": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/InstanceUsage"
}
}
}
},
- "GetRegionReply": {
+ "ServiceUsage": {
"type": "object",
"properties": {
- "region": {
- "$ref": "#/definitions/Region",
- "title": "The Region retrieved"
+ "service_id": {
+ "type": "string"
+ },
+ "service_name": {
+ "type": "string"
+ },
+ "regions": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/RegionUsage"
+ }
}
}
},
- "ListRegionsReply": {
+ "Usage": {
"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"
+ "organization_id": {
+ "type": "string"
},
- "count": {
- "type": "integer",
- "format": "int64",
- "title": "The total number of items"
+ "periods": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/PeriodUsage"
+ }
}
}
},
- "Region": {
+ "UsageDetails": {
"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"
+ "organization_id": {
+ "type": "string"
},
- "datacenters": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "A list of datacenters available in this region"
+ "instance_id": {
+ "type": "string"
},
- "volumes_enabled": {
- "type": "boolean",
- "title": "Are the volumes enabled for this instance type"
+ "app_id": {
+ "type": "string"
},
- "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"
+ "app_name": {
+ "type": "string"
},
- "name": {
- "type": "string",
- "title": "The name of the region"
+ "service_id": {
+ "type": "string"
},
- "coordinates": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "The coordinates of the region (lat/long)"
+ "service_name": {
+ "type": "string"
},
- "status": {
- "type": "string",
- "title": "The status of the region"
+ "regional_deployment_id": {
+ "type": "string"
},
- "instances": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "A list of instances available in this region"
+ "region": {
+ "type": "string"
},
- "datacenters": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "A list of datacenters available in this region"
+ "deployment_id": {
+ "type": "string"
},
- "volumes_enabled": {
- "type": "boolean",
- "title": "Are the volumes enabled for this instance type"
+ "instance_type": {
+ "type": "string"
},
- "scope": {
+ "duration_seconds": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "started_at": {
"type": "string",
- "description": "The scope of the region, continent, metropolitan area, etc."
+ "format": "date-time"
+ },
+ "terminated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
},
@@ -12424,537 +12617,578 @@
"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": {
+ "ArchiveSource": {
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "title": "The ID of the archive to deploy"
},
- "actor": {
- "$ref": "#/definitions/Object"
+ "buildpack": {
+ "$ref": "#/definitions/BuildpackBuilder"
},
- "object": {
- "$ref": "#/definitions/Object"
+ "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"
},
- "verb": {
- "type": "string"
+ "run_command": {
+ "type": "string",
+ "title": "A command used to override the default run command"
},
- "metadata": {
- "type": "object"
+ "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"
},
- "created_at": {
+ "permissions": {
"type": "string",
- "format": "date-time"
+ "title": "the permissions of the file in format 0644"
+ },
+ "content": {
+ "type": "string",
+ "title": "the content of the file"
}
}
},
- "ActivityList": {
+ "DeploymentHealthCheck": {
"type": "object",
"properties": {
- "activities": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Activity"
- }
+ "grace_period": {
+ "type": "integer",
+ "format": "int64",
+ "title": "An optional initial period in seconds to wait for the instance to become healthy, default is 5s"
},
- "limit": {
+ "interval": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "title": "An optional period in seconds between two health checks, default is 60s"
},
- "offset": {
+ "restart_limit": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "title": "An optional number of consecutive failures before attempting to restart the service, default is 3"
},
- "has_next": {
- "type": "boolean"
+ "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"
}
}
},
- "Notification": {
+ "DeploymentProvisioningInfo": {
"type": "object",
"properties": {
- "id": {
+ "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"
},
- "activity": {
- "$ref": "#/definitions/Activity"
+ "status": {
+ "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status"
},
- "is_read": {
- "type": "boolean"
+ "messages": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "is_seen": {
- "type": "boolean"
+ "started_at": {
+ "type": "string",
+ "format": "date-time"
},
- "created_at": {
+ "finished_at": {
"type": "string",
"format": "date-time"
+ },
+ "build_attempts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt"
+ }
}
}
},
- "NotificationList": {
+ "DeploymentProvisioningInfo.Stage.BuildAttempt": {
"type": "object",
"properties": {
- "notifications": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "status": {
+ "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status"
+ },
+ "messages": {
"type": "array",
"items": {
- "$ref": "#/definitions/Notification"
+ "type": "string"
}
},
- "limit": {
- "type": "integer",
- "format": "int64"
+ "started_at": {
+ "type": "string",
+ "format": "date-time"
},
- "offset": {
- "type": "integer",
- "format": "int64"
+ "finished_at": {
+ "type": "string",
+ "format": "date-time"
},
- "count": {
- "type": "integer",
- "format": "int64"
+ "steps": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep"
+ }
},
- "is_read": {
+ "image_pushed": {
"type": "boolean"
},
- "is_seen": {
+ "internal_failure": {
"type": "boolean"
},
- "unread": {
- "type": "integer",
- "format": "int64"
+ "retryable_failure": {
+ "type": "boolean"
},
- "unseen": {
- "type": "integer",
- "format": "int64"
+ "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."
}
}
},
- "Object": {
+ "DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
"name": {
"type": "string"
},
- "type": {
- "type": "string"
+ "status": {
+ "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status"
},
- "metadata": {
- "type": "object"
+ "messages": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "deleted": {
- "type": "boolean"
+ "started_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "finished_at": {
+ "type": "string",
+ "format": "date-time"
}
}
},
- "Error": {
+ "DeploymentProvisioningInfo.Stage.Status": {
+ "type": "string",
+ "enum": [
+ "UNKNOWN",
+ "PENDING",
+ "RUNNING",
+ "FAILED",
+ "COMPLETED",
+ "ABORTED"
+ ],
+ "default": "UNKNOWN"
+ },
+ "DeploymentScalingTarget": {
"type": "object",
"properties": {
- "status": {
- "type": "integer",
- "format": "int32"
+ "average_cpu": {
+ "$ref": "#/definitions/DeploymentScalingTargetAverageCPU"
},
- "code": {
- "type": "string"
+ "average_mem": {
+ "$ref": "#/definitions/DeploymentScalingTargetAverageMem"
},
- "message": {
- "type": "string"
+ "requests_per_second": {
+ "$ref": "#/definitions/DeploymentScalingTargetRequestsPerSecond"
+ },
+ "concurrent_requests": {
+ "$ref": "#/definitions/DeploymentScalingTargetConcurrentRequests"
+ },
+ "requests_response_time": {
+ "$ref": "#/definitions/DeploymentScalingTargetRequestsResponseTime"
+ },
+ "sleep_idle_delay": {
+ "$ref": "#/definitions/DeploymentScalingTargetSleepIdleDelay"
}
}
},
- "ErrorField": {
+ "DeploymentScalingTargetAverageCPU": {
"type": "object",
"properties": {
- "field": {
- "type": "string"
- },
- "description": {
- "type": "string"
+ "value": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "ErrorWithFields": {
+ "DeploymentScalingTargetAverageMem": {
"type": "object",
"properties": {
- "status": {
+ "value": {
"type": "integer",
- "format": "int32"
- },
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "fields": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ErrorField"
- }
+ "format": "int64"
}
}
},
- "kgitproxy.Branch": {
+ "DeploymentScalingTargetConcurrentRequests": {
"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"
+ "value": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "kgitproxy.GitHubRepository": {
+ "DeploymentScalingTargetRequestsPerSecond": {
"type": "object",
"properties": {
- "github_id": {
- "type": "string"
+ "value": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "kgitproxy.ListBranchesReply": {
+ "DeploymentScalingTargetRequestsResponseTime": {
"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": {
+ "value": {
"type": "integer",
- "format": "int64",
- "description": "The offset in the request."
+ "format": "int64"
},
- "count": {
+ "quantile": {
"type": "integer",
"format": "int64",
- "description": "The total number of items."
+ "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."
}
}
},
- "kgitproxy.ListRepositoriesReply": {
+ "DeploymentScalingTargetSleepIdleDelay": {
"type": "object",
"properties": {
- "repositories": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/kgitproxy.Repository"
- },
- "description": "The collection of repositories."
- },
- "limit": {
+ "value": {
"type": "integer",
"format": "int64",
- "description": "The limit in the request."
+ "description": "DEPRECATED: use deep_sleep_value instead.\nDelay in seconds after which a service which received 0 request is put to deep sleep."
},
- "offset": {
+ "deep_sleep_value": {
"type": "integer",
"format": "int64",
- "description": "The offset in the request."
+ "description": "Delay in seconds after which a service which received 0 request is put to deep sleep."
},
- "count": {
+ "light_sleep_value": {
"type": "integer",
"format": "int64",
- "description": "The total number of items."
+ "description": "Delay in seconds after which a service which received 0 request is put to light sleep."
}
}
},
- "kgitproxy.Repository": {
+ "DeploymentStrategy": {
"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"
+ "type": {
+ "$ref": "#/definitions/DeploymentStrategyType",
+ "title": "Strategy type"
}
}
},
- "kgitproxy.RepositoryProvider": {
+ "DeploymentStrategyType": {
"type": "string",
"enum": [
- "INVALID_PROVIDER",
- "GITHUB"
+ "DEPLOYMENT_STRATEGY_TYPE_INVALID",
+ "DEPLOYMENT_STRATEGY_TYPE_CANARY",
+ "DEPLOYMENT_STRATEGY_TYPE_ROLLING",
+ "DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN",
+ "DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE"
],
- "default": "INVALID_PROVIDER"
- },
- "kgitproxy.ResyncOrganizationReply": {
- "type": "object"
+ "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."
},
- "ExecCommandIO": {
+ "DockerBuilder": {
"type": "object",
"properties": {
- "data": {
+ "dockerfile": {
"type": "string",
- "format": "byte",
- "description": "Data is base64 encoded"
+ "title": "A path to the Dockerfile"
},
- "close": {
- "type": "boolean",
- "description": "Indicate last data frame"
- }
- }
- },
- "ExecCommandReply": {
- "type": "object",
- "properties": {
- "stdout": {
- "$ref": "#/definitions/ExecCommandIO"
+ "entrypoint": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The docker ENTRYPOINT"
},
- "stderr": {
- "$ref": "#/definitions/ExecCommandIO"
+ "command": {
+ "type": "string",
+ "title": "The docker CMD"
},
- "exited": {
- "type": "boolean"
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The docker CMD args"
},
- "exit_code": {
- "type": "integer",
- "format": "int32"
+ "target": {
+ "type": "string",
+ "title": "The target for multi-stage builds"
+ },
+ "privileged": {
+ "type": "boolean",
+ "title": "A flag to run the container in privileged mode"
}
}
},
- "ExecCommandRequest.Body": {
+ "DockerSource": {
"type": "object",
"properties": {
+ "image": {
+ "type": "string"
+ },
"command": {
+ "type": "string"
+ },
+ "args": {
"type": "array",
"items": {
"type": "string"
- },
- "description": "Command to exec. Mandatory in the first frame sent"
+ }
},
- "tty_size": {
- "$ref": "#/definitions/ExecCommandRequest.TerminalSize"
+ "image_registry_secret": {
+ "type": "string"
},
- "stdin": {
- "$ref": "#/definitions/ExecCommandIO"
+ "entrypoint": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "disableTty": {
+ "privileged": {
"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"
+ "title": "A flag to run the container in privileged mode"
}
}
},
- "LogEntry": {
+ "Env": {
"type": "object",
"properties": {
- "msg": {
+ "key": {
"type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time"
+ "value": {
+ "type": "string"
},
- "labels": {
- "type": "object"
+ "secret": {
+ "type": "string"
}
}
},
- "QueryLogsReply": {
+ "GetRegionalDeploymentReply": {
"type": "object",
"properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/LogEntry"
- }
- },
- "pagination": {
- "$ref": "#/definitions/QueryLogsReplyPagination"
+ "regional_deployment": {
+ "$ref": "#/definitions/RegionalDeployment"
}
}
},
- "QueryLogsReplyPagination": {
+ "GitSource": {
"type": "object",
"properties": {
- "has_more": {
- "type": "boolean"
+ "repository": {
+ "type": "string",
+ "description": "A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test."
},
- "next_start": {
+ "branch": {
"type": "string",
- "format": "date-time"
+ "title": "A git branch that will be tracked for new commits and deployments will be created"
},
- "next_end": {
+ "tag": {
"type": "string",
- "format": "date-time"
+ "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"
}
}
},
- "GetMetricsReply": {
+ "HTTPHeader": {
"type": "object",
"properties": {
- "metrics": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GetMetricsReply.Metric"
- }
+ "key": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
}
}
},
- "GetMetricsReply.Metric": {
+ "HTTPHealthCheck": {
"type": "object",
"properties": {
- "labels": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "port": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The port to use to perform the health check, must be declared in the ports section"
},
- "samples": {
+ "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/Sample"
- }
+ "$ref": "#/definitions/HTTPHeader"
+ },
+ "title": "An optional list of HTTP headers to provide when performing the request, default is empty"
}
}
},
- "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": {
+ "ListRegionalDeploymentEventsReply": {
"type": "object",
"properties": {
- "timestamp": {
- "type": "string"
+ "events": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RegionalDeploymentEvent"
+ },
+ "title": "The collection of events"
},
- "value": {
- "type": "number",
- "format": "double"
+ "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"
}
}
},
- "CreateDomain": {
+ "ListRegionalDeploymentsReply": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "regional_deployments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RegionalDeploymentListItem"
+ },
+ "title": "The collection of regional deployments"
},
- "type": {
- "$ref": "#/definitions/Domain.Type"
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The limit in the request"
},
- "app_id": {
- "type": "string",
- "title": "to auto-attach to an app. Optional"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The offset in the request"
},
- "cloudflare": {
- "$ref": "#/definitions/Domain.LoadBalancerCloudflare"
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The total number of items"
},
- "koyeb": {
- "$ref": "#/definitions/Domain.LoadBalancerKoyeb",
- "description": "Only applicable to auto-assigned domains, for organizations on the Scale plan."
+ "has_next": {
+ "type": "boolean",
+ "title": "If there is more items after in the collection"
}
}
},
- "CreateDomainReply": {
+ "Port": {
"type": "object",
"properties": {
- "domain": {
- "$ref": "#/definitions/Domain"
+ "port": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "protocol": {
+ "type": "string"
}
}
},
- "DeleteDomainReply": {
- "type": "object"
- },
- "Domain": {
+ "RegionalDeployment": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "organization_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
"created_at": {
"type": "string",
"format": "date-time"
@@ -12963,981 +13197,1039 @@
"type": "string",
"format": "date-time"
},
- "status": {
- "$ref": "#/definitions/Domain.Status"
+ "scheduled_at": {
+ "type": "string",
+ "format": "date-time"
},
- "type": {
- "$ref": "#/definitions/Domain.Type"
+ "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"
},
- "deployment_group": {
+ "service_id": {
"type": "string"
},
- "verified_at": {
- "type": "string",
- "format": "date-time"
+ "region": {
+ "type": "string"
},
- "intended_cname": {
+ "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"
},
- "cloudflare": {
- "$ref": "#/definitions/Domain.LoadBalancerCloudflare"
+ "deployment_group": {
+ "type": "string",
+ "title": "Legacy stuff"
},
- "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"
+ "deployment_id": {
+ "type": "string"
}
}
},
- "Domain.Status": {
+ "RegionalDeployment.Role": {
"type": "string",
"enum": [
- "PENDING",
+ "INVALID",
"ACTIVE",
- "ERROR",
- "DELETING",
- "DELETED"
+ "UPCOMING",
+ "CURRENT"
],
- "default": "PENDING"
+ "default": "INVALID"
},
- "Domain.Type": {
+ "RegionalDeployment.Status": {
"type": "string",
"enum": [
- "AUTOASSIGNED",
- "CUSTOM"
+ "PENDING",
+ "PROVISIONING",
+ "SCHEDULED",
+ "CANCELING",
+ "CANCELED",
+ "ALLOCATING",
+ "STARTING",
+ "HEALTHY",
+ "DEGRADED",
+ "UNHEALTHY",
+ "STOPPING",
+ "STOPPED",
+ "ERRORING",
+ "ERROR",
+ "SLEEPING"
],
- "default": "AUTOASSIGNED",
- "title": "- AUTOASSIGNED: Domain like -.koyeb.app"
- },
- "GetDomainReply": {
- "type": "object",
- "properties": {
- "domain": {
- "$ref": "#/definitions/Domain"
- }
- }
+ "default": "PENDING"
},
- "ListDomainsReply": {
+ "RegionalDeploymentDefinition": {
"type": "object",
"properties": {
- "domains": {
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/RegionalDeploymentDefinition.Type"
+ },
+ "strategy": {
+ "$ref": "#/definitions/DeploymentStrategy"
+ },
+ "routes": {
"type": "array",
"items": {
- "$ref": "#/definitions/Domain"
+ "$ref": "#/definitions/Route"
}
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
- },
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "ports": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Port"
+ }
},
- "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."
+ "env": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Env"
+ }
},
- "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"
+ "region": {
+ "type": "string"
},
- "reason": {
- "type": "string",
- "title": "(Optional) If the image is not accessible, the reason"
+ "scaling": {
+ "$ref": "#/definitions/Scaling"
},
- "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": {
+ "instance_type": {
"type": "string"
},
- "app_name": {
+ "deployment_group": {
"type": "string"
},
- "services": {
+ "health_checks": {
"type": "array",
"items": {
- "$ref": "#/definitions/ServiceUsage"
+ "$ref": "#/definitions/DeploymentHealthCheck"
}
},
- "databases": {
+ "volumes": {
"type": "array",
"items": {
- "$ref": "#/definitions/DatabaseUsage"
+ "$ref": "#/definitions/RegionalDeploymentVolume"
}
- }
- }
- },
- "DatabaseUsage": {
- "type": "object",
- "properties": {
- "service_id": {
- "type": "string"
},
- "service_name": {
- "type": "string"
+ "config_files": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConfigFile"
+ }
},
- "compute_time_seconds": {
- "type": "integer",
- "format": "int64"
+ "skip_cache": {
+ "type": "boolean"
},
- "data_storage_megabytes_hours": {
- "type": "integer",
- "format": "int64"
+ "docker": {
+ "$ref": "#/definitions/DockerSource"
+ },
+ "git": {
+ "$ref": "#/definitions/GitSource"
+ },
+ "archive": {
+ "$ref": "#/definitions/ArchiveSource"
}
}
},
- "DatabaseUsageDetails": {
+ "RegionalDeploymentDefinition.Type": {
+ "type": "string",
+ "enum": [
+ "INVALID",
+ "WEB",
+ "WORKER"
+ ],
+ "default": "INVALID"
+ },
+ "RegionalDeploymentEvent": {
"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"
+ "id": {
+ "type": "string"
},
- "terminated_at": {
+ "when": {
"type": "string",
"format": "date-time"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "regional_deployment_id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "object"
}
}
},
- "GetOrganizationUsageDetailsReply": {
+ "RegionalDeploymentListItem": {
"type": "object",
"properties": {
- "usage_details": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/UsageDetails"
- },
- "title": "The collection of usage instances"
+ "id": {
+ "type": "string"
},
- "database_details": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/DatabaseUsageDetails"
- },
- "title": "The collection of database deployments used during the month"
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
},
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "region": {
+ "type": "string"
},
- "count": {
- "type": "integer",
- "format": "int64",
- "title": "The total number of items"
+ "status": {
+ "$ref": "#/definitions/RegionalDeployment.Status"
},
- "order": {
- "type": "string",
- "title": "The order in the request"
+ "messages": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "definition": {
+ "$ref": "#/definitions/RegionalDeploymentDefinition"
}
}
},
- "GetOrganizationUsageReply": {
+ "RegionalDeploymentMetadata": {
+ "type": "object"
+ },
+ "RegionalDeploymentVolume": {
"type": "object",
"properties": {
- "usage": {
- "$ref": "#/definitions/Usage",
- "title": "The computed usage of instances per month"
+ "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"
}
}
},
- "InstanceUsage": {
+ "Route": {
"type": "object",
"properties": {
- "duration_seconds": {
+ "port": {
"type": "integer",
"format": "int64"
+ },
+ "path": {
+ "type": "string"
}
}
},
- "PeriodUsage": {
+ "Scaling": {
"type": "object",
"properties": {
- "starting_time": {
- "type": "string",
- "format": "date-time"
+ "min": {
+ "type": "integer",
+ "format": "int64"
},
- "ending_time": {
- "type": "string",
- "format": "date-time"
+ "max": {
+ "type": "integer",
+ "format": "int64"
},
- "apps": {
+ "targets": {
"type": "array",
"items": {
- "$ref": "#/definitions/AppUsage"
+ "$ref": "#/definitions/DeploymentScalingTarget"
}
}
}
},
- "RegionUsage": {
+ "TCPHealthCheck": {
"type": "object",
"properties": {
- "instances": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/InstanceUsage"
- }
+ "port": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The port to use to perform the health check, must be declared in the ports section"
}
}
},
- "ServiceUsage": {
+ "App": {
"type": "object",
"properties": {
- "service_id": {
+ "id": {
"type": "string"
},
- "service_name": {
+ "name": {
"type": "string"
},
- "regions": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/RegionUsage"
+ "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"
}
}
}
},
- "Usage": {
+ "App.Status": {
+ "type": "string",
+ "enum": [
+ "STARTING",
+ "HEALTHY",
+ "DEGRADED",
+ "UNHEALTHY",
+ "DELETING",
+ "DELETED",
+ "PAUSING",
+ "PAUSED",
+ "RESUMING"
+ ],
+ "default": "STARTING"
+ },
+ "AutoRelease": {
"type": "object",
"properties": {
- "organization_id": {
- "type": "string"
- },
- "periods": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/PeriodUsage"
+ "groups": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AutoRelease.Group"
}
}
}
},
- "UsageDetails": {
+ "AutoRelease.Group": {
"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": {
+ "name": {
"type": "string"
},
- "instance_type": {
+ "repository": {
"type": "string"
},
- "duration_seconds": {
- "type": "integer",
- "format": "int64"
- },
- "started_at": {
+ "git_ref": {
"type": "string",
- "format": "date-time"
+ "title": "A git ref to track (.e.g: refs/tags/ or refs/heads/"
},
- "terminated_at": {
+ "latest_sha": {
"type": "string",
- "format": "date-time"
+ "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"
},
- "ArchiveSource": {
+ "ComposeReply": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "title": "The ID of the archive to deploy"
- },
- "buildpack": {
- "$ref": "#/definitions/BuildpackBuilder"
+ "app": {
+ "$ref": "#/definitions/App"
},
- "docker": {
- "$ref": "#/definitions/DockerBuilder"
+ "services": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Service"
+ }
}
}
},
- "BuildpackBuilder": {
+ "CreateApp": {
"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"
+ "name": {
+ "type": "string"
}
}
},
- "ConfigFile": {
+ "CreateCompose": {
"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"
+ "app": {
+ "$ref": "#/definitions/CreateApp"
},
- "content": {
- "type": "string",
- "title": "the content of the file"
+ "services": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CreateService"
+ }
}
}
},
- "DeploymentHealthCheck": {
+ "CreateService": {
"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"
+ "app_id": {
+ "type": "string"
},
- "http": {
- "$ref": "#/definitions/HTTPHealthCheck"
+ "definition": {
+ "$ref": "#/definitions/DeploymentDefinition"
}
}
},
- "DeploymentProvisioningInfo": {
+ "DatabaseSource": {
"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."
+ "neon_postgres": {
+ "$ref": "#/definitions/NeonPostgresDatabase"
}
}
},
- "DeploymentProvisioningInfo.Stage": {
+ "DeploymentDefinition": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
- "status": {
- "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status"
+ "type": {
+ "$ref": "#/definitions/DeploymentDefinition.Type"
},
- "messages": {
+ "strategy": {
+ "$ref": "#/definitions/DeploymentStrategy"
+ },
+ "routes": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/DeploymentRoute"
}
},
- "started_at": {
- "type": "string",
- "format": "date-time"
- },
- "finished_at": {
- "type": "string",
- "format": "date-time"
+ "ports": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentPort"
+ }
},
- "build_attempts": {
+ "proxy_ports": {
"type": "array",
"items": {
- "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt"
+ "$ref": "#/definitions/DeploymentProxyPort"
}
- }
- }
- },
- "DeploymentProvisioningInfo.Stage.BuildAttempt": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
},
- "status": {
- "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.Status"
+ "env": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentEnv"
+ }
},
- "messages": {
+ "regions": {
"type": "array",
"items": {
"type": "string"
}
},
- "started_at": {
- "type": "string",
- "format": "date-time"
+ "scalings": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentScaling"
+ }
},
- "finished_at": {
- "type": "string",
- "format": "date-time"
+ "instance_types": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentInstanceType"
+ }
},
- "steps": {
+ "health_checks": {
"type": "array",
"items": {
- "$ref": "#/definitions/DeploymentProvisioningInfo.Stage.BuildAttempt.BuildStep"
+ "$ref": "#/definitions/DeploymentHealthCheck"
}
},
- "image_pushed": {
- "type": "boolean"
+ "volumes": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentVolume"
+ }
},
- "internal_failure": {
- "type": "boolean"
+ "config_files": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConfigFile"
+ }
},
- "retryable_failure": {
+ "skip_cache": {
"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"
+ "docker": {
+ "$ref": "#/definitions/DockerSource"
},
- "messages": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "git": {
+ "$ref": "#/definitions/GitSource"
},
- "started_at": {
- "type": "string",
- "format": "date-time"
+ "database": {
+ "$ref": "#/definitions/DatabaseSource"
},
- "finished_at": {
- "type": "string",
- "format": "date-time"
+ "archive": {
+ "$ref": "#/definitions/ArchiveSource"
}
}
},
- "DeploymentProvisioningInfo.Stage.Status": {
+ "DeploymentDefinition.Type": {
"type": "string",
"enum": [
- "UNKNOWN",
- "PENDING",
- "RUNNING",
- "FAILED",
- "COMPLETED",
- "ABORTED"
+ "INVALID",
+ "WEB",
+ "WORKER",
+ "DATABASE"
],
- "default": "UNKNOWN"
+ "default": "INVALID"
},
- "DeploymentScalingTarget": {
+ "DeploymentEnv": {
"type": "object",
"properties": {
- "average_cpu": {
- "$ref": "#/definitions/DeploymentScalingTargetAverageCPU"
- },
- "average_mem": {
- "$ref": "#/definitions/DeploymentScalingTargetAverageMem"
- },
- "requests_per_second": {
- "$ref": "#/definitions/DeploymentScalingTargetRequestsPerSecond"
+ "scopes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "concurrent_requests": {
- "$ref": "#/definitions/DeploymentScalingTargetConcurrentRequests"
+ "key": {
+ "type": "string"
},
- "requests_response_time": {
- "$ref": "#/definitions/DeploymentScalingTargetRequestsResponseTime"
+ "value": {
+ "type": "string"
},
- "sleep_idle_delay": {
- "$ref": "#/definitions/DeploymentScalingTargetSleepIdleDelay"
+ "secret": {
+ "type": "string"
}
}
},
- "DeploymentScalingTargetAverageCPU": {
+ "DeploymentInstanceType": {
"type": "object",
"properties": {
- "value": {
- "type": "integer",
- "format": "int64"
+ "scopes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "type": {
+ "type": "string"
}
}
},
- "DeploymentScalingTargetAverageMem": {
+ "DeploymentPort": {
"type": "object",
"properties": {
- "value": {
+ "port": {
"type": "integer",
"format": "int64"
+ },
+ "protocol": {
+ "type": "string",
+ "title": "One of http, http2, tcp"
}
}
},
- "DeploymentScalingTargetConcurrentRequests": {
+ "DeploymentProxyPort": {
"type": "object",
"properties": {
- "value": {
+ "port": {
"type": "integer",
"format": "int64"
+ },
+ "protocol": {
+ "$ref": "#/definitions/ProxyPortProtocol"
}
}
},
- "DeploymentScalingTargetRequestsPerSecond": {
+ "DeploymentRoute": {
"type": "object",
"properties": {
- "value": {
+ "port": {
"type": "integer",
"format": "int64"
+ },
+ "path": {
+ "type": "string"
}
}
},
- "DeploymentScalingTargetRequestsResponseTime": {
+ "DeploymentScaling": {
"type": "object",
"properties": {
- "value": {
+ "scopes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "min": {
"type": "integer",
"format": "int64"
},
- "quantile": {
+ "max": {
"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."
+ "format": "int64"
+ },
+ "targets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentScalingTarget"
+ }
}
}
},
- "DeploymentScalingTargetSleepIdleDelay": {
+ "DeploymentVolume": {
"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."
+ "id": {
+ "type": "string",
+ "title": "the id of the volume"
},
- "deep_sleep_value": {
- "type": "integer",
- "format": "int64",
- "description": "Delay in seconds after which a service which received 0 request is put to deep sleep."
+ "path": {
+ "type": "string",
+ "title": "the path where the volume is mounted to"
},
- "light_sleep_value": {
+ "replica_index": {
"type": "integer",
"format": "int64",
- "description": "Delay in seconds after which a service which received 0 request is put to light sleep."
+ "title": "optionally, explicitly choose the replica index to mount the volume to"
+ },
+ "scopes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "scope of the associated"
}
}
},
- "DeploymentStrategy": {
+ "DesiredDeployment": {
"type": "object",
"properties": {
- "type": {
- "$ref": "#/definitions/DeploymentStrategyType",
- "title": "Strategy type"
+ "groups": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DesiredDeployment.Group"
+ }
}
}
},
- "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": {
+ "DesiredDeployment.Group": {
"type": "object",
"properties": {
- "dockerfile": {
- "type": "string",
- "title": "A path to the Dockerfile"
+ "name": {
+ "type": "string"
},
- "entrypoint": {
+ "deployment_ids": {
"type": "array",
"items": {
"type": "string"
- },
- "title": "The docker ENTRYPOINT"
+ }
+ }
+ }
+ },
+ "Domain": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "command": {
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "created_at": {
"type": "string",
- "title": "The docker CMD"
+ "format": "date-time"
},
- "args": {
+ "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"
- },
- "title": "The docker CMD args"
+ }
},
- "target": {
+ "version": {
"type": "string",
- "title": "The target for multi-stage builds"
+ "format": "uint64"
},
- "privileged": {
- "type": "boolean",
- "title": "A flag to run the container in privileged mode"
+ "cloudflare": {
+ "$ref": "#/definitions/Domain.LoadBalancerCloudflare"
+ },
+ "koyeb": {
+ "$ref": "#/definitions/Domain.LoadBalancerKoyeb"
}
}
},
- "DockerSource": {
+ "Domain.LoadBalancerCloudflare": {
+ "type": "object"
+ },
+ "Domain.LoadBalancerKoyeb": {
"type": "object",
"properties": {
- "image": {
+ "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"
},
- "command": {
+ "instance_type": {
"type": "string"
},
- "args": {
+ "roles": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/NeonPostgresDatabase.NeonRole"
}
},
- "image_registry_secret": {
- "type": "string"
- },
- "entrypoint": {
+ "databases": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/NeonPostgresDatabase.NeonDatabase"
}
- },
- "privileged": {
- "type": "boolean",
- "title": "A flag to run the container in privileged mode"
}
}
},
- "Env": {
+ "NeonPostgresDatabase.NeonDatabase": {
"type": "object",
"properties": {
- "key": {
- "type": "string"
- },
- "value": {
+ "name": {
"type": "string"
},
- "secret": {
+ "owner": {
"type": "string"
}
}
},
- "GetRegionalDeploymentReply": {
+ "NeonPostgresDatabase.NeonRole": {
"type": "object",
"properties": {
- "regional_deployment": {
- "$ref": "#/definitions/RegionalDeployment"
+ "name": {
+ "type": "string"
+ },
+ "secret": {
+ "type": "string"
}
}
},
- "GitSource": {
+ "ProxyPortProtocol": {
+ "type": "string",
+ "enum": [
+ "tcp"
+ ],
+ "default": "tcp"
+ },
+ "Service": {
"type": "object",
"properties": {
- "repository": {
+ "id": {
+ "type": "string"
+ },
+ "created_at": {
"type": "string",
- "description": "A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test."
+ "format": "date-time"
},
- "branch": {
+ "updated_at": {
"type": "string",
- "title": "A git branch that will be tracked for new commits and deployments will be created"
+ "format": "date-time"
},
- "tag": {
+ "started_at": {
"type": "string",
- "title": "A git tag that should be built"
+ "format": "date-time"
},
- "sha": {
+ "succeeded_at": {
"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)"
+ "format": "date-time"
},
- "build_command": {
+ "paused_at": {
"type": "string",
- "title": "A command used to override the build command, run after all build steps \u2014 deprecated, use buildpack.build_command instead"
+ "format": "date-time"
},
- "run_command": {
+ "resumed_at": {
"type": "string",
- "title": "A command used to override the default run command - deprecated, use buildpack.run_command instead"
+ "format": "date-time"
},
- "no_deploy_on_push": {
- "type": "boolean",
- "title": "A flag to disable a new deployment when a push event is detected"
+ "terminated_at": {
+ "type": "string",
+ "format": "date-time"
},
- "workdir": {
+ "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",
- "title": "A subdirectory to use as the build directory"
+ "format": "uint64"
},
- "buildpack": {
- "$ref": "#/definitions/BuildpackBuilder"
+ "active_deployment_id": {
+ "type": "string"
},
- "docker": {
- "$ref": "#/definitions/DockerBuilder"
- }
- }
- },
- "HTTPHeader": {
- "type": "object",
- "properties": {
- "key": {
+ "latest_deployment_id": {
"type": "string"
},
- "value": {
+ "last_provisioned_deployment_id": {
"type": "string"
+ },
+ "state": {
+ "$ref": "#/definitions/ServiceState",
+ "title": "Legacy stuff"
}
}
},
- "HTTPHealthCheck": {
+ "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": {
- "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"
+ "desired_deployment": {
+ "$ref": "#/definitions/DesiredDeployment"
},
- "headers": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/HTTPHeader"
- },
- "title": "An optional list of HTTP headers to provide when performing the request, default is empty"
+ "auto_release": {
+ "$ref": "#/definitions/AutoRelease"
}
}
},
- "ListRegionalDeploymentEventsReply": {
+ "VerifyDockerImageReply": {
"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"
+ "success": {
+ "type": "boolean",
+ "title": "Whether the image is accessible or not"
},
- "order": {
+ "reason": {
"type": "string",
- "title": "The order in the request"
+ "title": "(Optional) If the image is not accessible, the reason"
},
- "has_next": {
- "type": "boolean",
- "title": "If there is more items after in the collection"
+ "code": {
+ "$ref": "#/definitions/VerifyDockerImageReply.ErrCode",
+ "title": "(Optional) If the image is not accessible, return an error code"
}
}
},
- "ListRegionalDeploymentsReply": {
+ "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": {
- "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"
+ "last_provisioned_deployment_id": {
+ "type": "string"
}
}
},
- "Port": {
+ "CancelDeploymentReply": {
+ "type": "object"
+ },
+ "DatabaseDeploymentMetadata": {
"type": "object",
"properties": {
- "port": {
- "type": "integer",
- "format": "int64"
- },
- "protocol": {
- "type": "string"
+ "neon_postgres": {
+ "$ref": "#/definitions/NeonPostgresDatabaseDeploymentMetadata"
}
}
},
- "RegionalDeployment": {
+ "Deployment": {
"type": "object",
"properties": {
"id": {
@@ -13951,10 +14243,6 @@
"type": "string",
"format": "date-time"
},
- "scheduled_at": {
- "type": "string",
- "format": "date-time"
- },
"allocated_at": {
"type": "string",
"format": "date-time"
@@ -13980,9 +14268,6 @@
"service_id": {
"type": "string"
},
- "region": {
- "type": "string"
- },
"parent_id": {
"type": "string"
},
@@ -13990,46 +14275,42 @@
"type": "string"
},
"status": {
- "$ref": "#/definitions/RegionalDeployment.Status"
+ "$ref": "#/definitions/Deployment.Status"
},
- "messages": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "metadata": {
+ "$ref": "#/definitions/DeploymentMetadata"
},
"definition": {
- "$ref": "#/definitions/RegionalDeploymentDefinition"
+ "$ref": "#/definitions/DeploymentDefinition"
},
- "datacenters": {
+ "messages": {
"type": "array",
"items": {
"type": "string"
}
},
- "metadata": {
- "$ref": "#/definitions/RegionalDeploymentMetadata"
- },
"provisioning_info": {
"$ref": "#/definitions/DeploymentProvisioningInfo"
},
+ "database_info": {
+ "$ref": "#/definitions/DeploymentDatabaseInfo"
+ },
+ "skip_build": {
+ "type": "boolean"
+ },
"role": {
- "$ref": "#/definitions/RegionalDeployment.Role"
+ "$ref": "#/definitions/Deployment.Role"
},
"version": {
"type": "string",
"format": "uint64"
},
"deployment_group": {
- "type": "string",
- "title": "Legacy stuff"
- },
- "deployment_id": {
"type": "string"
}
}
},
- "RegionalDeployment.Role": {
+ "Deployment.Role": {
"type": "string",
"enum": [
"INVALID",
@@ -14039,7 +14320,7 @@
],
"default": "INVALID"
},
- "RegionalDeployment.Status": {
+ "Deployment.Status": {
"type": "string",
"enum": [
"PENDING",
@@ -14056,94 +14337,20 @@
"STOPPED",
"ERRORING",
"ERROR",
+ "STASHED",
"SLEEPING"
],
"default": "PENDING"
},
- "RegionalDeploymentDefinition": {
+ "DeploymentDatabaseInfo": {
"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"
+ "neon_postgres": {
+ "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfo"
}
}
},
- "RegionalDeploymentDefinition.Type": {
- "type": "string",
- "enum": [
- "INVALID",
- "WEB",
- "WORKER"
- ],
- "default": "INVALID"
- },
- "RegionalDeploymentEvent": {
+ "DeploymentEvent": {
"type": "object",
"properties": {
"id": {
@@ -14156,7 +14363,7 @@
"organization_id": {
"type": "string"
},
- "regional_deployment_id": {
+ "deployment_id": {
"type": "string"
},
"type": {
@@ -14170,7 +14377,7 @@
}
}
},
- "RegionalDeploymentListItem": {
+ "DeploymentListItem": {
"type": "object",
"properties": {
"id": {
@@ -14184,11 +14391,45 @@
"type": "string",
"format": "date-time"
},
- "region": {
+ "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/RegionalDeployment.Status"
+ "$ref": "#/definitions/Deployment.Status"
+ },
+ "metadata": {
+ "$ref": "#/definitions/DeploymentMetadata"
+ },
+ "definition": {
+ "$ref": "#/definitions/DeploymentDefinition"
},
"messages": {
"type": "array",
@@ -14196,645 +14437,765 @@
"type": "string"
}
},
- "definition": {
- "$ref": "#/definitions/RegionalDeploymentDefinition"
+ "provisioning_info": {
+ "$ref": "#/definitions/DeploymentProvisioningInfo"
+ },
+ "database_info": {
+ "$ref": "#/definitions/DeploymentDatabaseInfo"
+ },
+ "version": {
+ "type": "string",
+ "format": "uint64"
+ },
+ "deployment_group": {
+ "type": "string"
}
}
},
- "RegionalDeploymentMetadata": {
- "type": "object"
- },
- "RegionalDeploymentVolume": {
+ "DeploymentMetadata": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "title": "the id of the volume"
+ "trigger": {
+ "$ref": "#/definitions/TriggerDeploymentMetadata"
},
- "path": {
- "type": "string",
- "title": "the path where the volume is mounted to"
+ "database": {
+ "$ref": "#/definitions/DatabaseDeploymentMetadata"
},
- "replica_index": {
- "type": "integer",
- "format": "int64",
- "title": "the replica index to mount the volume to"
+ "git": {
+ "$ref": "#/definitions/GitDeploymentMetadata"
+ },
+ "archive": {
+ "$ref": "#/definitions/ArchiveDeploymentMetadata"
+ },
+ "proxy_ports": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentProxyPortMetadata"
+ }
}
}
},
- "Route": {
+ "DeploymentNeonPostgresDatabaseInfo": {
"type": "object",
"properties": {
- "port": {
- "type": "integer",
+ "active_time_seconds": {
+ "type": "string",
"format": "int64"
},
- "path": {
+ "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"
- }
- }
- },
- "Scaling": {
- "type": "object",
- "properties": {
- "min": {
+ },
+ "server_port": {
"type": "integer",
"format": "int64"
},
- "max": {
- "type": "integer",
+ "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"
},
- "targets": {
+ "roles": {
"type": "array",
"items": {
- "$ref": "#/definitions/DeploymentScalingTarget"
+ "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfoRole"
}
}
}
},
- "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": {
+ "DeploymentNeonPostgresDatabaseInfoRole": {
"type": "object",
"properties": {
- "volume": {
- "$ref": "#/definitions/PersistentVolume"
+ "name": {
+ "type": "string"
+ },
+ "secret_id": {
+ "type": "string"
}
}
},
- "CreatePersistentVolumeRequest": {
+ "DeploymentProxyPortMetadata": {
"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"
+ "host": {
+ "type": "string"
},
- "read_only": {
- "type": "boolean",
- "title": "whether the volume must be set as read only"
+ "public_port": {
+ "type": "integer",
+ "format": "int64"
},
- "max_size": {
+ "port": {
"type": "integer",
- "format": "int64",
- "title": "the size of the volume (in Gigabyte / GB)"
+ "format": "int64"
},
- "snapshot_id": {
- "type": "string",
- "title": "(optional) the id of the snapshot whence the volume comes from"
+ "protocol": {
+ "$ref": "#/definitions/ProxyPortProtocol"
}
}
},
- "DeletePersistentVolumeReply": {
+ "GetDeploymentReply": {
"type": "object",
"properties": {
- "volume": {
- "$ref": "#/definitions/PersistentVolume"
+ "deployment": {
+ "$ref": "#/definitions/Deployment"
}
}
},
- "GetPersistentVolumeReply": {
+ "GetDeploymentScalingReply": {
"type": "object",
"properties": {
- "volume": {
- "$ref": "#/definitions/PersistentVolume"
+ "replicas": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GetDeploymentScalingReplyItem"
+ },
+ "title": "The replicas"
}
}
},
- "ListPersistentVolumeEventsReply": {
+ "GetDeploymentScalingReplyItem": {
"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"
+ "region": {
+ "type": "string",
+ "title": "The replica region"
},
- "offset": {
+ "replica_index": {
"type": "integer",
- "format": "int64",
- "title": "The offset in the request"
- },
- "order": {
- "type": "string",
- "title": "The order in the request"
+ "format": "int64"
},
- "has_next": {
- "type": "boolean",
- "title": "If there is more items after in the collection"
+ "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;"
}
}
},
- "ListPersistentVolumesReply": {
+ "GitDeploymentMetadata": {
"type": "object",
"properties": {
- "volumes": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PersistentVolume"
- },
- "title": "The collection of persistent volumes"
+ "last_provisioned_deployment_id": {
+ "type": "string"
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
+ "git_env": {
+ "$ref": "#/definitions/GitEnvDeploymentMetadata"
+ }
+ }
+ },
+ "GitEnvDeploymentMetadata": {
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string"
},
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "commit_author": {
+ "type": "string"
},
- "has_next": {
- "type": "boolean",
- "title": "If there is more items after in the collection"
+ "commit_message": {
+ "type": "string"
}
}
},
- "PersistentVolume": {
+ "Instance": {
"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"
+ "type": "string"
},
"created_at": {
"type": "string",
- "format": "date-time",
- "title": "creation timestamp"
+ "format": "date-time"
},
"updated_at": {
"type": "string",
- "format": "date-time",
- "title": "last change timestamp"
- },
- "deleted_at": {
- "type": "string",
- "format": "date-time",
- "title": "deletion timestamp"
+ "format": "date-time"
},
"organization_id": {
- "type": "string",
- "title": "the organization to which the volume belongs to"
+ "type": "string"
+ },
+ "app_id": {
+ "type": "string"
},
"service_id": {
- "type": "string",
- "title": "the service_id to which the volume is eventually bound to"
+ "type": "string"
},
- "region": {
- "type": "string",
- "title": "the region where the volume exists"
+ "regional_deployment_id": {
+ "type": "string"
},
- "read_only": {
- "type": "boolean",
- "title": "whether to mount the volume in read-only mode"
+ "allocation_id": {
+ "type": "string"
},
- "max_size": {
- "type": "integer",
- "format": "int64",
- "title": "the maximum size of the volume (in Gigabyte / GB)"
+ "type": {
+ "type": "string"
},
- "cur_size": {
+ "replica_index": {
"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"
+ "format": "int64"
},
- "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": {
+ "region": {
"type": "string"
},
- "when": {
- "type": "string",
- "format": "date-time"
- },
- "organization_id": {
+ "datacenter": {
"type": "string"
},
- "persistent_volume_id": {
+ "hypervisor": {
"type": "string"
},
- "type": {
- "type": "string"
+ "status": {
+ "$ref": "#/definitions/Instance.Status"
},
- "message": {
- "type": "string"
+ "messages": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "metadata": {
- "type": "object"
+ "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."
}
}
},
- "PersistentVolumeStatus": {
+ "Instance.Status": {
"type": "string",
"enum": [
- "PERSISTENT_VOLUME_STATUS_INVALID",
- "PERSISTENT_VOLUME_STATUS_ATTACHED",
- "PERSISTENT_VOLUME_STATUS_DETACHED",
- "PERSISTENT_VOLUME_STATUS_DELETING",
- "PERSISTENT_VOLUME_STATUS_DELETED"
+ "ALLOCATING",
+ "STARTING",
+ "HEALTHY",
+ "UNHEALTHY",
+ "STOPPING",
+ "STOPPED",
+ "ERROR",
+ "SLEEPING"
],
- "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"
- }
- }
+ "default": "ALLOCATING"
},
- "AzureContainerRegistryConfiguration": {
+ "ListDeploymentEventsReply": {
"type": "object",
"properties": {
- "registry_name": {
- "type": "string"
+ "events": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentEvent"
+ },
+ "title": "The collection of events"
},
- "username": {
- "type": "string"
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The limit in the request"
},
- "password": {
- "type": "string"
+ "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"
}
}
},
- "CreateSecret": {
+ "ListDeploymentsReply": {
"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"
+ "deployments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentListItem"
+ },
+ "title": "The collection of deployments"
},
- "github_registry": {
- "$ref": "#/definitions/GitHubRegistryConfiguration"
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The limit in the request"
},
- "gitlab_registry": {
- "$ref": "#/definitions/GitLabRegistryConfiguration"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The offset in the request"
},
- "gcp_container_registry": {
- "$ref": "#/definitions/GCPContainerRegistryConfiguration"
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The total number of items"
},
- "azure_container_registry": {
- "$ref": "#/definitions/AzureContainerRegistryConfiguration"
+ "has_next": {
+ "type": "boolean",
+ "title": "If there is more items after in the collection"
}
}
},
- "CreateSecretReply": {
+ "NeonPostgresDatabaseDeploymentMetadata": {
"type": "object",
"properties": {
- "secret": {
- "$ref": "#/definitions/Secret"
+ "reset_role_passwords": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
}
},
- "DatabaseRolePassword": {
+ "TriggerDeploymentMetadata": {
"type": "object",
"properties": {
- "username": {
- "type": "string"
+ "type": {
+ "$ref": "#/definitions/TriggerDeploymentMetadata.TriggerType"
},
- "password": {
- "type": "string"
+ "actor": {
+ "$ref": "#/definitions/TriggerDeploymentMetadata.ActorType"
+ },
+ "git": {
+ "$ref": "#/definitions/TriggerGitDeploymentMetadata"
}
}
},
- "DeleteSecretReply": {
- "type": "object"
+ "TriggerDeploymentMetadata.ActorType": {
+ "type": "string",
+ "enum": [
+ "UNKNOWN_ACTOR",
+ "USER",
+ "SYSTEM"
+ ],
+ "default": "UNKNOWN_ACTOR"
},
- "DigitalOceanRegistryConfiguration": {
+ "TriggerDeploymentMetadata.TriggerType": {
+ "type": "string",
+ "enum": [
+ "UNKNOWN_TYPE",
+ "GIT",
+ "RESUME",
+ "DATABASE_SYNC"
+ ],
+ "default": "UNKNOWN_TYPE"
+ },
+ "TriggerGitDeploymentMetadata": {
"type": "object",
"properties": {
- "username": {
+ "provider": {
+ "$ref": "#/definitions/TriggerGitDeploymentMetadata.Provider"
+ },
+ "repository": {
"type": "string"
},
- "password": {
+ "branch": {
"type": "string"
- }
- }
- },
- "DockerHubRegistryConfiguration": {
- "type": "object",
- "properties": {
- "username": {
+ },
+ "sha": {
"type": "string"
},
- "password": {
+ "message": {
+ "type": "string"
+ },
+ "sender_username": {
+ "type": "string"
+ },
+ "sender_avatar_url": {
+ "type": "string"
+ },
+ "sender_profile_url": {
"type": "string"
}
}
},
- "GCPContainerRegistryConfiguration": {
+ "TriggerGitDeploymentMetadata.Provider": {
+ "type": "string",
+ "enum": [
+ "UNKNOWN",
+ "GITHUB"
+ ],
+ "default": "UNKNOWN"
+ },
+ "CreateStageAttemptReply": {
+ "type": "object"
+ },
+ "DeclareStageProgressReply": {
+ "type": "object"
+ },
+ "DeclareStepProgressReply": {
+ "type": "object"
+ },
+ "CreatePersistentVolumeReply": {
"type": "object",
"properties": {
- "keyfile_content": {
- "type": "string"
- },
- "url": {
- "type": "string"
+ "volume": {
+ "$ref": "#/definitions/PersistentVolume"
}
}
},
- "GetSecretReply": {
+ "CreatePersistentVolumeRequest": {
"type": "object",
"properties": {
- "secret": {
- "$ref": "#/definitions/Secret"
+ "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"
}
}
},
- "GitHubRegistryConfiguration": {
+ "DeletePersistentVolumeReply": {
"type": "object",
"properties": {
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
+ "volume": {
+ "$ref": "#/definitions/PersistentVolume"
}
}
},
- "GitLabRegistryConfiguration": {
+ "GetPersistentVolumeReply": {
"type": "object",
"properties": {
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
+ "volume": {
+ "$ref": "#/definitions/PersistentVolume"
}
}
},
- "ListSecretsReply": {
+ "ListPersistentVolumeEventsReply": {
"type": "object",
"properties": {
- "secrets": {
+ "events": {
"type": "array",
"items": {
- "$ref": "#/definitions/Secret"
- }
+ "$ref": "#/definitions/PersistentVolumeEvent"
+ },
+ "title": "The collection of events"
},
"limit": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "title": "The limit in the request"
},
"offset": {
"type": "integer",
- "format": "int64"
- },
- "count": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "PrivateRegistryConfiguration": {
- "type": "object",
- "properties": {
- "username": {
- "type": "string"
+ "format": "int64",
+ "title": "The offset in the request"
},
- "password": {
- "type": "string"
+ "order": {
+ "type": "string",
+ "title": "The order in the request"
},
- "url": {
- "type": "string"
+ "has_next": {
+ "type": "boolean",
+ "title": "If there is more items after in the collection"
}
}
},
- "RevealSecretReply": {
+ "ListPersistentVolumesReply": {
"type": "object",
"properties": {
- "value": {}
+ "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"
+ }
}
},
- "Secret": {
+ "PersistentVolume": {
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "title": "the identifier for the volume object"
},
"name": {
- "type": "string"
+ "type": "string",
+ "title": "the volume name"
},
- "organization_id": {
- "type": "string"
+ "snapshot_id": {
+ "type": "string",
+ "title": "(optional) the id of the snapshot whence the volume comes from"
},
- "type": {
- "$ref": "#/definitions/SecretType"
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "title": "creation timestamp"
},
"updated_at": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "title": "last change timestamp"
},
- "created_at": {
+ "deleted_at": {
"type": "string",
- "format": "date-time"
- },
- "value": {
- "type": "string"
+ "format": "date-time",
+ "title": "deletion timestamp"
},
- "docker_hub_registry": {
- "$ref": "#/definitions/DockerHubRegistryConfiguration"
+ "organization_id": {
+ "type": "string",
+ "title": "the organization to which the volume belongs to"
},
- "private_registry": {
- "$ref": "#/definitions/PrivateRegistryConfiguration"
+ "service_id": {
+ "type": "string",
+ "title": "the service_id to which the volume is eventually bound to"
},
- "digital_ocean_registry": {
- "$ref": "#/definitions/DigitalOceanRegistryConfiguration"
+ "region": {
+ "type": "string",
+ "title": "the region where the volume exists"
},
- "github_registry": {
- "$ref": "#/definitions/GitHubRegistryConfiguration"
+ "read_only": {
+ "type": "boolean",
+ "title": "whether to mount the volume in read-only mode"
},
- "gitlab_registry": {
- "$ref": "#/definitions/GitLabRegistryConfiguration"
+ "max_size": {
+ "type": "integer",
+ "format": "int64",
+ "title": "the maximum size of the volume (in Gigabyte / GB)"
},
- "gcp_container_registry": {
- "$ref": "#/definitions/GCPContainerRegistryConfiguration"
+ "cur_size": {
+ "type": "integer",
+ "format": "int64",
+ "title": "the used amount of space as measured the last time (in Gigabyte / GB)"
},
- "azure_container_registry": {
- "$ref": "#/definitions/AzureContainerRegistryConfiguration"
+ "status": {
+ "$ref": "#/definitions/PersistentVolumeStatus",
+ "title": "the status of the volume"
},
- "database_role_password": {
- "$ref": "#/definitions/DatabaseRolePassword"
+ "backing_store": {
+ "$ref": "#/definitions/PersistentVolumeBackingStore",
+ "title": "the backing store type"
}
- }
+ },
+ "title": "The object that represent a volume to handle persistency for deployments"
},
- "SecretType": {
+ "PersistentVolumeBackingStore": {
"type": "string",
"enum": [
- "SIMPLE",
- "REGISTRY",
- "MANAGED"
+ "PERSISTENT_VOLUME_BACKING_STORE_INVALID",
+ "PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK"
],
- "default": "SIMPLE"
- },
- "UpdateSecretReply": {
- "type": "object",
- "properties": {
- "secret": {
- "$ref": "#/definitions/Secret"
- }
- }
- },
- "GetInstanceReply": {
- "type": "object",
- "properties": {
- "instance": {
- "$ref": "#/definitions/Instance"
- }
- }
+ "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"
},
- "Instance": {
+ "PersistentVolumeEvent": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
+ "when": {
"type": "string",
"format": "date-time"
},
"organization_id": {
"type": "string"
},
- "app_id": {
+ "persistent_volume_id": {
"type": "string"
},
- "service_id": {
+ "type": {
"type": "string"
},
- "regional_deployment_id": {
+ "message": {
"type": "string"
},
- "allocation_id": {
+ "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": {
- "type": "string"
- },
- "replica_index": {
- "type": "integer",
- "format": "int64"
- },
- "region": {
- "type": "string"
- },
- "datacenter": {
- "type": "string"
+ "$ref": "#/definitions/Domain.Type"
},
- "hypervisor": {
- "type": "string"
+ "app_id": {
+ "type": "string",
+ "title": "to auto-attach to an app. Optional"
},
- "status": {
- "$ref": "#/definitions/Instance.Status"
+ "cloudflare": {
+ "$ref": "#/definitions/Domain.LoadBalancerCloudflare"
},
- "messages": {
+ "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": {
- "type": "string"
+ "$ref": "#/definitions/Domain"
}
},
- "started_at": {
- "type": "string",
- "format": "date-time"
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The limit in the request"
},
- "succeeded_at": {
- "type": "string",
- "format": "date-time"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The offset in the request"
},
- "terminated_at": {
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The total number of items"
+ }
+ }
+ },
+ "RefreshDomainStatusReply": {
+ "type": "object"
+ },
+ "UpdateDomain": {
+ "type": "object",
+ "properties": {
+ "app_id": {
"type": "string",
- "format": "date-time"
+ "description": "To attach or detach from an app for custom domain."
},
- "xyz_deployment_id": {
+ "subdomain": {
"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."
+ "description": "To change subdomain for auto-assigned domain."
}
}
},
- "Instance.Status": {
- "type": "string",
- "enum": [
- "ALLOCATING",
- "STARTING",
- "HEALTHY",
- "UNHEALTHY",
- "STOPPING",
- "STOPPED",
- "ERROR",
- "SLEEPING"
- ],
- "default": "ALLOCATING"
+ "UpdateDomainReply": {
+ "type": "object",
+ "properties": {
+ "domain": {
+ "$ref": "#/definitions/Domain"
+ }
+ }
+ },
+ "GetInstanceReply": {
+ "type": "object",
+ "properties": {
+ "instance": {
+ "$ref": "#/definitions/Instance"
+ }
+ }
},
"InstanceEvent": {
"type": "object",
@@ -14981,280 +15342,57 @@
}
}
},
- "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": {
+ "Archive": {
"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"
+ "description": "The archive id, that can be referenced when creating or updating a service."
},
"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"
+ "description": "Organization owning the archive."
},
- "git": {
- "$ref": "#/definitions/GitSource"
+ "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`."
},
- "database": {
- "$ref": "#/definitions/DatabaseSource"
+ "size": {
+ "type": "string",
+ "format": "uint64",
+ "description": "The provisioned space for the archive."
},
- "archive": {
- "$ref": "#/definitions/ArchiveSource"
+ "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."
}
- },
- "required": [
- "type",
- "regions",
- "scalings",
- "instance_types"
- ]
+ }
},
- "DeploymentDefinition.Type": {
- "type": "string",
- "enum": [
- "INVALID",
- "WEB",
- "WORKER",
- "DATABASE"
- ],
- "default": "INVALID"
+ "CreateArchive": {
+ "type": "object",
+ "properties": {
+ "size": {
+ "type": "string",
+ "format": "uint64",
+ "description": "How much space to provision for the archive, in bytes."
+ }
+ }
},
- "DeploymentEnv": {
+ "CreateArchiveReply": {
"type": "object",
"properties": {
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "key": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "secret": {
- "type": "string"
+ "archive": {
+ "$ref": "#/definitions/Archive"
}
}
},
- "DeploymentEvent": {
+ "AppEvent": {
"type": "object",
"properties": {
"id": {
@@ -15267,7 +15405,7 @@
"organization_id": {
"type": "string"
},
- "deployment_id": {
+ "app_id": {
"type": "string"
},
"type": {
@@ -15281,365 +15419,229 @@
}
}
},
- "DeploymentInstanceType": {
- "type": "object",
- "properties": {
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "type": {
- "type": "string"
- }
- }
- },
- "DeploymentListItem": {
+ "AppListItem": {
"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"
+ "name": {
+ "type": "string"
},
- "started_at": {
- "type": "string",
- "format": "date-time"
+ "organization_id": {
+ "type": "string"
},
- "succeeded_at": {
+ "updated_at": {
"type": "string",
"format": "date-time"
},
- "terminated_at": {
+ "created_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"
+ "domains": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Domain"
+ }
},
"status": {
- "$ref": "#/definitions/Deployment.Status"
- },
- "metadata": {
- "$ref": "#/definitions/DeploymentMetadata"
- },
- "definition": {
- "$ref": "#/definitions/DeploymentDefinition"
+ "$ref": "#/definitions/App.Status"
},
"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": {
+ "CreateAppReply": {
"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"
- }
+ "app": {
+ "$ref": "#/definitions/App",
+ "title": "The entity created"
}
}
},
- "DeploymentNeonPostgresDatabaseInfo": {
+ "DeleteAppReply": {
+ "type": "object"
+ },
+ "GetAppReply": {
"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"
+ "app": {
+ "$ref": "#/definitions/App",
+ "title": "The App retrieved"
+ }
+ }
+ },
+ "ListAppEventsReply": {
+ "type": "object",
+ "properties": {
+ "events": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AppEvent"
+ },
+ "title": "The collection of events"
},
- "server_port": {
+ "limit": {
"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"
+ "format": "int64",
+ "title": "The limit in the request"
},
- "default_branch_state": {
- "type": "string"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The offset in the request"
},
- "default_branch_logical_size": {
+ "order": {
"type": "string",
- "format": "int64"
+ "title": "The order in the request"
},
- "roles": {
+ "has_next": {
+ "type": "boolean",
+ "title": "If there is more items after in the collection"
+ }
+ }
+ },
+ "ListAppsReply": {
+ "type": "object",
+ "properties": {
+ "apps": {
"type": "array",
"items": {
- "$ref": "#/definitions/DeploymentNeonPostgresDatabaseInfoRole"
+ "$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"
}
}
},
- "DeploymentNeonPostgresDatabaseInfoRole": {
+ "PauseAppReply": {
+ "type": "object"
+ },
+ "ResumeAppReply": {
+ "type": "object"
+ },
+ "UpdateApp": {
"type": "object",
"properties": {
"name": {
"type": "string"
- },
- "secret_id": {
- "type": "string"
}
}
},
- "DeploymentPort": {
+ "UpdateAppReply": {
"type": "object",
"properties": {
- "port": {
- "type": "integer",
- "format": "int64"
- },
- "protocol": {
- "type": "string",
- "title": "One of http, http2, tcp"
+ "app": {
+ "$ref": "#/definitions/App",
+ "title": "The entity updated"
}
}
},
- "DeploymentProxyPort": {
+ "ReviewOrganizationCapacityReply": {
"type": "object",
"properties": {
- "port": {
- "type": "integer",
- "format": "int64"
- },
- "protocol": {
- "$ref": "#/definitions/ProxyPortProtocol"
+ "has_capacity": {
+ "type": "boolean"
}
}
},
- "DeploymentProxyPortMetadata": {
+ "ReviewOrganizationCapacityRequest": {
"type": "object",
"properties": {
- "host": {
+ "plan": {
"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"
+ "trialing": {
+ "type": "boolean"
}
}
},
- "DeploymentScaling": {
+ "AutocompleteReply": {
"type": "object",
"properties": {
- "scopes": {
+ "secrets": {
"type": "array",
"items": {
"type": "string"
- }
- },
- "min": {
- "type": "integer",
- "format": "int64"
- },
- "max": {
- "type": "integer",
- "format": "int64"
+ },
+ "title": "List of available secrets"
},
- "targets": {
+ "user_env": {
"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"
+ "type": "string"
+ },
+ "title": "List of available user's environment variables"
},
- "scopes": {
+ "system_env": {
"type": "array",
"items": {
"type": "string"
},
- "title": "scope of the associated"
- }
- }
- },
- "GetDeploymentReply": {
- "type": "object",
- "properties": {
- "deployment": {
- "$ref": "#/definitions/Deployment"
+ "title": "List of available system's environment variables"
}
}
},
- "GetDeploymentScalingReply": {
+ "AutocompleteRequest": {
"type": "object",
"properties": {
- "replicas": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GetDeploymentScalingReplyItem"
- },
- "title": "The replicas"
+ "definition": {
+ "$ref": "#/definitions/DeploymentDefinition",
+ "title": "Deployment definition"
}
}
},
- "GetDeploymentScalingReplyItem": {
+ "CreateServiceReply": {
"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;"
+ "service": {
+ "$ref": "#/definitions/Service",
+ "title": "The entity created"
}
}
},
- "GitDeploymentMetadata": {
- "type": "object",
- "properties": {
- "last_provisioned_deployment_id": {
- "type": "string"
- },
- "git_env": {
- "$ref": "#/definitions/GitEnvDeploymentMetadata"
- }
- }
+ "DeleteServiceReply": {
+ "type": "object"
},
- "GitEnvDeploymentMetadata": {
+ "GetServiceReply": {
"type": "object",
"properties": {
- "sha": {
- "type": "string"
- },
- "commit_author": {
- "type": "string"
- },
- "commit_message": {
- "type": "string"
+ "service": {
+ "$ref": "#/definitions/Service",
+ "title": "The Service retrieved"
}
}
},
- "ListDeploymentEventsReply": {
+ "ListServiceEventsReply": {
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
- "$ref": "#/definitions/DeploymentEvent"
+ "$ref": "#/definitions/ServiceEvent"
},
"title": "The collection of events"
},
@@ -15663,15 +15665,14 @@
}
}
},
- "ListDeploymentsReply": {
+ "ListServicesReply": {
"type": "object",
"properties": {
- "deployments": {
+ "services": {
"type": "array",
"items": {
- "$ref": "#/definitions/DeploymentListItem"
- },
- "title": "The collection of deployments"
+ "$ref": "#/definitions/ServiceListItem"
+ }
},
"limit": {
"type": "integer",
@@ -15694,604 +15695,437 @@
}
}
},
- "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"
- }
- }
+ "PauseServiceReply": {
+ "type": "object"
},
- "NeonPostgresDatabaseDeploymentMetadata": {
+ "RedeployReply": {
"type": "object",
"properties": {
- "reset_role_passwords": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "deployment": {
+ "$ref": "#/definitions/Deployment",
+ "title": "The entity updated"
}
- }
- },
- "ProxyPortProtocol": {
- "type": "string",
- "enum": [
- "tcp"
- ],
- "default": "tcp"
+ }
},
- "TriggerDeploymentMetadata": {
+ "RedeployRequest.Info": {
"type": "object",
"properties": {
- "type": {
- "$ref": "#/definitions/TriggerDeploymentMetadata.TriggerType"
+ "deployment_group": {
+ "type": "string"
},
- "actor": {
- "$ref": "#/definitions/TriggerDeploymentMetadata.ActorType"
+ "sha": {
+ "type": "string"
},
- "git": {
- "$ref": "#/definitions/TriggerGitDeploymentMetadata"
+ "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."
}
}
},
- "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"
+ "ResumeServiceReply": {
+ "type": "object"
},
- "TriggerGitDeploymentMetadata": {
+ "ServiceEvent": {
"type": "object",
"properties": {
- "provider": {
- "$ref": "#/definitions/TriggerGitDeploymentMetadata.Provider"
+ "id": {
+ "type": "string"
},
- "repository": {
+ "when": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "organization_id": {
"type": "string"
},
- "branch": {
+ "service_id": {
"type": "string"
},
- "sha": {
+ "type": {
"type": "string"
},
"message": {
"type": "string"
},
- "sender_username": {
+ "metadata": {
+ "type": "object"
+ }
+ }
+ },
+ "ServiceListItem": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "sender_avatar_url": {
+ "name": {
"type": "string"
},
- "sender_profile_url": {
+ "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"
}
}
},
- "TriggerGitDeploymentMetadata.Provider": {
- "type": "string",
- "enum": [
- "UNKNOWN",
- "GITHUB"
- ],
- "default": "UNKNOWN"
- },
- "ReviewOrganizationCapacityReply": {
+ "UpdateService": {
"type": "object",
"properties": {
- "has_capacity": {
- "type": "boolean"
+ "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"
}
}
},
- "ReviewOrganizationCapacityRequest": {
+ "UpdateServiceReply": {
"type": "object",
"properties": {
- "plan": {
- "type": "string"
- },
- "trialing": {
- "type": "boolean"
+ "service": {
+ "$ref": "#/definitions/Service",
+ "title": "The entity updated"
}
}
},
- "CreateStageAttemptReply": {
- "type": "object"
- },
- "DeclareStageProgressReply": {
- "type": "object"
- },
- "DeclareStepProgressReply": {
- "type": "object"
- },
- "App": {
+ "AzureContainerRegistryConfiguration": {
"type": "object",
"properties": {
- "id": {
+ "registry_name": {
"type": "string"
},
- "name": {
+ "username": {
"type": "string"
},
- "organization_id": {
+ "password": {
+ "type": "string"
+ }
+ }
+ },
+ "CreateSecret": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ "type": {
+ "$ref": "#/definitions/SecretType"
},
- "started_at": {
- "type": "string",
- "format": "date-time"
+ "value": {
+ "type": "string"
},
- "succeeded_at": {
- "type": "string",
- "format": "date-time"
+ "docker_hub_registry": {
+ "$ref": "#/definitions/DockerHubRegistryConfiguration"
},
- "paused_at": {
- "type": "string",
- "format": "date-time"
+ "private_registry": {
+ "$ref": "#/definitions/PrivateRegistryConfiguration"
},
- "resumed_at": {
- "type": "string",
- "format": "date-time"
+ "digital_ocean_registry": {
+ "$ref": "#/definitions/DigitalOceanRegistryConfiguration"
},
- "terminated_at": {
- "type": "string",
- "format": "date-time"
+ "github_registry": {
+ "$ref": "#/definitions/GitHubRegistryConfiguration"
},
- "status": {
- "$ref": "#/definitions/App.Status"
+ "gitlab_registry": {
+ "$ref": "#/definitions/GitLabRegistryConfiguration"
},
- "messages": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "gcp_container_registry": {
+ "$ref": "#/definitions/GCPContainerRegistryConfiguration"
},
- "version": {
- "type": "string",
- "format": "uint64"
+ "azure_container_registry": {
+ "$ref": "#/definitions/AzureContainerRegistryConfiguration"
+ }
+ }
+ },
+ "CreateSecretReply": {
+ "type": "object",
+ "properties": {
+ "secret": {
+ "$ref": "#/definitions/Secret"
+ }
+ }
+ },
+ "DatabaseRolePassword": {
+ "type": "object",
+ "properties": {
+ "username": {
+ "type": "string"
},
- "domains": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Domain"
- }
+ "password": {
+ "type": "string"
}
}
},
- "App.Status": {
- "type": "string",
- "enum": [
- "STARTING",
- "HEALTHY",
- "DEGRADED",
- "UNHEALTHY",
- "DELETING",
- "DELETED",
- "PAUSING",
- "PAUSED",
- "RESUMING"
- ],
- "default": "STARTING"
+ "DeleteSecretReply": {
+ "type": "object"
},
- "AutoRelease": {
+ "DigitalOceanRegistryConfiguration": {
"type": "object",
"properties": {
- "groups": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/AutoRelease.Group"
- }
+ "username": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
}
}
},
- "AutoRelease.Group": {
+ "DockerHubRegistryConfiguration": {
"type": "object",
"properties": {
- "name": {
+ "username": {
"type": "string"
},
- "repository": {
+ "password": {
"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": {
+ "GCPContainerRegistryConfiguration": {
"type": "object",
"properties": {
- "app": {
- "$ref": "#/definitions/App"
+ "keyfile_content": {
+ "type": "string"
},
- "services": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service"
- }
+ "url": {
+ "type": "string"
}
}
},
- "CreateApp": {
+ "GetSecretReply": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "secret": {
+ "$ref": "#/definitions/Secret"
}
}
},
- "CreateCompose": {
+ "GitHubRegistryConfiguration": {
"type": "object",
"properties": {
- "app": {
- "$ref": "#/definitions/CreateApp"
+ "username": {
+ "type": "string"
},
- "services": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CreateService"
- }
+ "password": {
+ "type": "string"
}
}
},
- "CreateService": {
+ "GitLabRegistryConfiguration": {
"type": "object",
"properties": {
- "app_id": {
+ "username": {
"type": "string"
},
- "definition": {
- "$ref": "#/definitions/DeploymentDefinition"
+ "password": {
+ "type": "string"
}
}
},
- "DesiredDeployment": {
+ "ListSecretsReply": {
"type": "object",
"properties": {
- "groups": {
+ "secrets": {
"type": "array",
"items": {
- "$ref": "#/definitions/DesiredDeployment.Group"
+ "$ref": "#/definitions/Secret"
}
+ },
+ "limit": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "offset": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "count": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "DesiredDeployment.Group": {
+ "PrivateRegistryConfiguration": {
"type": "object",
"properties": {
- "name": {
+ "username": {
"type": "string"
},
- "deployment_ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "password": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
}
}
},
- "Service": {
+ "RevealSecretReply": {
+ "type": "object",
+ "properties": {
+ "value": {}
+ }
+ },
+ "Secret": {
"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"
- }
+ "type": {
+ "$ref": "#/definitions/SecretType"
},
- "version": {
+ "updated_at": {
"type": "string",
- "format": "uint64"
+ "format": "date-time"
},
- "active_deployment_id": {
- "type": "string"
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
},
- "latest_deployment_id": {
+ "value": {
"type": "string"
},
- "last_provisioned_deployment_id": {
- "type": "string"
+ "docker_hub_registry": {
+ "$ref": "#/definitions/DockerHubRegistryConfiguration"
},
- "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"
+ "private_registry": {
+ "$ref": "#/definitions/PrivateRegistryConfiguration"
},
- "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."
+ "digital_ocean_registry": {
+ "$ref": "#/definitions/DigitalOceanRegistryConfiguration"
},
- "organization_id": {
- "type": "string",
- "description": "Organization owning the archive."
+ "github_registry": {
+ "$ref": "#/definitions/GitHubRegistryConfiguration"
},
- "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`."
+ "gitlab_registry": {
+ "$ref": "#/definitions/GitLabRegistryConfiguration"
},
- "size": {
- "type": "string",
- "format": "uint64",
- "description": "The provisioned space for the archive."
+ "gcp_container_registry": {
+ "$ref": "#/definitions/GCPContainerRegistryConfiguration"
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "Date of creation of the archive."
+ "azure_container_registry": {
+ "$ref": "#/definitions/AzureContainerRegistryConfiguration"
},
- "deleted_at": {
- "type": "string",
- "format": "date-time",
- "description": "This field is automatically set by Koyeb when the\narchive is garbage collected."
+ "database_role_password": {
+ "$ref": "#/definitions/DatabaseRolePassword"
}
}
},
- "CreateArchive": {
- "type": "object",
- "properties": {
- "size": {
- "type": "string",
- "format": "uint64",
- "description": "How much space to provision for the archive, in bytes."
- }
- }
+ "SecretType": {
+ "type": "string",
+ "enum": [
+ "SIMPLE",
+ "REGISTRY",
+ "MANAGED"
+ ],
+ "default": "SIMPLE"
},
- "CreateArchiveReply": {
+ "UpdateSecretReply": {
"type": "object",
"properties": {
- "archive": {
- "$ref": "#/definitions/Archive"
+ "secret": {
+ "$ref": "#/definitions/Secret"
}
}
},
- "AppEvent": {
+ "CreateSnapshotReply": {
"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"
+ "snapshot": {
+ "$ref": "#/definitions/Snapshot"
}
}
},
- "AppListItem": {
+ "CreateSnapshotRequest": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "organization_id": {
- "type": "string"
- },
- "updated_at": {
+ "parent_volume_id": {
"type": "string",
- "format": "date-time"
+ "title": "The id of the volume to snapshot"
},
- "created_at": {
+ "name": {
"type": "string",
- "format": "date-time"
- },
- "domains": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Domain"
- }
- },
- "status": {
- "$ref": "#/definitions/App.Status"
- },
- "messages": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "title": "The name of the snapshot"
}
}
},
- "CreateAppReply": {
+ "DeleteSnapshotReply": {
"type": "object",
"properties": {
- "app": {
- "$ref": "#/definitions/App",
- "title": "The entity created"
+ "snapshot": {
+ "$ref": "#/definitions/Snapshot"
}
}
},
- "DeleteAppReply": {
- "type": "object"
- },
- "GetAppReply": {
+ "GetSnapshotReply": {
"type": "object",
"properties": {
- "app": {
- "$ref": "#/definitions/App",
- "title": "The App retrieved"
+ "snapshot": {
+ "$ref": "#/definitions/Snapshot"
}
}
},
- "ListAppEventsReply": {
+ "ListSnapshotsReply": {
"type": "object",
"properties": {
- "events": {
+ "snapshots": {
"type": "array",
"items": {
- "$ref": "#/definitions/AppEvent"
+ "$ref": "#/definitions/Snapshot"
},
- "title": "The collection of events"
+ "title": "The collection of snapshots"
},
"limit": {
"type": "integer",
@@ -16303,371 +16137,401 @@
"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": {
+ "Snapshot": {
"type": "object",
"properties": {
- "apps": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/AppListItem"
- }
+ "id": {
+ "type": "string",
+ "title": "the identifier of the snapshot object"
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
+ "name": {
+ "type": "string",
+ "title": "the snapshot name"
},
- "offset": {
+ "size": {
"type": "integer",
"format": "int64",
- "title": "The offset in the request"
+ "title": "the original volume size"
},
- "count": {
- "type": "integer",
- "format": "int64",
- "title": "The total number of items"
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "title": "creation timestamp"
},
- "has_next": {
- "type": "boolean",
- "title": "If there is more items after in the collection"
+ "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."
},
- "PauseAppReply": {
- "type": "object"
+ "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"
},
- "ResumeAppReply": {
- "type": "object"
+ "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"
},
- "UpdateApp": {
+ "UpdateSnapshotReply": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "snapshot": {
+ "$ref": "#/definitions/Snapshot"
}
}
},
- "UpdateAppReply": {
+ "ksearch.App": {
"type": "object",
"properties": {
- "app": {
- "$ref": "#/definitions/App",
- "title": "The entity updated"
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
}
}
},
- "AutocompleteReply": {
+ "ksearch.GlobalDeployment": {
"type": "object",
"properties": {
- "secrets": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "List of available secrets"
+ "id": {
+ "type": "string"
},
- "user_env": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "List of available user's environment variables"
+ "organization_id": {
+ "type": "string"
},
- "system_env": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "List of available system's environment variables"
+ "app_id": {
+ "type": "string"
+ },
+ "service_id": {
+ "type": "string"
}
- },
- "readOnly": true
+ }
},
- "AutocompleteRequest": {
+ "ksearch.Instance": {
"type": "object",
"properties": {
- "definition": {
- "$ref": "#/definitions/DeploymentDefinition",
- "title": "Deployment definition"
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "app_id": {
+ "type": "string"
+ },
+ "service_id": {
+ "type": "string"
+ },
+ "allocation_id": {
+ "type": "string"
}
}
},
- "CreateServiceReply": {
+ "ksearch.Organization": {
"type": "object",
"properties": {
- "service": {
- "$ref": "#/definitions/Service",
- "title": "The entity created"
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
}
}
},
- "DeleteServiceReply": {
- "type": "object"
- },
- "GetServiceReply": {
+ "ksearch.RegionalDeployment": {
"type": "object",
"properties": {
- "service": {
- "$ref": "#/definitions/Service",
- "title": "The Service retrieved"
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "app_id": {
+ "type": "string"
+ },
+ "service_id": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
}
}
},
- "ListServiceEventsReply": {
+ "ksearch.SearchReply": {
"type": "object",
"properties": {
- "events": {
+ "organizations": {
"type": "array",
"items": {
- "$ref": "#/definitions/ServiceEvent"
- },
- "title": "The collection of events"
- },
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
+ "$ref": "#/definitions/ksearch.Organization"
+ }
},
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "users": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ksearch.User"
+ }
},
- "order": {
- "type": "string",
- "title": "The order in the request"
+ "apps": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ksearch.App"
+ }
},
- "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"
+ "$ref": "#/definitions/ksearch.Service"
}
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
- },
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "global_deployments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ksearch.GlobalDeployment"
+ }
},
- "count": {
- "type": "integer",
- "format": "int64",
- "title": "The total number of items"
+ "regional_deployments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ksearch.RegionalDeployment"
+ }
},
- "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"
+ "instances": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ksearch.Instance"
+ }
}
}
},
- "RedeployRequest.Info": {
+ "ksearch.Service": {
"type": "object",
"properties": {
- "deployment_group": {
+ "id": {
"type": "string"
},
- "sha": {
+ "organization_id": {
"type": "string"
},
- "use_cache": {
- "type": "boolean"
+ "app_id": {
+ "type": "string"
},
- "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."
+ "name": {
+ "type": "string"
}
}
},
- "ResumeServiceReply": {
- "type": "object"
- },
- "ServiceEvent": {
+ "ksearch.User": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "when": {
- "type": "string",
- "format": "date-time"
- },
- "organization_id": {
- "type": "string"
- },
- "service_id": {
+ "email": {
"type": "string"
},
- "type": {
+ "name": {
"type": "string"
},
- "message": {
+ "github_user": {
"type": "string"
- },
- "metadata": {
- "type": "object"
}
}
},
- "ServiceListItem": {
+ "Activity": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "name": {
- "type": "string"
- },
- "type": {
- "$ref": "#/definitions/Service.Type"
+ "actor": {
+ "$ref": "#/definitions/Object"
},
- "organization_id": {
- "type": "string"
+ "object": {
+ "$ref": "#/definitions/Object"
},
- "app_id": {
+ "verb": {
"type": "string"
},
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ "metadata": {
+ "type": "object"
},
"created_at": {
"type": "string",
"format": "date-time"
- },
- "status": {
- "$ref": "#/definitions/Service.Status"
- },
- "messages": {
+ }
+ }
+ },
+ "ActivityList": {
+ "type": "object",
+ "properties": {
+ "activities": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/Activity"
}
},
- "version": {
- "type": "string",
- "format": "uint64",
- "title": "A version updated whenever this state changes (useful for caching)"
- },
- "state": {
- "$ref": "#/definitions/ServiceState"
+ "limit": {
+ "type": "integer",
+ "format": "int64"
},
- "active_deployment_id": {
- "type": "string"
+ "offset": {
+ "type": "integer",
+ "format": "int64"
},
- "latest_deployment_id": {
- "type": "string"
+ "has_next": {
+ "type": "boolean"
}
}
},
- "UpdateService": {
+ "Notification": {
"type": "object",
"properties": {
- "definition": {
- "$ref": "#/definitions/DeploymentDefinition"
+ "id": {
+ "type": "string"
},
- "metadata": {
- "$ref": "#/definitions/DeploymentMetadata"
+ "activity": {
+ "$ref": "#/definitions/Activity"
},
- "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."
+ "is_read": {
+ "type": "boolean"
},
- "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"
+ "is_seen": {
+ "type": "boolean"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
}
}
},
- "CreateSnapshotReply": {
+ "NotificationList": {
"type": "object",
"properties": {
- "snapshot": {
- "$ref": "#/definitions/Snapshot"
+ "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"
}
}
},
- "CreateSnapshotRequest": {
+ "Object": {
"type": "object",
"properties": {
- "parent_volume_id": {
- "type": "string",
- "title": "The id of the volume to snapshot"
+ "id": {
+ "type": "string"
},
"name": {
- "type": "string",
- "title": "The name of the snapshot"
- }
- }
- },
- "DeleteSnapshotReply": {
- "type": "object",
- "properties": {
- "snapshot": {
- "$ref": "#/definitions/Snapshot"
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "object"
+ },
+ "deleted": {
+ "type": "boolean"
}
}
},
- "GetSnapshotReply": {
+ "GetRegionReply": {
"type": "object",
"properties": {
- "snapshot": {
- "$ref": "#/definitions/Snapshot"
+ "region": {
+ "$ref": "#/definitions/Region",
+ "title": "The Region retrieved"
}
}
},
- "ListSnapshotsReply": {
+ "ListRegionsReply": {
"type": "object",
"properties": {
- "snapshots": {
+ "regions": {
"type": "array",
"items": {
- "$ref": "#/definitions/Snapshot"
- },
- "title": "The collection of snapshots"
+ "$ref": "#/definitions/RegionListItem"
+ }
},
"limit": {
"type": "integer",
@@ -16679,704 +16543,626 @@
"format": "int64",
"title": "The offset in the request"
},
- "has_next": {
- "type": "boolean",
- "title": "If there is more items after in the collection"
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The total number of items"
}
}
},
- "Snapshot": {
+ "Region": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "title": "the identifier of the snapshot object"
+ "title": "The id of the region"
},
"name": {
"type": "string",
- "title": "the snapshot name"
- },
- "size": {
- "type": "integer",
- "format": "int64",
- "title": "the original volume size"
+ "title": "The name of the region"
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "title": "creation timestamp"
+ "coordinates": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The coordinates of the region (lat/long)"
},
- "updated_at": {
+ "status": {
"type": "string",
- "format": "date-time",
- "title": "last change timestamp"
+ "title": "The status of the region"
},
- "deleted_at": {
- "type": "string",
- "format": "date-time",
- "title": "deletion timestamp"
+ "instances": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "A list of instances available in this region"
},
- "organization_id": {
- "type": "string",
- "title": "the organization to which the snapshot belongs to"
+ "datacenters": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "A list of datacenters available in this region"
},
- "parent_volume_id": {
- "type": "string",
- "title": "the volume from which the snapshot has been created"
+ "volumes_enabled": {
+ "type": "boolean",
+ "title": "Are the volumes enabled for this instance type"
},
- "region": {
+ "scope": {
"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"
+ "description": "The scope of the region, continent, metropolitan area, etc."
}
}
},
- "AppsSummary": {
+ "RegionListItem": {
"type": "object",
"properties": {
- "total": {
+ "id": {
"type": "string",
- "format": "int64",
- "title": "Total number of apps"
+ "title": "The id of the region"
},
- "by_status": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
- },
- "title": "Number of apps grouped by status"
- }
- }
- },
- "DomainsSummary": {
- "type": "object",
- "properties": {
- "total": {
+ "name": {
"type": "string",
- "format": "int64",
- "title": "Total number of domains"
+ "title": "The name of the region"
},
- "by_status": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
+ "coordinates": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "title": "Number of domains grouped by status"
- }
- }
- },
- "GetOrganizationSummaryReply": {
- "type": "object",
- "properties": {
- "summary": {
- "$ref": "#/definitions/OrganizationSummary",
- "title": "Organization usage summary"
- }
- }
- },
- "InstancesSummary": {
- "type": "object",
- "properties": {
- "total": {
+ "title": "The coordinates of the region (lat/long)"
+ },
+ "status": {
"type": "string",
- "format": "int64",
- "title": "Total number of instances"
+ "title": "The status of the region"
},
- "by_type": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
+ "instances": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "title": "Number of instances grouped by type"
+ "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."
}
}
},
- "MembersSummary": {
+ "CatalogGPUDetails": {
"type": "object",
"properties": {
- "total": {
- "type": "string",
+ "count": {
+ "type": "integer",
"format": "int64",
- "title": "Number of members"
+ "title": "The number of GPUs"
},
- "invitations_by_status": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
- },
- "title": "Number of invitations grouped by status"
+ "brand": {
+ "type": "string",
+ "title": "The brand of GPU"
+ },
+ "memory": {
+ "type": "string",
+ "title": "GPU memory"
+ },
+ "name": {
+ "type": "string",
+ "title": "Name of GPU"
}
}
},
- "NeonPostgresSummary": {
+ "CatalogInstance": {
"type": "object",
"properties": {
- "total": {
+ "id": {
+ "type": "string",
+ "title": "The name of the instance"
+ },
+ "description": {
"type": "string",
+ "title": "A short description of the instance"
+ },
+ "vcpu": {
+ "type": "integer",
"format": "int64",
- "title": "Total number of databases"
+ "description": "The number of cpus. Deprecated. Use vcpu_shares instead."
},
- "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"
+ "memory": {
+ "type": "string",
+ "title": "The memory in bytes in a format like 5MB"
},
- "instances": {
- "$ref": "#/definitions/InstancesSummary"
+ "disk": {
+ "type": "string",
+ "title": "The size of the disk in bytes in a format like 5MB"
},
- "apps": {
- "$ref": "#/definitions/AppsSummary"
+ "price_per_second": {
+ "type": "string",
+ "title": "The price to pay per second"
},
- "services": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/ServiceSummary"
+ "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": "Number of services grouped by type"
+ "title": "The regions where this instance type is available"
},
- "domains": {
- "$ref": "#/definitions/DomainsSummary"
+ "status": {
+ "type": "string",
+ "title": "The status of the instance"
},
- "secrets": {
- "$ref": "#/definitions/SecretsSummary"
+ "require_plan": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The plan required to use instance"
},
- "neon_postgres": {
- "$ref": "#/definitions/NeonPostgresSummary"
+ "vcpu_shares": {
+ "type": "number",
+ "format": "float",
+ "description": "The number of vcpu shares reserved for the instance."
},
- "members": {
- "$ref": "#/definitions/MembersSummary"
- }
- }
- },
- "SecretsSummary": {
- "type": "object",
- "properties": {
- "total": {
+ "display_name": {
"type": "string",
- "format": "int64",
- "title": "Total number of secrets"
+ "title": "The display name of the instance"
},
- "by_type": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
+ "aliases": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "title": "Number of secrets grouped by type"
- }
- }
- },
- "ServiceSummary": {
- "type": "object",
- "properties": {
- "total": {
+ "title": "Aliases"
+ },
+ "type": {
"type": "string",
- "format": "int64",
- "title": "Total number of services"
+ "title": "The type of the instance (e.g. \"gpu\")"
},
- "by_status": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
+ "gpu": {
+ "$ref": "#/definitions/CatalogGPUDetails",
+ "title": "GPU details"
+ },
+ "service_types": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "title": "Number of services grouped by status"
- }
- }
- },
- "GetSubscriptionReply": {
- "type": "object",
- "properties": {
- "subscription": {
- "$ref": "#/definitions/Subscription"
+ "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"
}
}
},
- "Subscription": {
+ "CatalogInstanceListItem": {
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "title": "The name of the instance"
},
- "created_at": {
+ "description": {
"type": "string",
- "format": "date-time"
+ "title": "A short description of the instance"
},
- "updated_at": {
+ "vcpu": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The number of cpus. Deprecated. Use vcpu_shares instead."
+ },
+ "memory": {
"type": "string",
- "format": "date-time"
+ "title": "The memory in bytes in a format like 5MB"
},
- "version": {
+ "disk": {
"type": "string",
- "format": "uint64"
+ "title": "The size of the disk in bytes in a format like 5MB"
},
- "organization_id": {
- "type": "string"
+ "price_per_second": {
+ "type": "string",
+ "title": "The price to pay per second"
},
- "stripe_subscription_id": {
- "type": "string"
+ "price_hourly": {
+ "type": "string",
+ "title": "The price to pay per hour"
},
- "status": {
- "$ref": "#/definitions/Subscription.Status"
+ "price_monthly": {
+ "type": "string",
+ "title": "The price to pay per month"
},
- "messages": {
+ "regions": {
"type": "array",
"items": {
"type": "string"
- }
- },
- "has_pending_update": {
- "type": "boolean"
- },
- "stripe_pending_invoice_id": {
- "type": "string"
- },
- "terminate_at": {
- "type": "string",
- "format": "date-time"
+ },
+ "title": "The regions where this instance type is available"
},
- "canceled_at": {
+ "status": {
"type": "string",
- "format": "date-time"
+ "title": "The status of the instance"
},
- "terminated_at": {
- "type": "string",
- "format": "date-time"
+ "require_plan": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The plan required to use instance"
},
- "current_period_start": {
- "type": "string",
- "format": "date-time"
+ "vcpu_shares": {
+ "type": "number",
+ "format": "float",
+ "description": "The number of vcpu shares reserved for the instance."
},
- "current_period_end": {
+ "display_name": {
"type": "string",
- "format": "date-time"
+ "title": "The display name of the instance"
},
- "currency": {
- "type": "string"
+ "aliases": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "Aliases"
},
- "amount_payable": {
+ "type": {
"type": "string",
- "format": "int64"
+ "title": "The type of the instance (e.g. \"gpu\")"
},
- "amount_paid": {
- "type": "string",
- "format": "int64"
+ "gpu": {
+ "$ref": "#/definitions/CatalogGPUDetails",
+ "title": "GPU details"
},
- "amount_remaining": {
- "type": "string",
- "format": "int64"
+ "service_types": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "Allowed service types for this instance (e.g. [\"web\", \"worker\"])"
},
- "payment_failure": {
- "$ref": "#/definitions/Subscription.PaymentFailure"
+ "volumes_enabled": {
+ "type": "boolean",
+ "title": "Are the volumes enabled for this instance type"
},
- "trialing": {
- "type": "boolean"
+ "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"
+ }
},
- "trial_ends_at": {
- "type": "string",
- "format": "date-time"
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The limit in the request"
},
- "trial_max_spend": {
- "type": "string",
- "format": "int64"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The offset in the request"
},
- "current_spend": {
- "type": "string",
- "format": "int64"
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The total number of items"
}
}
},
- "Subscription.PaymentFailure": {
+ "DatacenterListItem": {
"type": "object",
"properties": {
- "failed_at": {
+ "id": {
"type": "string",
- "format": "date-time"
+ "title": "e.g. \"par1\""
},
- "next_attempt": {
+ "region_id": {
"type": "string",
- "format": "date-time"
+ "title": "e.g. \"par\""
},
- "attempt_count": {
+ "domain": {
"type": "string",
- "format": "int64"
- },
- "error_code": {
- "type": "string"
- },
- "error_reason": {
- "type": "string"
- },
- "error_type": {
- "type": "string"
- },
- "error_message": {
- "type": "string"
+ "title": "e.g. \"all-par1.infra.prod.koyeb.com\""
},
- "payment_method_required": {
- "type": "boolean"
+ "coordinates": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "e.g. \"8.856614\" ,\"2.352221\"?"
},
- "redirect_url": {
- "type": "string"
+ "use_gpu": {
+ "type": "boolean",
+ "title": "e.g. true"
},
- "stripe_sdk": {
- "$ref": "#/definitions/Subscription.PaymentFailure.StripeSDK"
+ "regions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "e.g. \"par\", \"fra\""
}
}
},
- "Subscription.PaymentFailure.StripeSDK": {
+ "ListDatacentersReply": {
"type": "object",
"properties": {
- "client_secret_key": {
- "type": "string"
- },
- "raw_json": {
- "type": "string"
+ "datacenters": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DatacenterListItem"
+ }
}
}
},
- "Subscription.Status": {
+ "AvailabilityLevel": {
"type": "string",
"enum": [
- "INVALID",
- "CREATED",
- "ACTIVE",
- "WARNING",
- "URGENT",
- "CANCELING",
- "CANCELED",
- "TERMINATING",
- "TERMINATED"
+ "UNKNOWN",
+ "LOW",
+ "MEDIUM",
+ "HIGH"
],
- "default": "INVALID"
+ "default": "UNKNOWN"
},
- "DeleteUserReply": {
+ "CatalogUsage": {
"type": "object",
"properties": {
- "user": {
- "$ref": "#/definitions/User"
+ "instances": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/InstanceAvailability"
+ }
}
}
},
- "User": {
+ "InstanceAvailability": {
"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"
+ "regions": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/RegionAvailability"
}
},
- "name": {
- "type": "string"
- },
- "email_validated": {
- "type": "boolean"
- },
- "trialed": {
- "type": "boolean"
+ "availability": {
+ "$ref": "#/definitions/AvailabilityLevel"
}
- },
- "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"
+ "ListUsageReply": {
+ "type": "object",
+ "properties": {
+ "usage": {
+ "$ref": "#/definitions/CatalogUsage",
+ "title": "The Usage retrieved"
+ }
+ }
},
- "DomainLoadBalancerQuotas": {
+ "RegionAvailability": {
"type": "object",
"properties": {
- "max_koyeb": {
- "type": "integer",
- "format": "int64"
+ "availability": {
+ "$ref": "#/definitions/AvailabilityLevel"
}
}
},
- "GetQuotasReply": {
+ "ExecCommandIO": {
"type": "object",
"properties": {
- "quotas": {
- "$ref": "#/definitions/Quotas"
+ "data": {
+ "type": "string",
+ "format": "byte",
+ "description": "Data is base64 encoded"
+ },
+ "close": {
+ "type": "boolean",
+ "description": "Indicate last data frame"
}
}
},
- "PersistentVolumeQuotas": {
+ "ExecCommandReply": {
"type": "object",
"properties": {
- "max_total_size": {
- "type": "integer",
- "format": "int64",
- "description": "MaxTotalSize for all volumes on a region (in Gigabyte / GB)."
+ "stdout": {
+ "$ref": "#/definitions/ExecCommandIO"
},
- "max_volume_size": {
- "type": "integer",
- "format": "int64",
- "description": "MaxVolumeSize for one volume (in Gigabyte / GB)."
+ "stderr": {
+ "$ref": "#/definitions/ExecCommandIO"
},
- "max_per_instance_size": {
+ "exited": {
+ "type": "boolean"
+ },
+ "exit_code": {
"type": "integer",
- "format": "int64",
- "description": "MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB)."
+ "format": "int32"
}
}
},
- "Quotas": {
+ "ExecCommandRequest.Body": {
"type": "object",
"properties": {
- "apps": {
- "type": "string",
- "format": "int64"
- },
- "services": {
- "type": "string",
- "format": "int64"
- },
- "domains": {
- "type": "string",
- "format": "int64",
- "title": "Deprecated, use custom_domains instead"
+ "command": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Command to exec. Mandatory in the first frame sent"
},
- "services_by_app": {
- "type": "string",
- "format": "int64"
+ "tty_size": {
+ "$ref": "#/definitions/ExecCommandRequest.TerminalSize"
},
- "service_provisioning_concurrency": {
- "type": "string",
- "format": "int64"
+ "stdin": {
+ "$ref": "#/definitions/ExecCommandIO"
},
- "memory_mb": {
- "type": "string",
- "format": "int64"
+ "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"
},
- "instance_types": {
+ "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"
}
},
- "regions": {
+ "samples": {
"type": "array",
"items": {
- "type": "string"
- }
- },
- "max_organization_members": {
- "type": "string",
- "format": "int64"
- },
- "max_instances_by_type": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "int64"
+ "$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"
},
- "persistent_volumes_by_region": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/PersistentVolumeQuotas"
- }
+ "value": {
+ "type": "number",
+ "format": "double"
+ }
+ }
+ },
+ "LogEntry": {
+ "type": "object",
+ "properties": {
+ "msg": {
+ "type": "string"
},
- "custom_domains": {
+ "created_at": {
"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"
+ "format": "date-time"
},
- "access_reserved_subdomains": {
+ "labels": {
+ "type": "object"
+ }
+ }
+ },
+ "QueryLogsReply": {
+ "type": "object",
+ "properties": {
+ "data": {
"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"
+ "$ref": "#/definitions/LogEntry"
+ }
},
- "archives": {
- "type": "string",
- "format": "int64"
+ "pagination": {
+ "$ref": "#/definitions/QueryLogsReplyPagination"
}
}
},
- "ScaleToZeroQuotas": {
+ "QueryLogsReplyPagination": {
"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"
+ "has_more": {
+ "type": "boolean"
},
- "light_sleep_idle_delay_min": {
- "type": "integer",
- "format": "int64"
+ "next_start": {
+ "type": "string",
+ "format": "date-time"
},
- "light_sleep_idle_delay_max": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "ConfirmOrganizationActionReply": {
- "type": "object"
+ "next_end": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
},
"LoginReply": {
"type": "object",
@@ -17434,319 +17220,587 @@
}
}
},
- "AcceptOrganizationInvitationReply": {
+ "GetIntercomProfileReply": {
"type": "object",
"properties": {
- "invitation": {
- "$ref": "#/definitions/OrganizationInvitation",
- "title": "The organization invitation accepted"
+ "hash": {
+ "type": "string"
}
}
},
- "Action": {
- "type": "string",
- "enum": [
- "signin",
- "signup",
- "register"
- ],
- "default": "signin"
+ "DeleteUserReply": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "$ref": "#/definitions/User"
+ }
+ }
},
- "Budget": {
+ "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": {
- "amount": {
+ "id": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "avatar_url": {
+ "type": "string"
+ },
+ "two_factor_authentication": {
+ "type": "boolean"
+ },
+ "last_login": {
"type": "string",
- "format": "int64"
+ "format": "date-time"
},
- "thresholds": {
+ "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": {
- "type": "string",
- "format": "int64"
+ "$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"
}
}
},
- "CannyAuthReply": {
+ "CreatePaymentAuthorizationReply": {
"type": "object",
"properties": {
- "token": {
- "type": "string"
+ "payment_method": {
+ "$ref": "#/definitions/PaymentMethod"
}
}
},
- "CannyAuthRequest": {
+ "CreatePaymentAuthorizationRequest": {
"type": "object"
},
- "ClearIdenfyVerificationResultReply": {
+ "DeletePaymentMethodReply": {
"type": "object"
},
- "ClearIdenfyVerificationResultRequest": {
+ "GetPaymentMethodReply": {
"type": "object",
"properties": {
- "user_id": {
+ "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"
}
}
},
- "CreateAccessTokenReply": {
+ "PaymentMethod.Status": {
+ "type": "string",
+ "enum": [
+ "INVALID",
+ "CREATED",
+ "AUTHORIZED",
+ "DECLINED",
+ "CANCELED",
+ "EXPIRED",
+ "UNCHECKED"
+ ],
+ "default": "INVALID"
+ },
+ "RedeemCouponReply": {
+ "type": "object"
+ },
+ "RedeemCouponRequest": {
"type": "object",
"properties": {
- "token": {
+ "code": {
"type": "string"
}
}
},
- "CreateAccountRequest": {
+ "CreateCredential": {
"type": "object",
- "example": {
- "email": "john@snow.com",
- "password": "..."
- },
"properties": {
- "email": {
- "type": "string"
+ "name": {
+ "type": "string",
+ "title": "Credential name"
},
- "password": {
- "type": "string"
+ "description": {
+ "type": "string",
+ "title": "Credential description"
},
- "name": {
- "type": "string"
+ "type": {
+ "$ref": "#/definitions/Credential.Type",
+ "title": "Credential type"
},
- "captcha": {
- "type": "string"
- }
- },
- "description": "Create new account",
- "title": "Create new account",
- "required": [
- "email",
- "password"
- ]
- },
- "CreateBudgetReply": {
- "type": "object",
- "properties": {
- "budget": {
- "$ref": "#/definitions/Budget"
+ "organization_id": {
+ "type": "string",
+ "title": "Organization id for user credential"
}
}
},
- "CreateOrganizationReply": {
+ "CreateCredentialReply": {
"type": "object",
"properties": {
- "organization": {
- "$ref": "#/definitions/Organization"
+ "credential": {
+ "$ref": "#/definitions/Credential"
}
}
},
- "CreateOrganizationRequest": {
+ "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"
}
}
},
- "DeactivateOrganizationReply": {
- "type": "object",
- "properties": {
- "organization": {
- "$ref": "#/definitions/Organization"
- }
- }
- },
- "DeclineOrganizationInvitationReply": {
- "type": "object",
- "properties": {
- "invitation": {
- "$ref": "#/definitions/OrganizationInvitation",
- "title": "The organization invitation declined"
- }
- }
+ "Credential.Type": {
+ "type": "string",
+ "enum": [
+ "INVALID",
+ "USER",
+ "ORGANIZATION"
+ ],
+ "default": "INVALID"
},
- "DeleteBudgetReply": {
+ "DeleteCredentialReply": {
"type": "object"
},
- "DeleteOrganizationReply": {
+ "GetCredentialReply": {
"type": "object",
"properties": {
- "organization": {
- "$ref": "#/definitions/Organization"
+ "credential": {
+ "$ref": "#/definitions/Credential"
}
}
},
- "DiscourseAuthReply": {
+ "ListCredentialsReply": {
"type": "object",
"properties": {
- "sso": {
- "type": "string"
+ "credentials": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Credential"
+ }
},
- "sig": {
- "type": "string"
+ "limit": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "offset": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "count": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "DiscourseAuthRequest": {
+ "UpdateCredentialReply": {
"type": "object",
"properties": {
- "payload": {
- "type": "string"
- },
- "sig": {
- "type": "string"
+ "credential": {
+ "$ref": "#/definitions/Credential"
}
}
},
- "GetBudgetReply": {
+ "GetSubscriptionReply": {
"type": "object",
"properties": {
- "budget": {
- "$ref": "#/definitions/Budget"
+ "subscription": {
+ "$ref": "#/definitions/Subscription"
}
}
},
- "GetGithubInstallationReply": {
+ "Subscription": {
"type": "object",
"properties": {
- "installation_id": {
+ "id": {
"type": "string"
},
- "installation_url": {
- "type": "string"
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
},
- "name": {
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "version": {
+ "type": "string",
+ "format": "uint64"
+ },
+ "organization_id": {
"type": "string"
},
- "avatar_url": {
+ "stripe_subscription_id": {
"type": "string"
},
"status": {
- "$ref": "#/definitions/kgitproxy.GithubInstallation.Status"
+ "$ref": "#/definitions/Subscription.Status"
},
- "installed_at": {
+ "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"
},
- "suspended_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"
},
- "indexing_status": {
- "$ref": "#/definitions/kgitproxy.IndexingStatus"
+ "error_message": {
+ "type": "string"
},
- "indexed_repositories": {
- "type": "integer",
- "format": "int64"
+ "payment_method_required": {
+ "type": "boolean"
},
- "total_repositories": {
- "type": "integer",
- "format": "int64"
+ "redirect_url": {
+ "type": "string"
+ },
+ "stripe_sdk": {
+ "$ref": "#/definitions/Subscription.PaymentFailure.StripeSDK"
}
}
},
- "GetIdenfyTokenReply": {
+ "Subscription.PaymentFailure.StripeSDK": {
"type": "object",
"properties": {
- "auth_token": {
+ "client_secret_key": {
+ "type": "string"
+ },
+ "raw_json": {
"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"
- }
- }
+ "Subscription.Status": {
+ "type": "string",
+ "enum": [
+ "INVALID",
+ "CREATED",
+ "ACTIVE",
+ "WARNING",
+ "URGENT",
+ "CANCELING",
+ "CANCELED",
+ "TERMINATING",
+ "TERMINATED"
+ ],
+ "default": "INVALID"
},
- "GetUserOrganizationInvitationReply": {
+ "CreateOrganizationInvitationReply": {
"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"
+ "$ref": "#/definitions/OrganizationInvitation",
+ "title": "The organization invitation sent"
}
}
},
- "GithubInstallationRequest": {
+ "CreateOrganizationInvitationRequest": {
"type": "object",
"properties": {
- "metadata": {
+ "email": {
"type": "string",
- "title": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state"
+ "title": "The email of the person to invite"
}
}
},
- "HasUnpaidInvoicesReply": {
- "type": "object",
- "properties": {
- "has_unpaid_invoices": {
- "type": "boolean"
- }
- }
+ "DeleteOrganizationInvitationReply": {
+ "type": "object"
},
- "InviteUserRequest": {
+ "GetOrganizationInvitationReply": {
"type": "object",
"properties": {
- "email": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "message": {
- "type": "string"
+ "invitation": {
+ "$ref": "#/definitions/OrganizationInvitation"
}
}
},
- "ListUserOrganizationInvitationsReply": {
+ "ListOrganizationInvitationsReply": {
"type": "object",
"properties": {
"invitations": {
@@ -17773,440 +17827,656 @@
}
}
},
- "ListUserOrganizationsReply": {
+ "Organization.Status": {
+ "type": "string",
+ "enum": [
+ "WARNING",
+ "LOCKED",
+ "ACTIVE",
+ "DEACTIVATING",
+ "DEACTIVATED",
+ "DELETING",
+ "DELETED"
+ ],
+ "default": "WARNING"
+ },
+ "OrganizationInvitation": {
"type": "object",
"properties": {
- "organizations": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Organization"
- },
- "title": "The collection of organizations"
+ "id": {
+ "type": "string"
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
+ "email": {
+ "type": "string"
},
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "role": {
+ "$ref": "#/definitions/UserRole.Role"
},
- "has_next": {
- "type": "boolean",
- "title": "If there is more items after in the collection"
+ "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"
}
}
},
- "LoginMethodReply": {
+ "ResendOrganizationInvitationReply": {
"type": "object",
"properties": {
- "method": {
- "$ref": "#/definitions/LoginMethodReply.Method"
+ "invitation": {
+ "$ref": "#/definitions/OrganizationInvitation",
+ "title": "The organization invitation resent"
}
}
},
- "LoginMethodReply.Method": {
+ "UserRole.Role": {
"type": "string",
"enum": [
- "KOYEB",
- "WORKOS"
+ "INVALID",
+ "OWNER"
],
- "default": "KOYEB"
+ "default": "INVALID"
},
- "ManageReply": {
+ "ConfirmOrganizationActionReply": {
+ "type": "object"
+ },
+ "DomainLoadBalancerQuotas": {
"type": "object",
"properties": {
- "url": {
- "type": "string"
+ "max_koyeb": {
+ "type": "integer",
+ "format": "int64"
}
}
},
- "NextInvoiceReply": {
+ "GetQuotasReply": {
"type": "object",
"properties": {
- "stripe_invoice": {
- "type": "object"
+ "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)."
},
- "lines": {
+ "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": {
- "$ref": "#/definitions/NextInvoiceReply.Line"
+ "type": "string"
}
},
- "discounts": {
+ "regions": {
"type": "array",
"items": {
- "$ref": "#/definitions/NextInvoiceReply.Discount"
+ "type": "string"
}
- }
- }
- },
- "NextInvoiceReply.Discount": {
- "type": "object",
- "properties": {
- "type": {
- "$ref": "#/definitions/NextInvoiceReply.Discount.Type"
},
- "name": {
- "type": "string"
+ "max_organization_members": {
+ "type": "string",
+ "format": "int64"
},
- "amount": {
+ "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"
}
}
},
- "NextInvoiceReply.Discount.Type": {
- "type": "string",
- "enum": [
- "PERCENT_OFF",
- "AMOUNT_OFF"
- ],
- "default": "PERCENT_OFF"
- },
- "NextInvoiceReply.Line": {
+ "ScaleToZeroQuotas": {
"type": "object",
"properties": {
- "amount_excluding_tax": {
+ "is_deep_sleep_enabled": {
+ "type": "boolean",
+ "title": "deep sleep limits"
+ },
+ "deep_sleep_idle_delay_min": {
"type": "integer",
- "format": "int32"
+ "format": "int64"
},
- "period": {
- "$ref": "#/definitions/NextInvoiceReply.Line.Period"
+ "deep_sleep_idle_delay_max": {
+ "type": "integer",
+ "format": "int64"
},
- "plan_nickname": {
- "type": "string"
+ "is_light_sleep_enabled": {
+ "type": "boolean",
+ "title": "light sleep limits"
},
- "price": {
- "$ref": "#/definitions/NextInvoiceReply.Line.Price"
+ "light_sleep_idle_delay_min": {
+ "type": "integer",
+ "format": "int64"
},
- "quantity": {
+ "light_sleep_idle_delay_max": {
"type": "integer",
- "format": "int32"
+ "format": "int64"
}
}
},
- "NextInvoiceReply.Line.Period": {
+ "AppsSummary": {
"type": "object",
"properties": {
- "start": {
+ "total": {
"type": "string",
- "format": "date-time"
+ "format": "int64",
+ "title": "Total number of apps"
},
- "end": {
- "type": "string",
- "format": "date-time"
+ "by_status": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "int64"
+ },
+ "title": "Number of apps grouped by status"
}
}
},
- "NextInvoiceReply.Line.Price": {
+ "DomainsSummary": {
"type": "object",
"properties": {
- "unit_amount_decimal": {
- "type": "number",
- "format": "double"
+ "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"
}
}
},
- "OAuthCallbackReply": {
+ "GetOrganizationSummaryReply": {
"type": "object",
"properties": {
- "token": {
- "$ref": "#/definitions/Token",
- "title": "A jwt token to be used for session"
+ "summary": {
+ "$ref": "#/definitions/OrganizationSummary",
+ "title": "Organization usage summary"
}
}
},
- "OAuthCallbackRequest": {
+ "InstancesSummary": {
"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": {
+ "total": {
"type": "string",
- "description": "setup_action is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set."
+ "format": "int64",
+ "title": "Total number of instances"
},
- "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."
+ "by_type": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "int64"
+ },
+ "title": "Number of instances grouped by type"
}
}
},
- "OAuthProvider": {
+ "MembersSummary": {
"type": "object",
"properties": {
- "id": {
+ "total": {
"type": "string",
- "title": "The name of the provider (.e.g github, google)"
+ "format": "int64",
+ "title": "Number of members"
},
- "url": {
+ "invitations_by_status": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "int64"
+ },
+ "title": "Number of invitations grouped by status"
+ }
+ }
+ },
+ "NeonPostgresSummary": {
+ "type": "object",
+ "properties": {
+ "total": {
"type": "string",
- "title": "The URL to call to initiate the OAuth flow"
+ "format": "int64",
+ "title": "Total number of databases"
},
- "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"
+ "by_instance_type": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "int64"
+ },
+ "title": "Number of databases grouped by instance type"
}
}
},
- "Organization": {
+ "OrganizationSummary": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "address1": {
- "type": "string"
- },
- "address2": {
- "type": "string"
- },
- "city": {
- "type": "string"
- },
- "postal_code": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "country": {
+ "organization_id": {
"type": "string"
},
- "company": {
- "type": "boolean"
+ "instances": {
+ "$ref": "#/definitions/InstancesSummary"
},
- "vat_number": {
- "type": "string"
+ "apps": {
+ "$ref": "#/definitions/AppsSummary"
},
- "billing_name": {
- "type": "string"
+ "services": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/ServiceSummary"
+ },
+ "title": "Number of services grouped by type"
},
- "billing_email": {
- "type": "string"
+ "domains": {
+ "$ref": "#/definitions/DomainsSummary"
},
- "name": {
- "type": "string"
+ "secrets": {
+ "$ref": "#/definitions/SecretsSummary"
},
- "plan": {
- "$ref": "#/definitions/Plan"
+ "neon_postgres": {
+ "$ref": "#/definitions/NeonPostgresSummary"
},
- "plan_updated_at": {
+ "members": {
+ "$ref": "#/definitions/MembersSummary"
+ }
+ }
+ },
+ "SecretsSummary": {
+ "type": "object",
+ "properties": {
+ "total": {
"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"
+ "format": "int64",
+ "title": "Total number of secrets"
},
- "reprocess_after": {
+ "by_type": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "int64"
+ },
+ "title": "Number of secrets grouped by type"
+ }
+ }
+ },
+ "ServiceSummary": {
+ "type": "object",
+ "properties": {
+ "total": {
"type": "string",
- "format": "date-time"
+ "format": "int64",
+ "title": "Total number of services"
},
- "trialing": {
- "type": "boolean"
+ "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"
},
- "trial_starts_at": {
- "type": "string",
- "format": "date-time"
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The limit in the request"
},
- "trial_ends_at": {
- "type": "string",
- "format": "date-time"
+ "offset": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The offset in the request"
},
- "email_domain_allowlist": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "title": "The total number of items"
}
- },
- "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": {
+ "OrganizationMember": {
"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": {
+ "user_id": {
"type": "string"
},
- "invitee": {
- "$ref": "#/definitions/PublicUser"
+ "joined_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "role": {
+ "$ref": "#/definitions/UserRole.Role"
},
- "inviter_id": {
- "type": "string"
+ "status": {
+ "$ref": "#/definitions/OrganizationMember.Status"
},
- "inviter": {
+ "user": {
"$ref": "#/definitions/PublicUser"
+ },
+ "organization": {
+ "$ref": "#/definitions/PublicOrganization"
}
}
},
- "OrganizationInvitation.Status": {
+ "OrganizationMember.Status": {
"type": "string",
"enum": [
"INVALID",
- "PENDING",
- "ACCEPTED",
- "REFUSED",
- "EXPIRED"
+ "ACTIVE",
+ "DELETED"
],
"default": "INVALID"
},
- "Plan": {
+ "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": [
- "hobby",
- "starter",
- "startup",
- "business",
- "enterprise",
- "internal",
- "hobby23",
- "no_plan",
- "pro",
- "scale",
- "partner_csp",
- "partner_csp_unit"
+ "signin",
+ "signup",
+ "register"
],
- "default": "hobby"
+ "default": "signin"
},
- "PublicOrganization": {
+ "Budget": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "amount": {
+ "type": "string",
+ "format": "int64"
},
- "name": {
+ "thresholds": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "int64"
+ }
+ }
+ }
+ },
+ "CannyAuthReply": {
+ "type": "object",
+ "properties": {
+ "token": {
"type": "string"
- },
- "plan": {
- "$ref": "#/definitions/Plan"
- },
- "status": {
- "$ref": "#/definitions/Organization.Status"
}
}
},
- "PublicUser": {
+ "CannyAuthRequest": {
+ "type": "object"
+ },
+ "ClearIdenfyVerificationResultReply": {
+ "type": "object"
+ },
+ "ClearIdenfyVerificationResultRequest": {
"type": "object",
"properties": {
- "id": {
+ "user_id": {
"type": "string"
},
- "email": {
+ "organization_id": {
"type": "string"
- },
- "name": {
+ }
+ }
+ },
+ "CreateAccessTokenReply": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "type": "string"
+ }
+ }
+ },
+ "CreateAccountRequest": {
+ "type": "object",
+ "example": {
+ "email": "john@snow.com",
+ "password": "..."
+ },
+ "properties": {
+ "email": {
"type": "string"
},
- "avatar_url": {
+ "password": {
"type": "string"
},
- "github_id": {
+ "name": {
"type": "string"
},
- "github_user": {
+ "captcha": {
"type": "string"
}
+ },
+ "description": "Create new account",
+ "title": "Create new account",
+ "required": [
+ "email",
+ "password"
+ ]
+ },
+ "CreateBudgetReply": {
+ "type": "object",
+ "properties": {
+ "budget": {
+ "$ref": "#/definitions/Budget"
+ }
}
},
- "ReactivateOrganizationReply": {
+ "CreateOrganizationReply": {
"type": "object",
"properties": {
"organization": {
@@ -18214,38 +18484,35 @@
}
}
},
- "ResendEmailValidationReply": {
- "type": "object"
- },
- "ResendEmailValidationRequest": {
- "type": "object"
- },
- "ResetPasswordReply": {
- "type": "object"
- },
- "ResetPasswordRequest": {
+ "CreateOrganizationRequest": {
"type": "object",
- "example": {
- "email": "john@snow.com"
- },
"properties": {
- "email": {
+ "name": {
"type": "string"
}
}
},
- "UnscopeOrganizationTokenRequest": {
- "type": "object"
+ "DeactivateOrganizationReply": {
+ "type": "object",
+ "properties": {
+ "organization": {
+ "$ref": "#/definitions/Organization"
+ }
+ }
},
- "UpdateBudgetReply": {
+ "DeclineOrganizationInvitationReply": {
"type": "object",
"properties": {
- "budget": {
- "$ref": "#/definitions/Budget"
+ "invitation": {
+ "$ref": "#/definitions/OrganizationInvitation",
+ "title": "The organization invitation declined"
}
}
},
- "UpdateOrganizationPlanReply": {
+ "DeleteBudgetReply": {
+ "type": "object"
+ },
+ "DeleteOrganizationReply": {
"type": "object",
"properties": {
"organization": {
@@ -18253,169 +18520,181 @@
}
}
},
- "UpdateOrganizationReply": {
+ "DiscourseAuthReply": {
"type": "object",
"properties": {
- "organization": {
- "$ref": "#/definitions/Organization"
+ "sso": {
+ "type": "string"
+ },
+ "sig": {
+ "type": "string"
}
}
},
- "UpdatePasswordRequest": {
+ "DiscourseAuthRequest": {
"type": "object",
- "example": {
- "id": "...",
- "password": "..."
- },
"properties": {
- "id": {
+ "payload": {
"type": "string"
},
- "password": {
+ "sig": {
"type": "string"
}
}
},
- "UpdateUserRequest.UserUpdateBody": {
+ "GetBudgetReply": {
"type": "object",
"properties": {
- "id": {
+ "budget": {
+ "$ref": "#/definitions/Budget"
+ }
+ }
+ },
+ "GetGithubInstallationReply": {
+ "type": "object",
+ "properties": {
+ "installation_id": {
"type": "string"
},
- "email": {
+ "installation_url": {
"type": "string"
},
- "current_password": {
+ "name": {
"type": "string"
},
- "password": {
+ "avatar_url": {
"type": "string"
},
- "newsletter_subscribed": {
- "type": "boolean"
+ "status": {
+ "$ref": "#/definitions/kgitproxy.GithubInstallation.Status"
},
- "name": {
- "type": "string"
+ "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"
}
}
},
- "UpdateUserSettingsReply": {
+ "GetIdenfyTokenReply": {
"type": "object",
"properties": {
- "settings": {
- "$ref": "#/definitions/UserSettings"
+ "auth_token": {
+ "type": "string"
}
}
},
- "UpdateUserSettingsRequest": {
+ "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": {
- "failed_deployment_email_notification": {
- "type": "boolean",
- "description": "(Optional) Toggle failed deployment email notification."
+ "organization": {
+ "$ref": "#/definitions/Organization"
}
}
},
- "UpsertSignupQualificationReply": {
+ "GetUserOrganizationInvitationReply": {
"type": "object",
"properties": {
- "organization": {
- "$ref": "#/definitions/Organization"
+ "invitation": {
+ "$ref": "#/definitions/OrganizationInvitation"
}
}
},
- "UserReply": {
+ "GetUserSettingsReply": {
"type": "object",
"properties": {
- "user": {
- "$ref": "#/definitions/User"
+ "settings": {
+ "$ref": "#/definitions/UserSettings"
}
}
},
- "UserRole.Role": {
- "type": "string",
- "enum": [
- "INVALID",
- "OWNER"
- ],
- "default": "INVALID"
- },
- "UserSettings": {
+ "GithubInstallationReply": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "app_name": {
+ "type": "string",
+ "title": "The github app name"
},
- "user_id": {
- "type": "string"
+ "app_id": {
+ "type": "string",
+ "format": "int64",
+ "title": "The github app id"
},
- "failed_deployment_email_notification": {
- "type": "boolean"
+ "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"
}
}
},
- "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": {
+ "GithubInstallationRequest": {
"type": "object",
"properties": {
- "payment_method": {
- "$ref": "#/definitions/PaymentMethod"
+ "metadata": {
+ "type": "string",
+ "title": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state"
}
}
},
- "CreatePaymentAuthorizationReply": {
+ "HasUnpaidInvoicesReply": {
"type": "object",
"properties": {
- "payment_method": {
- "$ref": "#/definitions/PaymentMethod"
+ "has_unpaid_invoices": {
+ "type": "boolean"
}
}
},
- "CreatePaymentAuthorizationRequest": {
- "type": "object"
- },
- "DeletePaymentMethodReply": {
- "type": "object"
- },
- "GetPaymentMethodReply": {
+ "InviteUserRequest": {
"type": "object",
"properties": {
- "payment_method": {
- "$ref": "#/definitions/PaymentMethod"
+ "email": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
}
}
},
- "ListPaymentMethodsReply": {
+ "ListUserOrganizationInvitationsReply": {
"type": "object",
"properties": {
- "payment_methods": {
+ "invitations": {
"type": "array",
"items": {
- "$ref": "#/definitions/PaymentMethod"
+ "$ref": "#/definitions/OrganizationInvitation"
},
- "title": "The collection of payment methods"
+ "title": "The collection of organization invitations"
},
"limit": {
"type": "integer",
@@ -18434,524 +18713,483 @@
}
}
},
- "PaymentMethod": {
+ "ListUserOrganizationsReply": {
"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": {
+ "organizations": {
"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"
+ "$ref": "#/definitions/Organization"
+ },
+ "title": "The collection of organizations"
},
- "card_expiration_month": {
+ "limit": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "title": "The limit in the request"
},
- "card_expiration_year": {
+ "offset": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "title": "The offset in the request"
+ },
+ "has_next": {
+ "type": "boolean",
+ "title": "If there is more items after in the collection"
}
}
},
- "PaymentMethod.Status": {
+ "LoginMethodReply": {
+ "type": "object",
+ "properties": {
+ "method": {
+ "$ref": "#/definitions/LoginMethodReply.Method"
+ }
+ }
+ },
+ "LoginMethodReply.Method": {
"type": "string",
"enum": [
- "INVALID",
- "CREATED",
- "AUTHORIZED",
- "DECLINED",
- "CANCELED",
- "EXPIRED",
- "UNCHECKED"
+ "KOYEB",
+ "WORKOS"
],
- "default": "INVALID"
+ "default": "KOYEB"
},
- "CreateOrganizationInvitationReply": {
+ "ManageReply": {
"type": "object",
"properties": {
- "invitation": {
- "$ref": "#/definitions/OrganizationInvitation",
- "title": "The organization invitation sent"
+ "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"
}
}
},
- "CreateOrganizationInvitationRequest": {
+ "NextInvoiceReply.Discount.Type": {
+ "type": "string",
+ "enum": [
+ "PERCENT_OFF",
+ "AMOUNT_OFF"
+ ],
+ "default": "PERCENT_OFF"
+ },
+ "NextInvoiceReply.Line": {
"type": "object",
"properties": {
- "email": {
- "type": "string",
- "title": "The email of the person to invite"
+ "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"
}
}
},
- "DeleteOrganizationInvitationReply": {
- "type": "object"
- },
- "GetOrganizationInvitationReply": {
+ "NextInvoiceReply.Line.Period": {
"type": "object",
"properties": {
- "invitation": {
- "$ref": "#/definitions/OrganizationInvitation"
+ "start": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "end": {
+ "type": "string",
+ "format": "date-time"
}
}
},
- "ListOrganizationInvitationsReply": {
+ "NextInvoiceReply.Line.Price": {
"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"
+ "unit_amount_decimal": {
+ "type": "number",
+ "format": "double"
}
}
},
- "ResendOrganizationInvitationReply": {
+ "OAuthCallbackReply": {
"type": "object",
"properties": {
- "invitation": {
- "$ref": "#/definitions/OrganizationInvitation",
- "title": "The organization invitation resent"
+ "token": {
+ "$ref": "#/definitions/Token",
+ "title": "A jwt token to be used for session"
}
}
},
- "CreateCredential": {
+ "OAuthCallbackRequest": {
"type": "object",
"properties": {
- "name": {
+ "state": {
"type": "string",
- "title": "Credential name"
+ "title": "The state created at the origin of the OAuth flow"
},
- "description": {
+ "code": {
"type": "string",
- "title": "Credential description"
+ "title": "The code returned by the OAuth provider"
},
- "type": {
- "$ref": "#/definitions/Credential.Type",
- "title": "Credential type"
+ "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."
},
- "organization_id": {
+ "installation_id": {
"type": "string",
- "title": "Organization id for user credential"
+ "description": "installation_id is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set."
}
}
},
- "CreateCredentialReply": {
+ "OAuthProvider": {
"type": "object",
"properties": {
- "credential": {
- "$ref": "#/definitions/Credential"
+ "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"
}
}
},
- "Credential": {
+ "Organization": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "type": {
- "$ref": "#/definitions/Credential.Type"
+ "external_id": {
+ "type": "string"
},
- "name": {
+ "address1": {
"type": "string"
},
- "token": {
+ "address2": {
"type": "string"
},
- "description": {
+ "city": {
"type": "string"
},
- "user_id": {
+ "postal_code": {
"type": "string"
},
- "organization_id": {
+ "state": {
"type": "string"
},
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ "country": {
+ "type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time"
+ "company": {
+ "type": "boolean"
},
- "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"
- }
+ "vat_number": {
+ "type": "string"
},
- "limit": {
- "type": "integer",
- "format": "int64"
+ "billing_name": {
+ "type": "string"
},
- "offset": {
- "type": "integer",
- "format": "int64"
+ "billing_email": {
+ "type": "string"
},
- "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"
+ "name": {
+ "type": "string"
},
- "limit": {
- "type": "integer",
- "format": "int64",
- "title": "The limit in the request"
+ "plan": {
+ "$ref": "#/definitions/Plan"
},
- "offset": {
- "type": "integer",
- "format": "int64",
- "title": "The offset in the request"
+ "plan_updated_at": {
+ "type": "string",
+ "format": "date-time"
},
- "count": {
- "type": "integer",
- "format": "int64",
- "title": "The total number of items"
- }
- }
- },
- "OrganizationMember": {
- "type": "object",
- "properties": {
- "id": {
+ "has_payment_method": {
+ "type": "boolean"
+ },
+ "subscription_id": {
"type": "string"
},
- "organization_id": {
+ "current_subscription_id": {
"type": "string"
},
- "user_id": {
+ "latest_subscription_id": {
"type": "string"
},
- "joined_at": {
+ "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"
},
- "role": {
- "$ref": "#/definitions/UserRole.Role"
+ "trialing": {
+ "type": "boolean"
},
- "status": {
- "$ref": "#/definitions/OrganizationMember.Status"
+ "trial_starts_at": {
+ "type": "string",
+ "format": "date-time"
},
- "user": {
- "$ref": "#/definitions/PublicUser"
+ "trial_ends_at": {
+ "type": "string",
+ "format": "date-time"
},
- "organization": {
- "$ref": "#/definitions/PublicOrganization"
+ "email_domain_allowlist": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- }
+ },
+ "title": "Represent an Organization"
},
- "OrganizationMember.Status": {
+ "Organization.DeactivationReason": {
"type": "string",
"enum": [
"INVALID",
- "ACTIVE",
- "DELETED"
+ "REQUESTED_BY_OWNER",
+ "SUBSCRIPTION_TERMINATION",
+ "LOCKED_BY_ADMIN",
+ "VERIFICATION_FAILED",
+ "TRIAL_DID_NOT_CONVERT"
],
"default": "INVALID"
},
- "RemoveOrganizationMemberReply": {
+ "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": {
- "member": {
- "$ref": "#/definitions/OrganizationMember"
+ "organization": {
+ "$ref": "#/definitions/Organization"
}
}
},
- "GetIntercomProfileReply": {
+ "ResendEmailValidationReply": {
+ "type": "object"
+ },
+ "ResendEmailValidationRequest": {
+ "type": "object"
+ },
+ "ResetPasswordReply": {
+ "type": "object"
+ },
+ "ResetPasswordRequest": {
"type": "object",
+ "example": {
+ "email": "john@snow.com"
+ },
"properties": {
- "hash": {
+ "email": {
"type": "string"
}
}
},
- "ksearch.App": {
+ "UnscopeOrganizationTokenRequest": {
+ "type": "object"
+ },
+ "UpdateBudgetReply": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "organization_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "budget": {
+ "$ref": "#/definitions/Budget"
}
}
},
- "ksearch.GlobalDeployment": {
+ "UpdateOrganizationPlanReply": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "organization_id": {
- "type": "string"
- },
- "app_id": {
- "type": "string"
- },
- "service_id": {
- "type": "string"
+ "organization": {
+ "$ref": "#/definitions/Organization"
}
}
},
- "ksearch.Instance": {
+ "UpdateOrganizationReply": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "organization_id": {
- "type": "string"
- },
- "app_id": {
- "type": "string"
- },
- "service_id": {
- "type": "string"
- },
- "allocation_id": {
- "type": "string"
+ "organization": {
+ "$ref": "#/definitions/Organization"
}
}
},
- "ksearch.Organization": {
+ "UpdatePasswordRequest": {
"type": "object",
+ "example": {
+ "id": "...",
+ "password": "..."
+ },
"properties": {
"id": {
"type": "string"
},
- "name": {
+ "password": {
"type": "string"
}
}
},
- "ksearch.RegionalDeployment": {
+ "UpdateUserRequest.UserUpdateBody": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "organization_id": {
+ "email": {
"type": "string"
},
- "app_id": {
+ "current_password": {
"type": "string"
},
- "service_id": {
+ "password": {
"type": "string"
},
- "region": {
+ "newsletter_subscribed": {
+ "type": "boolean"
+ },
+ "name": {
"type": "string"
}
}
},
- "ksearch.SearchReply": {
+ "UpdateUserSettingsReply": {
"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"
- }
+ "settings": {
+ "$ref": "#/definitions/UserSettings"
}
}
},
- "ksearch.Service": {
+ "UpdateUserSettingsRequest": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "organization_id": {
- "type": "string"
- },
- "app_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "failed_deployment_email_notification": {
+ "type": "boolean",
+ "description": "(Optional) Toggle failed deployment email notification."
}
}
},
- "ksearch.User": {
+ "UpsertSignupQualificationReply": {
+ "type": "object",
+ "properties": {
+ "organization": {
+ "$ref": "#/definitions/Organization"
+ }
+ }
+ },
+ "UserReply": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "$ref": "#/definitions/User"
+ }
+ }
+ },
+ "UserSettings": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "email": {
- "type": "string"
- },
- "name": {
+ "user_id": {
"type": "string"
},
- "github_user": {
- "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": {
diff --git a/uv.lock b/uv.lock
new file mode 100644
index 00000000..5d1dc4ae
--- /dev/null
+++ b/uv.lock
@@ -0,0 +1,421 @@
+version = 1
+revision = 3
+requires-python = ">=3.9"
+resolution-markers = [
+ "python_full_version >= '3.10'",
+ "python_full_version < '3.10'",
+]
+
+[[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 = "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"
+source = { editable = "." }
+dependencies = [
+ { name = "pydantic" },
+ { name = "python-dateutil" },
+ { name = "typing-extensions" },
+ { name = "urllib3" },
+]
+
+[package.dev-dependencies]
+dev = [
+ { name = "flake8" },
+ { name = "pytest" },
+]
+
+[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.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"
+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 = "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"
+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 = "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"
+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" },
+]